$p$-value

probability of a result at least as extreme (in the direction given by $H_a$) as the result we actually got, assuming $H_0$ to be true.

Test in practice

Types of errors

Definition

Type 1 error: reject $H_0$ when $H_0$ is really true Type 2 error: accept $H_0$ when $H_a$ is really true

Max $\beta$ will be $1-\alpha$, so choosing a rule with small $\alpha$ implies $\beta$ is large for $\mu$ close to the boundary. If we would like both small, we could take a larger sample. Larger samples reduce $\beta$ for given $\alpha$ at any fixed $\mu$ in $H_a$.

Power of tests

Definition

Power of a test, denoted by power($\theta$), is the probability that the test rejects $H_0$ when the true parameter value is $\theta$.