Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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 baseball-reference. 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 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.:- M93123414

Have any Question?


Related Questions in Computer Engineering

Question after reading this chapter you should now be

Question : After reading this chapter, you should now be familiar with the "Fun" part of Java utilizing the GUI. The GUI offers all kinds of functionality in the graphical sence. Why do you think Java and Javas GUI are s ...

One state lottery has 1100 prizes of 1 145 prizes of 10 20

One state lottery has 1,100 prizes of $1; 145 prizes of $10; 20 prizes of $75; 5 prizes of $285; 2 prizes of $1,080; and 1 prize of $2,300. Assume that 24,000 lottery tickets are issued and sold for $1. 1)  What is the l ...

Question do a research on the internet and discuss about

Question : Do a research on the Internet and discuss about the history of development of the networking field. Also discuss some of the recent trends in the networking area, (approx 200 words)

A chemistry student needsnbsp550 gnbspof dimethyl sulfoxide

A chemistry student needs 55.0 g of dimethyl sulfoxide for an experiment. By consulting the  CRC Handbook of Chemistry and Physics , the student discovers that the density of dimethyl sulfoxide is 1.10 g.cm^-3. Calculate ...

1 under what circumstances is it advantageous for a company

1. Under what circumstances is it advantageous for a company competing in foreign markets to concentrate its value chain activities in a select few locations? Under what circumstances is it advantageous for a company com ...

Suppose that you want an operation for the adt list that

Suppose that you want an operation for the ADT list that adds an array of items to the end of the list. The header of the method could be as follows. public void addAll(T[] items) Write an implementation of this method f ...

What are content management systems cms describe the

What are Content Management Systems (CMS). Describe the challenges in implementing and maintaining CMS. Can internet search engines be considered as Content Management Systems - explain your answer.

Q1 the market for apples is perfectly competitive say a

Q1. The market for apples is perfectly competitive. Say a typical firm has a marginal cost function of MC(q) = 2q. (1) The optimal quantity of apples to produce is 10 for the typical firm. How much revenue does the firm ...

Question overview of information security and risk

Question: Overview of Information Security and Risk Management (Due Oct 24) Does your company (or school) have a current disaster recovery plan? What are some of the activities involved in it? Do you feel confident that ...

Using c language how to write a function name bsqrt that

Using C++ language, how to write a function name bsqrt that will compute the square root of a number using the Babylonian method. This function will take the number x to compute the square root for and the number of iter ...

  • 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