Given Variance, Check Mean
Goal
If we know the population variance σ2 (e.g. from historical data), and we want to know if the mean of the new data meets a standard μ0.
The main statistic to test is
z=σ/nxˉ−μ0
| Hypothesis |
p-value |
Decision Rule, Reject H0 if … |
| H0:μ=μ0 vs. H1:μ>μ0 |
P(Z>z) |
z>zα |
| H0:μ≤μ0 vs. H1:μ>μ0 |
P(Z>z) |
z>zα |
| H0:μ≥μ0 vs. H1:μ<μ0 |
P(Z<z) |
z<−zα |
| H0:μ=μ0 vs. H1:μ=μ0 |
P(∣Z∣>∣z∣) |
∣z∣>zα/2 |
Assessing the Power of a Test
Let H0:μ=μ0,H1:μ>μ0, fix μ∗>μ0, we have
β(μ∗)=P(xˉ−xˉc∣μ∗)=P(σ/nxˉ−μ∗<σ/nxˉc−μ∗∣∣∣∣μ∗)=P(Z<σ/nxˉc−μ∗)=Φ(σ/nxˉc−μ∗)
Thus power π(μ∗)=1−β(μ∗)=Φ(σ/nμ∗−xˉc)
Confidence Interval
Confidence interval covers μ with 1−α is
[xˉ−zα/2nσ,xˉ+zα/2nσ]