In this lab we will develop the principles of hypothesis testing means and pair-sample means.
Lab Objective 1: Write and organize statistical
reports in a clear readable format.
Lab Objective 7: Construct confidence intervals and use
them for hypothesis testing.
Lab Objective 8: Calculate and interpret p-values to
test hypotheses.
Determine if the following statements are true or false. If false, explain.
A = True, B = False
A = True, B = False
A = True, B = False
Let’s consider a limited set of climate data, examining temperature differences in 1948 vs 2018. We sampled 197 locations from the National Oceanic and Atmospheric Administration’s (NOAA) historical data, where the data was available for both years of interest. We want to know: were there more days with temperatures exceeding 90°F in 2018 or in 1948?
The difference in number of days exceeding 90°F (number of days in 2018 - number of days in 1948) was calculated for each of the 197 locations. The average of these differences was 2.9 days with a standard deviation of 17.2 days. We are interested in determining whether these data provide strong evidence that there were more days in 2018 that exceeded 90°F from NOAA’s weather stations.
xbar = 2.9
n = 197
s = 17.2
\(\mu_1\) = mean number of days exceeding 90 degrees F in 1948 \(\mu_2\) = mean number of days exceeding 90 degrees F in 2018
H_o: the difference in the number of days exceeding 90 degrees F is zero (\(\mu_1 - \mu_2=0\)) H_A: the number of days exceeding 90 degrees F was more in 2018 than in 1948 (\(\mu_2 < \mu_1\) or \(\mu_2 - \mu_1 < 0\))
xbar = 2.9
n = 197
s = 17.2
SE = s/sqrt(n)
Tscore = (xbar - 0)/SE
Tscore
## [1] 2.366479
1 - pt( 2.366479, df = n-1)
## [1] 0.009466607
Since p = 0.0095 < 0.05, we have strong evidence that the mean number of days exceeding 90 degrees F is more in 2018 than in 2019.
(SKIP. We didn’t cover this this semester.)
No. Because we have strong evidence that the mean number of days is not zero. If the confidence interval included 0, then we would have evidence that the mean number of days could be zero.