Hypothesis Testing for Population Proportions: Comprehensive Guide
Fundamentals of Hypothesis Testing and Essential Ingredients
Hypothesis testing is a statistical method used to make decisions between two competing claims based on data.
General Four Steps of Hypothesis Testing: - Step 1: State Your Hypotheses: Define the Null Hypothesis () and the Alternative Hypothesis (). - Step 2: Prepare and Collect Data: Determine what data to collect and the required sample size (). Larger sample sizes are preferred as they reduce uncertainty. - Step 3: Compute and Compare: Collect the actual data and compare the resulting sample proportion () with the expected proportion under the assumption that the null hypothesis is true. - Step 4: Interpret the Results: Decide if the observed results are too unusual to have occurred by random chance under the null hypothesis.
Parameters vs. Statistics: - Hypothesis testing is always conducted for the population parameter (), never the sample statistic (). - We already know the sample statistic from our data; the goal is to infer if that statistic provides enough evidence to make a claim about the entire population.
Defining Null and Alternative Hypotheses
Null Hypothesis (): - Represents the "status quo," no change, no surprise, or no effect. - It is the claim that is initially assumed to be true. - It is often referred to as "H naught." - Rule: The mathematical expression for must always contain an equal sign (). - Example: In testing a coin for fairness, .
Alternative Hypothesis (): - Represents the claim the researcher intends to demonstrate as true (the suspect change or effect). - It is often referred to as "H-A." - Rule: The mathematical expression for must always contain inequality signs: less than ( < ), greater than ( > ), or not equal to (). - Example: If a coin is suspected to be unfair after trials, .
Directionality: One-Sided vs. Two-Sided Hypotheses
The comparison symbol used in the alternative hypothesis determines the "tailedness" of the test: - Left-Tailed Test: Used when looking for a decrease. H_a: p < p_0. - Right-Tailed Test: Used when looking for an increase. H_a: p > p_0. - Two-Tailed Test: Used when looking for any change or difference from the status quo. .
Retailer Example (Internet Sales): - Scenario: Historical online sales are . A retailer buys ads to increase this. - Increase Question: ; H_a: p > 0.30 (One-sided, right test). - Decrease Question: ; H_a: p < 0.30 (One-sided, left test). - Change Question: ; (Two-sided test).
The One-Proportion z-Test Statistic
The one-proportion z-Test Statistic is effectively the z-score for the sample proportion.
It measures how far (in standard deviations) the sample evidence () is from the null claim ().
Formula: - - Where - represents the value claimed by the null hypothesis. - represents the observed sample proportion.
Standard Error (SE) Calculation Note: When calculating the SE for hypothesis testing, use the population proportion from the null hypothesis (), not the sample proportion ().
Characterizing p-values and Significance Levels
p-Value Big Picture: The p-value answers the question: "If the null hypothesis were true, how surprising is this result in terms of probability?" - Small p-value indicates results are very surprising under the null; provides strong evidence against . - Large p-value indicates results are not surprising; provides weak evidence against .
Calculation Definitions by Tail Type: - Left-Tailed p-value: Probability that the new sample proportion will be less than or equal to the observed sample proportion (). - Right-Tailed p-value: Probability that the new sample proportion will be greater than or equal to the observed sample proportion (). - Two-Tailed p-value: Probability that the new sample proportion will be farther away from than the observed statistic (2 \times P(Z > |z_{observed}|)).
Level of Significance (): - This is the "cut-off" point for evidence chosen before running the test. - Typical values for : (), (), or (). - The smaller the , the stronger the evidence required to reject .
Decision Rules: - If \text{p-value} < \alpha: Reject . Evidence is strong enough to accept . - If : Fail to Reject . Evidence is not strong enough to conclude is true.
Critical Terminology Caution: - Never say "Accept " or "Prove ". We only "Fail to reject ". - Analogy: In a court of law, a verdict of "Not Guilty" does not mean "Innocent"; it means there was not enough evidence to prove guilt.
Conditions for Using the z-Test (Central Limit Theorem)
To ensure the sampling distribution follows a Normal distribution (), three conditions must be met: - 1. Random and Independent: The sample data must be collected randomly. - 2. Large Population: The total population should be at least times larger than the sample size (). - 3. Large Sample Size: There must be at least expected successes and expected failures under the null hypothesis: - -
Detailed Case Studies and Examples
Example 1: Engineering Cracks
Scenario: Historically, of metal ingots had surface cracks. Engineers use a new method and test ingots, finding a crack rate.
Hypotheses: - (No improvement) - H_a: p < 0.20 (Improvement)
Calculations: - , , - -
p-value: P(Z < -1.50) = 0.067.
Conclusion: At , since 0.067 > 0.05, we Fail to Reject . There is not enough evidence to claim the new method reduced the crack rate.
Example 2: Ohio High School Graduation Rates
Scenario: Ohio's state rate is . A specific school has a rate of in a sample of students. Is it statistically higher at ?
Conditions Check: - np_0 = 130 \times 0.80 = 104 > 10 - n(1-p_0) = 130 \times 0.20 = 26 > 10
Calculations: - , - - P(\hat{p} > 0.853) = 1 - P(Z < 1.51) \approx 0.0655
Conclusion: Since 0.0655 > 0.05, Fail to Reject . The evidence is not significant.
Example 3: Major League Baseball (MLB) Pitchers
Scenario: of the general population is left-handed. A sample of MLB pitchers shows are left-handed. Is the proportion for pitchers higher?
Hypotheses: vs. H_a: p > 0.10
Calculations: - , , - -
p-value: Approximately .
Conclusion: Reject . There is strong statistical evidence that the percent of left-handed pitchers exceeds .
Example 4: Hispanic/Latino Origin Census
Scenario: National average is . A county sample of residents finds are of Hispanic origin. Does the county differ from the nation?
Hypotheses: - - (Two-tailed test)
Calculations: - - -
p-value: 2 \times P(Z < -3.28) = 0.001
Conclusion: Reject . The population proportion in this county differs significantly from the national proportion.