Working backwards, Part II. (5.24, p. 203)

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.

Ans:

Sample mean = 71; margin of error = 6; sample standard deviation = 17.53481.

## [1] 71
## [1] 6
## [1] 17.53481

-

SAT scores. (7.14, p. 261)

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.

  1. Raina wants to use a 90% confidence interval. How large a sample should she collect?

    Ans:

    She should collect 271 samples.

    ## [1] 270.5543
  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.

    Ans:

    Luke’s sample should be larger than Raina’s if he wants to use 99% confidence interval.

  3. Calculate the minimum required sample size for Luke.

    Ans:

    The minimum sample size required for Luke is 664.

    ## [1] 663.4897

-

High School and Beyond, Part I. (7.20, p. 266)

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 differences in scores are shown below.

  1. Is there a clear difference in the average reading and writing scores?

    Ans:

    There is no clear difference in the average reading and writing scores based on the plots.

  2. Are the reading and writing scores of each student independent of each other?

    Ans:

    No, the reading and writing scores are dependent of each other as they are a pair of scores come from the same student.

  3. 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?

    Ans:

    H0: There is no difference in the average scores of students in the reading and writing exams.

    H1: There is evident difference in the average scores of students in the reading and writing exams.

  4. Check the conditions required to complete this test.

    Ans:

    1. Each pair of scores is independent from the other pairs, which, the scores of different students must be independent.

    2. We assume the population is large that the sample size 200 is less than 10% of the population.

  5. The average observed difference in scores is \({ \widehat { x } }_{ read-write }=-0.545\), and the standard deviation of the differences is 8.887 points. Do these data provide convincing evidence of a difference between the average scores on the two exams?

    Ans:

    As we are using two-tailed test, our p-value = 0.3858 >0.05, we accept the null hypothesis. There is no difference in the average scores of students in the reading and writing exams.

    ## [1] -0.867274
    ## [1] 0.3857919
  6. What type of error might we have made? Explain what the error means in the context of the application.

    Ans:

    We might have made Type 2 Error by failing to reject H0. It means that there is evident difference in the average scores of students in the reading and writing exams but we failed to prove so.

  7. 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.

    Ans:

    Yes, based on the results, we believe there is no (evident) difference in the average scores of students in the reading and writing exams, which means the difference of their means might possibly be 0. Therefore, we would expect a confidence interval to include 0.

    ## [1] -1.7766754  0.6866754

-

Fuel efficiency of manual and automatic cars, Part II. (7.28, p. 276)

The table provides summary statistics on highway fuel economy of cars manufactured in 2012. Use these statistics to calculate a 98% confidence interval for the difference between average highway mileage of manual and automatic cars, and interpret this interval in the context of the data.

Ans:

By using the data provided in the table, we have the 98% confidence interval (-8.511, -1.409).

## [1] -4.96
## [1] 1.428881
## [1] 2.485107
## [1] 3.550922
## [1] -8.510922 -1.409078

-

Email outreach efforts. (7.34, p. 284)

A medical research group is recruiting people to complete short surveys about their medical history. For example, one survey asks for information on a person’s family history in regards to cancer. Another survey asks about what topics were discussed during the person’s last visit to a hospital. So far, as people sign up, they complete an average of just 4 surveys, and the standard deviation of the number of surveys is about 2.2. The research group wants to try a new interface that they think will encourage new enrollees to complete more surveys, where they will randomize each enrollee to either get the new interface or the current interface. How many new enrollees do they need for each interface to detect an effect size of 0.5 surveys per enrollee, if the desired power level is 80%?

Ans:

Assume all surveys completed by enrollees are independent and the population is large.

By the calculation below, they need 304 new enrollees for each interface to detect an effect size of 0.5 surveys per enrollee with desired power level at 80%.

## [1] 1.959964
## [1] 0.8416212
## [1] 303.9086

-

Work hours and education. (7.42, p. 297)

The General Social Survey collects data on demographics, education, and work, among many other characteristics of US residents. 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.

  1. Write hypotheses for evaluating whether the average number of hours worked varies across the five groups.

    Ans:

    H0: The average number of hours worked of all five groups are the same.

    H1: At least one of the average number of hours worked among the five groups is different.

  2. Check conditions and describe any assumptions you must make to proceed with the test.

    Ans:

    1. Assume the observations are independent within and across groups.

    2. Assume the data within each group are nearly normal.

    3. Assume the variability across the groups is about equal.

    As the sample sizes are all larger than 30, and is less than 10% of the populaton, the conditions are met.

  3. Below is part of the output associated with this test. Fill in the empty cells.

Ans:

## [1] 4
## [1] 1167
## [1] 1171
## [1] 2006.16
## [1] "269388.160000"
## [1] 229.1191
## [1] 2.188992
(table) Df Sum Sq Mean Sq F-value Pr(>F)
degree 4 2006.16 501.54 2.188992 0.0682
residuals 1167 267,382 229.11911
Total 1171 269388.16
  1. What is the conclusion of the test?

    Ans:

    As the p-value = 0.0682 > 0.05, we fail to reject the null hypothesis.

    There is no significant difference between the average number of hours worked of all five groups. Any observed difference is due to chance.