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 (μ). The procedure involves taking a sample, computing its mean (xˉ), and using that statistic to judge whether a claim about μ is supported by the evidence.
The test statistic used depends on sample size and knowledge of the population standard deviation:
Large samples (n≥30) or when the population is normally distributed and σ is known → use the Z distribution.
Small samples (n<30) where σ is unknown and the population is normally distributed → use the t distribution (with tn−1 degrees of freedom).
Null and Alternative Hypotheses
A hypothesis test involves two competing statements:
Null hypothesis (H0): A statement that includes an equals sign (=, ≤, or ≥). It represents the status quo or the claim being challenged.
Alternative hypothesis (Ha or H1): The complement of H0; it states that the parameter is different from the null claim.
Three common forms arise:
Case 1: Two‑tailed test
The alternative allows deviation in either direction.
Case 2: Left‑tailed test
Rejection occurs when the sample mean is significantly less than μ0.
Case 3: Right‑tailed test
Rejection occurs when the sample mean is significantly greater than μ0.
Important: H0 always contains the equality (=, ≤, ≥). The decision is then whether to reject H0 or fail to reject H0. We never “accept” H0; 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 | H0 is True | H0 is False |
|---|---|---|
Reject H0 | Type I error (α) | Correct decision |
Fail to reject H0 | Correct decision | Type II error (β) |
Type I error (α): Rejecting a true null hypothesis. The probability of this error is called the level of significance.
Type II error (β): Failing to reject a false null hypothesis.
The diagram below illustrates these errors for a right‑tailed test:
The goal is to keep both α and β as small as possible, but there is typically a trade‑off.
Level of Significance
The level of significance, denoted α, is the maximum probability of committing a Type I error that the researcher is willing to tolerate.
Commonly used values:
α=0.10 (10%)
α=0.05 (5%)
α=0.01 (1%)
These small values reflect the desire to minimize the risk of wrongly rejecting H0.
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 σ):
If σ is unknown but n≥30, replace σ with the sample standard deviation s:
When using t (small samples, σ unknown, normal population):
Decision Rules
The decision to reject or not reject H0 is made by comparing the test statistic to a critical value derived from the sampling distribution at level α.
Large Samples (Z‑test)
Type of test | Reject H0 if |
|---|---|
Left‑tailed (Ha:μ<μ0) | z<−zα |
Right‑tailed (Ha:μ>μ0) | z>zα |
Two‑tailed (Ha:μ=μ0) | z<−zα/2 or z>zα/2 |
Where zα denotes the z-score that cuts off an area of α in the right tail of the standard normal distribution.
Small Samples (t‑test)
The same logic applies, but using the t distribution with n−1 degrees of freedom.
Type of test | Reject H0 if |
|---|---|
Left‑tailed | t<−tα,n−1 |
Right‑tailed | t>tα,n−1 |
Two‑tailed | t<−tα/2,n−1 or t>tα/2,n−1 |
Steps in Hypothesis Testing
State the hypotheses. Identify H0 and Ha based on the claim. Note which tail (left, right, or two‑tailed) corresponds to Ha.
Choose the level of significance α (often given in the problem).
Select the appropriate test statistic (Z or t) depending on sample size and known/unknown σ.
Calculate the test statistic using the sample data.
Determine the critical value(s) from the Z or t table.
Make a decision: Reject H0 if the test statistic falls in the rejection region; otherwise, do not reject H0.
State the conclusion in the context of the problem. For example: “There is sufficient evidence at the α=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.