Docsity

Hypothesis Testing Study Notes | P-Values, Z-Tests & Solved Examples, Summaries of Mathematics

Toggle sidebar
bg1
Hypothesis Testing — Study Notes | Page 1 of 5
Hypothesis Testing
Concepts • Steps • P-Values • Solved Examples | Statistics Study Notes for Quick Revision
1. Introduction to Hypothesis Testing
Hypothesis testing is a formal statistical procedure used to decide, using sample data, whether there is enough evidence to
reject a claim (hypothesis) about a population. It converts a research question into a decision rule based on probability, so
conclusions are objective rather than based on opinion.
Why it matters:
• Provides an objective, repeatable method to test claims
using data.
• Controls the chance of drawing a wrong conclusion (error
rates).
• Forms the foundation of scientific research and
evidence-based decisions.
Real-world applications:
• Medicine: testing if a new drug is more effective than a
placebo.
• Business: testing if a marketing change increases sales.
• Quality control: testing if a machine produces defective
parts within limits.
2. Statistical Hypotheses
Every hypothesis test begins with two competing statements about a population parameter:
Hypothesis Meaning Example
Null Hypothesis (H0)The statement of "no effect" / "no difference" — assumed true
until evidence says otherwise. H0: µ = 50 (average score is 50)
Alternative Hypothesis (H1 or
Ha)The statement we accept if there is enough evidence against
H0; represents the claim being tested. H1: µ ≠ 50 (average score is not 50)
3. Types of Alternative Hypotheses
The alternative hypothesis determines which region of the sampling distribution counts as evidence against H0. This creates
three possible test forms, shown below with their rejection regions (shaded):
+1.96-1.96 0
Fail to reject H0
Reject Reject
Two-Tailed Test
1.6450
Fail to reject H0
Reject H0
Right-Tailed Test
-1.645 0
Fail to reject H0
Reject H0
Left-Tailed Test
H0: µ = µ0 vs H1: µ ≠ µ0 (both tails) H0: µ ≤ µ0 vs H1: µ > µ0 (right tail) H0: µ ≥ µ0 vs H1: µ < µ0 (left tail)
pf3
pf4
pf5

Partial preview of the text

Download Hypothesis Testing Study Notes | P-Values, Z-Tests & Solved Examples and more Summaries Mathematics in PDF only on Docsity!

Hypothesis Testing

Concepts • Steps • P-Values • Solved Examples | Statistics Study Notes for Quick Revision

1. Introduction to Hypothesis Testing

Hypothesis testing is a formal statistical procedure used to decide, using sample data, whether there is enough evidence to

reject a claim (hypothesis) about a population. It converts a research question into a decision rule based on probability, so

conclusions are objective rather than based on opinion.

Why it matters:

  • Provides an objective, repeatable method to test claims

using data.

  • Controls the chance of drawing a wrong conclusion (error

rates).

  • Forms the foundation of scientific research and

evidence-based decisions.

Real-world applications:

  • Medicine: testing if a new drug is more effective than a

placebo.

  • Business: testing if a marketing change increases sales.
  • Quality control: testing if a machine produces defective

parts within limits.

2. Statistical Hypotheses

Every hypothesis test begins with two competing statements about a population parameter:

Hypothesis Meaning Example

Null Hypothesis (H 0 )

The statement of "no effect" / "no difference" — assumed true until evidence says otherwise.

H 0 : μ = 50 (average score is 50)

Alternative Hypothesis (H 1 or Ha)

The statement we accept if there is enough evidence against H 0 ; represents the claim being tested. H^1 :^ μ^ ≠^ 50 (average score is not 50)

3. Types of Alternative Hypotheses

The alternative hypothesis determines which region of the sampling distribution counts as evidence against H 0. This creates

three possible test forms, shown below with their rejection regions (shaded):

Fail to reject H

Reject Reject

Two-Tailed Test

Fail to reject H

Reject H

Right-Tailed Test

Fail to reject H

Reject H

Left-Tailed Test

H 0 : μ = μ 0 vs H 1 : μ ≠ μ 0 (both tails) H 0 : μ ≤ μ 0 vs H 1 : μ > μ 0 (right tail) H 0 : μ ≥ μ 0 vs H 1 : μ < μ 0 (left tail)

4. Significance Level ( α )

The significance level, α, is the probability of rejecting H 0 when it is actually true (the maximum risk of a Type I error that the

researcher is willing to accept). It is chosen before collecting data.

α (significance) Confidence level Typical use

0.05 (5%) 95% Most common default in research

0.01 (1%) 99% Used when stronger evidence is required

Relationship: Confidence level = 1 − α (e.g. α = 0.05 → 95% confidence).

5. Test Statistic

A test statistic is a single number calculated from sample data that measures how far the sample result is from what H 0

predicts, in standard-error units. A large test statistic (far from 0) means the sample evidence disagrees strongly with H 0.

z = (x¯ − μ 0

) / ( σ / √ n)

Symbol Meaning Symbol Meaning

x¯ Sample mean σ Population standard deviation

μ 0 Hypothesized population mean (from H 0 ) n Sample size

