In: Statistics and Probability
A study is conducted to assess whether residents in City A spent a different out-of-pocket amount on prescription medications from residents in City B last year. The study is restricted to residents who are 50 years of age or older. Residents are selected at random. For each resident, the total amount of dollars spent on prescription medications over the last year is recorded. The summary statistics of the sample data are given in the table below. Let µ1 be the mean out-of-pocket amount that residents in City A spent, and µ2 be the mean out-of-pocket amount that residents in City B spent. Run a two-sample t-test assuming equal variances. Use a significance level of 0.05. City Sample size Sample mean Sample standard deviation A 37 421 37 B 55 380 39
a. Write down the null hypothesis.
b. Write down the alternative hypothesis.
c. Calculate the point estimate for µ1 − µ2. (5 points) d. Calculate the pooled sample variance.
e. Calculate the standard error of the point estimate in c. (10 points) f. Calculate the test statistic. (10 points) g. Find out the critical value.
h. Is there a statistically significant difference in the out-of-pocket amount spent on prescription medications between City A and City B?