Hypothesis Test for a Mean

Hypothesis Test for a Mean
A hypothesis test may be performed for a population mean μ. Be sure to review the hypothesis test steps before studying this section.
The test statistic is depends on 3 things:
- Whether the population standard deviation σ is known or not
- Whether the population distribution is normal or not
- Sample size

→ z (if σ is known)
→ t (if σ is unknown)


Example: Hypothesis Test (Mean) - One-Sided Test
In 2013, the business department reported that the average monthly salary for co-op students is $2,960. Kenya randomly sampled 25 co-op students in the business department. The sample mean is $3,325 with a standard deviation of $940. Assume the population is normally distributed. At the significance level α=0.05, is there evidence that the monthly salary is higher now?
(a) Is this a z-test or a t-test?
This is a t-test because σ is unknown. Although the sample size is not very large, the population is assumed to be normal so we can proceed with the t-test.
(b) State the hypotheses:
Ho: μ=2960
Ha: μ>2960
(c) What is the critical value?
df=n−1=25−1=24
one-tail test ("greater than")
𝜶 = 𝟎.𝟎𝟓
CV=1.711 (t-table)

(d) Find the test statistic:
(e) Find the p-value.
t-table: 0.025< p-value <0.05
Software: p-value = 0.032
(f) Select the correct conclusion:
i. We reject 𝐻o; there is evidence that the monthly salary is higher now.
ii. We reject 𝐻o; there is no evidence that the monthly salary is higher now.
iii. We fail to reject 𝐻o; there is evidence that the monthly salary is higher now.
iv. We fail to reject 𝐻o; there is no evidence that the monthly salary is higher now.
i. The p-value is smaller than the significance level (0.05). We reject Ho; conclude as per Ha: there is evidence that the monthly salary is higher now.
You can also say: The test statistic (1.942) is greater than the critical value (1.711). Reject Ho.
There is evidence that the average co-op salary is greater than $2,960.
(g) What would be the conclusion if α=0.01?
i. We reject 𝐻o; there is no evidence that the monthly salary is higher now.
ii. We fail to reject 𝐻o; there is evidence that the monthly salary is higher now.
iii. We fail to reject 𝐻a; there is no evidence that the monthly salary is the same.
iv. We fail to reject 𝐻o; there is no evidence that the monthly salary is higher now.
iv. The p-value is greater than the significance level (0.01). Fail to reject Ho. (You do not reject Ha!)
There is no evidence that the average co-op salary is greater than $2,960.
If you are curious, the critical value at a = 0.01 is 2.492
The test statistic (1.9415) is smaller than the critical value (2.492). Fail to reject Ho.
(h) What does that say about the strength of the evidence?

Since we can reject Ho at a = 0.05 but not at a = 0.01, we can say that there is strong evidence but not very strong.

Example: Hypothesis Test (Mean) - Two-Sided Test
The average time it takes to find a parking spot at the mall is 11.5 minutes. However, the mall's property was recently rezoned. Has the average time to find a parking spot changed since the rezoning? Based on a random sample of 41 cars, the average time for shoppers to find a parking spot is 10.25 minutes with a standard deviation of 4.5 minutes. The significance level is α=0.05.
(a) Is this a z-test or a t-test?
This is a t-test because σ is unknown. Although the sample size is not very large, the population is assumed to be normal so we can proceed with the test.
(b) State the hypotheses:
Ho: μ=11.5
Ha: μ= 11.5
(c) What is the critical value?
df=n−1=41−1=40
two-tail test ("changed")
𝜶 = 𝟎.𝟎𝟓
CV=2.021 (t-table)

(d) Find the test statistic:
(e) Find the p-value. (Remember: this is a two-tail test!)
t-table: 0.05< p-value <0.10 (be sure to find the correct p-value based on a two-tail test!)
Software: p-value = 0.0829
(f) Select the correct conclusion:
i. There is evidence that the average time to find a parking spot has decreased.
ii. There is evidence that the average time to find a parking spot has changed.
iii. There is evidence that the average time to find a parking spot has not changed.
iv. There is no evidence that the average time to find a parking spot has changed.
iv. The p-value is greater than the significance level (0.05). We fail to reject Ho, then we have no evidence for Ha.
(iii. is not correct - we didn't prove that Ho is true.)