A study is conducted to assess whether residents in City A spenta different out-of-pocket amount on prescription medications fromresidents in City B last year. The study is restricted to residentswho are 50 years of age or older. Residents are selected at random.For each resident, the total amount of dollars spent onprescription medications over the last year is recorded. Thesummary statistics of the sample data are given in the tablebelow.
Let μ1 be the mean out-of-pocket amount that residents in City Aspent, and μ2 be the mean out-of-pocket amount that residents inCity B spent. Run a two-sample t-test assuming equal variances. Usea significance level of 0.05.
City Sample size Sample mean Sample standard deviation
A 40 381 39 B 52 422 45
Write down the null hypothesis. (5 points)
Write down the alternative hypothesis. (5 points)
Calculate the point estimate for μ1 − μ2. (5 points)
Calculate the pooled sample variance. (10 points)
Calculate the standard error of the point estimate in c. (10points)
Calculate the test statistic. (10 points)
Find out the critical value. (5 points)
Is there a statistically significant difference in theout-of-pocket amount spent on prescription medications between CityA and City B? (5 points)