Solved–Draw a histogram of the salaries of all players in the American league —- Homework Assign1– Solution

$35.00 $24.00

  Download the data for the American League salaries from 2003 from the class website.   Undergraduate and Graduate Students   Draw a histogram of the salaries of all players in the American league.   In order to improve the readability of the histogram, scale the data so that the salaries are in millions of…

You’ll get a: . zip file solution

 

 
Categorys:

Description

5/5 – (2 votes)

 

Download the data for the American League salaries from 2003 from the class website.

 

Undergraduate and Graduate Students

 

  • Draw a histogram of the salaries of all players in the American league.

 

In order to improve the readability of the histogram, scale the data so that the salaries are in millions of dollars. For example, Acevedo earned $900,000. You would depict this as 0.9.

Of course you need to provide an appropriate label for the x-axis so that it is clear that this is $ 0.9M and not 90 cents ;-)

 

Save the plot to a PDF

 

Open the PDF file to make sure that you succeeded.

 

  • Analyze the dataset to find out how many players make the lowest salary. Start by finding the minimum salary and the find those players that make that minimum salary.
  • How many millionaires are there?

 

  • How many players earn more than 10 million?

 

Graduate Students only

 

  • Compare the salaries of the New York Yankees to the salaries of the Oakland Athletics. Create two smaller datasets called yankees and oakland that contain the data for just these teams.
    1. What is the total salary for each of these teams?

 

  1. What is the largest salary on each team and who makes this amount?

 

  1. What is the average salaries on both teams?

 

  1. How many millionaires are there on each team?

 

  1. Draw a histogram of the salaries of the two teams. Make a PDF of each of these histograms. Give them sensible titles and label the axes.

 

 

Turn in via dropbox:

 

Undergraduate and Graduate Students

 

  1. The pdf of the histogram from (a)

 

  1. A pdf document with your answers to (b), (c), (d)

 

Graduate Students only

 

  1. A pdf of each of the histograms from (e.5)

 

  1. A pdf document with your answers to e.1,e.2, e.3, and e.4