Question

In: Statistics and Probability

The times (in seconds) for a sample of New York Marathon runners were as follows: Gender...

The times (in seconds) for a sample of New York Marathon runners were as follows:

Gender

Age Class

Male

20-29

30-39

40+

13615

14677

14528

18784

16090

17034

14256

14086

14935

10905

16461

14996

12077

20808

22146

Female

16401

15357

17260

14216

16771

25399

15402

15036

18647

15326

16297

15077

12047

17636

25898

Conduct a two-way analysis of variance including interactions to examine these data. Perform model criticism. What do you conclude? Note that R users do not need to invoke the “car” package since the equal replication means that Type I = Type III SS (using car package can be tricky when fitting models with interactions since the contrasts also need to be altered to make them comparable).

Solutions

Expert Solution

R code:

Input =("
AgeClass Gender Time
20-29 Male 13615
20-29 Male 18784
20-29 Male 14256   
20-29 Male 10905
20-29 Male 12077
30-39 Male 14677
30-39 Male 16090
30-39 Male 14086   
30-39 Male 16461
30-39 Male 20808
40+ Male 14528
40+ Male 17034
40+ Male 14935   
40+ Male 14996
40+ Male 22146
20-29 Female 16401
20-29 Female 14216   
20-29 Female 15402   
20-29 Female 15326
20-29 Female 12047
30-39 Female 15357
30-39 Female 16771   
30-39 Female 15036   
30-39 Female 16297
30-39 Female 17636
40+ Female 17260
40+ Female 25399
40+ Female 18647   
40+ Female 15077
40+ Female 25898
")
if(!require(psych)){install.packages("car")}
library(car)
Data = read.table(textConnection(Input),header=TRUE)
model = lm(Time ~ AgeClass + Gender + AgeClass:Gender,
data=Data)
Anova(model, type="II")

Output:

Anova Table (Type II tests)

Response: Time
Sum Sq Df F value Pr(>F)
AgeClass 92086979 2 5.0998 0.01427 *
Gender 15225413 1 1.6864 0.20642
AgeClass:Gender 21042069 2 1.1653 0.32885
Residuals 216683456 24
---
Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Since p-value for interaction=0.32885>0.05 so interaction effect is not significantly present. Moreover p-value for gender=0.20642>0.05 so Gender is not significantly present. But Age Classes are not all same since P-value=0.01427<0.05.


Related Solutions

1. As reported in Runners World magazine, the times of the finishers in the New York...
1. As reported in Runners World magazine, the times of the finishers in the New York City 10 km run follow the normal model with mean=61 minutes and standard deviation= 9 minutes. a) Using the 68-95-99.7% rule, 68% of runners will finsh between which two times? (In minutes) b) Using the 68-95-99.7% rule, 99.7% of runners will finish between which two times? (In minutes) Use z-scores and your z-table for the following. Round z-scores to two decimal places but give...
A random sample of 30 marathon runners demonstrated that the average age was 38 years old,...
A random sample of 30 marathon runners demonstrated that the average age was 38 years old, with s = 5 years. Find a 95% confidence interval for the average age of marathon runners.
High daily temperatures and times (in minutes) were given for women who won the New York...
High daily temperatures and times (in minutes) were given for women who won the New York City marathon in recent years. Results are listed in the table below. Is here a correlation between temperature and winning time? Use α=.05. What is the best predicted finishing time for a day with a high temperature of 70° F? x(° F) 55 61 49 62 70 73 51 57 y(minutes) 145.3 148.7 148.3 148.1 147.6 146.4 144.7 147.5 r: critical value: Significant linear...
An article in the New York times states that there is a shocking new way to...
An article in the New York times states that there is a shocking new way to lose weight. A new wearable device called Pavlok claims it is successful in helping people lose weight. Here is how it works, whenever the wearer takes a bite of the foods they want to avoid, like chocolate or Cheez-Its, they use the Pavlok to give themselves a lightning-quick electric shock. “Every time I took a bite, I zapped myself,” one user said. “I did...
Eight runners were convinced that the average difference in their individual times for running one mile...
Eight runners were convinced that the average difference in their individual times for running one mile versus race walking one mile was at most 2 minutes. Below are their times. Do you agree that the average difference is at most 2 minutes? Conduct a hypothesis test at the 5% level. Running time (minutes) Race walking time (minutes) 5.3 7.5 5.7 9.5 6.2 10.2 4.8 6.9 7.1 8.9 4.2 9.5 6.1 9.4 4.4 7.9 NOTE: If you are using a Student's...
A sample of dissolving times (in seconds) of a drug in water generated the following data:...
A sample of dissolving times (in seconds) of a drug in water generated the following data: 42.3, 43.4, 44.4, 45.1, 46.6, 45.2, 46.8, 47.6 Assume that the dissolving time is normally distributed and the population standard deviation is 1.5 seconds. (a) Determine a 95% confidence interval for the mean dissolving time. (b) At the 0.1 level of significance, test the hypothesis that the mean dissolving time under the conditions experienced is equal to 46 seconds using the probability- value approach....
1 a). In a recent New York City marathon, 25,221 men finished and 253 dropped out....
1 a). In a recent New York City marathon, 25,221 men finished and 253 dropped out. Also, 12,883 women finished and 163 dropped out (based on the data from the New York Times). Use a 0.01 significance level to test the claim that the rate of those who finish is the same for men and women. 1. State the null hypothesis Ho and alternative hypothesis Ha. 2. Find the test statistic. 3. Find the P-value. 4. Make a decision -...
A coach uses a new technique in training middle distance runners. The times for 9 randomly...
A coach uses a new technique in training middle distance runners. The times for 9 randomly selected, independent athletes to run 800 meters before and after this training are shown below. Assume the distribution of differences are normally distributed Before 115.2 120.9 108.0 112.4 107.5 119.1 121.3 110.8 122.3 After 116.0 119.1 105.1 111.9 109.1 115.1 118.5 110.7 120.9 Build and Interpret 90% confidence interval for the true mean difference in 800-meter times.
4. The following are 20 observations of response times (in seconds) from a random sample of...
4. The following are 20 observations of response times (in seconds) from a random sample of participants on a cognitive psychology task: 1.7       0.8       4.3       2.9       2.3       1.1       2.2       1.8       2.0       1.2       4.4       1.6       3.8       1.5       2.8 3.3       1.8       2.5       2.7       1.6 (a) Calculate the mean and unbiased standard deviation of the response times. (b) Construct and interpret a 95% confidence interval for μ, which is the true mean response time. Assume that σ = 1.5. (c) Construct and interpret...
a. In an article in the New York Times in 2009, the author makes the following...
a. In an article in the New York Times in 2009, the author makes the following statement: “And whenever the economy begins growing again, it won’t feel good for a while. The unemployment rate may continue to rise into 2010.” Why would the unemployment rate continue to rise if the economy has begun to grow again? (3pts) b. Why isn’t unemployment rate equal to zero when the economy is at full employment? Briefly explain. (3pts) c. If the quantity of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT