13.1 One-Sample: Hypothesis Testing on the Mean
We will consider testing:
H0:μ=μ0 H1:μ≠μ0
Let x1,x2,…,xn be a random sample for a normal distribution with unknown mean μ and unknown variance σ2.
If the null hypothesis H0:μ=μ0 is true, the random variable
T=ˉx−μ0ˆs/√n
has a t distribution n−1 degrees of freedom.
13.1.1 Example
A company wants to improve sales. Previous sales data indicate that the mean sale was 220 euros per transaction. After training the sales force, recent sales data were taken from a sample of 9 salesmen. The company needs to know if the training had worked.
- Data
x={203,229,215,220,223,233,208,228,209}
n=9;ˉx=218.67;s=10.52.
- Hypothesis
H0:μ=220 H1:μ≠220
- Test statistic
T=ˉx−μS/√n=218.67−22010.52/√9=−0.38
- Decision
- Critical Value
We would reject H0 if T were less than tα or greater than tα (determined used a t-table)
α=0.05;df=8
- p-value
We would determine the area under a tdf curve, to the right of T and to the left of −T
T=±0.38;df=8
- Interpretation
There is insufficient evidence, at the α=0.05 level, to conclude that the mean sale is not different from 220 euros (per transaction).
- Reporting
A one-sample t-test was computed to determine whether the mean sales was different to the population normal mean sales (220).
- The company thinks that there is a difference (that the mean sales increased after the training). Test this hypothesis.