Career totals for major league baseball players

Assignment Help Business Economics
Reference no: EM131452827

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: EM131452827

Questions Cloud

Page depending on the content : Why is it important to modify the look of the text on your page depending on the content? What can you gain from using bold or italics or other modifiers?
How working capital management is involved in the financing : In this module we discussed how working capital management is involved in the financing and controlling of the current assets of the firm.
Discuss the pros and cons of the planning function : Explore the Internet and retrieve articles that discuss the pros and cons of the planning function
Watch the documentary the making of security : Watch the documentary The Making of Security, listen to one or both of these songs as you read the lyrics.
Career totals for major league baseball players : Write a program (or a Jupyter/Python notebook) to predict the career totals for major league baseball players.
Evaluate the current performance of the process : Write a report which analyses a process and provides recommendations on how the process can be improved. The process you choose to write about can be a process in your own organisation or in any organisation that you are familiar with.
Locate an article on ebola and complete a summary : Locate an article on Ebola and complete a summary and response to the article.
How many dollars will the cash management system free up : If the company has $5 million per day in collections and $3 million per day in disbursements, how many dollars will the cash management system free up?
Describe the environmental impact of industry : What environmental threats and issues does environmental sociology and environmental sociologists try to solve?

Reviews

Write a Review

Business Economics Questions & Answers

  Calculate the deadweight loss created by the imposition

Consider a market with a demand curve of P=10-Q and a supply curve of P=Q. Before the imposition of a tax, equilibrium quantity is 5, and equilibrium price is $5 (verify this). If a tax of $5 per unit is placed on this market, quantity traded falls t..

  Explain how might managers use this information

Assume that macroeconomic forecasters predict that the economy will be expanding in the near future. Explain how might managers use this information.

  Present value of marginal revenue products

To assess a firm's demand for capital we must determine the present value of marginal revenue products and marginal factor costs of capital. A firm maximizes profit in the hiring of capital when the MRP of capital is greater than the MFC of capital. ..

  Overfishing and global warming

We discussed similarities between solutions, or potential solutions, to overfishing and global warming. In a short paragraph, describe that solution (or solutions) and explain, briefly, how it, or they, would work.

  Illustrate what is the expected dividend per share

The dividend is expected to grow 7 percent a year for the next 3 years and then at 5 percent a year thereafter. Illustrate what is the expected dividend per share for each of the next 5 years.

  Equilibrium price-equilibrium quantity in competitive market

Evaluate each of the supply and demand scenarios below, How will each affect equilibrium price and equilibrium quantity in a competitive market? Will price and quantity rise, fall, or be unchanged? Based on the magnitudes of the shifts, will the answ..

  Explain parts of equation for a nominal rate of interest

Assuming the same risk structure and term to the maturity of the investments, if the yield on a Treasury Inflation Protected Security (TIPS) is 0.28 percent, and the yield on a regular Treasury Bond is 2.73 percent, then: Write down and explain parts..

  Homeowner can afford to spend for a geothermal heat pump

A geothermal heat pump can save up to 80% of the annual heating and cooling bills of a certain home in the northeastern U.S. In this region, the yearly cost of conventionally heating and cooling a 2,000 square foot house is about $2, 500. The maximum..

  Assume normal competitive market

If aliens come and take a large percentage of our cows what happens in the market for synthetic leather baseball gloves? (Assume a normal competitive market)(Show the graph, label all relevant points, and explain what happens to price and quantity. E..

  What are the profit-maximizing price and output levels

Robert’s New Way Vacuum Cleaner Company is a newly started small business that produces vacuum cleaners and belongs to a monopolistically competitive market. What are the profit-maximizing price and output levels? Explain them and calculate algebraic..

  This causes an increase in demand for housing

A local radio morning man said the following when Vancouver housing prices fell by 20% in the fall of 2008: “Sure the price of housing is falling, but we know that this causes an increase in demand for housing. When the demand increases, this will le..

  Develop more effective integrated marketing communications

Think of a recent high dollar purchase you have made (Television, computer, car, etc.). Using the 5 steps outlines in the consumer purchasing process, explain each step of the process as it applies to your purchase. Which 2 steps did you find most im..

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