Topic contents

Lesson 00

Hypothesis testing: from research questions to statistical conclusions

Concepts, decision steps, and key formulas · A study guide and review outline for Lessons 01–11

What does hypothesis testing do?

Researchers first propose a research claim to test, based on theory, previous studies, or practical experience. They then use sample data to ask: Is there enough evidence to reject the null hypothesis?

  1. ① Does the research question concern a difference, an increase, or a decrease?
  2. ② State H₀ / H₁; specify the direction in advance
  3. ③ Choose a test: Z / t / χ² / F, etc.
  4. ④ Calculate the statistic and p-value to assess the strength of evidence
  5. ⑤ Draw a statistical conclusion by comparing P with α
Hypothesis testing assesses whether the sample provides sufficiently strong evidence against H₀; it does not prove a hypothesis absolutely "true" or "false."

Understanding a distribution plot

−4−2024Z-1.961.96Nonrejection regionα/2α/2
Rejection regions (two-sided α=0.05 in this example) and the reference distribution under the null hypothesis

A simple decision rule

P ≤ α → Reject H₀

The result meets the prespecified significance level

P > α → Fail to reject H₀

The evidence is insufficient to reject the null hypothesis

α is a prespecified upper bound on the risk of a Type I error (when the test conditions are met); the p-value is the probability of obtaining the current or a more extreme statistical result under the reference model specified by H₀.

"Fail to reject H₀" does not mean "prove H₀ is correct."

Seven concepts to remember

ConceptBrief meaning
Null hypothesis H₀A statement provisionally assumed true as the reference for a statistical test; it usually includes equality.
Alternative hypothesis H₁A claim proposed in advance based on theory, experience, or the research question, for which the researcher seeks supporting sample evidence.
Significance level αA prespecified rejection criterion, commonly 0.10, 0.05, or 0.01.
Test statisticA standardized quantity comparing the sample with the reference specified by H₀, such as Z, t, χ², or F.
Rejection regionThe range of statistic values that triggers rejection of H₀ for a given α and direction of H₁.
p-valueThe probability of obtaining the current or a more extreme test result when the reference model specified by H₀ holds.
Two types of errorType I: rejecting H₀ when H₀ is true; Type II: failing to reject H₀ when H₁ is true.

One reference value, three research questions

Research questionAlternative hypothesisDirection
Has the mean score changed?H₁: μ ≠ 80Two-sided
Has the mean score increased?H₁: μ > 80Right-tailed
Has the mean score decreased?H₁: μ < 80Left-tailed
The alternative hypothesis may come from experience or intuition, but the test direction must not be chosen after seeing the sample results according to which is more statistically significant.

Errors and power

Type I error

Incorrectly rejecting H₀ when H₀ is true.

Its probability is usually denoted by α.

Type II error

Failing to reject H₀ when the difference described by H₁ actually exists.

Its probability is denoted by β.

Power

The probability of correctly rejecting H₀ at a specified alternative parameter value.

Power = 1 − β

α, β, and power are affected by factors including sample size, true effect size, variability, and the test rule.

How do you choose among common tests?

Parameter of interestConditions or questionCommon methodRelated lesson
One population meanPopulation standard deviation σ knownz-test06
One population meanPopulation standard deviation σ unknown; relevant conditions mett-test; Z approximation available for large samples07
One population proportionBinary data; conditions for the normal approximation metProportion z-test08
One population varianceIndependent random observations from a normally distributed populationChi-square test09
Parameters of two populationsCompare means, proportions, or variancesTwo-sample t / Z / F, etc.10

Key formula reference

① Population mean · Z

Z=xˉ−μ0σ/nZ=\frac{\bar x-\mu_0}{\sigma/\sqrt n}

Population standard deviation σ known

② Population mean · t

t=xˉ−μ0s/n,df=n−1t=\frac{\bar x-\mu_0}{s/\sqrt n},\quad df=n-1

Population standard deviation unknown; the classical small-sample t-test usually requires a normally distributed population

③ Population proportion · Z

Z=p^−p0p0(1−p0)/nZ=\frac{\hat p-p_0}{\sqrt{p_0(1-p_0)/n}}

The standard error uses the null proportion p₀

④ Population variance · χ²

χ2=(n−1)s2σ02,df=n−1\chi^2=\frac{(n-1)s^2}{\sigma_0^2},\quad df=n-1

Independent observations from a normal population; chi-square distributions are usually asymmetric

⑤ Two independent population means · Welch's t-test

t=xˉ1−xˉ2s12/n1+s22/n2t=\frac{\bar x_1-\bar x_2}{\sqrt{s_1^2/n_1+s_2^2/n_2}}

Degrees of freedom approximated by the Welch–Satterthwaite formula

⑥ Two population proportions · Z

Z=p^1−p^2p^(1−p^)(1/n1+1/n2)Z=\frac{\hat p_1-\hat p_2}{\sqrt{\hat p(1-\hat p)(1/n_1+1/n_2)}}

Under H₀: p₁ = p₂, p̂ is the pooled sample proportion

⑦ Two population variances · F

F=s12s22,df1=n1−1,df2=n2−1F=\frac{s_1^2}{s_2^2},\quad df_1=n_1-1,\quad df_2=n_2-1

The classical test of a ratio of two population variances requires two independent samples of independent observations from normal populations

Why can different test directions give different conclusions from the same data?

For example, given Z = 1.80 and significance level α = 0.05:

Directionp-value (approx.)Decision
Left-tailed0.9641Fail to reject H₀
Right-tailed0.0359Reject H₀
Two-sided0.0719Fail to reject H₀
The calculations do not contradict each other: the three alternative hypotheses pose different research questions. Report the test result that matches the research question specified in advance.

Five common points of confusion

① A higher sample mean ≠ a statistically significantly higher population mean Direction and strength of evidence are separate matters.

② p-value ≠ probability that the null hypothesis is true It is a tail probability given H₀ and the reference model.

③ Failing to reject H₀ ≠ accepting and proving H₀ The sample evidence may simply be insufficient.

④ Statistical significance ≠ practical importance Also consider effect size and the research context.

⑤ One-sided significance with no two-sided significance ≠ a logical contradiction The key is to avoid choosing the test direction after the fact.

Lesson map: 01–11

Learn the basic concepts

01 From confidence intervals to hypothesis testing

02 Null and alternative hypotheses and test direction

03 Rejection and nonrejection regions

04 Type I and Type II errors

05 What is a p-value?

Learn common testing methods

06 z-test for a population mean

07 t-test for a population mean

08 Hypothesis test for a population proportion

09 Hypothesis test for a population variance

10 Tests comparing two population parameters

Understand statistical results

11 Why do different test directions give different conclusions?

Categorical data analysis and analysis of variance have separate learning modules.