6. P-Values

The p-value is the probability of getting a test statistic as extreme as (or more extreme than) the one observed, assuming H 0 is

true. A small p-value means the observed data would be unusual if H 0 were true — evidence against H 0.

Condition Decision

p ≤ α Reject H0 — evidence is strong enough

p > α Fail to reject H0 — not enough evidence

Important: "Fail to reject H 0 " does not mean H 0 is proven true. It only means the sample did not provide enough evidence against it — absence of evidence is not evidence of absence.

Visualizing a p-value decision:

observed z = 2.

critical z (α) = 1.

p-value area

Observed z lies beyond critical z → p-value < α → Reject H

10. Solved Examples

Example 1 — Two-Tailed Z-Test (P-Value Method)

Given A factory claims its bottles contain 500 ml on average. A sample of n = 40 bottles has x¯ = 496 ml, with population σ = 12 ml. Test the claim at α = 0.05.

H0 / H1 H 0 :^ μ^ = 500^ H 1 :^ μ^ ≠^500

α 0.05 (two-tailed)

Formula z = (x¯ − μ 0 ) / (σ/√n)

Calculation z = (496^ −^ 500) / (12/√40) =^ −4 / 1.897 =^ − 2.

P-value For a two-tailed test, p = 2 × P(Z < −2.11) ≈ 2 × 0.0174 = 0.

Decision Since p (0.0348) ≤ α (0.05) → Reject H.

Conclusion There is sufficient evidence at the 5% level that the mean bottle volume differs from 500 ml.

Example 2 — Right-Tailed Z-Test (Critical Value Method)

Given A trainer claims a new program increases average pushups above the current mean of 30. A sample of n = 36 has x¯ = 33.5, with σ = 6. Test at α = 0.05.

H0 / H1 H 0 : μ ≤ 30 H 1 : μ > 30

α 0.05 (right-tailed)

Formula z = (x¯ − μ 0 ) / (σ/√n)

Calculation z = (33.5 − 30) / (6/√36) = 3.5 / 1.0 = 3.

Critical value For a right-tailed test at α = 0.05, critical z = 1.

Decision Since calculated z (3.50) > critical z (1.645), it falls in the rejection region → Reject H.

Conclusion There is sufficient evidence that the new program increases average pushups above 30.

Example 3 — Left-Tailed Z-Test (Conclusion in Context)

Given A company claims average battery life is at least 40 hours. A sample of n = 50 batteries has x¯ = 38.2 hours, with σ = 5 hours. Test the claim at α = 0.01.

H0 / H1 H 0 : μ ≥ 40 H 1 : μ < 40

α 0.01 (left-tailed)

Formula z = (x¯ − μ 0 ) / (σ/√n)

Calculation z = (38.2 − 40) / (5/√50) = −1.8 / 0.707 = − 2.

Critical value For a left-tailed test at α = 0.01, critical z = − 2.

Decision Since calculated z (−2.55) is more extreme than critical z (−2.33), it falls in the rejection region → Reject H.

Conclusion There is sufficient evidence at the 1% level that average battery life is below the claimed 40 hours.

11. Common Student Mistakes - Writing H 0 and H 1 the wrong way round. - Using "=" in the alternative hypothesis (H 1 never contains

  • Confusing α (a fixed threshold set in advance) with the

p-value (calculated from data).

  • Saying "accept H 0 " instead of the correct phrase "fail to

reject H 0 ".

  • Using the wrong tail (left/right/two) for the stated claim.
  • Comparing the test statistic and critical value with the

wrong inequality direction.

  • Forgetting to state the final conclusion in the context of

the original problem.

12. Exam Tips & Quick Revision Summary

Concept Key Point

H 0 / H 1 H 0 : assumed true, contains "=". H 1 : the claim being tested, never contains "=".

α Significance level, fixed before the test (commonly 0.05 or 0.01) = P(Type I error).

P-value rule p ≤ α → Reject H0. p > α → Fail to reject H0.

Type I / Type II Type I: reject a true H0 (prob. = α). Type II: fail to reject a false H0 (prob. = β).

Z-test formula z = (x¯ − μ 0 ) / (σ/√n)

Reject H0 Fail to Reject H

p ≤ α, or test statistic in rejection region p > α, or test statistic in acceptance region

Strong evidence against H0; support H1 Not enough evidence against H0 (does not prove H0 true)

Exam Checklist — before you submit any hypothesis-testing answer:

  • Have I written H 0 and H 1 correctly, matching the claim in the question?
  • Have I identified the correct tail (left, right, or two-tailed)?
  • Have I stated α clearly before calculating anything?
  • Have I used the correct formula and shown the calculation clearly?
  • Have I compared correctly (p vs α, or statistic vs critical value)?
  • Have I written the final decision using "reject" / "fail to reject" (not "accept")?
  • Have I written the conclusion in plain language, in context of the question?

Hypothesis-Testing Procedure — At a Glance

State H0 & H

1

Choose alpha

2

Select the test

3

Calculate test statistic

4

Find p-value / critical value

5

Make decision

6

Conclude in context

7