Chapter-9-Large-Sample Tests of Hypotheses Part 1
1. Introduction to statistical hypothesis testing
Statistical hypothesis testing provides a structured framework for making decisions about a population based on sample data, by formally evaluating competing claims about a population parameter.
1.1 The core components of a hypothesis test
A statistical test of hypothesis is comprised of five fundamental elements:
- The null hypothesis (H0): This is a statement of no effect or no difference, representing the status quo or a baseline assumption.
- The alternative hypothesis (Ha): This is the hypothesis that the researcher aims to support, typically representing a claim of effect, difference, or relationship. It is formulated as a contradiction to the null hypothesis.
- The test statistic and its p-value: The test statistic is a single numerical value calculated from sample data that measures how far the sample result deviates from what would be expected if the null hypothesis were true. The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated from the sample, assuming the null hypothesis is true.
- The significance level and the rejection region: The significance level (α) is a predetermined probability threshold representing the maximum acceptable risk of incorrectly rejecting the null hypothesis. The rejection region is the set of values for the test statistic that would lead to the rejection of the null hypothesis.
- The conclusion: Based on the comparison of the test statistic to the rejection region or the p-value to the significance level, one of two conclusions is reached: either reject H0 in favor of Ha, or do not reject H0.
Note: A statistical test of hypothesis begins with the assumption that the null hypothesis (H0) is true. The goal is to use sample data to determine if there is sufficient evidence to reject this assumption in favor of the alternative hypothesis (Ha) 5.
1.2 Formulating null and alternative hypotheses
The null hypothesis (H0) and alternative hypothesis (Ha) are the two competing statements that a statistical test aims to evaluate. The alternative hypothesis is typically the one the researcher wishes to support, while the null hypothesis is its contradiction 4.
Example 9.1 (Two-tailed test): A researcher wants to test if the average hourly wage of electricians in California is different from 21 dollars (the national average).
- Alternative hypothesis: Ha:μ=21
- Null hypothesis: H0:μ=21 If H0 is rejected, the conclusion is that the average hourly wage is not equal to 21 dollars 6.
Example 9.2 (One-tailed test): A process for sheet metal die cutting currently produces an average of 3% defectives. A researcher wants to show that an adjustment to the machine will decrease the proportion of defectives (p).
1.3 Understanding test statistics and p-values
To decide whether to reject or accept the null hypothesis, two key pieces of information derived from the sample data are used: the test statistic and its corresponding p-value 10.
- Test Statistic: This is a single numerical value calculated from the sample data. It is typically based on the best available estimator for the population parameter being tested. The test statistic quantifies how much the sample result deviates from the null hypothesis expectation.
- p-value: This is a probability calculated using the test statistic. It represents the likelihood of observing a test statistic as extreme as, or more extreme than, the one obtained from the sample, assuming that the null hypothesis is true.
Example 9.3 (Calculating test statistic and p-value): Consider testing if the average hourly wage of California electricians (μ) is different from 21 dollars (H0:μ=21 vs. Ha:μ=21). A sample of 100 electricians yielded a sample mean (xˉ) of 22 dollars with a sample standard deviation (s) of 2 dollars. Assuming the null hypothesis is true (μ=21), the standard error of the mean is calculated as: SE=ns=1002=0.2 11 12.
The test statistic (z-score in this case, due to the large sample size and the Central Limit Theorem) is calculated as: z=SExˉ−μ0=0.222−21=5 13.
The sample mean of 22 is 5 standard errors above the hypothesized mean of 21. For a two-tailed test, the p-value is the probability of observing a z-score as extreme as 5 or more, or as extreme as -5 or less: p-value=P(z>5)+P(z<−5)≈0 14. A very small p-value (close to zero) suggests that the observed sample result is highly unlikely if the null hypothesis were true, providing strong evidence against H0.
1.4 One-tailed versus two-tailed tests
The directionality of the alternative hypothesis determines whether a test is one-tailed or two-tailed.
- Two-tailed test: Used when the alternative hypothesis states that the parameter is simply not equal to a specific value (e.g., Ha:μ=21). The rejection region is split between both tails of the distribution of the test statistic.
- One-tailed test: Used when the alternative hypothesis specifies a direction, either less than or greater than a specific value.
1.5 Significance level and rejection region
The significance level (α), also known as the significance level, is a critical parameter set before conducting the test. It defines the probability of making a Type I error, which is the error of falsely rejecting the null hypothesis when it is actually true.
- α=P(falsely rejecting H0)=P(rejecting H0 when it is true) 16.
The value of α represents the maximum tolerable risk of incorrectly rejecting H0. Once α is fixed, the rejection region can be determined. This region consists of the values of the test statistic that are deemed sufficiently extreme to warrant rejecting H0. If the calculated test statistic falls within the rejection region, H0 is rejected.
Example: For a two-tailed test with α=0.1 and a hypothesized mean μ=21 with a standard error of 0.2, the rejection regions are the extreme tails of the distribution that encompass a total probability of 0.1. 17.
Similarly, for a left-tailed test with α=0.1, the rejection region is entirely in the left tail, encompassing 0.1 probability 18.
The decision rule is straightforward: if the p-value is less than or equal to α (i.e., p≤α), then H0 is rejected. Alternatively, if the test statistic falls within the rejection region, H0 is rejected 19.
2. Large-sample tests for a population mean
This section outlines the methodology for conducting hypothesis tests on a population mean when dealing with large sample sizes, focusing on the construction of the test statistic, rejection regions, and the interpretation of results using a significance level.
2.1 The essentials of the large-sample test for a population mean
The core idea behind large-sample tests for a population mean (μ) is to assess whether the observed sample mean (xˉ) provides sufficient evidence to reject a hypothesized value for μ. When the null hypothesis (H0) is true, the sample mean xˉ is expected to be close to the hypothesized population mean (μ0). If xˉ deviates significantly from μ0, it suggests that the alternative hypothesis (Ha) might be more plausible 22.
2.1.1 Underlying principles
- Sampling distribution of the sample mean: For large sample sizes (n), the Central Limit Theorem ensures that the sampling distribution of xˉ is approximately normal, regardless of the population distribution.
- Test statistic: To quantify the deviation of xˉ from μ0, a test statistic is used. This statistic measures how many standard deviations xˉ is away from μ0. When the null hypothesis (H0:μ=μ0) is true, this test statistic follows an approximate standard normal distribution 23.
The general formula for the test statistic is: z=σ/nxˉ−μ0 However, in practice, the population standard deviation (σ) is often unknown. In such cases, especially with large samples, the sample standard deviation (s) is used as an estimate for σ. The test statistic then becomes: z=s/nxˉ−μ0 This statistic has an approximate standard normal distribution when n is large and H0 is true.
2.1.2 Significance level and rejection region
- Significance level (α): This is the probability of rejecting the null hypothesis (H0) when it is actually true. It represents the risk of a Type I error. Common values for α include 0.01, 0.05, and 0.10.
- Rejection region: This is the set of values for the test statistic that would lead to the rejection of the null hypothesis. It is defined by the significance level α and the alternative hypothesis. For a right-tailed test with significance level α, the rejection region consists of values of the test statistic z that are greater than a critical value, zα, which cuts off an area of α in the right tail of the standard normal distribution 24.
Note: For a left-tailed test (Ha:μ<μ0), the rejection region is z<−zα. For a two-tailed test (Ha:μ=μ0), the rejection region is z>zα/2 or z<−zα/2.
2.1.3 Assumptions
The validity of large-sample tests for a population mean relies on the following assumptions 32:
- The n observations in the sample are randomly selected from the population.
- The sample size n is large (typically n≥30).
2.2 Steps for conducting a large-sample test for a population mean
A structured approach is essential for hypothesis testing. The following steps summarize the process:
-
State the null and alternative hypotheses:
- Null hypothesis (H0): μ=μ0 (a statement of no effect or no difference).
- Alternative hypothesis (Ha): This can be one-tailed (μ>μ0 or μ<μ0) or two-tailed (μ=μ0), depending on the research question 30.
-
Determine the significance level (α): Choose the probability of a Type I error.
-
Calculate the test statistic: Use the sample data to compute the appropriate z-statistic. If the population standard deviation (σ) is unknown, use the sample standard deviation (s) as an estimate: z=s/nxˉ−μ0
-
Define the rejection region: Based on the alternative hypothesis and the significance level α, determine the critical value(s) from the standard normal distribution (zα or zα/2). The rejection region consists of values of z that fall in the tail(s) of the distribution, corresponding to the specified α 31.
-
Make a decision:
- If the calculated test statistic z falls within the rejection region, reject H0.
- If the calculated test statistic z does not fall within the rejection region, fail to reject H0.
-
State the conclusion: Interpret the decision in the context of the original problem, specifying whether there is sufficient evidence to support the alternative hypothesis.
Remember: The probability of making an incorrect decision (Type I error) is controlled by α.
2.3 Example application: Comparing male and female social worker earnings
Consider a scenario where the average weekly earnings for female social workers is known to be 670 dollars. A study aims to determine if male social workers in the same positions have higher average weekly earnings.
- Sample data: A random sample of n=40 male social workers yielded a sample mean of xˉ=725 dollars and a sample standard deviation of s=102 dollars 25.
- Significance level: α=0.01.
Steps:
-
Hypotheses:
- H0:μ=670 (The average weekly earnings for male social workers is 670 dollars)
- Ha:μ>670 (The average weekly earnings for male social workers is higher than 670 dollars).
-
Significance level: α=0.01.
-
Test statistic calculation: z=s/nxˉ−μ0=102/40725−670=102/6.324655≈16.12755≈3.41 26 29.
-
Rejection region: For a right-tailed test with α=0.01, the critical value is z0.01=2.33. The rejection region is z>2.33.
-
Decision: Since the calculated test statistic z=3.41 is greater than the critical value 2.33 (3.41>2.33), we reject H0 27.
-
Conclusion: There is sufficient statistical evidence at the 0.01 significance level to conclude that the average weekly earnings for male social workers are higher than the average for female social workers.
Important: The probability of having made an incorrect decision (Type I error) in this case is α=0.01 28.
2.3.1 Critical values for common confidence levels
The following table shows the critical z-values for common significance levels and corresponding confidence coefficients. Note that for a two-tailed test, the critical value is zα/2.
| Confidence Coefficient (1−α) | α | α/2 | zα/2 |
|---|---|---|---|
| .90 | .10 | .05 | 1.645 |
| .95 | .05 | .025 | 1.96 |
| .98 | .02 | .01 | 2.33 |
| .99 | .01 | .005 | 2.58 |
3. Calculating and interpreting p-values
The p-value serves as a crucial metric in hypothesis testing, quantifying the evidence against a null hypothesis (H0) by representing the probability of observing data as extreme as, or more extreme than, the observed data, assuming H0 is true.
3.1 Definition and interpretation of the p-value
The p-value, also known as the observed significance level, is defined as the smallest value of the significance level (α) for which the null hypothesis (H0) can be rejected. It effectively represents the actual risk of committing a Type I error if H0 is rejected based on the observed test statistic. A smaller p-value indicates stronger evidence against H0. Conversely, a larger p-value suggests that the observed test statistic is not far from the hypothesized value, providing less support for rejecting H0.
Important: A small p-value implies that the observed data are unlikely to have occurred if the null hypothesis were true, thus providing strong evidence to reject H0.
3.2 Decision rule for hypothesis testing using p-values
The decision to reject or retain the null hypothesis is made by comparing the calculated p-value to a pre-assigned significance level, α.
- If the p-value is less than or equal to α (p-value ≤α), the null hypothesis (H0) can be rejected. The results are then considered statistically significant at the α level.
- If the p-value is greater than α (p-value >α), the null hypothesis (H0) cannot be rejected. The results are not statistically significant at the α level.
Note: This p-value approach offers an advantage over comparing a test statistic to a critical value because it allows for evaluation of results at any desired significance level without recomputing the test statistic.
3.3 Calculating the p-value
The calculation of the p-value depends on the type of hypothesis test (one-tailed or two-tailed) and the calculated test statistic.
3.3.1 Two-tailed tests
For a two-tailed test, the p-value is the sum of the probabilities of obtaining test statistics as extreme or more extreme than the observed test statistic in both tails of the distribution. If the calculated test statistic is z, the p-value is given by:
p-value=P(Z>∣z∣)+P(Z<−∣z∣)
This is equivalent to twice the tail area corresponding to the absolute value of the calculated test statistic.
Example 9.6: A quality control manager wants to determine if the daily yield at a chemical plant has changed from its historical average of 880 tons. A sample of 50 days yielded an average of 871 tons with a standard deviation of 21 tons. For a two-tailed test, the calculated z-statistic is:
z=s/nxˉ−μ=21/50871−880≈−3.03
The p-value is calculated as:
p-value=P(Z>3.03)+P(Z<−3.03) From standard normal distribution tables, P(Z<−3.03)≈0.0012. Due to symmetry, P(Z>3.03)≈0.0012.
p-value=0.0012+0.0012=0.0024
This p-value of 0.0024 is less than common significance levels like 0.01 or 0.05, leading to the rejection of the null hypothesis.
3.3.2 One-tailed tests
For a one-tailed test, the p-value is the probability of obtaining a test statistic as extreme or more extreme than the observed test statistic in the direction of the alternative hypothesis (Ha).
Example 9.7: Government standards suggest Americans should not exceed an average daily sodium intake of 3300 milligrams. A sample of 100 Americans found a mean intake of 3400 mg with a standard deviation of 1100 mg. The hypotheses are H0:μ=3300 versus Ha:μ>3300, with α=0.05. The test statistic z is:
z=s/nxˉ−μ=1100/1003400−3300=110100≈0.91
For this one-tailed test (Ha:μ>3300), the p-value is:
p-value=P(Z≥0.91)
Using a standard normal distribution table, P(Z≥0.91)=1−P(Z<0.91)=1−0.8186=0.1814. Since 0.1814>0.05, the null hypothesis is not rejected.
3.4 Classifying the strength of evidence using p-values
A common "sliding scale" is used to classify the strength of evidence against the null hypothesis based on the p-value, though specific thresholds can vary by field.
| p-value Range | Conclusion | Significance Level |
|---|---|---|
| p < 0.01 | Reject H0 | Highly significant |
| 0.01 ≤ p ≤ 0.05 | Reject H0 | Statistically significant |
| 0.05 < p < 0.10 | Usually not reject H0 | Tending toward statistical significance |
| p > 0.10 | Do not reject H0 | Not statistically significant |
Tip: Statistical software packages typically report the p-value directly, making it convenient to evaluate results across different significance levels. Researchers often report the smallest α for which their results are statistically significant.
4. Applications and types of errors in hypothesis testing
This section explores the practical applications of hypothesis testing, details the fundamental errors that can arise in statistical decisions, and introduces the concept of statistical power.
4.1 Applications of hypothesis testing
Hypothesis testing is a crucial statistical tool employed across various disciplines to make informed decisions based on data. While the core principles remain consistent, its applications are diverse.
- Watermarking: In the realm of digital content, hypothesis testing can be applied to detect the presence or similarity of watermarks. For instance, statistical tests can be used to assess whether a particular watermark is present in a piece of media or to measure the similarity between different watermarks. This is relevant for copyright protection and content authentication 51.
4.2 Types of errors in hypothesis testing
In any hypothesis test, there are two potential types of errors that can occur when making a decision about the null hypothesis (H0). These errors are fundamental to understanding the limitations and interpretation of statistical results.
-
Type I Error: This error occurs when the null hypothesis (H0) is rejected, but it is actually true. The probability of committing a Type I error is denoted by the Greek letter alpha (α). This is often referred to as a "false positive"
-
Type II Error: This error occurs when the null hypothesis (H0) is accepted (or, more precisely, not rejected) when it is actually false, and an alternative hypothesis (Ha) is true. The probability of committing a Type II error is denoted by the Greek letter beta (β). This is often referred to as a "false negative" 54.
The relationship between these errors and the decision made can be summarized:
Note: A decision table is essential for visualizing the outcomes of a hypothesis test, illustrating the correct decisions and the two types of errors 53.
4.2.1 Probabilities of errors
The probabilities associated with Type I and Type II errors are critical metrics in statistical inference.
-
α (Alpha): The probability of rejecting a true null hypothesis. It is typically set by the researcher before conducting the test (e.g., α=0.05).
-
β (Beta): The probability of failing to reject a false null hypothesis. This probability is not directly set by the researcher but depends on factors like the chosen significance level (α), sample size, and the true effect size.
4.3 The power of a statistical test
The power of a statistical test is a measure of its ability to correctly detect a false null hypothesis.
-
Definition: The power of a statistical test is defined as the probability of correctly rejecting the null hypothesis (H0) when the alternative hypothesis (Ha) is true. It is calculated as 1−β.
Power=1−β=P(reject H0 when Ha is true)
-
Importance: A higher power indicates a greater likelihood that the test will detect a true effect if one exists, thus reducing the chance of a Type II error. Researchers aim for tests with high power.
-
Power Curve: A power curve is a graphical representation of the power of a statistical test (1−β) as a function of the true value of the parameter being tested. It illustrates how the probability of correctly rejecting H0 changes with different possible true values of the parameter. Ideally, a test would have a small α and a large power (1−β) 56.
4.4 Example: Calculating beta and power
This example demonstrates how to calculate the probability of a Type II error (β) and the power of a test (1−β).
Example: A chemical plant's daily yield has averaged 880 tons. The quality control manager wants to test if this average has changed. A sample of n=50 days yields an average of xˉ=871 tons with a standard deviation of s=21 tons. We need to calculate β and the power of the test (1−β) when the true mean yield (μ) is actually 870 tons 58.
Hypotheses:
- Null Hypothesis (H0): μ=880 tons
- Alternative Hypothesis (Ha): μ=880 tons (two-tailed test)
Given Information:
- Sample size, n=50
- Sample mean, xˉ=871 tons
- Sample standard deviation, s=21 tons
- Actual mean under Ha, μ=870 tons
- A significance level, α, is implicitly assumed to be set, which determines the critical values for rejecting H0. Let's assume a standard α=0.05 for a two-tailed test. This implies α/2=0.025 for each tail.
Steps:
-
Determine the Critical Values for Rejecting H0: Using the sample standard deviation as an estimate for the population standard deviation, we can use the z-distribution since n is large (n≥30). The standard error of the mean is σxˉ=s/n=21/50≈2.9698. For α=0.05 (two-tailed), the critical z-values are approximately ±1.96. The critical values for xˉ are: Critical Valueupper=μ0+zα/2⋅ns=880+1.96⋅5021≈880+1.96⋅2.9698≈885.82 Critical Valuelower=μ0−zα/2⋅ns=880−1.96⋅5021≈880−1.96⋅2.9698≈874.18 The acceptance region for xˉ is (874.18,885.82) 59.
-
Calculate β (Probability of Type II Error): β is the probability of failing to reject H0 when Ha is true (μ=870). This means β is the probability that the sample mean xˉ falls within the acceptance region (874.18,885.82), but under the sampling distribution where the true mean is 870. The sampling distribution of xˉ when μ=870 is a normal distribution with mean μ=870 and standard error σxˉ≈2.9698 60. We need to find the z-scores for the acceptance region boundaries (874.18 and 885.82) using the true mean of 870: z1=2.9698874.18−870≈2.96984.18≈1.41 z2=2.9698885.82−870≈2.969815.82≈5.33 Thus, β=P(874.18≤xˉ≤885.82∣μ=870)=P(1.41≤z≤5.33) 61.
-
Find the Probability for β: Using a standard normal distribution table or calculator: P(z≤5.33)≈1 P(z≤1.41)≈0.9207 Therefore, β=P(z≤5.33)−P(z≤1.41)≈1−0.9207=0.0793.
Note: The area under the normal curve with μ=870 above xˉ=885.82 is negligible, as indicated by the z-score of 5.33. So, β is approximately P(z>1.41).
-
Calculate the Power of the Test: The power of the test is 1−β. Power=1−β=1−0.0793=0.9207
Conclusion: The probability of committing a Type II error (β) is approximately 0.0793, meaning there is about a 7.93% chance of failing to detect that the mean yield has changed from 880 tons to 870 tons. The power of the test (1−β) is approximately 0.9207, indicating a 92.07% chance of correctly rejecting the null hypothesis and detecting the change in yield when the true mean is indeed 870 tons.
Important: A power of 0.9207 suggests the test is quite powerful in detecting a true difference of 10 tons (880 vs 870) with the given sample size and variability 62.
Common mistakes to avoid
- Review all topics thoroughly before exams
- Pay attention to formulas and key definitions
- Practice with examples provided in each section
- Don't memorize without understanding the underlying concepts
© 2026 Maeve. All rights reserved. This content is protected by copyright.