Show enough work to explain your decisions and state conclusions in context. Use \(\alpha=.05\) and 95% confidence intervals unless otherwise specified. You may use R for calculations. Model output and plots are provided; you do not need to recreate them. Allow for rounding when checking calculations.
For each scenario, state the null hypothesis and identify an appropriate statistical test. No calculations are required.
We are interested in predicting wing length for Cooper’s hawks using culmen (upper beak) length or sex. These data include 68 hawks. Both lengths are measured in millimeters.
The plot shows the fitted line from Model 1, with observations colored by sex.
Model 1: Culmen only –
lm(Wing ~ Culmen, data = hawks)
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 90.94 22.12 4.11 0.00011
## Culmen 8.72 1.25 7.00 0.0000000016
##
## Residual standard error: 24.688 on 66 degrees of freedom
## Multiple R-squared: 0.426, Adjusted R-squared: 0.417
## F-statistic: 48.98 on 1 and 66 DF, p-value: 0.00000000163
Model 2: Sex only –
lm(Wing ~ Sex, data = hawks)
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 257.26 5.01 51.34 < 0.0000000000000002
## SexM -26.68 7.19 -3.71 0.00043
##
## Residual standard error: 29.643 on 66 degrees of freedom
## Multiple R-squared: 0.173, Adjusted R-squared: 0.160
## F-statistic: 13.76 on 1 and 66 DF, p-value: 0.000428
qt(.975, df = 66) for
the critical value. How does the interval agree with your test
conclusion?SexM and give a
conclusion.Consider the same hawks, now using culmen length and sex together.
Model 3: Culmen and sex –
lm(Wing ~ Culmen + Sex, data = hawks)
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 109.98 26.80 4.10 0.00012
## Culmen 7.87 1.42 5.56 0.00000054
## SexM -8.48 6.80 -1.25 0.21687
##
## Residual standard error: 24.585 on 65 degrees of freedom
## Multiple R-squared: 0.439, Adjusted R-squared: 0.422
## F-statistic: 25.48 on 2 and 65 DF, p-value: 0.00000000677
The lines below are the fitted mean relationships from Model 3.
The following data include 70 Hollywood films released between 2007 and 2012. They include Action and Comedy films from Fox and Paramount. The plot shows opening-weekend revenue, in millions of dollars, with color indicating the number of theaters showing the film.
Movie Model 1 –
lm(OpeningWeekend ~ Genre + LeadStudio, data = movies)
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) 36.15 4.81 7.52 0.00000000018
## GenreComedy -25.69 5.78 -4.44 0.00003427689
## LeadStudioParamount 14.69 5.94 2.47 0.016
##
## Residual standard error: 24.153 on 67 degrees of freedom
## Multiple R-squared: 0.288, Adjusted R-squared: 0.266
## F-statistic: 13.53 on 2 and 67 DF, p-value: 0.0000116
Movie Model 2 –
lm(OpeningWeekend ~ Genre + LeadStudio + TheatersOpenWeek, data = movies)
## Coefficients:
## Estimate Std. Error t value Pr(>|t|)
## (Intercept) -21.48761 9.95081 -2.16 0.0345
## GenreComedy -13.69726 4.99129 -2.74 0.0078
## LeadStudioParamount 8.74991 4.82823 1.81 0.0745
## TheatersOpenWeek 0.01804 0.00287 6.28 0.000000031
##
## Residual standard error: 19.256 on 66 degrees of freedom
## Multiple R-squared: 0.554, Adjusted R-squared: 0.534
## F-statistic: 27.32 on 3 and 66 DF, p-value: 0.0000000000133