Write a program to predict the career totals for major

Assignment Help Computer Engineering
Reference no: EM132135949

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.

Reference no: EM132135949

Questions Cloud

Real world example of a unfavorable result : A real world example of a unfavorable result in an experiment and what could have been done to avoid the outcome of the experiment?
Explain the two sql functions and the importance of function : Explain the two SQL functions and the importance of each function. Please include when these functions might be used.
Find the mean-variance and standard deviation : Find the mean, variance, and standard deviation of the probability distribution.
How many days long should your warranty be : You want to set the warranty length such that you only have to replace 1.5% of all the DVD players you sell. How many days long should your warranty be?
Write a program to predict the career totals for major : As usually described, the formula predicts the likelihood of the player achieving a particular goal, such as 500 home runs or 3000 hits.
Determine what the relationships should be among the classes : Add multiplicity constraints, being especially cognizant of zero-to-many versus one-to-many differences.
Calculate the point differential for each lineup : How many points does a particular lineup score vs how many do they give up to their opponents?
Write a query that will display users and their privileges : Create the following three user-defined roles that are shown in the table below and assign them the specified permissions.
What is the probability the salesman : Q. What is the probability the salesman will make exactly $50 in the next hour?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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