Lecture 9 Large-Sample Tests of Hypotheses Part 1
1. Introduction to statistical hypothesis testing
Statistical hypothesis testing provides a formal framework for making decisions about population parameters based on sample data, involving a set of structured components to evaluate evidence against a claim.
1.1 Components of a statistical test of hypothesis
A statistical test of hypothesis is built upon five fundamental components that guide the decision-making process:
- The null hypothesis (H0): This is the default or status quo assumption about a population parameter. It typically represents a statement of no effect, no difference, or a specific value.
- The alternative hypothesis (Ha): This is the hypothesis that the researcher aims to support. It contradicts the null hypothesis and usually reflects a specific effect, difference, or relationship of interest.
- The test statistic and its p-value: The test statistic is a single numerical value computed from sample data, used to measure how far the sample result deviates from what is expected under the null hypothesis. 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 risk of incorrectly rejecting the null hypothesis when it is actually true. The rejection region is a 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, a decision is made to either reject H0 or not reject H0.
3.
1.2 Null and alternative hypotheses
The core of any hypothesis test lies in the formulation of two competing hypotheses: the null hypothesis (H0) and the alternative hypothesis (Ha). The researcher's goal is to determine if there is sufficient evidence in the sample data to reject H0 in favor of Ha. The process begins by assuming H0 is true. [ 5] 4.
Example: Suppose a researcher wants to demonstrate that the average hourly wage of electricians in California is different from the national average of EUR 21.
- Alternative Hypothesis (Ha): μ=21 (The average hourly wage is not equal to EUR 21).
- Null Hypothesis (H0): μ=21 (The average hourly wage is equal to EUR 21).
If H0 is rejected, the conclusion is that the average hourly wage is indeed different from EUR 21. 6.
Example: A manufacturing process currently produces an average of 3% defectives. A researcher wants to show that an adjustment to the machine will decrease this proportion.
- Alternative Hypothesis (Ha): p<0.03 (The proportion of defectives is less than 3%).
- Null Hypothesis (H0): p=0.03 (The proportion of defectives is equal to 3%).
Rejecting H0 would support the claim that the adjusted process yields fewer than 3% defectives. [ 8] 7.
1.2.1 Types of alternative hypotheses
Alternative hypotheses can be directional or non-directional, leading to different types of statistical tests:
- Two-tailed test: Used when the alternative hypothesis states that a parameter is simply not equal to a specific value. The rejection region is split between the two tails of the distribution.
- One-tailed test: Used when the alternative hypothesis specifies a direction of difference (greater than or less than).
1.3 Test statistic and p-value
To decide whether to reject H0, sample data is used to calculate two key pieces of information: the test statistic and its corresponding p-value. .
1.3.1 The test statistic
The test statistic is a single number derived from the sample data. It is typically based on the best estimator for the population parameter being tested. By converting sample statistics into a standardized test statistic (like a z-score), we can compare our sample result to known probability distributions under the assumption that H0 is true. [ 13]
Example: For the hypothesis H0:μ=21 versus Ha:μ=21, with a sample of n=100 electricians yielding a sample mean xˉ=22 and sample standard deviation s=2, the test statistic z is calculated as: z=s/nxˉ−μ0 Where μ0 is the hypothesized mean under H0. Given xˉ=22, μ0=21, s=2, and n=100: z=2/10022−21=2/101=0.21=5 This indicates that the sample mean is 5 standard deviations above the hypothesized population mean. 13.
1.3.2 The p-value
The p-value quantifies the strength of evidence against the null hypothesis. It is the probability of obtaining a test statistic at least as extreme as the one observed, assuming H0 is true. [ 14] 10.
Example (continued): For the two-tailed test in Example 9.3, where z=5: The p-value is calculated as the probability of observing a z-score of 5 or higher, OR a z-score of -5 or lower. p-value=P(z>5)+P(z<−5) Since observing a z-score of 5 or -5 is extremely rare, this probability is approximately zero. A very small p-value suggests that the observed sample result is unlikely if H0 were true, providing strong evidence against H0. 14.
Decision Rule using p-value:
- If p-value ≤α, reject H0.
- If p-value >α, do not reject H0.
Note: A very small p-value (close to 0) indicates strong evidence against H0. A large p-value suggests weak evidence against H0.
1.4 Significance level and rejection region
1.4.1 Significance level (α)
The significance level, denoted by α, is a critical threshold set by the researcher before conducting the test. It represents the probability of making a Type I error – incorrectly rejecting the null hypothesis when it is, in fact, true. Common values for α include 0.05, 0.01, and 0.10. .
Definition: α=P(falsely rejecting H0)=P(rejecting H0 when it is true) 16.
Tip: The significance level quantifies the acceptable risk of a false positive conclusion. A smaller α reduces the chance of a Type I error but increases the chance of a Type II error (failing to reject H0 when it is false).
1.4.2 Rejection region
The rejection region is defined based on the significance level (α) and the type of test (one-tailed or two-tailed). It encompasses the values of the test statistic that are considered extreme enough to warrant rejecting the null hypothesis. .
Example: For a two-tailed test with α=0.05, the rejection region consists of values in both tails of the distribution that cumulatively account for 5% of the probability. If the test statistic falls into this region, H0 is rejected. 17.
Decision Rule using Rejection Region:
- If the calculated test statistic falls within the rejection region, reject H0.
- If the calculated test statistic does not fall within the rejection region, do not reject H0.
| Type of Test | Rejection Region Criteria (Example using z-test) |
|---|---|
| Left-tailed test | z<−zα |
| Right-tailed test | z>zα |
| Two-tailed test | z<−zα/2 or z>zα/2 |
18.
Note: The critical values (e.g., −zα, zα, −zα/2, zα/2) are determined from the probability distribution of the test statistic.
1.5 Drawing a conclusion
After calculating the test statistic and its p-value (or determining if the test statistic falls within the rejection region), a decision is made regarding the null hypothesis. .
- Reject H0: If the evidence from the sample data is sufficiently strong (i.e., p-value ≤α or test statistic falls in rejection region), we reject the null hypothesis and conclude that the alternative hypothesis (Ha) is supported.
- Do not reject H0: If the sample data does not provide enough evidence to reject the null hypothesis (i.e., p-value >α or test statistic does not fall in rejection region), we fail to reject H0. This does not mean H0 is true, but rather that there is insufficient evidence to conclude otherwise.
5.
2. Large-sample tests for population means
This section outlines the methodology for constructing and interpreting large-sample hypothesis tests concerning a population mean (μ).
2.1 The foundation of large-sample tests for a population mean
The core principle behind large-sample tests for a population mean is to evaluate whether a hypothesized population mean (μ0) is plausible given the observed sample data. The sample mean (xˉ) serves as the best point estimate for the true population mean (μ). If the null hypothesis (H0) is true, then the sample mean should be reasonably close to the hypothesized population mean (μ0). A sample mean that deviates significantly from μ0, either substantially larger or smaller, provides evidence against H0 and in favor of the alternative hypothesis (Ha). Consequently, H0 is rejected if xˉ is too far from μ0 22.
For large sample sizes (typically n≥30), the Central Limit Theorem ensures that the sampling distribution of the sample mean, xˉ, is approximately normal. This normality allows us to standardize xˉ and use the standard normal distribution (Z-distribution) for hypothesis testing. The test statistic measures how many standard deviations the sample mean (xˉ) is from the hypothesized population mean (μ0). This statistic follows an approximate standard normal distribution when the null hypothesis (H0) is true 23.
2.2 Constructing a large-sample test for μ
The process of conducting a large-sample hypothesis test for a population mean involves several key steps: defining hypotheses, calculating a test statistic, determining a rejection region, and interpreting the results.
2.2.1 Null and alternative hypotheses
The test begins with formulating a null hypothesis (H0) and an alternative hypothesis (Ha). The null hypothesis typically states that the population mean is equal to a specific value (μ0), while the alternative hypothesis posits that the population mean is greater than, less than, or not equal to μ0.
- One-tailed tests:
- H0:μ=μ0 versus Ha:μ>μ0 (right-tailed)
- H0:μ=μ0 versus Ha:μ<μ0 (left-tailed)
- Two-tailed tests:
- H0:μ=μ0 versus Ha:μ=μ0
2.2.2 Test statistic calculation
The test statistic quantifies the difference between the observed sample mean (xˉ) and the hypothesized population mean (μ0), relative to the variability of the sample mean. For large samples, when the population standard deviation (σ) is unknown, the sample standard deviation (s) is used as an estimate. The test statistic, often denoted by z, is calculated as follows:
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.
- n is the sample size.
26.
2.2.3 Determining the rejection region
The rejection region consists of values of the test statistic that are sufficiently extreme to lead to the rejection of the null hypothesis. The significance level, α, is the probability of rejecting H0 when it is true. The rejection region is determined by α and the form of the alternative hypothesis (one-tailed or two-tailed).
- For a right-tailed test (Ha:μ>μ0): Reject H0 if z>zα, where zα is the critical value that cuts off an area of α in the right tail of the standard normal distribution.
- For a left-tailed test (Ha:μ<μ0): Reject H0 if z<−zα, where −zα is the critical value that cuts off an area of α in the left tail.
- For a two-tailed test (Ha:μ=μ0): Reject H0 if z>zα/2 or z<−zα/2, where zα/2 is the critical value that cuts off an area of α/2 in each tail.
31.
Critical values for common significance levels (α):
| 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 |
Note: The rejection region is the shaded area under the standard normal curve representing the values of z that are unlikely to occur if H0 is true 24.
2.2.4 Making a conclusion
After calculating the test statistic and determining the rejection region, a decision is made:
- Reject H0: If the calculated test statistic falls within the rejection region. This indicates sufficient evidence to conclude that the alternative hypothesis (Ha) is true.
- Do not reject H0: If the calculated test statistic does not fall within the rejection region. This means there is insufficient evidence to reject the null hypothesis.
The conclusion should be stated in the context of the problem, addressing the original research question. The probability of making an incorrect decision (rejecting H0 when it is true) is α 28.
Example: In a study on social workers' earnings, a sample of 40 male social workers showed an average weekly earning of 725 dollars, with a sample standard deviation of 102 dollars. The average for female social workers was 670 dollars. To test if men earn more, we set up H0:μ=670 versus Ha:μ>670 with α=0.01. The test statistic is z=(725−670)/(102/40)≈3.41. For a right-tailed test with α=0.01, the critical value z0.01=2.33. Since 3.41>2.33, we reject H0.
Conclusion: The average weekly earnings for male social workers are higher than for female social workers [25-28]
2.3 Assumptions for large-sample tests
For these large-sample tests to be valid, two primary assumptions must be met:
- Random Sampling: The n observations in the sample must be randomly selected from the population.
- Large Sample Size: The sample size (n) must be large, generally considered to be n≥30. This ensures that the Central Limit Theorem applies, making the sampling distribution of xˉ approximately normal.
Important: If the sample size is small (n<30) and the population standard deviation is unknown, a different test (like the t-test) would be required, along with the assumption that the population is normally distributed 32.
3. Calculating and interpreting p-values
This section introduces the p-value as a flexible alternative to rejection regions for hypothesis testing, quantifying the evidence against the null hypothesis.
3.1 The concept of p-value
Traditionally, hypothesis testing involves comparing a calculated test statistic to a critical value derived from a chosen significance level (α). However, this method can lead to different conclusions if different significance levels are used. To circumvent this ambiguity, the concept of a p-value is employed, offering a variable level of significance 34.
3.1.1 Definition of p-value
The p-value, also known as the observed significance level, is defined as the smallest value of α for which the null hypothesis (H0) can be rejected. It represents the actual risk of committing a Type I error if H0 is rejected based on the observed test statistic. Essentially, the p-value quantifies the strength of evidence against H0 35.
3.1.2 Interpretation of p-value
A small p-value signifies that the observed test statistic is considerably distant from the value hypothesized under H0. This indicates strong evidence that H0 is false and should be rejected. Conversely, large p-values suggest that the observed test statistic is not far from the hypothesized mean, providing insufficient support for rejecting H0 38.
Important: The p-value measures the strength of evidence against the null hypothesis. A smaller p-value indicates stronger evidence against H0.
3.2 Calculating p-values
The calculation of a p-value depends on whether the test is one-tailed or two-tailed, and the type of test statistic used (e.g., z-statistic, t-statistic).
3.2.1 P-value for a two-tailed test
For a two-tailed test, the p-value is the probability of observing a test statistic as extreme or more extreme than the one calculated, in either direction. If the calculated test statistic is z, the p-value is calculated as P(Z>∣z∣)+P(Z<−∣z∣), which simplifies to 2×P(Z>∣z∣) due to the symmetry of the standard normal distribution. This means the two-tailed p-value is twice the tail area corresponding to the calculated value of the test statistic.
Example calculation for a two-tailed test: Given a test statistic z=−3.03: p-value=P(z>3.03)+P(z<−3.03) p-value=(1−P(Z≤3.03))+P(Z≤−3.03) Using standard normal distribution tables or software, P(Z≤−3.03)≈0.0012 and P(Z≤3.03)≈0.9988. p-value≈(1−0.9988)+0.0012=0.0012+0.0012=0.0024 41.
3.2.2 P-value for a one-tailed test
For a one-tailed test, the p-value is the probability of observing a test statistic as extreme or more extreme than the calculated one, in the direction specified by the alternative hypothesis (Ha).
Example calculation for a one-tailed (right-tailed) test: If Ha:μ>μ0, and the calculated test statistic is z=0.91, the p-value is: p-value=P(Z≥0.91) p-value=1−P(Z<0.91) Using standard normal distribution tables or software, P(Z<0.91)≈0.8186. p-value≈1−0.8186=0.1814.
3.3 Decision rules for hypothesis testing using p-values
The decision to reject or not reject the null hypothesis is made by comparing the calculated p-value to the pre-selected significance level (α).
3.3.1 General rule
If the p-value is less than or equal to the preassigned significance level α (p-value≤α), then the null hypothesis (H0) can be rejected, and the results can be reported as statistically significant at level α 39.
3.3.2 Classification of results based on p-value
A common "sliding scale" is used to classify the significance of the results:
| p-value Range | Decision Regarding H0 | 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 rejected | Tending toward statistical significance |
| p≥0.10 | Not rejected | Not statistically significant |
Tip: This "sliding scale" provides a useful framework for interpreting the strength of evidence indicated by the p-value.
3.4 Advantages of the p-value approach
The p-value approach offers several advantages over the traditional rejection region method.
3.4.1 Computer software output
Statistical software packages typically report the p-value directly in their output, making it readily available for analysis.
3.4.2 Flexibility in significance level
Using the p-value allows researchers to evaluate their test results using any desired significance level. Researchers often report the smallest significance level at which their results are deemed statistically significant. This provides a more nuanced interpretation of the findings 48.
Example: In Example 9.6, a p-value of 0.0024 was calculated. This value is less than or equal to both the 1% (α=0.01) and 5% (α=0.05) significance levels. Therefore, H0 could be rejected at either level 42.
3.4.3 Comparison with critical value approach
The p-value approach and the critical value approach yield the same conclusions in hypothesis testing. For instance, in Example 9.7, with H0:μ=3300 versus Ha:μ>3300 and α=0.05:
- Critical value approach: The critical value is z=1.645. The calculated test statistic z=0.91 is not greater than 1.645, so H0 is not rejected 46.
- P-value approach: The calculated p-value is P(Z≥0.91)=0.1814. Since 0.1814>0.05, H0 is not rejected, and the results are not statistically significant 47.
Reminder: Both methods are valid for making decisions in hypothesis testing, but the p-value provides a more direct measure of evidence.
4. Applications and advanced concepts in hypothesis testing
This section delves into the practical applications of hypothesis testing and explores crucial concepts like Type I and Type II errors, alongside the power of a statistical test and the interpretation of power curves.
4.1 Types of errors in hypothesis testing
In hypothesis testing, two fundamental types of errors can occur, which are critical to understand for proper interpretation of results.
- Type I error: This occurs when the null hypothesis (H0) is rejected, even though 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 occurs when the null hypothesis (H0) is accepted (or not rejected) when it is, in fact, 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 can be visualized in a decision table, where the correct decisions and the two types of errors are outlined based on the truth of the null hypothesis and the decision made by the test 53.
Note: The choice of significance level (α) directly impacts the probability of a Type II error (β). A smaller α (making it harder to reject H0) generally leads to a larger β (increasing the chance of failing to reject a false H0).
4.2 The power of a statistical test
The power of a statistical test is a crucial measure of its effectiveness in detecting a true effect.
- 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. Mathematically, this is expressed as 1−β. 1−β=P(reject H0 when Ha is true)
- Interpretation: A higher power indicates a greater ability of the test to detect a statistically significant result when one genuinely exists in the population. Ideally, researchers aim for tests with high power to minimize the risk of missing a real effect (Type II error).
4.2.1 Power curves
A power curve graphically represents the power of a statistical test as a function of the true value of the parameter being tested.
- Construction: A power curve plots (1−β), the probability of rejecting H0 when H0 is false, against the true value of the parameter of interest 56.
- Interpretation: The curve visually demonstrates how the probability of detecting a true effect changes as the true parameter value deviates from the null hypothesis value. A desirable test would have a power curve that rises steeply, indicating high power over a wide range of alternative parameter values.
Example: Consider a chemical plant measuring daily yield. The null hypothesis might be that the average yield is 880 tons. If the true average yield drops to 870 tons, the power curve would show the probability of detecting this decrease (i.e., rejecting H0) at that specific true yield.
4.3 Application example: Chemical plant yield
This section illustrates the calculation of Type II error probability (β) and test power (1−β) using a practical example.
-
Scenario: A chemical plant's average daily yield has historically been 880 tons. A quality control manager investigates whether this average has changed. A sample of 50 days (n=50) yields an average of xˉ=871 tons and a sample standard deviation of s=21 tons. The manager wants to calculate β and the power (1−β) if the true mean yield (μ) is actually 870 tons 58.
-
Calculation Steps:
- Define Hypotheses:
- H0:μ=880 tons
- Ha:μ=880 tons (or a one-sided alternative, depending on the manager's suspicion)
- Determine the Critical Region: Based on a chosen significance level (e.g., α=0.05), the critical values for the test statistic (e.g., a z-statistic or t-statistic) are determined. This defines the rejection region for H0 59.
- Calculate β: To find β, we assume the null hypothesis is false and a specific alternative value is true (μ=870). We then calculate the probability of observing a test statistic that falls within the acceptance region (i.e., not rejecting H0) under this alternative scenario. This involves calculating the z-values corresponding to the critical values of the test statistic, but using the mean from the alternative hypothesis (μ=870) and the standard error derived from the sample standard deviation 60 61. z=σxˉxˉ−μnull where μnull is the hypothesized mean under H0, and σxˉ is the standard error of the mean. When calculating β, we use the mean under Ha.
- Calculate Power: The power of the test is then computed as 1−β.
- Define Hypotheses:
-
Result: In the given example, by calculating the z-scores for the acceptance region boundaries (e.g., 874.18 and 885.82) under the assumption that the true mean is 870 tons, β is found to be the area under the normal curve (with μ=870) that falls within the acceptance region. The calculated β is approximately 0.0793, leading to a power of 1−β=0.9207. This means there is approximately a 92.07% chance of correctly rejecting the null hypothesis if the true average yield is indeed 870 tons 62.
Tip: Power analysis is often conducted before an experiment to determine the necessary sample size to achieve a desired level of power for detecting a specific effect size.
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.