Hypothesis Tests About μ (σ Known) — p-value approach
This page explains the core ideas used by the calculator: hypotheses, tails, the z test statistic,
the p-value definition, and the reject / do-not-reject rule using a chosen significance level α.
Two hypotheses
A statistical hypothesis test compares a claim about a population parameter to evidence from a sample.
We set up two competing statements:
- Null hypothesis H0: a claim assumed true unless the data provide strong evidence against it.
- Alternative hypothesis H1: the claim supported when H0 is rejected.
In hypotheses we use the population parameter (here, μ), not the sample statistic (x̄).
Rejection and nonrejection
A test has two possible decisions:
reject H0 (evidence supports H1) or do not reject H0
(not enough evidence to support H1).
“Do not reject” does not mean H0 is proven true—it means the sample did not provide
sufficiently strong evidence against H0 at the chosen α.
Two types of errors
Because decisions are made from samples, errors are possible:
- Type I error: reject a true H0. Its probability is
α.
- Type II error: do not reject a false H0. Its probability is
β.
The power of a test is 1 − β (probability of correctly rejecting a false H0).
For a fixed sample size, decreasing α generally increases β (and vice versa).
Tails of a test
The sign in the alternative hypothesis determines where “extreme” sample results live:
H0 always includes equality ( = ), while H1 uses ( ≠ ), ( < ), or ( > ).
When σ is known: the z test statistic
When the population standard deviation σ is treated as known, a common test for μ uses the standard normal model.
The standard error of the sample mean is:
\[
\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}
\]
The observed z value (test statistic) is:
\[
z = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}}
\]
The calculator uses these formulas and then computes the tail probability under the standard normal curve.
p-value definition and decision rule
Assuming H0 is true, the p-value is the probability of getting a sample result
at least as extreme as the observed one in the direction of H1.
- Right-tailed: p-value is the area to the right of the observed z.
- Left-tailed: p-value is the area to the left of the observed z.
- Two-tailed: p-value is twice the tail area beyond |z|.
Decision rule (p-value approach):
Reject H0 if p-value ≤ α; otherwise, do not reject H0.
Steps used by the calculator
- State H0 and H1 (choose the correct tail).
- Confirm the normal z procedure is reasonable (often n ≥ 30, or population approximately normal when n < 30).
- Compute z using \(\, z = \dfrac{\bar{x} - \mu_0}{\sigma/\sqrt{n}} \,\).
- Compute the p-value from the standard normal curve (tail area based on H1).
- Compare p-value to α and report the decision.