Hexa Scholar

Hypothesis tests and rejection regions

A navy laboratory scale with a blank dial holds a cream capsule on a brass pan, beside blank observation cards.
A sample on a scale and blank observation cards stand for measurements awaiting a decision.

The question

Choose a rule before seeing the measurements it will judge.

  1. 1 SeeSet a boundary; compare the two errors.
  2. 2 TryTest a detector with discrete outcomes.
  3. 3 ProveBuild the likelihood-ratio argument.
  4. 4 ApplyCalculate cutoffs, power, and randomization.
Before you start · 3 quick checks on standard errors, normal areas, and coverage

Two ideas before you start

2 ideas

A hypothesis specifies a population

Switch between two possible sampling densities for a statistic.

The observed statistic will be one value. A hypothesis supplies the distribution used to judge possible values.

Exact definition

The null hypothesis \(H_0\) is the population claim against which the test is calibrated. The alternative \(H_1\) specifies the competing claim. A simple hypothesis fixes the entire distribution; a composite hypothesis allows several distributions. Here both hypotheses are simple. The curves are possible distributions, not probabilities that the hypotheses are true.

A rejection region is a decision rule

A statistic axis with a shaded set of values that trigger rejection.

Switch the shaded set. Values inside it trigger rejection; values outside it do not.

Exact definition

A deterministic test rejects exactly when its data or statistic belong to a specified set \(R\), the rejection region. Its Type I error probability is \(P_0(R)\): rejection when the null model is true. Its Type II error probability is \(\beta=P_1(R^c)\): no rejection when the specified alternative is true. Its power against that alternative is \(P_1(R)=1-\beta\). The subscripts identify the model under which an area is calculated.

Sampling model and notation

For the normal activity, observations are independent and identically distributed normal variables with unknown mean \(\mu\) and known population SD \(\sigma\gt0\). The sample size \(n\ge1\), hypotheses, and testing rule are chosen before observing the sample. Write \(s=\sigma/\sqrt n\) for the standard error and \(Z=(\bar X-\mu_0)/s\) for the test statistic. The null is \(\mu=\mu_0\); the alternative is one specified larger mean \(\mu_1\).

Under the null, Z is standard normal. Under the alternative it is normal with mean \(\delta=(\mu_1-\mu_0)/s\gt0\) and variance one. The lesson on sampling distributions explains the standard error. The normal distribution lesson explains the CDF \(\Phi\). Normality here is an assumption, so no large-sample approximation is needed. Replacing the known SD with an estimated SD requires a different calibration.

1 See

Place the rejection boundary

2 Try

A detector with two possible reports

3 Prove

Why compare likelihood ratios?

Refresher: density ratios and randomized tests

Write \(f_0(x)\) and \(f_1(x)\) for the density, or probability mass, of the complete data x under each simple hypothesis. A likelihood ratio \(f_1(x)/f_0(x)\) compares how much probability weight the same outcome receives under the two models. It is not a posterior probability. For densities, a point itself has zero probability; probabilities come from integrals over sets.

A test function \(\varphi(x)\in[0,1]\) is the conditional probability of rejecting after observing x. A deterministic rule uses only zero and one. Its rejection probability under model j is \(E_j\varphi=\int\varphi(x)f_j(x)\,dx\). For a discrete model replace the integral by a sum. These definitions supply everything needed below.

Neyman–Pearson lemma, common positive support

Consider two simple hypotheses with positive densities or masses \(f_0,f_1\) on the same support. Fix \(0\lt\alpha\lt1\) and \(k\gt0\). Suppose a rule \(\varphi_*\) rejects where \(f_1\gt kf_0\), does not reject where \(f_1\lt kf_0\), and randomizes on equality so that \(E_0\varphi_*=\alpha\). Then it has at least as much power as every test \(\psi\in[0,1]\) with \(E_0\psi\le\alpha\).

Define \(\Delta_j=E_j\varphi_*-E_j\psi\). The target is \(\Delta_1\ge0\). The theorem allows ties and identical tests; it claims optimality, not uniqueness. It assumes that the stated threshold rule attains the budget, with randomization if needed.

Build the comparison point by point, then add it up. The first two choices concern only points where the competing decisions differ strictly. Equality cases contribute zero and are included when integrating.

4 Apply

Specify the rule, then calculate

Enter decimals without units or percent signs. Each task states its assumptions and accepted error. A probability is entered on the scale from zero to one. Use unrounded quantiles internally, then round the requested answer.

What a decision does and does not establish

“Do not reject” does not establish that the null is true. Under a specified alternative it can be a Type II error. “Reject” does not establish that the alternative is certain. Even a calibrated rule rejects some samples generated by the null. The error rates describe repeated use of the fixed rule under specified models; they are not the probabilities that either hypothesis is true after this sample.

There is a matching interval interpretation. In the known-SD normal model, a two-sided level-α test rejects \(\mu_0\) when it falls outside the central confidence interval with coverage \(1-\alpha\). An upper-tail level-α test instead matches a one-sided lower confidence bound. The confidence intervals lesson explains coverage; keep the sidedness consistent when connecting intervals to tests.

Choosing a cutoff after seeing the result, or repeatedly testing until a rejection appears, changes the rule being used. The error calculation on this page applies to the fixed sampling plan and specified test. It does not automatically apply to such a modified procedure.

Key point A test is a rule with operating probabilities under competing models. The conclusion from one sample should name the rule and its assumptions.
Level IntroPrerequisites confidence intervals, sampling distributions, normal areasTime about 35 min

Further reading