Hypothesis Testing with One Sample
One-Sample Tests: Parameter, Reference Model, and Calibrated Conclusions
One-sample inference tests a parameter against a stated null value
A one-sample hypothesis test begins with a population parameter and a comparison value, not with the sample result.
The null hypothesis H0 gives the reference value, while the alternative HA specifies the direction or difference the study is designed to detect. A test statistic measures how far the sample estimate lies from the null value in standard-error units.
For a proportion, a large-sample z statistic uses the null standard error: z = (p̂ − p0)/√[p0(1 − p0)/n].
For a mean with unknown population standard deviation, a one-sample t statistic uses t = (x̄ − μ0)/(s/√n), with n − 1 degrees of freedom. The choice follows the parameter and what is known, not simply the sample size.
A p-value is the probability, calculated under H0, of a result at least as incompatible with H0 as the observed statistic. If p is at most the predeclared α level, reject H0. If p is larger, the careful conclusion is fail to reject H0; it is not proof that H0 is true.
Worked example. In a random sample of 25 people, 12 report a behavior. To test H0: p = 0.40, p̂ = 0.48 and the null standard error is √(0.40×0.60/25) ≈ 0.098. Thus z ≈ 0.82, which is not far from zero.
This only describes compatibility with the stated null model; sampling design and confounding remain separate questions.
In a sample of 100 observations, 58 have a trait. Test H0: p = 0.50 against HA: p ≠ 0.50. What is the z statistic?
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
Complete each: (1) rejecting a true H0 is a ______ error; (2) failing to reject a false H0 is a ______ error; (3) a p-value greater than α means ______ H0, not that H0 has been proven true.