Lecture 9 Large-Sample Tests of Hypotheses Part 1
1. Introduction to statistical hypothesis testing
Statistical hypothesis testing is a formal procedure used to make decisions about population parameters based on sample data, involving a structured approach to evaluate evidence against a default assumption.
1.1 The fundamental components of a hypothesis test
A statistical test of hypothesis is comprised of five core elements that guide the decision-making process. These elements work together to systematically assess sample evidence against a proposed statement about a population.
- Null Hypothesis (H0): This is the default assumption or statement about a population parameter that is considered true until evidence suggests otherwise. It often represents a status quo or a specific value.
- Alternative Hypothesis (Ha): This is the competing hypothesis that the researcher aims to support. It contradicts the null hypothesis and is what the researcher hopes to find evidence for.
- Test Statistic and its p-value: These are calculated from sample data to quantify how far the sample results deviate from what would be expected if the null hypothesis were true.
- Significance Level and Rejection Region: These define the criteria for making a decision. The significance level sets the threshold for rejecting the null hypothesis, and the rejection region specifies the range of test statistic values that lead to rejection.
- Conclusion: Based on the comparison of the test statistic and p-value to the rejection region and significance level, a decision is made to either reject or not reject the null hypothesis.
Note: The process begins by assuming the null hypothesis (H0) is true. The goal is to determine if the sample data provides sufficient evidence to reject H0 in favor of the alternative hypothesis (Ha).
1.2 Formulating null and alternative hypotheses
Hypotheses are statements that compete with each other. The alternative hypothesis (Ha) is typically the claim the researcher wishes to support, while the null hypothesis (H0) is its contradiction. The outcome of a hypothesis test leads to one of two conclusions: either reject H0 and conclude Ha is true, or fail to reject H0 4 5.
1.2.1 Examples of hypothesis formulation
-
Example 9.1: A researcher wants to show that the average hourly wage of electricians in California is different from EUR 21, 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 EUR 21 6.
-
Example 9.2: A die-cutting process produces an average of 3% defectives. A researcher wants to show that a machine adjustment will decrease the proportion of defectives (p).
1.3 Types of hypothesis tests
Hypothesis tests are classified based on the direction of the alternative hypothesis, which dictates where the rejection region lies in the distribution of the test statistic.
-
Two-tailed test: Used when the alternative hypothesis suggests that a parameter is simply different from a specific value. The rejection region is split between both tails of the distribution. Example 9.1, with Ha:μ=21, is a two-tailed test 9.
-
One-tailed test: Used when the alternative hypothesis suggests a specific direction of difference.
- Left-tailed test: Used when Ha suggests the parameter is less than a specific value (e.g., Ha:p<0.03). The rejection region is in the left tail of the distribution. Example 9.2 illustrates a left-tailed test.
- Right-tailed test: Used when Ha suggests the parameter is greater than a specific value (e.g., Ha:μ>21). The rejection region is in the right tail of the distribution 15.
1.4 Test statistics and p-values
To decide whether to reject or accept the null hypothesis, two key pieces of information are calculated from sample data: the test statistic and the p-value.
-
Test Statistic: A single number computed from the sample data. It is typically based on the best available estimator for the population parameter being tested. It quantifies how unusual the sample result is if the null hypothesis were true. For example, in a test concerning a population mean (μ), the test statistic might be a z-score derived from the sample mean (xˉ). z=σ/nxˉ−μ0 where:
- xˉ is the sample mean.
- μ0 is the hypothesized population mean under the null hypothesis.
- σ is the population standard deviation (or sample standard deviation s for large samples).
- n is the sample size.
-
p-value: This is a probability calculated using the test statistic. It represents the probability of observing a test statistic as extreme as, or more extreme than, the one computed from the sample data, assuming the null hypothesis is true. A small p-value indicates that the observed data is unlikely if H0 is true For a two-tailed test, the p-value includes the probabilities of both extreme tails 10: p-value=P(Z>∣zobserved∣)+P(Z<−∣zobserved∣) where zobserved is the calculated z-score.
Example 9.3: For a sample of 100 electricians with a mean wage of 22 and a standard deviation of 2, testing H0:μ=21 versus Ha:μ=21. The standard error of the mean is σ/n=2/100=0.2. The test statistic (z-score) is z=(22−21)/0.2=5. The p-value is P(z>5)+P(z<−5), which is approximately 0, indicating a highly unlikely result if the null hypothesis were true 13 14.
1.5 Significance level and rejection region
The significance level (α) quantifies the maximum acceptable risk of incorrectly rejecting a true null hypothesis (Type I error).
-
Significance Level (α): This is a pre-determined probability, commonly set at values like 0.05, 0.01, or 0.10. It represents the probability of falsely rejecting H0 when it is actually true: α=P(falsely rejecting H0)=P(rejecting H0 when it is true) This value dictates the confidence in the decision. For example, a 0.05 significance level means there is a 5% risk of rejecting a true null hypothesis.
-
Rejection Region: This is a range of values for the test statistic that leads to the rejection of the null hypothesis. The size of the rejection region is determined by the significance level (α) and the type of test (one-tailed or two-tailed) 16.
Example: For a two-tailed test with α=0.10, if the standard error is 0.2, the rejection region would encompass values of xˉ that fall far from the hypothesized mean of 21, in either direction. The corresponding critical z-values would define the boundaries of this region Similarly, for a left-tailed test with α=0.10, the rejection region would only be in the left tail 17 18.
Test Type Significance Level (α) Critical Values (Approximate) Rejection Region (for μ0=21,σ=0.2) Two-tailed 0.1 z=±1.645 xˉ<20.67 or xˉ>21.33 Two-tailed 0.01 z=±2.576 xˉ<20.49 or xˉ>21.51 Left-tailed 0.1 z=−1.282 xˉ<20.74
Tip: The decision rule is to reject H0 if the calculated p-value is less than or equal to the significance level (α), or equivalently, if the test statistic falls within the rejection region 19.
2. Large-sample tests for population means
This section outlines the methodology for conducting hypothesis tests concerning a population mean (μ) when dealing with large sample sizes.
2.1 The essentials of the large-sample test for a population mean
The core principle behind a large-sample test for a population mean is to assess whether the observed sample mean (xˉ) is sufficiently different from a hypothesized population mean (μ0) to warrant rejecting the null hypothesis (H0). When H0 is true, the sample mean xˉ is expected to be close to μ0. Significant deviations of xˉ from μ0, either larger or smaller, suggest that the alternative hypothesis (Ha) might be true. This forms the basis for rejecting H0 in favor of Ha 22.
2.1.1 Test statistic
When the sample size (n) is large, the sampling distribution of the sample mean, xˉ, can be approximated as normal. The degree to which xˉ deviates from the hypothesized population mean μ0 is quantified by a test statistic. This test statistic follows an approximate standard normal distribution under the assumption that H0 is true (μ=μ0).
The test statistic is calculated as: z=s/nxˉ−μ0 where:
- xˉ is the sample mean.
- μ0 is the hypothesized population mean under the null hypothesis.
- s is the sample standard deviation, used as an estimate for the population standard deviation (σ) when σ is unknown.
- n is the sample size.
Note: This formula relies on the Central Limit Theorem, which states that for large sample sizes, the distribution of sample means approaches normality, irrespective of the population's distribution 23.
2.1.2 Rejection region
The rejection region consists of values of the test statistic (z) that are considered extreme enough to lead to the rejection of the null hypothesis. These are values that are "much larger or smaller than expected" if H0 were true. The significance level, denoted by α, is the probability of rejecting H0 when it is, in fact, true. This α represents the area under the standard normal curve above the rejection region 24.
The critical value of z, denoted as zα, is the value that cuts off an area of α in the tail of the standard normal distribution.
Rejection regions for different alternative hypotheses:
- Right-tailed test (Ha:μ>μ0): Reject H0 if z>zα.
- Left-tailed test (Ha:μ<μ0): Reject H0 if z<−zα.
- Two-tailed test (Ha:μ=μ0): Reject H0 if z>zα/2 or z<−zα/2 31.
The value of zα or zα/2 is determined based on the specified significance level α. For instance, common critical values for two-tailed tests are 1.645 for α=0.10, 1.96 for α=0.05, 2.33 for α=0.02, and 2.58 for α=0.01.
2.1.3 Assumptions
The validity of large-sample tests for population means rests on specific assumptions:
- The n observations in the sample must be randomly selected from the population.
- The sample size (n) must be large. A common rule of thumb is n≥30 32.
2.2 Steps for conducting a large-sample hypothesis test
A structured approach ensures all critical components of the hypothesis test are addressed.
| Step | Description |
|---|---|
| 1. | State the null hypothesis (H0) and the alternative hypothesis (Ha). |
| 2. | Determine the significance level (α). |
| 3. | Calculate the test statistic. |
| 4. | Determine the rejection region. |
| 5. | Make a decision. |
| 6. | State the conclusion. |
Example: Test whether the average weekly earnings for male social workers are higher than the average for female social workers (EUR 670). A sample of 40 male social workers yielded xˉ=€725 and s=€102, with α=0.01 25.
- Hypotheses: H0:μ=670 versus Ha:μ>670.
- Significance level: α=0.01.
- Test statistic: z=102/40725−670=16.1355≈3.41 26.
- 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 z-statistic (3.41) is greater than the critical value (2.33), we reject H0 27.
- Conclusion: There is sufficient evidence to conclude that the average weekly earnings for male social workers are higher than for female social workers. The probability of making an incorrect decision is α=0.01 28.
2.3 Interpreting results and potential errors
The decision to reject or not reject the null hypothesis has implications for the conclusions drawn. The significance level α quantifies the risk of a Type I error.
Tip: The calculated z-statistic (3.41) lies to the right of the critical value (2.33) on the standard normal distribution, indicating a statistically significant result at the α=0.01 level 29.
3. Calculating and interpreting p-values
The p-value is a crucial metric in hypothesis testing that quantifies the strength of evidence against the null hypothesis and aids in making objective decisions about its validity.
3.1 Understanding the p-value
The p-value, also known as the observed significance level, represents the smallest significance level (α) at which the null hypothesis (H0) could be rejected. It essentially quantifies 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.
Definition: The p-value or observed significance level of a statistical test is the smallest value of α for which H0 can be rejected. It is the actual risk of committing a Type I error if H0 is rejected based on the observed value of the test statistic. The p-value measures the strength of the evidence against H0 35.
3.1.1 Interpretation of p-values
- Small p-value: Suggests that the observed value of the test statistic is far from the hypothesized value under the null hypothesis. This provides strong evidence that H0 is false and should be rejected.
- Large p-value: Indicates that the observed test statistic is not far from the hypothesized mean. This does not support the rejection of H0 38.
3.2 Calculating the p-value
The calculation of a p-value depends on the nature of the hypothesis test (one-tailed or two-tailed) and the observed value of the test statistic.
3.2.1 Two-tailed tests
For a two-tailed test, the p-value is the sum of the probabilities in both tails of the sampling distribution of the test statistic that are more extreme than the observed test statistic. If the calculated test statistic is z, the p-value is P(Z>∣z∣ or Z<−∣z∣), which is equivalent to 2×P(Z>∣z∣) assuming a symmetric distribution.
Example 9.6: A quality control manager wants to determine if the daily yield at a chemical plant has changed. A sample of 50 days yielded an average of 871 tons with a standard deviation of 21 tons, while the historical average was 880 tons. For a two-tailed test:
The test statistic is calculated as: z=s/nxˉ−μ=21/50871−880≈−3.03
The p-value for this two-tailed test is: p-value=P(Z>3.03)+P(Z<−3.03) =(1−P(Z≤3.03))+P(Z≤−3.03) From standard normal tables, P(Z≤3.03)≈0.9988 and P(Z≤−3.03)≈0.0012.
p-value≈(1−0.9988)+0.0012=0.0012+0.0012=0.0024 41.
The two-tailed p-value is twice the tail area corresponding to the calculated test statistic (2×0.0012=0.0024).
3.2.2 One-tailed tests
For a one-tailed test, the p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, in the direction specified by the alternative hypothesis. If the test statistic is z and the alternative hypothesis is Ha:μ>μ0, the p-value is P(Z≥z). If Ha:μ<μ0, the p-value is P(Z≤z).
Example 9.7: A test is conducted to see if Americans exceed the recommended average daily sodium intake of 3300 mg. A sample of 100 Americans yielded a mean of 3400 mg with a standard deviation of 1100 mg. The hypotheses are H0:μ=3300 versus Ha:μ>3300, with α=0.05.
The test statistic is calculated as: z=s/nxˉ−μ=1100/1003400−3300=110100≈0.91
The p-value for this one-tailed (right-tailed) test is: p-value=P(Z≥0.91) From standard normal tables, P(Z≤0.91)≈0.8186.
p-value=1−P(Z≤0.91)=1−0.8186=0.1814 45.
3.3 Decision-making using p-values
The decision to reject or retain the null hypothesis is made by comparing the calculated p-value to a pre-determined significance level (α).
3.3.1 Rule for rejection
- If the p-value is less than or equal to α (p-value ≤α), the null hypothesis (H0) is rejected, and the results are considered statistically significant at the α level.
- If the p-value is greater than α (p-value >α), the null hypothesis (H0) is not rejected 39.
3.3.2 Classifying significance levels
A "sliding scale" can be used to classify the strength of statistical significance based on the p-value:
| p-value Range | Decision on H0 | Significance Level |
|---|---|---|
| p-value < 0.01 | Reject H0 | Highly significant |
| 0.01 ≤ p-value ≤ 0.05 | Reject H0 | Statistically significant |
| 0.05 < p-value < 0.10 | Usually not rejected | Tending toward significance |
| p-value > 0.10 | Not rejected | Not statistically significant |
Example 9.6 revisited: The p-value calculated was 0.0024. Since 0.0024≤0.01, H0 can be rejected at the 1% significance level. The results are highly significant 42.
Example 9.7 revisited: The p-value calculated was 0.1814. Since 0.1814>0.05 (the preassigned α), H0 is not rejected. The results are not statistically significant, meaning there isn't enough evidence to conclude that the average daily sodium intake exceeds 3300 mg 47.
3.3.3 Advantages of the p-value approach
The p-value approach offers two key advantages over the critical value approach:
- Universal reporting: Statistical software packages commonly report the p-value of a test, making it a standard output.
- Flexibility in significance levels: Researchers can evaluate their results against any desired significance level after the p-value has been calculated. This allows for reporting the smallest α for which the results are statistically significant 48.
4. Applications and advanced concepts in hypothesis testing
This section explores practical applications of hypothesis testing, including its use in digital watermarking and the detection of AI-generated content, alongside fundamental concepts like Type I and Type II errors and the power of a statistical test.
4.1 Applications in content integrity and detection
Hypothesis testing provides a framework for evaluating the authenticity and origin of digital content, particularly in areas like watermarking and identifying AI-generated materials. The similarity between original and potentially modified content, or between human-created and AI-generated content, can be rigorously assessed using statistical tests.
4.1.1 Digital watermarking
Digital watermarking involves embedding hidden information within media content (e.g., images, audio, video) to assert ownership, track usage, or verify authenticity. Statistical tests can be employed to determine if a watermark is present or if content has been tampered with. For instance, the similarity between original and watermarked content can be a basis for hypothesis testing to confirm the integrity of the watermark. Tools and research exist to develop watermarking solutions for AI-generated outputs, allowing for the statistical verification of such content's origin.
4.1.2 AI-generated content detection
As AI models become more sophisticated, distinguishing between human-created and AI-generated content is a growing challenge. Hypothesis testing can be a cornerstone in developing detection methods. By formulating a null hypothesis that the content is human-generated and an alternative hypothesis that it is AI-generated, statistical analysis of various content features (e.g., linguistic patterns, image artifacts) can help make this distinction. The similarity between the features of a piece of content and those typically associated with AI generation can be quantified and tested statistically 51.
4.2 Understanding errors in hypothesis testing
In hypothesis testing, decisions are made based on sample data, which inherently involves a degree of uncertainty. This uncertainty can lead to two types of errors: Type I and Type II errors.
4.2.1 Type I error
A Type I error occurs when the null hypothesis (H0) is rejected even though it is actually true. This is often referred to as a "false positive." The probability of committing a Type I error is denoted by the Greek letter alpha (α). The value of α is typically set by the researcher before conducting the test (e.g., 0.05 or 0.01) and defines the significance level of the test.
4.2.2 Type II error
A Type II 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. This is often referred to as a "false negative." The probability of committing a Type II error is denoted by the Greek letter beta (β)54.
Note: A decision table can visually represent the outcomes of hypothesis testing concerning these errors.
Decision H0 is True H0 is False Reject H0 Type I Error (α) Correct Decision Accept H0 Correct Decision Type II Error (β) 53.
4.3 The power of a statistical test
The power of a statistical test is a crucial concept that quantifies the test's ability to correctly detect a false null hypothesis. It is defined as the probability of rejecting the null hypothesis when the alternative hypothesis is true.
4.3.1 Definition and calculation
The power of a test is mathematically expressed as 1−β, where β is the probability of a Type II error. Therefore, Power=1−β=P(Reject H0 when Ha is true) A higher power indicates a greater ability of the test to avoid Type II errors and successfully identify a true effect or difference when one exists.
4.3.2 Power curve
A power curve is a graphical representation that illustrates the power of a statistical test as a function of the true value of a parameter of interest. It shows 1−β on the vertical axis against the parameter's true value on the horizontal axis. Ideally, researchers aim for tests with a small α (low Type I error rate) and high power (low Type II error rate) 56 57.
Tip: A desirable statistical test balances minimizing both Type I and Type II errors, which translates to a small α and a large power (1−β).
4.3.3 Example calculation of power
Consider a scenario where the daily yield of a chemical plant has historically averaged 880 tons. A quality control manager suspects this average has changed and collects data from 50 days, finding a sample mean (xˉ) of 871 tons and a sample standard deviation (s) of 21 tons 58.
Problem: Calculate β and the power of the test (1−β) if the true mean yield (μ) is actually 870 tons. The null hypothesis is H0:μ=880, and let's assume a significance level α that implies a critical value for the test. For this example, let's infer from the provided solution that the acceptance region for H0 has been determined.
Solution Approach:
- Determine the critical value(s) of the test statistic based on the chosen significance level (α) and sample size (n=50). From the problem context and subsequent solution steps, it's implied that the test is designed such that the acceptance region for H0 is approximately from 874.18 to 885.82 tons for the sample mean xˉ. This suggests a two-tailed test with a specific α value that leads to these bounds 59.
- Calculate β: This involves finding the probability of observing a sample mean within the acceptance region when the true mean is 870 tons. The sampling distribution of xˉ under Ha (specifically, μ=870) is a normal distribution with a mean of 870 and a standard deviation sxˉ=s/n=21/50≈2.97. β is the area under this distribution that falls within the acceptance region of H0 60.
- Calculate the z-scores corresponding to the acceptance region boundaries (874.18 and 885.82) using the distribution under Ha (μ=870,sxˉ≈2.97):
- z1=(874.18−870)/2.97≈1.42
- z2=(885.82−870)/2.97≈5.58
- β=P(874.18≤xˉ≤885.82∣μ=870)=P(1.42≤Z≤5.58) 61.
- The area above z≈1.41 (from the provided solution, aligning with the calculated values) is found using standard normal distribution tables or software.
- β=P(Z>1.41) (as the upper bound for xˉ is very high, contributing negligible area under the Ha curve).
- From standard normal tables, P(Z≤1.41)≈0.9207. Thus, β=1−P(Z≤1.41)=1−0.9207=0.0793.
- Calculate the z-scores corresponding to the acceptance region boundaries (874.18 and 885.82) using the distribution under Ha (μ=870,sxˉ≈2.97):
- Calculate the power of the test: Power is 1−β.
- Power = 1−0.0793=0.9207.
Result: In this example, the power of the test is approximately 0.9207, meaning there is about a 92.07% chance of correctly rejecting the null hypothesis if the true mean yield is 870 tons. This indicates a strong ability of the test to detect a decrease in yield if it indeed occurred 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.