CHAPTER 5 HOMEWORK - 5.6, 5.14, 5.20, 5.32, 5.48
Working backwards, Part II. A 90% confidence interval for a population mean is (65, 77). The population distribution is approximately normal and the population standard deviation is unknown. This confidence interval is based on a simple random sample of 25 observations. Calculate the sample mean, the margin of error, and the sample standard deviation.
(65+77)/2 Sample Mean = 71
(77-71) Margin of error = 6
3.5 * sqrt(25) Sample SD = 17.5
SAT scores. SAT scores of students at an Ivy League college are distributed with a standard deviation of 250 points. Two statistics students, Raina and Luke, want to estimate the average SAT score of students at this college as part of a class project. They want their margin of error to be no more than 25 points. (a) Raina wants to use a 90% confidence interval. How large a sample should she collect? 272 (1.65 * 250)/25)^2
Luke wants to use a 99% confidence interval. Without calculating the actual sample size, determine whether his sample should be larger or smaller than Raina’s, and explain your reasoning. Luke must have a larger sample than Raina since he will require a higher z number to achieve a higher confidence interval
Calculate the minimum required sample size for Luke. 663 (2.575 * 250)/25)^2
High School and Beyond, Part I. The National Center of Education Statistics conducted a survey of high school seniors, collecting test data on reading, writing, and several other subjects. Here we examine a simple random sample of 200 students from this survey. Side-by-side box plots of reading and writing scores as well as a histogram of the di???erences in scores are shown below.
Is there a clear difference in the average reading and writing scores? There does not appear to be a clear difference in the average reading and writing scores
Are the reading and writing scores of each student independent of each other? No - The reading and writing scores of each student is not independent of others
Create hypotheses appropriate for the following research question: is there an evident difference in the average scores of students in the reading and writing exam? H0 - There is no difference between the average reading and writing scores._ HA - There is a clear difference between the average reading and writing scores.
Check the conditions required to complete this test. The data is independent._ The data is normally distributed.
The average observed difference in scores is ¯xread???write = ???0.545, and the standard deviation of the di???erences is 8.887 points. Do these data provide convincing evidence of a di???erence between the average scores on the two exams? No
What type of error might we have made? Explain what the error means in the context of the application. Type II error - Incorrectly rejecting the alternative hypothesis.
Based on the results of this hypothesis test, would you expect a confidence interval for the average difference between the reading and writing scores to include 0? Explain your reasoning. Yes, i would expect so because the 95% confidence interval includes 0
Fuel efficiency of manual and automatic cars, Part I. Each year the US Environmental Protection Agency (EPA) releases fuel economy data on cars manufactured in that year. Below are summary statistics on fuel efficiency (in miles/gallon) from random samples of cars with manual and automatic transmissions manufactured in 2012. Do these data provide strong evidence of a difference between the average fuel efficiency of cars with manual and automatic transmissions in terms of their average city mileage? Assume that conditions for inference are satisfied
diff <- 16.12 - 19.85
SE <- ((3.58 ^ 2 / 26) + (4.51 ^ 2/26) )^0.5
t <- (diff - 0) / SE
df <- 26 - 1
p <- pt(t, df = df)
p
## [1] 0.001441807
Since the P-Value is so low, we must reject the null hypothesis - There is in fact, strong evidence of a difference between the average fuel efficiency of cars with manual and automatic transmissions.
Work hours and education. The General Social Survey collects data on demographics, education, and work, among many other characteristics of US residents.47 Using ANOVA, we can consider educational attainment levels for all 1,172 respondents at once. Below are the distributions of hours worked by educational attainment and relevant summary statistics that will be helpful in carrying out this analysis.
Write hypotheses for evaluating whether the average number of hours worked varies across the five groups. H0 - Between all groups, the average number of hours worked is equal._ HA - Between all groups, there is at least one where the number of hours worked is not equal
Check conditions and describe any assumptions you must make to proceed with the test. The data is independent._ The data is normally distributed.
Below is part of the output associated with this test. Fill in the empty cells.