Calculate other necessary factors

Assignment Help Basic Computer Science
Reference no: EM131457603

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 https://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.

Reference no: EM131457603

Questions Cloud

What is internet protocol : What is Internet Protocol? What is HTTP (Hypertext Transfer Protocol)?
Summarize your chosen social and criminal justice issue : Propose the resolution to the social and criminal justice issue. Examine the operations of the criminal justice system as it relates to your chosen issue .
Knowledge of information technology : There are many careers that require computer literacy. In fact, most jobs today require some knowledge of information technology.
Emerging trends in information technology : Discuss some of the emerging trends in information technology (e.g. computer hardware, software, data analysis).
Calculate other necessary factors : Your program will calculate other necessary factors - the number needed to reach the goal, the number of seasons remaining for the player, established level.
Compare your decisions during college year and the summer : With a classmate, choose two companies or brands that compete directly with each other. Select two of the following or choose your own.
Evaluate which method would be efficient for planning : Evaluate which method would be efficient for planning proactive concurrency control methods and lock granularities.
Key differences between insurance and bonds : Identify three key differences between insurance and bonds and explain those differences
Create a convincing case for an audience : Your task will be to create a convincing case for an audience that does not have an answer to your cause and effect question already in mind.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a program that creates a list of card objects

Your program should read the list of cards from a file, where each line in the file represents a single card with the rank and suit separated by a space. Hint: first sort by rank and then by suit.

  Regarding alien and ethic profiling issues

Please write an essay regarding Alien and ethic profiling issues in Homeland Security. Please do atleast 10 to 15 pages including references and please no plagiarism.

  Which random variable can describe the random interval t

There are k events in a Poisson flow of events in the random time interval τ. Which random variable can describe the random interval τ?

  Solutions help in making decisions

Discuss what is meant by creative middle way solutions. How do these solutions help in making decisions? Please use at least 75 words, nothing copied and pasted from online or plagiarized.

  Define a companion class immutablename

What are the advantages and disadvantages of using composition to define companion classes?

  Difference between conflict equivalence and view equivalence

difference between conflict equivalence and view equivalence?

  Mips uses word alignment

MIPS uses word alignment, so all words are stored in memory on word boundaries; this means that address bits A[1:0] are always 00. How many and which address bits would be allocated for the set index?

  Implement a simple automated bank registry system

Implement a simple automated bank registry system. The implementation will include several attributes related to a transaction, and the data will be managed in a global linked list within memory.

  Intentional and unintentional plagiarism

What is the difference between intentional and unintentional plagiarism

  What is the purpose of swabbing

After the construction of watermain, prior to hydrostatic pressure test, swabbing is carried out. What is the purpose of swabbing?

  What is our cluster validation methodology

True or false: The best clustering model is the one with the largest value of pseudo-F. Explain.

  Summarize the data numerically and graphically

Test that there is no association between gender and the likelihood of trying a low-fat diet. Summarize the results.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd