Chapter-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, by systematically evaluating competing claims.
1.1 Components of a statistical test of hypothesis
A statistical test of hypothesis is a structured process composed of five key elements that guide the decision-making process.
- Null Hypothesis (H0): This is the statement of no effect or no difference that is assumed to be true initially. It represents the status quo or a baseline assumption.
- Alternative Hypothesis (Ha): This is the hypothesis that the researcher wishes to support, typically representing a claim of an effect, difference, or relationship. It is a contradiction of the null hypothesis.
- Test Statistic: A single numerical value calculated from the sample data that measures how far the sample result deviates from what would be expected if the null hypothesis were true. It is usually based on the best estimator for the parameter being tested.
- P-value: The probability of observing a test statistic as extreme as, or more extreme than, the one calculated from the sample data, assuming the null hypothesis is true.
- Significance Level (α) and Rejection Region: The significance level, denoted by α, is the probability of falsely rejecting the null hypothesis when it is actually true. It represents the maximum tolerable risk of a Type I error. The rejection region is a set of values for the test statistic that would lead to the rejection of the null hypothesis.
1.2 Formulating hypotheses
Hypotheses are formulated as competing statements about a population parameter. The null hypothesis (H0) is the statement of equality or no effect, while the alternative hypothesis (Ha) is the statement that contradicts H0 and is what the researcher aims to find evidence for.
- Example: If a researcher wants to show that the average hourly wage of electricians in California is different from the national average of USD 21, the hypotheses would be:
- Ha: μ=21 (Alternative hypothesis)
- H0: μ=21 (Null hypothesis)
- Example: If a process currently produces an average of 3% defectives and a researcher wants to show that an adjustment decreases this proportion, the hypotheses would be:
- Ha: p<0.03 (Alternative hypothesis)
- H0: p=0.03 (Null hypothesis)
Important: The null hypothesis is always stated with an equality sign (=), whereas the alternative hypothesis can be stated with inequality signs (=, <, or >).
1.3 Types of hypothesis tests
Hypothesis tests are categorized based on the directionality of the alternative hypothesis, which dictates the location of the rejection region.
- Two-tailed test: Used when the alternative hypothesis states that the parameter is simply not equal to the value specified in the null hypothesis (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 of inequality.
1.4 Test statistics and p-values
To decide whether to reject or accept the null hypothesis, two crucial pieces of information are derived from sample data: the test statistic and its corresponding p-value.
-
Test Statistic: This is a single number computed from the sample data that quantifies the deviation from the null hypothesis. For example, when testing a hypothesis about a population mean μ, the test statistic is often a z-score or a t-score.
Example: For Example 9.3, testing H0:μ=21 versus Ha:μ=21 with a sample mean xˉ=22, a sample standard deviation s=2, and sample size n=100: The standard error of the mean is calculated as: SE(xˉ)=ns=1002=0.2 12.
The test statistic (z-score) is then: z=SE(xˉ)xˉ−μ0=0.222−21=5 13. This indicates the sample mean is 5 standard errors away from the hypothesized population mean.
-
P-value: This probability helps assess the evidence against the null hypothesis. It is the probability of observing sample results as extreme as, or more extreme than, those obtained, assuming H0 is true.
Example: For Example 9.3, since it is a two-tailed test, the p-value is calculated as the sum of the probabilities of observing a z-score of 5 or greater, and a z-score of -5 or less: p-value=P(z>5)+P(z<−5)≈0 14. A very small p-value suggests that the observed sample data is highly unlikely if the null hypothesis were true, providing strong evidence to reject H0.
1.5 Significance level and rejection region
The significance level (α) is a pre-determined threshold for deciding whether to reject the null hypothesis.
- Significance Level (α): Defined as the probability of falsely rejecting H0 when it is true (Type I error), i.e., α=P(rejecting H0 when H0 is true). Common values for α include 0.10, 0.05, and 0.01 16.
- Rejection Region: This is the set of values for the test statistic that lead to the rejection of the null hypothesis. The size of the rejection region is determined by the chosen significance level α and the type of test (one-tailed or two-tailed).
Note: Setting the significance level α allows researchers to reject H0 with a fixed degree of confidence. If the calculated p-value is less than or equal to α, the null hypothesis is rejected. If the p-value is greater than α, the null hypothesis is not rejected.
Example: For a two-tailed test with α=0.10 and a standard error of 0.2, the rejection regions would be defined by z-scores that cut off the extreme 5% in each tail (totaling 10%). Similarly, for α=0.01, more extreme z-scores are needed to define the rejection regions. 17 18.
1.6 Decision and conclusion
The final step in hypothesis testing involves making a decision based on the comparison of the p-value to the significance level (α) or by determining if the test statistic falls within the rejection region.
- Decision:
- If p-value≤α, reject H0.
- If p-value>α, do not reject H0.
- Conclusion: The conclusion should be stated in the context of the problem.
- If H0 is rejected, conclude that there is sufficient evidence to support the alternative hypothesis (Ha).
- If H0 is not rejected, conclude that there is not enough evidence to support the alternative hypothesis (Ha). This does not mean H0 is true, only that the sample data did not provide sufficient evidence to reject it.
Remember: Hypothesis testing leads to one of two outcomes: either reject H0 in favor of Ha, or fail to reject H0. There is no conclusion that H0 is "accepted" in the strict sense, only that it is not rejected based on the available evidence.
2. Large-sample tests for a population mean
This section outlines the methodology for conducting statistical tests on a population mean when dealing with large sample sizes, focusing on hypothesis formulation, test statistic calculation, rejection region determination, and result interpretation.
2.1 The essentials of the large-sample test for a population mean
The core idea behind a large-sample test for a population mean (μ) is to evaluate whether a hypothesized value (μ0) for the population mean is plausible, given the evidence from a sample. The sample mean (xˉ) serves as the best point estimate for μ. If the null hypothesis (H0) is true and μ=μ0, then xˉ should be close to μ0. A significant deviation of xˉ from μ0 suggests that the alternative hypothesis (Ha) might be true, leading to the rejection of H0 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 a test statistic that follows approximately a standard normal distribution under the null hypothesis. The test statistic measures how many standard deviations xˉ is away from the hypothesized mean μ0. The significance level (α) of the test represents the probability of rejecting H0 when it is actually true, and it is used to define the rejection region.
Note: The sample standard deviation (s) is used as an estimate for the population standard deviation (σ) when σ is unknown. This is common practice in large-sample tests.
2.1.1 Formulating hypotheses
The first step in hypothesis testing is to clearly define the null and alternative hypotheses.
- Null Hypothesis (H0): This is a statement of no effect or no difference, typically proposing a specific value for the population mean. It is written as H0:μ=μ0.
- Alternative Hypothesis (Ha): This is a statement that contradicts the null hypothesis and is what we seek to find evidence for. It can be one-tailed or two-tailed:
- One-tailed test:
- Ha:μ>μ0 (right-tailed)
- Ha:μ<μ0 (left-tailed)
- Two-tailed test:
- Ha:μ=μ0
- One-tailed test:
2.1.2 Calculating the test statistic
The test statistic quantifies the difference between the observed sample mean and the hypothesized population mean, relative to the variability of the sample. For large samples, the test statistic used is a z-score, calculated as follows 23 30:
z=s/nxˉ−μ0
Where:
- xˉ is the sample mean.
- μ0 is the hypothesized population mean under H0.
- s is the sample standard deviation.
- n is the sample size.
This statistic follows approximately a standard normal distribution if H0 is true and the sample size is large.
2.1.3 Determining the rejection region
The rejection region consists of values of the test statistic that are unlikely to occur if the null hypothesis is true. These values lead to the rejection of H0. The size of the rejection region is determined by the significance level (α) and the type of alternative hypothesis 24 31.
- For a right-tailed test (Ha:μ>μ0): Reject H0 if z>zα. The critical value zα is the value from the standard normal distribution that cuts off an area of α in the right tail.
- For a left-tailed test (Ha:μ<μ0): Reject H0 if z<−zα. The critical value −zα 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. The critical values zα/2 and −zα/2 cut off areas of α/2 in the right and left tails, respectively.
The table below provides common critical values for various confidence coefficients (1 - α):
| 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 |
Example: For a significance level of α=0.01, the critical value for a right-tailed test is z0.01=2.33. If the calculated test statistic z is greater than 2.33, we reject H0.
2.1.4 Making a conclusion
After calculating the test statistic and determining the rejection region, a conclusion is drawn based on whether the test statistic falls within the rejection region.
- If the test statistic falls within the rejection region, we reject the null hypothesis (H0). This provides statistical evidence to support the alternative hypothesis (Ha).
- If the test statistic does not fall within the rejection region, we fail to reject the null hypothesis (H0). This means there is not enough statistical evidence to support the alternative hypothesis.
The probability of making an incorrect decision when rejecting H0 is α, the significance level of the test.
Important: Failing to reject H0 does not mean H0 is true; it simply means the sample data did not provide sufficient evidence to reject it at the chosen significance level.
2.1.5 Assumptions of the large-sample test
For the large-sample test for a population mean to be valid, the following assumptions must be met 32:
- The n observations in the sample are randomly selected from the population.
- The sample size n is large (generally n≥30).
2.2 Example of a large-sample test
Consider a scenario investigating the average weekly earnings for male social workers compared to female social workers, where the average for females is known to be 670 dollars.
A random sample of n=40 male social workers yielded a sample mean weekly earning of xˉ=725 dollars and a sample standard deviation of s=102 dollars. We want to test if the average weekly earnings for men are higher than those for women at a significance level of α=0.01 25.
Steps:
-
Formulate 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) This is a right-tailed test.
-
Calculate the Test Statistic: Using the formula: z=s/nxˉ−μ0 z=102/40725−670 z=102/6.324555 z=16.12855 z≈3.41 26.
-
Determine the Rejection Region: For α=0.01 and a right-tailed test, the critical value is z0.01=2.33. The rejection region is z>2.33.
-
Make a Conclusion: The calculated test statistic (z≈3.41) is greater than the critical value (2.33). Therefore, H0 is rejected 27.
Conclusion: There is sufficient 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. The probability of making an incorrect decision (Type I error) is α=0.01 28.
Reminder: When interpreting results, state the conclusion in the context of the problem, mentioning the significance level used.
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, offering a more nuanced decision-making process than solely relying on fixed significance levels.
3.1 The concept of the p-value
The p-value, also known as the observed significance level, represents the smallest significance level (α) at which the null hypothesis (H0) would be rejected. It is fundamentally the actual probability of committing a Type I error if H0 is rejected based on the observed test statistic. Essentially, the p-value quantifies how likely the observed data (or more extreme data) are if the null hypothesis were true. A small p-value indicates strong evidence against H0, while a large p-value suggests weak evidence against H0 35.
Important: A small p-value implies that the observed test statistic is far from the hypothesized value, thus providing strong evidence to reject H0. Conversely, a large p-value suggests the observed test statistic is close to the hypothesized mean, failing to support the rejection of H0 38.
3.2 Calculating p-values
The calculation of a p-value depends on the type of hypothesis test being conducted (one-tailed or two-tailed) and the observed value of the test statistic.
3.2.1 For a two-tailed test
In a two-tailed test, the p-value is calculated as the sum of the probabilities in both tails of the test statistic's distribution that are more extreme than the observed test statistic. If z is the calculated test statistic, the p-value is P(Z>∣z∣)+P(Z<−∣z∣), which is equivalent to 2×P(Z>∣z∣) due to the symmetry of the standard normal distribution.
3.2.2 For a one-tailed test
For a one-tailed test, the p-value is simply 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 (Ha). For instance, if Ha suggests μ>μ0, the p-value is P(Z≥z) for a z-test.
Example: In Example 9.6, a two-tailed test resulted in a calculated z-score of -3.03. The p-value was calculated as P(z>3.03)+P(z<−3.03). Using standard normal distribution tables, P(z<−3.03)≈0.0012 and P(z>3.03)≈0.0012. Therefore, the p-value is 0.0012+0.0012=0.0024 41.
Note: The two-tailed p-value is twice the tail area corresponding to the calculated test statistic's absolute value 42.
3.3 Interpreting p-values and making decisions
The interpretation of a p-value involves comparing it to a pre-determined significance level (α).
Decision Rule:
- If p-value≤α, reject the null hypothesis (H0). The results are considered statistically significant at the α level.
- If p-value>α, do not reject the null hypothesis (H0). The results are not statistically significant at the α level 39.
3.3.1 General interpretation guidelines
A "sliding scale" can be used to classify the strength of evidence based on the p-value 43:
| 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 do not reject H0 | Tending toward statistical significance |
| p>0.10 | Do not reject H0 | Not statistically significant |
Example: In Example 9.7, a one-tailed test yielded a p-value of 0.1814. With a significance level of α=0.05, since 0.1814>0.05, H0 is not rejected, indicating the results are not statistically significant. There is insufficient evidence to suggest that the average daily sodium intake exceeds 3300 milligrams 47.
3.3.2 Advantages of the p-value approach
The p-value approach offers distinct advantages in statistical analysis 48:
- Computer Software Output: Statistical software typically reports p-values, making them readily available for interpretation.
- 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 α at which the results are considered significant.
This flexibility helps to avoid ambiguity that can arise from using different significance levels, as demonstrated in scenarios where changing α could lead to different conclusions about rejecting H0 34.
4. Applications and advanced concepts in hypothesis testing
This section delves into practical applications of hypothesis testing, introducing crucial advanced concepts such as Type I and Type II errors, and the power of a statistical test, supported by illustrative examples and calculations.
4.1 Real-world applications of hypothesis testing
Hypothesis testing is a fundamental statistical tool with broad applications across various fields. It allows researchers and practitioners to make data-driven decisions by formally testing assumptions about populations based on sample data.
Example: In digital content creation, statistical tests can be employed to assess the similarity between original and watermarked AI-generated images, thereby enabling the detection of unauthorized use or manipulation 51.
4.2 Understanding errors in hypothesis testing
When conducting a hypothesis test, there are two potential types of errors that can occur, which are critical to understanding the limitations and interpretations of test results.
4.2.1 Type I error
A Type I error 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."
4.2.2 Type II error
A Type II error occurs when the null hypothesis (H0) is accepted (or 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."
The relationship between these errors and the decisions made can be visualized in a decision table:
| Decision | H0 True | H0 False |
|---|---|---|
| Reject H0 | Type I Error (α) | Correct Decision |
| Accept H0 | Correct Decision | Type II Error (β) |
4.3 The power of a statistical test
The power of a statistical test is a measure of its ability to correctly reject a false null hypothesis. It quantifies the probability of detecting an effect if one truly exists.
The power of a statistical test is defined as: Power=1−β This represents the probability of rejecting H0 when the alternative hypothesis (Ha) is true.
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. Ideally, researchers aim for a low α (to minimize Type I errors) and high power (to minimize Type II errors and maximize the detection of true effects).
Note: A higher power indicates a greater likelihood of detecting a statistically significant result when there is a real effect present in the population.
4.4 Example calculation of Type II error and test power
Consider a chemical plant where the average daily yield has historically been 880 tons. The quality control manager wants to determine if this average has changed recently. A random sample of 50 days yielded an average of 871 tons with a standard deviation of 21 tons.
Let's calculate β and the power of the test (1−β) when the true mean yield is actually 870 tons.
Given:
- Sample size, n=50
- Sample mean, xˉ=871 tons
- Sample standard deviation, s=21 tons
- Null hypothesis: H0:μ=880 tons
- Alternative hypothesis: Ha:μ=880 tons (assumed for power calculation context, though not explicitly stated in the problem's hypothesis formulation, typical for power analysis)
- True mean under consideration for power calculation: μ=870 tons 58.
The problem requires calculating β and power when μ=870. This implies we are interested in the probability of accepting H0 when the true mean is 870, and the probability of correctly rejecting H0 when the true mean is 870, respectively.
First, we need to establish the acceptance region. Assuming a significance level of α=0.05 for the test of H0:μ=880 vs Ha:μ=880, the critical values for xˉ can be determined. The standard error of the mean is SE=ns=5021≈2.9698.
The critical z-values for a two-tailed test with α=0.05 are z0.025=±1.96. The acceptance region for xˉ is: xˉlower=μ−zα/2×SE=880−1.96×2.9698≈874.07 xˉupper=μ+zα/2×SE=880+1.96×2.9698≈885.93
So, the acceptance region is approximately 874.07<xˉ<885.93 59.
Now, to calculate β, we consider the distribution of xˉ when the true mean is μ=870. The sampling distribution of xˉ under this condition is a normal distribution with mean μ=870 and standard error SE≈2.9698 60.
β is the probability of accepting H0 when μ=870, which means xˉ falls within the acceptance region. β=P(874.07<xˉ<885.93∣μ=870)
We convert the bounds of the acceptance region to z-scores using the distribution with μ=870: z1=2.9698874.07−870≈2.96984.07≈1.37 z2=2.9698885.93−870≈2.969815.93≈5.36
So, β=P(1.37<z<5.36). From standard normal distribution tables or calculators: P(z<5.36)≈1 P(z<1.37)≈0.9147
Therefore, β=P(z<5.36)−P(z<1.37)≈1−0.9147=0.0853.
The power of the test is 1−β: Power=1−β=1−0.0853=0.9147
This means that if the true average yield is 870 tons, there is approximately a 91.47% chance that the statistical test will correctly reject the null hypothesis that the average yield is 880 tons 61.
Example: In the chemical plant example, the calculated power of the test is approximately 0.9147. This indicates a high probability of detecting a true decrease in the average yield to 870 tons 62.
Remember: The choice of significance level (α) directly impacts β and the power of the test. A smaller α (e.g., 0.01) will increase β and decrease power, making it harder to reject H0 even if it's false. Conversely, a larger α (e.g., 0.10) will decrease β and increase power 56.
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.