Goal

If we know the population variance σ2\sigma^2 (e.g. from historical data), and we want to know if the mean of the new data meets a standard μ0\mu_0.

The main statistic to test is

z=xˉμ0σ/nz=\frac{\bar{x}-\mu_0}{\sigma/\sqrt{n}}

Hypothesis pp-value Decision Rule, Reject H0H_0 if …
H0:μ=μ0H_0:\mu=\mu_0 vs. H1:μ>μ0H_1:\mu>\mu_0 P(Z>z)\mathbb{P}(Z\gt z) z>zαz>z_{\alpha}
H0:μμ0H_0:\mu\le\mu_0 vs. H1:μ>μ0H_1:\mu>\mu_0 P(Z>z)\mathbb{P}(Z\gt z) z>zαz>z_{\alpha}
H0:μμ0H_0:\mu\ge\mu_0 vs. H1:μ<μ0H_1:\mu\lt\mu_0 P(Z<z)\mathbb{P}(Z\lt z) z<zαz\lt -z_{\alpha}
H0:μ=μ0H_0:\mu=\mu_0 vs. H1:μμ0H_1:\mu\ne\mu_0 P(Z>z)\mathbb{P}(\vert Z\vert \gt \vert z\vert) z>zα/2\vert z\vert>z_{ \alpha /2}

Assessing the Power of a Test

Let H0:μ=μ0,H1:μ>μ0H_0:\mu=\mu_0, H_1:\mu\gt\mu_0, fix μ>μ0\mu^\ast\gt\mu_0, we have

β(μ)=P(xˉxˉcμ)=P(xˉμσ/n<xˉcμσ/nμ)=P(Z<xˉcμσ/n)=Φ(xˉcμσ/n)\begin{aligned}\beta(\mu^\ast) &= \mathbb{P}(\bar{x} - \bar{x}_c | \mu^\ast) \\&=\mathbb{P}\Big( \frac{\bar{x}-\mu^\ast}{\sigma / \sqrt{n}} \lt \frac{\bar{x}_c - \mu^\ast}{\sigma/\sqrt{n}} \Big\vert \mu^\ast \Big)\\&=\mathbb{P} \Big( Z\lt \frac{\bar{x}_c-\mu^\ast}{\sigma/\sqrt{n}} \Big)\\&= \Phi\Big( \frac{\bar{x}_c-\mu^\ast}{\sigma/\sqrt{n}} \Big)\end{aligned}

Thus power π(μ)=1β(μ)=Φ(μxˉcσ/n)\pi(\mu^\ast)=1-\beta(\mu^\ast)=\Phi(\frac{\mu^\ast - \bar{x}_c}{\sigma/\sqrt{n}})

Confidence Interval

Confidence interval covers μ\mu with 1α1-\alpha is

[xˉzα/2σn,xˉ+zα/2σn][\bar{x}-z_{\alpha/2}\frac{\sigma}{\sqrt{n}}, \bar{x}+z_{\alpha/2}\frac{\sigma}{\sqrt{n}}]