Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question:

This is sports data analysis class. please help me out with this assignment.

Background

Bill James created a career projection system he called his "favorite toy," presumably because he liked projecting the career totals of major league baseball players. As usually described, the formula predicts the likelihood of the player achieving a particular goal, such as 500 home runs or 3000 hits.

Procedure

Write a program (or a Jupyter/Python notebook) to predict the career totals for major league baseball players.

The favorite toy formula is described at http://www.baseball-reference.com/bullpen/Favorite_toy. The user will enter the name or Lahman id of the player*, the year on which to base the projection, the statistic being projected (you may restrict your program to projecting home runs, hits, and rbi; for additional credit (up to 3 points/10), you may extend your program to the pitching statistics wins, complete games, and strikeouts), and the goal. Your program will calculate other necessary factors - the number needed to reach the goal, the number of seasons remaining for the player, established level, and projected remaining total. Output will be the estimated probability of reaching the goal. You should consider the first caveat listed on the baseball-reference.com description (a player can't have a likelihood greater than .97 * the estimated number of seasons it will take him) but do not worry about whether the player is a "below average offensive player." You may assume the user will enter a base year that gives the player at least three seasons of past data; recover gracefully if the user enters an invalid player (a name or id that does not appear in the data).

You need not develop a sophisticated user interface - you may use simple input statements; if you do that, expect the Lahman abbreviations for statistics (HR for home runs, H for hits, etc). The base year and goal will be integers, and the player name or id will be a string (but don't expect the user to put quotes around it).

Be sure your code is commented well to help me understand your implementation.

Deliverables

Put your program in your upload folder within 5 minutes after class time on the due date.

* You may choose whether to take the name or id but make it clear in the user interface which is expected. If you use name, the name should be the first and last name as recorded in the Lahman master file (Master.csv). You may resolve duplicate names as you see fit but, if only one player with a given name is playing during the base year, use that player.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92266343
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Requirementswrite a java program that reads a set of

Requirements: Write a java program that reads a set of integer lattice points, prints out the ones on the boundry of the convex hull sorted left to right (ie by x-coordinate), and then accepts additional points and deter ...

Discuss the importance of metadata and some of the various

Discuss the importance of metadata and some of the various ways (Microsoft) SQL Server allows you to expose that information. References welcomed to learn where to find obscure IT information (books, articles, websites)

Explain the risk of having hacking tools installed on your

Explain the risk of having hacking tools installed on your computer and why you should contact local law enforcement agencies before installing those tools.

Suppose alice shares a secret block cipher key kab with bob

Suppose Alice shares a secret block cipher key, K_AB with Bob, and a different secret block cipher key, K_AC with Charlie. Describe a method for Alice to encrypt an m-block message such that it can only be decrypted with ...

Objectivesthis assessment item relates to the unit learning

Objective(s) This assessment item relates to the unit learning outcomes as in the unit descriptors. This checks your understanding about basic constructs of C# programming. Details & Problems In this assignment, you are ...

Question suppose you have to design a mobile application to

Question : Suppose you have to design a mobile application to control your microwave over internet. Define the objective, assumptions and Interface Metaphors of this application.

Let a and b be events the symmetric difference atriangleb

Let A and B be events. The symmetric difference A(triangle)B is defined to be the set of all elements that are in A or B but not both. In logic and engineering, this even is also called the XOR (exclusive or) of A and B. ...

Regards to cin what programming situations would the use of

Regards to C++ In what programming situations would the use of an array be beneficial? What situations would not warrant the use of an array? Provide an example showing why. Research the concept of C++ vectors. Describe ...

Question after you have analyzed the existing material used

Question: After you have analyzed the existing material used by the company for their day-to-day duties, the current Access database, and the additional requirements that the current system does not meet, the following r ...

Question suppose that a computer can execute 1 billion

Question : Suppose that a computer can execute 1 billion instructions/sec and that a system call takes 1000 instructions, including the trap and all the context switching. How many system calls can the computer execute p ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As