Unit 3 of 4 · Hypothesis tests for a mean
Use a p-value
Compare the observed tail probability with significance and reconcile both methods.
A p-value follows the observation
Start with the null distribution and the observed statistic. Shade results at least as extreme in the direction of the alternative, then calculate that tail probability. Compare the unrounded p-value with the chosen significance level.
A p-value is the null probability of a statistic at least as extreme in the direction(s) of . With :
- Left-sided, observed : .
- Right-sided, observed : the upper-tail probability is the same.
- Two-sided, observed : .
The source prints the calculator decimals 0.022750062 and 0.045500124; these differ slightly from the independent CDF values above but round to the same 0.0228 and 0.0455. The source calculator entries are normalcdf(−10^99, −2, 0, 1), normalcdf(2, 10^99, 0, 1) and twice the latter for the two-sided case. The very large finite endpoints stand in for infinite tails. Preserve full precision during the calculation.
Make both methods agree
Reject when ; otherwise do not reject it. The equivalent critical-value rules reject below the left boundary, above the right boundary, or outside both boundaries for a two-sided test. State the conclusion in the context of the population mean and the chosen level.
At 5%, compare the same decision in both forms:
- Left-sided, : and the statistic lies above : do not reject.
- Right-sided, : and the statistic lies below : do not reject.
- Two-sided, : and the statistic exceeds : reject. The source’s right-tail non-rejection table includes equality; use consistently with its main inclusive rejection rule.
Compare unrounded values at the boundary
The source discusses strict versus inclusive boundaries and suggests another sample at equality. Here we use the declared rule consistently; equality has probability zero under a continuous null model. Do not resample repeatedly just to obtain a preferred decision. If rounding makes a result appear equal, compare the unrounded values.
State what the decision means
Not rejecting does not prove or accept it. A test supplies evidence against rather than assigning a probability that it is true. For the same data and alternative, rejection at a smaller level implies rejection at every larger level; the converse fails. Statistical significance does not measure practical importance.
Explain the evidence before making the decision
For a right-sided test of a population mean, an observed sample gives . Two students say:
- “There is a 3.2% chance that the null hypothesis is true.”
- “If the null model were true, results at least this extreme in the stated direction would occur with probability 0.032.”
Choose the defensible explanation. Decide what happens at 5% and at 1%, and explain why the data have not changed.
After your attempt: compare the reasoning
The second explanation conditions on the null model. Since , reject at 5%; since , do not reject at 1%. The stricter rule requires stronger evidence. Neither decision gives the probability that the null hypothesis is true. A non-rejection does not establish that the claimed mean is correct.
Follow the alternative, then compare the p-value
Choose the alternative and significance level before inspecting the sample. Use this map only after the test statistic has a justified standard-normal null model, exact or approximate as stated.
Read the full method map and examplesDiagrams for this unit
Open 2 diagramsTry these examples
Open an example in chapter practice. Try it first, then read its solution. Use “Learn this step” to return to this unit.