Ask Statistics and Probability Expert

Stat 11 Spring 2011 - Homework 9b

The question we are trying to answer is the following: On average, do baseball players at different positions make different salaries? Or are players at all positions equally well compensated, on average?

Download the datasets baseball1 and baseball2 from www.swarthmore.edu/NatSci/swang1/Stat11. The first dataset, baseball1, is an MS Excel file that contains salaries and positions for 100 randomly selected major league baseball players. The positions are catcher (C), first base (1B), second base (2B), third base (3B), shortstop (SS), and outfield (OF). Pitchers and designated hitters are not included. Recall that economic data such as salaries are often right-skewed (the "Bill Gates effect" from earlier in the course). To make the data more symmetric and to reduce outlying values, I have transformed the data by taking logarithms of the values. (We'll talk more about data transformations later in class.)

The first step is to copy and paste the data from Excel into Data Desk. Open the baseball1 dataset in Excel by double-clicking on it. Select the first two columns by clicking on the A and B column headings while holding down the shift key, and then select Copy from the Edit menu. Now double-click the Data Desk icon to open the program. (If you are asked for a serial number and ID number, these are given in the ReadMe file in the same folder as the program in the data-software server.)

After the program opens, select Paste from the Edit menu. Data Desk will display the first row of the data and ask you if you want to use these variable names, or if you want to enter your own names. Since the first row of the baseball1 dataset already contains the variable names, go ahead and click "Use these variable names". (If the dataset had not contained the variable names, you could have clicked on "Prompt for each variable name" to enter the names manually.) You should now see the Data Desk desktop and icons for each variable in the dataset.

(a) We begin by making a picture. Select log salary as Y (option-click the icon on a Mac; alt-click on Windows) and position as X (shift-click the icon on both Mac and Windows). Then choose Boxplot Y by X from the Plot menu. Describe the major features you see in the plot.

For example, does the average salary for each position appear to be the same? (Recall that boxplots display median salaries by position, while ANOVA is testing whether the mean salaries are equal. However, if the data are roughly symmetric (and they are-this was one of the benefits of taking logs of the data), the mean and median should be roughly equal.) Also, ANOVA requires that each position have roughly the same SD. Does this requirement appear to be approximately satisfied?

Copy the plot by clicking on the plot window's title bar and choosing Copy Window from the Edit menu, and paste it into a word processor document. Then type your answers near the plot.

(b) Now we will test if the various positions differ significantly in salary. State appropriate null and alternative hypotheses.

(c) With log salaries selected as Y and position selected as X, carry out the ANOVA by selecting ANOVA from the Calc menu (use the plain ANOVA option, not the ANOVA with interactions option). The program should open an ANOVA output table. Copy this window by clicking on the plot window's title bar and choosing Copy Window from the Edit menu (choose the Picture form option when you are prompted), and paste it into your word processor document.

(d) Give the value of the numerator of the F-ratio (measuring the variability between group means).

(e) Give the value of the denominator of the F-ratio (measuring the variability within groups).

(f) If the null hypothesis were true, what would you expect the (approximate) value of the Fratio to be? If the alternative hypothesis were true, what would you expect the value of the Fratio to be?

(g) What is the observed value of the F-ratio (i.e., the test statistic) in this dataset?

(h) What is the p-value associated with this F-ratio?

(i) What do you conclude about salaries among the different positions?

(j) Instead of comparing salaries for each position, we'll now compare all infielders (1B, 2B, 3B, and SS) with all outfielders (OF). This is a t-test for two independent samples. To do this in Data Desk, first open the baseball2 Excel file, and copy and paste only the first column (containing the log-salaries for infielders) into Data Desk. Now go back to the Excel file and copy and paste only the second column (containing the log-salaries for outfielders) into Data Desk. You may have to move the second window so it does not overlap the first.

To do a two-sample t-test in Data Desk, click on the icon for infielders and then shift-click on the icon for outfielders. Now go to the Calc menu and select Test. In the window that appears, click on the uppermost pop-up menu and select "2-Sample t-Test of µ1-µ2" (it may already be selected). Then click "Show Results". The window should then give you a report describing the hypotheses being tested, the test statistic ("t-Statistic"), and the p-value (on the last line). Copy the window and paste it into your word processor document. What are the test statistic and the p-value? What do you conclude about the salaries of infielders and outfielders?

Statistics and Probability, Statistics

  • Category:- Statistics and Probability
  • Reference No.:- M91856428

Have any Question?


Related Questions in Statistics and Probability

Introduction to epidemiology assignment -assignment should

Introduction to Epidemiology Assignment - Assignment should be typed, with adequate space left between questions. Read the following paper, and answer the questions below: Sundquist K., Qvist J. Johansson SE., Sundquist ...

Question 1 many high school students take the ap tests in

Question 1. Many high school students take the AP tests in different subject areas. In 2007, of the 144,796 students who took the biology exam 84,199 of them were female. In that same year,of the 211,693 students who too ...

Basic statisticsactivity 1define the following terms1

BASIC STATISTICS Activity 1 Define the following terms: 1. Statistics 2. Descriptive Statistics 3. Inferential Statistics 4. Population 5. Sample 6. Quantitative Data 7. Discrete Variable 8. Continuous Variable 9. Qualit ...

Question 1below you are given the examination scores of 20

Question 1 Below you are given the examination scores of 20 students (data set also provided in accompanying MS Excel file). 52 99 92 86 84 63 72 76 95 88 92 58 65 79 80 90 75 74 56 99 a. Construct a frequency distributi ...

Question 1 assume you have noted the following prices for

Question: 1. Assume you have noted the following prices for paperback books and the number of pages that each book contains. Develop a least-squares estimated regression line. i. Compute the coefficient of determination ...

Question 1 a sample of 81 account balances of a credit

Question 1: A sample of 81 account balances of a credit company showed an average balance of $1,200 with a standard deviation of $126. 1. Formulate the hypotheses that can be used to determine whether the mean of all acc ...

5 of females smoke cigarettes what is the probability that

5% of females smoke cigarettes. What is the probability that the proportion of smokers in a sample of 865 females would be greater than 3%

Armstrong faber produces a standard number-two pencil

Armstrong Faber produces a standard number-two pencil called Ultra-Lite. The demand for Ultra-Lite has been fairly stable over the past ten years. On average, Armstrong Faber has sold 457,000 pencils each year. Furthermo ...

Sppose a and b are collectively exhaustive in addition pa

Suppose A and B are collectively exhaustive. In addition, P(A) = 0.2 and P(B) = 0.8. Suppose C and D are both mutually exclusive and collectively exhaustive. Further, P(C|A) = 0.7 and P(D|B) = 0.5. What are P(C) and P(D) ...

The time to complete 1 construction project for company a

The time to complete 1 construction project for company A is exponentially distributed with a mean of 1 year. Therefore: (a) What is the probability that a project will be finished in one and half years? (b) What is the ...

  • 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