🎓 Prepared by students from Boğaziçi University

What is Hypothesis Testing?

Hypothesis testing is a statistical method for deciding whether evidence from a sample supports or contradicts a claim about a population. It compares a null hypothesis (no effect) against an alternative hypothesis using a test statistic and p-value.

Short answer

Hypothesis testing evaluates whether sample data provides enough evidence to reject a null hypothesis (H₀) in favor of an alternative hypothesis (H₁), based on a chosen significance level (commonly α = 0.05).

Steps in Hypothesis Testing
  1. 1
    State H₀ and H₁
    Define the null (no effect) and alternative hypotheses.
  2. 2
    Choose significance level α
    Commonly 0.05 — the risk of a false positive you'll accept.
  3. 3
    Collect data & compute test statistic
    e.g., a z or t value from the sample.
  4. 4
    Find the p-value
    Probability of observing data this extreme if H₀ is true.
  5. 5
    Decide: reject or fail to reject H₀
    Reject H₀ if the p-value is less than α.
01

Try it: interactive calculator

z test statistic
1.5
= (52-50)/(8/sqrt(36))
02

Step-by-step worked examples

A company claims its light bulbs last μ₀ = 1000 hours. A sample of n=36 bulbs has mean x̄=980 hours, σ=60 hours. Test at α=0.05 (two-tailed).

z = (x̄ − μ₀)/(σ/√n) = (980 − 1000)/(60/√36)
= −20/10 = −2.0
Critical z at α=0.05 (two-tailed) = ±1.96
|−2.0| > 1.96 → reject H₀: bulb lifespan is significantly different from 1000 hours

A cereal box is labeled 500 g. A sample of n=25 boxes has mean x̄=495 g, σ=15 g. Test H₀: μ=500 at α=0.05.

z = (495 − 500)/(15/√25) = −5/3 ≈ −1.67
Critical z (two-tailed, α=0.05) = ±1.96
|−1.67| < 1.96 → fail to reject H₀: not enough evidence boxes are underfilled

A new teaching method is tested: a sample of n=49 students scores x̄=78, historical μ₀=75, σ=14. Test at α=0.05 one-tailed (H₁: μ>75).

z = (78 − 75)/(14/√49) = 3/2 = 1.5
Critical z (one-tailed, α=0.05) = 1.645
1.5 < 1.645 → fail to reject H₀: not enough evidence the method improves scores
03

Flashcards

04

Quick quiz

Q1.The null hypothesis (H₀) typically represents…

Correct answer: B. H₀ is the default 'no effect' claim that testing tries to disprove.

Q2.If the p-value < α, you should…

Correct answer: B. A p-value below the significance level provides enough evidence to reject H₀.

Q3.Rejecting a true H₀ is called a…

Correct answer: A. Type I error = false positive, rejecting a true null hypothesis.

Q4.A common significance level (α) used in research is…

Correct answer: B. α = 0.05 (5%) is the most common threshold in practice.
📄Download this topic as a printable worksheet (PDF)Summary + 10 questions + answer key — print it, share it in class.
Study better with Bounlu apps
Notek
Notek

The full card deck, worked steps and AI-tutor support for “What is Hypothesis Testing?” are in Notek — study by hand before your exam.

Get it free
Notek 1Notek 2Notek 3Notek 4Notek 5
05

Common mistakes

Believing a p-value tells you the probability H₀ is true.Correct: A p-value is the probability of the data given H₀ is true, not the reverse.

Concluding 'fail to reject H₀' means H₀ is proven true.Correct: It only means there isn't enough evidence to reject it — not proof of truth.

Using α=0.05 blindly for every context.Correct: The significance level should reflect the cost of errors in that specific context.

Confusing statistical significance with practical importance.Correct: A result can be statistically significant yet have a tiny, unimportant effect size.

06

FAQ

What is hypothesis testing?

A statistical method to decide, using sample data, whether to reject a null hypothesis in favor of an alternative.

What is the formula used in hypothesis testing?

For known population variance: z = (x̄ − μ₀)/(σ/√n); other tests use t, chi-square, or F statistics.

What are examples of hypothesis testing?

Testing whether a new drug lowers blood pressure, whether a product's average weight matches its label, or whether a teaching method improves scores.

How do you calculate a hypothesis test step by step?

State H₀/H₁, choose α, compute the test statistic, find the p-value, then compare it to α to decide.

Related topics