1. Home
  2. Explore
  3. Mathematics
  4. Hypothesis Tests for Mean

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Hypothesis Tests for Mean

📊 Hypothesis Testing (Homework Tests)

Introduction

Hypothesis testing is a statistical method used to make decisions about a population parameter based on sample data. This set of notes focuses on tests concerning the population mean (μ\muμ). The procedure involves taking a sample, computing its mean (xˉ\bar{x}xˉ), and using that statistic to judge whether a claim about μ\muμ is supported by the evidence.

The test statistic used depends on sample size and knowledge of the population standard deviation:

  • Large samples (n≥30n \ge 30n≥30) or when the population is normally distributed and σ\sigmaσ is known → use the Z distribution.

  • Small samples (n<30n < 30n<30) where σ\sigmaσ is unknown and the population is normally distributed → use the t distribution (with tn−1t_{n-1}tn−1​ degrees of freedom).

Null and Alternative Hypotheses

A hypothesis test involves two competing statements:

  • Null hypothesis (H0H_0H0​): A statement that includes an equals sign (===, ≤\le≤, or ≥\ge≥). It represents the status quo or the claim being challenged.

  • Alternative hypothesis (HaH_aHa​ or H1H_1H1​): The complement of H0H_0H0​; it states that the parameter is different from the null claim.

Three common forms arise:

Case 1: Two‑tailed test

H0:μ=μ0vsHa:μ≠μ0H_0: \mu = \mu_0 \quad \text{vs} \quad H_a: \mu \neq \mu_0H0​:μ=μ0​vsHa​:μ=μ0​

The alternative allows deviation in either direction.

Case 2: Left‑tailed test

H0:μ≥μ0vsHa:μ<μ0H_0: \mu \ge \mu_0 \quad \text{vs} \quad H_a: \mu < \mu_0H0​:μ≥μ0​vsHa​:μ<μ0​

Rejection occurs when the sample mean is significantly less than μ0\mu_0μ0​.

Case 3: Right‑tailed test

H0:μ≤μ0vsHa:μ>μ0H_0: \mu \le \mu_0 \quad \text{vs} \quad H_a: \mu > \mu_0H0​:μ≤μ0​vsHa​:μ>μ0​

Rejection occurs when the sample mean is significantly greater than μ0\mu_0μ0​.

Important: H0H_0H0​ always contains the equality (===, ≤\le≤, ≥\ge≥). The decision is then whether to reject H0H_0H0​ or fail to reject H0H_0H0​. We never “accept” H0H_0H0​; we only conclude that the data do not provide sufficient evidence against it.

Types of Errors

Because the decision is based on a sample, there is a possibility of making a wrong conclusion. Two types of errors exist:

Decision

H0H_0H0​ is True

H0H_0H0​ is False

Reject H0H_0H0​

Type I error (α\alphaα)

Correct decision

Fail to reject H0H_0H0​

Correct decision

Type II error (β\betaβ)

  • Type I error (α\alphaα): Rejecting a true null hypothesis. The probability of this error is called the level of significance.

  • Type II error (β\betaβ): Failing to reject a false null hypothesis.

The diagram below illustrates these errors for a right‑tailed test:

The goal is to keep both α\alphaα and β\betaβ as small as possible, but there is typically a trade‑off.

Level of Significance

The level of significance, denoted α\alphaα, is the maximum probability of committing a Type I error that the researcher is willing to tolerate.

Commonly used values:

  • α=0.10\alpha = 0.10α=0.10 (10%)

  • α=0.05\alpha = 0.05α=0.05 (5%)

  • α=0.01\alpha = 0.01α=0.01 (1%)

These small values reflect the desire to minimize the risk of wrongly rejecting H0H_0H0​.

Test Statistics

The test statistic converts the sample mean into a standardized score so it can be compared to a critical value.

  • When using Z (large samples or known σ\sigmaσ):

z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}z=σ/n​xˉ−μ0​​

If σ\sigmaσ is unknown but n≥30n \ge 30n≥30, replace σ\sigmaσ with the sample standard deviation sss:

z=xˉ−μ0s/nz = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}z=s/n​xˉ−μ0​​
  • When using t (small samples, σ\sigmaσ unknown, normal population):

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

Decision Rules

The decision to reject or not reject H0H_0H0​ is made by comparing the test statistic to a critical value derived from the sampling distribution at level α\alphaα.

Large Samples (Z‑test)

Type of test

Reject H0H_0H0​ if

Left‑tailed (Ha:μ<μ0H_a: \mu < \mu_0Ha​:μ<μ0​)

z<−zαz < -z_\alphaz<−zα​

Right‑tailed (Ha:μ>μ0H_a: \mu > \mu_0Ha​:μ>μ0​)

z>zαz > z_\alphaz>zα​

Two‑tailed (Ha:μ≠μ0H_a: \mu \neq \mu_0Ha​:μ=μ0​)

z<−zα/2z < -z_{\alpha/2}z<−zα/2​ or z>zα/2z > z_{\alpha/2}z>zα/2​

Where zαz_\alphazα​ denotes the zzz-score that cuts off an area of α\alphaα in the right tail of the standard normal distribution.

Small Samples (t‑test)

The same logic applies, but using the ttt distribution with n−1n-1n−1 degrees of freedom.

Type of test

Reject H0H_0H0​ if

Left‑tailed

t<−tα, n−1t < -t_{\alpha, \, n-1}t<−tα,n−1​

Right‑tailed

t>tα, n−1t > t_{\alpha, \, n-1}t>tα,n−1​

Two‑tailed

t<−tα/2, n−1t < -t_{\alpha/2, \, n-1}t<−tα/2,n−1​ or t>tα/2, n−1t > t_{\alpha/2, \, n-1}t>tα/2,n−1​

Steps in Hypothesis Testing

  1. State the hypotheses. Identify H0H_0H0​ and HaH_aHa​ based on the claim. Note which tail (left, right, or two‑tailed) corresponds to HaH_aHa​.

  2. Choose the level of significance α\alphaα (often given in the problem).

  3. Select the appropriate test statistic (Z or t) depending on sample size and known/unknown σ\sigmaσ.

  4. Calculate the test statistic using the sample data.

  5. Determine the critical value(s) from the Z or t table.

  6. Make a decision: Reject H0H_0H0​ if the test statistic falls in the rejection region; otherwise, do not reject H0H_0H0​.

  7. State the conclusion in the context of the problem. For example: “There is sufficient evidence at the α=0.05\alpha = 0.05α=0.05 level to conclude that the population mean is less than 50.”

In practice, the critical value approach is used. If the computed test statistic lies beyond the critical value, the null hypothesis is rejected. Otherwise, there is not enough evidence to reject it.


These notes provide the foundational framework for hypothesis testing on a population mean. The same logic extends to tests for proportions, differences between means, and other parameters, always revolving around the interplay of sample evidence, significance level, and error probabilities.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent