Comprehensive Study Guide to Statistical Inference for Proportions

Foundations of Statistical Inference: Populations, Samples, and Distributions

  • The Core Objective of Statistical Inference:

    • Statistical inference uses sample data drawn from a larger group to make valid, quantifiable generalizations about unknown characteristics of an entire population.

    • When studying categorical variables, statistical inference focuses on identifying the true proportion of individuals or items in a population that fall into a specific category of interest.

  • Parameters vs. Statistics:

    • Population Parameter (pp):

    • The true, fixed numerical proportion of a category of interest across an entire population.

    • In real-world applications, pp is almost always unknown because measuring every unit in an entire population is practically impossible.

    • Parameters can only be described conceptually or estimated.

    • Sample Statistic (p^\hat{p}):

    • The observed proportion calculated directly from a sample of data.

    • The sample proportion is calculated as:       p^=xn\hat{p} = \frac{x}{n}       where nn represents the total number of members in the sample and xx represents the count of sample members possessing the attribute or category of interest.

    • The sample statistic serves as an estimate of the true population parameter pp.

    • Parameter vs. Statistic Comparison:

    • Population: Parameter notation is pp; describes the true proportion in the population; generally unknown.

    • Sample: Statistic notation is p^\hat{p}; calculated as p^=xn\hat{p} = \frac{x}{n}; directly known from collected sample data.

  • Illustrative Examples of Parameter vs. Statistic:

    • Iowa Recreational Marijuana Support Study:

    • Population: All residents of Iowa.

    • Categorical Variable: Stance on recreational marijuana legalization.

    • Category of Interest: In favor of legalization.

    • Sample: A random sample of n=800n = 800 Iowans.

    • Observed Count: x=504x = 504 individuals in favor.

    • Parameter (pp): The true proportion of all Iowans who support recreational marijuana legalization (unknown).

    • Statistic (p^\hat{p}):       p^=504800=0.63\hat{p} = \frac{504}{800} = 0.63

    • M&M Candy Jar Scenario:

    • A giant jar contains thousands of M&Ms.

    • Population: The entire jar of M&Ms.

    • Categorical Variable: Color of the M&M.

    • Category of Interest: Red M&Ms.

    • Parameter (pp): The true proportion of all M&Ms in the jar that are red.

    • Sample: A random selection of n=50n = 50 M&Ms.

    • Observed Statistic (p^\hat{p}):       p^=2050=0.40\hat{p} = \frac{20}{50} = 0.40

    • Due to random sampling, a statistic will on average "hit the bullseye" (equal the true parameter), but random sampling variability guarantees that different samples will produce different values of p^\hat{p}.

  • The Three Distinct Distributions in Inference:

    • 1. Population Distribution:

    • The actual distribution of the categorical variable across the entire population.

    • Represents the underlying "truth" (pp vs. 1−p1 - p).

    • Example: In a population where 30%30\% of all individuals have blue eyes, the population distribution assigns a probability of 0.300.30 to "Blue Eyes" and 0.700.70 to "Not Blue Eyes".

    • 2. Sample Distribution:

    • The empirical distribution of the categorical variable found within a single collected sample of size nn.

    • Directly observable from sample counts.

    • Example: In a random sample of n=500n = 500 individuals from the population above, x=140x = 140 have blue eyes (p^=140500=0.28\hat{p} = \frac{140}{500} = 0.28 or 28.00%28.00\%) and 360360 do not have blue eyes (72.00%72.00\%).

    • Every new random sample taken produces its own distinct sample distribution.

    • 3. Sampling Distribution of the Sample Proportion (p^\hat{p}):

    • The theoretical probability distribution of all possible values of p^\hat{p} that could be observed from all possible repeated random samples of the same size nn taken from the population.

    • It models how the statistic varies from sample to sample due to sampling variability.

The Sampling Distribution Model for a Sample Proportion

  • Sampling Variability:

    • Different random samples yield different values of p^\hat{p}.

    • Understanding the spread and behavior of all possible values of p^\hat{p} enables quantifying how close an observed statistic is to the true population parameter pp.

  • Required Conditions for Normality of p^\hat{p}:

    • Before modeling the behavior of p^\hat{p} using a normal distribution, three mandatory conditions must be verified:

    • 1. Randomization Condition:

      • The data must be collected using a simple random sample (SRS) or come from an experiment that utilizes random assignment to ensure representativeness and eliminate systematic bias.

    • 2. Success/Failure Condition:

      • The expected number of successes (npn p) and expected number of failures (n(1−p)n(1 - p)) must both be at least 1010:         np≥10n p \ge 10         n(1−p)≥10n(1 - p) \ge 10

      • This ensures that the sample size is sufficiently large and that the distribution is not heavily skewed by values of pp near 00 or 11.

    • 3. 10% Condition:

      • When sampling without replacement from a finite population, the sample size nn must be less than 10%10\% of the total population size (NN):         n<0.10Nn < 0.10 N

      • This satisfies the independence assumption between individual observations.

  • Mathematical Model of the Sampling Distribution:

    • When all three conditions are satisfied, the sampling distribution of p^\hat{p} is modeled by a Normal distribution:     p^∼N(p,p(1−p)n)\hat{p} \sim N\left(p, \sqrt{\frac{p(1 - p)}{n}}\right)

    • Center (Mean):

    • The mean of the sampling distribution equals the true population parameter:       μp^=p\mu_{\hat{p}} = p

    • This confirms that p^\hat{p} is an unbiased estimator of pp.

    • Spread (Standard Deviation):

    • The standard deviation of the sampling distribution models sample-to-sample variability:       σp^=p(1−p)n\sigma_{\hat{p}} = \sqrt{\frac{p(1 - p)}{n}}

  • Effect of Sample Size (nn) on the Sampling Distribution:

    • Consider repeatedly sampling from a population with p=0.30p = 0.30 across different sample sizes:

Histograms of sample proportions across different sample sizes n = 250, 500, and 2000
  • For n=250n = 250: The histogram is bell-shaped and centered at 0.300.30, with values spreading roughly from 0.220.22 to 0.380.38.

  • For n=500n = 500: The distribution remains centered at 0.300.30, but the spread narrows, spanning roughly from 0.240.24 to 0.360.36.

  • For n=2000n = 2000: The distribution is highly concentrated around 0.300.30, spanning only from roughly 0.270.27 to 0.330.33.

  • General Rule: As sample size nn increases, the center (μp^=p\mu_{\hat{p}} = p) remains unchanged, the shape becomes more closely normal, and the standard deviation (σp^\sigma_{\hat{p}}) decreases proportionally to 1n\frac{1}{\sqrt{n}}.

    • Comprehensive Worked Example: Left-Handed Population:

  • Context: Suppose 10%10\% (p=0.10p = 0.10) of all people are left-handed. A random sample of n=250n = 250 people is taken.

  • Condition Verification:

    • Randomization: A random sample of size n=250n = 250 is taken.

    • Success/Failure:       np=250(0.10)=25≥10n p = 250(0.10) = 25 \ge 10       n(1−p)=250(1−0.10)=250(0.90)=225≥10n(1 - p) = 250(1 - 0.10) = 250(0.90) = 225 \ge 10       Both expected counts exceed 1010.

    • 10% Condition: 250250 individuals is less than 10%10\% of all people.

  • Sampling Distribution Calculation:     μp^=0.10\mu_{\hat{p}} = 0.10     σp^=0.10(1−0.10)250=0.09250=0.00036=0.01897≈0.019\sigma_{\hat{p}} = \sqrt{\frac{0.10(1 - 0.10)}{250}} = \sqrt{\frac{0.09}{250}} = \sqrt{0.00036} = 0.01897 \approx 0.019     p^∼N(0.10,0.019)\hat{p} \sim N(0.10, 0.019)

  • Problem 1: What proportion of samples will have a sample proportion of left-handed people greater than 13.5%13.5\% (p^>0.135\hat{p} > 0.135)?

Normal distribution showing area to the right of z = 1.84 for p-hat = 0.135
  • Calculate standard score (zz):     z=0.135−0.100.019=0.0350.019≈1.84z = \frac{0.135 - 0.10}{0.019} = \frac{0.035}{0.019} \approx 1.84

  • Lookup cumulative probability for z=1.84z = 1.84: Area to the left is 0.96710.9671.

  • Determine upper tail probability:     P(p^>0.135)=1−0.9671=0.0329P(\hat{p} > 0.135) = 1 - 0.9671 = 0.0329

  • Conclusion: 3.29%3.29\% of samples will have a sample proportion greater than 13.5%13.5\%.

    • Problem 2: What is the probability of obtaining a sample proportion less than 6%6\% (p^<0.06\hat{p} < 0.06)?

Normal curve showing area to the left of z = -2.11 for p-hat = 0.06 and two-standard-deviation bounds
  • Calculate standard score (zz):     z=0.06−0.100.019=−0.040.019≈−2.11z = \frac{0.06 - 0.10}{0.019} = \frac{-0.04}{0.019} \approx -2.11

  • Lookup cumulative probability for z=−2.11z = -2.11: Area to the left is 0.01740.0174.

  • Conclusion: 1.79%1.79\% (or an area of 0.01740.0174) of samples will yield a sample proportion less than 6%6\%.

    • Problem 3: Between which two percentages will 95%95\% of all sample proportions fall?

  • Apply the 68-95-99.7% Empirical Rule (±2\pm 2 standard deviations from the mean):     Lower Bound=0.10−2(0.019)=0.10−0.038=0.062\text{Lower Bound} = 0.10 - 2(0.019) = 0.10 - 0.038 = 0.062     Upper Bound=0.10+2(0.019)=0.10+0.038=0.138\text{Upper Bound} = 0.10 + 2(0.019) = 0.10 + 0.038 = 0.138

  • Conclusion: 95%95\% of all samples of size 250250 will produce a sample proportion between 0.0620.062 and 0.1380.138 (between 6.2%6.2\% and 13.8%13.8\%).

Confidence Intervals for Proportions

  • Motivation and Conceptual Basis:

    • In real scenarios, the true parameter pp is unknown. While p^\hat{p} provides our best single point estimate, random sampling causes inherent uncertainty.

    • Instead of reporting a single point estimate, statistical inference constructs an interval of plausible values for pp with an associated confidence level.

    • General structure of all confidence intervals:     Confidence Interval=Estimate±Margin of Error\text{Confidence Interval} = \text{Estimate} \pm \text{Margin of Error}

  • Derivation of the 95% Confidence Interval for pp:

    • The 68-95-99.7% Rule and Normal Critical Value:

    • In any standard normal model, exactly 95%95\% of values fall within 1.961.96 standard deviations of the center (μ±1.96σ\mu \pm 1.96\sigma).

Normal distribution showing that 95 percent of sample proportions fall within 1.96 standard deviations of p
  • Result One (Position of p^\hat{p} relative to pp):

    • Because p^\hat{p} follows a normal sampling distribution centered at pp, in 95%95\% of all random samples, the sample proportion p^\hat{p} will fall within 1.961.96 standard deviations of the unknown population proportion pp:       p±1.96p(1−p)np \pm 1.96 \sqrt{\frac{p(1 - p)}{n}}

  • Result Two (Position of pp relative to p^\hat{p}):

    • Inverting this relationship: In 95%95\% of all random samples, the true population proportion pp will fall within 1.961.96 standard deviations of the observed sample proportion p^\hat{p}:       p^±1.96p(1−p)n\hat{p} \pm 1.96 \sqrt{\frac{p(1 - p)}{n}}

  • The Standard Error Substitution:

    • The formula requires pp, which is unknown. The solution is to substitute the sample statistic p^\hat{p} into the standard deviation formula.

    • When an estimate is used in place of the true parameter, the resulting measure of variability is called the Standard Error (SESE):       SE(p^)=p^(1−p^)nSE(\hat{p}) = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

  • Final 95% Confidence Interval Formula:     p^±1.96p^(1−p^)n\hat{p} \pm 1.96 \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

    • General Form of a One-Proportion Confidence Interval:   p^±z∗p^(1−p^)n\hat{p} \pm z^* \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

  • Components:

    • Point Estimate: p^\hat{p}

    • Critical Value: z∗z^*

    • Standard Error: SE(p^)=p^(1−p^)nSE(\hat{p}) = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

    • Margin of Error (MEME):       ME=z∗⋅SE(p^)=z∗p^(1−p^)nME = z^* \cdot SE(\hat{p}) = z^* \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

    • Standard Critical Values (z∗z^*) Table:

Table of standard normal critical values for selected confidence levels
  • For an 80%80\% Confidence Level: z∗=1.282z^* = 1.282

  • For a 90%90\% Confidence Level: z∗=1.645z^* = 1.645

  • For a 95%95\% Confidence Level: z∗=1.96z^* = 1.96

  • For a 98%98\% Confidence Level: z∗=2.326z^* = 2.326

  • For a 99%99\% Confidence Level: z∗=2.576z^* = 2.576

    • The Four-Step Confidence Interval Procedure:

  • Step 1: Identify Key Information:

    • Define the population, the sample, the parameter (pp), and the statistic (p^\hat{p}).

  • Step 2: Check Assumptions and Conditions:

    • Random Sample Condition: Data obtained via simple random sampling or randomized experiment.

    • Success/Failure Condition: Count of observed successes and failures in the sample must both be at least 1010:       np^≥10n \hat{p} \ge 10       n(1−p^)≥10n(1 - \hat{p}) \ge 10

    • 10% Condition: n<0.10Nn < 0.10 N.

  • Step 3: Calculate the Confidence Interval:

    • Calculate standard error, margin of error, and the lower/upper bounds:       Lower Bound=p^−ME\text{Lower Bound} = \hat{p} - ME       Upper Bound=p^+ME\text{Upper Bound} = \hat{p} + ME

  • Step 4: Interpret the Interval in Context:

    • Provide formal, context-specific statements.

    • Two Types of Interpretations:

  • 1. Interpretation of the Specific Interval:

    • Standard Template: "We are [Confidence Level]% confident that the true population proportion of [description of population in category of interest] is between [Lower Bound] and [Upper Bound]."

    • Incorrect: Stating that there is a 95% probability that the parameter lies in the calculated interval. Once computed, the interval either contains the fixed parameter or it does not.

  • 2. Interpretation of the Confidence Level (C%C\%):

    • The confidence level represents the theoretical long-run capture rate.

    • If we were to take repeated random samples of the same size nn and compute a C%C\% confidence interval from each sample, approximately C%C\% of those calculated confidence intervals would contain the true population proportion pp.

Simulation showing multiple sample confidence intervals where approximately 95 percent overlap the true population parameter p
  • Comprehensive Worked Example: Ghost Belief Survey:

    • Scenario: Planning a television ghost hunter show requires knowing the proportion of U.S. adults who believe in ghosts. A random sample of n=1000n = 1000 U.S. adults reveals 38.8%38.8\% (p^=0.388\hat{p} = 0.388) believe in ghosts. Construct a 95%95\% confidence interval.

    • Step 1: Identification:

    • Population: All U.S. adults.

    • Sample: The 10001000 surveyed U.S. adults.

    • Parameter (pp): The true proportion of all U.S. adults who believe in ghosts.

    • Statistic (p^\hat{p}): 0.3880.388.

    • Step 2: Check Conditions:

    • Random Sample: Verified as a random sample.

    • Success/Failure:       np^=1000(0.388)=388≥10n \hat{p} = 1000(0.388) = 388 \ge 10       n(1−p^)=1000(0.612)=612≥10n(1 - \hat{p}) = 1000(0.612) = 612 \ge 10       Both counts exceed 1010.

    • 10% Condition: 10001000 U.S. adults is less than 10%10\% of the U.S. adult population.

    • Step 3: Calculate Interval:     SE(p^)=0.388(1−0.388)1000=0.388×0.6121000=0.00023746≈0.01541SE(\hat{p}) = \sqrt{\frac{0.388(1 - 0.388)}{1000}} = \sqrt{\frac{0.388 \times 0.612}{1000}} = \sqrt{0.00023746} \approx 0.01541     ME=1.96×0.01541≈0.0302ME = 1.96 \times 0.01541 \approx 0.0302     Interval=0.388±0.0302=(0.3578,0.4182)\text{Interval} = 0.388 \pm 0.0302 = (0.3578, 0.4182)

    • Step 4: Contextual Interpretation:

    • "We are 95%95\% confident that the proportion of all adults in the U.S. who believe in the existence of ghosts is between 0.3580.358 and 0.4180.418 (between 35.8%35.8\% and 41.8%41.8\%)."

  • Comprehensive Worked Example: Gallup Economic Outlook Survey:

    • Scenario: In a Gallup Poll, 344344 out of a random sample of n=1010n = 1010 U.S. adults rated the national economy as good or excellent. Construct a 98%98\% confidence interval.

    • Step 1: Identification:

    • Population: All U.S. adults.

    • Sample: The 10101010 surveyed U.S. adults.

    • Parameter (pp): True proportion of all U.S. adults who believe the economy is good or excellent.

    • Statistic (p^\hat{p}):       p^=3441010≈0.3406\hat{p} = \frac{344}{1010} \approx 0.3406

    • Step 2: Check Conditions:

    • Random Sample: Simple random sample confirmed.

    • Success/Failure: x=344≥10x = 344 \ge 10 successes; n−x=1010−344=666≥10n - x = 1010 - 344 = 666 \ge 10 failures.

    • 10% Condition: 10101010 is less than 10%10\% of the U.S. population.

    • Step 3: Calculate Interval:

    • For 98%98\% confidence, z∗=2.326z^* = 2.326.     SE(p^)=0.3406(1−0.3406)1010=0.3406×0.65941010=0.00022237≈0.01491SE(\hat{p}) = \sqrt{\frac{0.3406(1 - 0.3406)}{1010}} = \sqrt{\frac{0.3406 \times 0.6594}{1010}} = \sqrt{0.00022237} \approx 0.01491     ME=2.326×0.01491≈0.03468ME = 2.326 \times 0.01491 \approx 0.03468     Lower Bound=0.3406−0.0347=0.3059\text{Lower Bound} = 0.3406 - 0.0347 = 0.3059     Upper Bound=0.3406+0.0347=0.3753\text{Upper Bound} = 0.3406 + 0.0347 = 0.3753     Interval=(0.3059,0.3753)\text{Interval} = (0.3059, 0.3753)

    • Step 4: Contextual Interpretation:

    • "We are 98%98\% confident that the proportion of all U.S. adults who believe the economy is good or excellent is between 0.3060.306 and 0.3750.375 (between 30.6%30.6\% and 37.5%37.5\%)."

  • Properties of Confidence Intervals and Trade-Offs:

    • Effect of Confidence Level (for fixed nn):

    • Higher confidence level →\rightarrow larger critical value z∗z^* →\rightarrow larger margin of error →\rightarrow wider interval.

    • Lower confidence level →\rightarrow smaller critical value z∗z^* →\rightarrow smaller margin of error →\rightarrow narrower interval.

    • Trade-off: Achieving greater confidence requires widening the interval to allow more room for sample variation.

    • Effect of Sample Size (nn) (for fixed confidence level):

    • Smaller sample size →\rightarrow larger standard error →\rightarrow wider interval.

    • Larger sample size →\rightarrow smaller standard error →\rightarrow narrower, more precise interval.

    • The Confidence vs. Precision Dilemma:

    • An ideal interval has both high confidence and high precision (small margin of error).

    • Extreme Example 1: A 99%99\% confidence interval of (0.13,0.87)(0.13, 0.87) provides virtually useless information because it is too wide.

    • Extreme Example 2: A confidence interval of (0.45,0.47)(0.45, 0.47) is precise, but if it has only a 5%5\% confidence level, it is nearly useless because it has very little chance of containing the true parameter.

  • Sample Size Determination for a Specified Margin of Error:

    • To achieve a desired margin of error (MEME) at a given confidence level (z∗z^*), solve the margin of error equation for nn:     ME=z∗p^(1−p^)nME = z^* \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}     MEz∗=p^(1−p^)n\frac{ME}{z^*} = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}     (MEz∗)2=p^(1−p^)n\left(\frac{ME}{z^*}\right)^2 = \frac{\hat{p}(1 - \hat{p})}{n}     n=p^(1−p^)(MEz∗)2=p^(1−p^)(z∗ME)2n = \frac{\hat{p}(1 - \hat{p})}{\left(\frac{ME}{z^*}\right)^2} = \hat{p}(1 - \hat{p}) \left(\frac{z^*}{ME}\right)^2

    • Conservative Estimate (p^=0.50\hat{p} = 0.50):

    • Before collecting sample data, p^\hat{p} is unknown.

    • Setting p^=0.50\hat{p} = 0.50 maximizes the product p^(1−p^)=(0.50)(0.50)=0.25\hat{p}(1 - \hat{p}) = (0.50)(0.50) = 0.25, guaranteeing the resulting sample size will be large enough regardless of what p^\hat{p} turns out to be:       n=(0.5z∗ME)2n = \left(\frac{0.5 z^*}{ME}\right)^2

    • Rounding Rule: Always round the calculated sample size nn up to the nearest whole integer.

    • Non-Linear Relationship: There is not a 1-to-1 relationship between sample size and margin of error. Cutting the margin of error in half requires multiplying the sample size by 44 (22=42^2 = 4).

    • Sample Size Calculation Example 1: Iowa Registered Voters:

    • Goal: Construct a 95%95\% confidence interval (z∗=1.96z^* = 1.96) with a margin of error no greater than 3%3\% (ME=0.03ME = 0.03).     n=(0.5×1.960.03)2=(0.980.03)2=(32.6667)2=1067.11n = \left(\frac{0.5 \times 1.96}{0.03}\right)^2 = \left(\frac{0.98}{0.03}\right)^2 = (32.6667)^2 = 1067.11

    • Rounding up yields a required sample size of n=1068n = 1068 voters.

    • This mathematical relationship explains why major political and national polls generally sample approximately 10001000 individuals to maintain a 3%3\% margin of error at 95%95\% confidence.

    • Sample Size Calculation Example 2: Pizzeria Credit Card Payments:

    • Goal: Construct a 98%98\% confidence interval (z∗=2.326z^* = 2.326) for credit card transactions with a margin of error no greater than 2%2\% (ME=0.02ME = 0.02).     n=(0.5×2.3260.02)2=(1.1630.02)2=(58.15)2=3381.42n = \left(\frac{0.5 \times 2.326}{0.02}\right)^2 = \left(\frac{1.163}{0.02}\right)^2 = (58.15)^2 = 3381.42

    • Rounding up yields a required sample size of n=3382n = 3382 pizza orders.

Hypothesis Testing for Proportions

  • Conceptual Framework:

    • A hypothesis test evaluates a claim about a population parameter by evaluating sample evidence against that claim.

    • The method establishes a "default view" of nature, assumes it is true, and assesses whether observed sample data are consistent with that view or too extreme to be attributed to random chance.

  • The Criminal Trial Analogy:

    • Presumption of Innocence (Null Hypothesis): A defendant is presumed innocent until proven guilty beyond a reasonable doubt.

    • Prosecution's Burden of Proof (Alternative Hypothesis): The prosecution attempts to present sufficient evidence to reject the baseline assumption of innocence.

    • Standard of Evidence: The baseline assumption remains standing unless compelling evidence forces its rejection. Failure to prove guilt does not prove absolute innocence; it merely indicates insufficient evidence of guilt.

  • Intuitive Probability Example: Coin Toss Experiment:

    • Default view: The coin is fair (p=0.50p = 0.50).

    • Obtain data: Toss the coin 100100 times and record the number of heads.

Sampling distribution of the number of heads in 100 coin flips with 85 heads indicated far in the right tail
  • Outcome A: 85 Heads in 100 Flips:

    • If the coin is fair, we expect roughly 5050 heads.

    • Under the null assumption of a fair coin, the probability of obtaining 8585 or more heads in 100100 flips is approximately:       P(X≥85)≈0.00000000000024P(X \ge 85) \approx 0.00000000000024

    • Two logical possibilities exist:

      1. The coin is fair, and an event with a probability of 2.4×10−132.4 \times 10^{-13} occurred by random chance.

      2. The coin is biased toward heads (p>0.50p > 0.50).

    • Following probabilistic logic, we rule out random chance and conclude the coin is unfair.

  • Outcome B: 56 Heads in 100 Flips:

    • Under the fair coin model, the probability of obtaining at least 5656 heads is 0.2720.272 (27.2%27.2\%).

    • Because 5656 heads will occur more than a quarter of the time simply due to random variation, there is no reason to question the coin's fairness.

    • The Seven-Step Hypothesis Testing Procedure:

  • Step 1: State the Null (H0H_0) and Alternative (HAH_A) Hypotheses:

    • Null Hypothesis (H0H_0):

      • The default view asserting no change, no effect, or no difference from a historical benchmark value (p0p_0):         H0:p=p0H_0: p = p_0

    • Alternative Hypothesis (HAH_A):

      • The research claim that the parameter differs from p0p_0. It dictates the directionality of the test:

      • Lower-tail (one-sided): HA:p<p0H_A: p < p_0

      • Upper-tail (one-sided): HA:p>p0H_A: p > p_0

      • Two-tailed (two-sided): HA:p≠p0H_A: p \neq p_0

    • Step 2: Check Assumptions and Conditions:

  • Randomization: Simple random sample or randomized experiment.

  • Success/Failure Condition: Evaluated using the hypothesized null proportion p0p_0:     np0≥10n p_0 \ge 10     n(1−p0)≥10n(1 - p_0) \ge 10

  • 10% Condition: n<0.10Nn < 0.10 N.

    • Step 3: Determine the Sampling Distribution Model:

  • Under the assumption that the null hypothesis is true, the sampling distribution model of p^\hat{p} is:     p^∼N(p0,p0(1−p0)n)\hat{p} \sim N\left(p_0, \sqrt{\frac{p_0(1 - p_0)}{n}}\right)

  • The null standard error is:     SE0=p0(1−p0)nSE_0 = \sqrt{\frac{p_0(1 - p_0)}{n}}

    • Step 4: Calculate the Test Statistic (zz):

  • The test statistic converts the difference between the observed sample statistic p^\hat{p} and the null value p0p_0 into standard deviation units:     z=p^−p0p0(1−p0)nz = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}

    • Step 5: Find the P-value:

  • Definition: The probability of obtaining a test statistic as extreme as, or more extreme than, the observed value, assuming the null hypothesis is true.

  • Calculation depends on HAH_A:

Standard normal curves showing p-value regions for left-tailed, right-tailed, and two-tailed alternative hypotheses
  • Left-Tailed (HA:p<p0H_A: p < p_0): P-value=P(Z≤z)P\text{-value} = P(Z \le z)

  • Right-Tailed (HA:p>p0H_A: p > p_0): P-value=P(Z≥z)=1−P(Z≤z)P\text{-value} = P(Z \ge z) = 1 - P(Z \le z)

  • Two-Tailed (HA:p≠p0H_A: p \neq p_0): Sum of areas in both tails:         P-value=2×P(Z≥∣z∣)P\text{-value} = 2 \times P(Z \ge |z|)

Two-tailed alternative hypothesis showing shaded critical regions in both tails
  • Step 6: Assess the Strength of Evidence Against H0H_0:

    • Evidence Benchmark Scale:

Table defining strength of evidence against Ho based on p-value brackets
* P-value>0.10P\text{-value} > 0.10: Little to no evidence against H0H_0.
* 0.05<P-value≤0.100.05 < P\text{-value} \le 0.10: Weak evidence against H0H_0.
* 0.01<P-value≤0.050.01 < P\text{-value} \le 0.05: Moderate evidence against H0H_0.
* P-value≤0.01P\text{-value} \le 0.01: Strong evidence against H0H_0.
  • The American Statistical Association (ASA) Perspective on P-values:

    • Historically, decisions relied on rigid cutoff significance levels (typically α=0.05\alpha = 0.05), where P<0.05P < 0.05 led directly to "rejecting" the null.

    • The American Statistical Association opposes strict mechanical cutoffs because results do not magically become practically important just by crossing an arbitrary threshold.

    • Modern statistics favors a continuous "strength of evidence" framework, avoiding rigid reject/fail-to-reject declarations in favor of nuanced contextual conclusions.

    • Step 7: State a Contextual Conclusion:

  • Conclude by stating the strength of evidence in clear, contextual language directly addressing the research question.

Worked Examples of Hypothesis Testing

  • Example 1: Automated Soda Machine Fill Rates:

    • Context: Historically, an automated soda fountain underfills 20%20\% (p=0.20p = 0.20) of cups. A new mechanism is installed to reduce underfills. A sample of n=400n = 400 cups reveals 16%16\% (p^=0.16\hat{p} = 0.16) are underfilled.

    • Hypotheses:     H0:p=0.20H_0: p = 0.20     HA:p<0.20H_A: p < 0.20

    • Conditions:

    • Random sample of 400400 cups.

    • np0=400(0.20)=80≥10n p_0 = 400(0.20) = 80 \ge 10; n(1−p0)=400(0.80)=320≥10n(1 - p_0) = 400(0.80) = 320 \ge 10.

    • 400400 is less than 10%10\% of all cups dispensed.

    • Sampling Distribution Under H0H_0:     SE0=0.20(0.80)400=0.16400=0.0004=0.02SE_0 = \sqrt{\frac{0.20(0.80)}{400}} = \sqrt{\frac{0.16}{400}} = \sqrt{0.0004} = 0.02     p^∼N(0.20,0.02)\hat{p} \sim N(0.20, 0.02)

    • Test Statistic:     z=0.16−0.200.02=−0.040.02=−2.00z = \frac{0.16 - 0.20}{0.02} = \frac{-0.04}{0.02} = -2.00

    • P-value:     P-value=P(Z≤−2.00)=0.0228P\text{-value} = P(Z \le -2.00) = 0.0228

    • Conclusion:

    • With a P-value of 0.02280.0228 (between 0.010.01 and 0.050.05), there is moderate evidence that the new process reduces the proportion of underfilled cups below 20%20\%.

  • Example 2: Magazine Online Edition Subscription Interest:

    • Context: A magazine with over 1,000,000 readers plans to launch an online edition only if convinced that more than 25%25\% (p>0.25p > 0.25) of readers will subscribe. An SRS of n=500n = 500 readers finds 137137 interested.

    • Step 1: Hypotheses:     H0:p=0.25H_0: p = 0.25     HA:p>0.25H_A: p > 0.25

    • Step 2: Check Assumptions:

    • Randomization: Simple random sample of 500500 current readers.

    • Success/Failure:       np0=500(0.25)=125≥10n p_0 = 500(0.25) = 125 \ge 10       n(1−p0)=500(0.75)=375≥10n(1 - p_0) = 500(0.75) = 375 \ge 10

    • 10% Condition: 500500 readers is less than 10%10\% of over 1,000,000 total readers.

    • Step 3: Sampling Distribution:     SE0=0.25(0.75)500=0.1875500=0.000375≈0.01936SE_0 = \sqrt{\frac{0.25(0.75)}{500}} = \sqrt{\frac{0.1875}{500}} = \sqrt{0.000375} \approx 0.01936     p^∼N(0.25,0.01936)\hat{p} \sim N(0.25, 0.01936)

    • Step 4: Test Statistic:     p^=137500=0.274\hat{p} = \frac{137}{500} = 0.274     z=0.274−0.250.01936=0.0240.01936≈1.24z = \frac{0.274 - 0.25}{0.01936} = \frac{0.024}{0.01936} \approx 1.24

Standard normal distribution with right tail shaded starting at test statistic z = 1.24
  • Step 5: P-value:

    • For z=1.24z = 1.24, cumulative area to the left is 0.89250.8925.     P-value=P(Z≥1.24)=1−0.8925=0.1075P\text{-value} = P(Z \ge 1.24) = 1 - 0.8925 = 0.1075

  • Step 6: Decision / Evidence:

    • Because the P-value (0.10750.1075) exceeds 0.100.10, there is little to no evidence against H0H_0.

  • Step 7: Conclusion:

    • There is insufficient evidence to conclude that more than 25%25\% of current readers would subscribe to the online edition. The magazine should not proceed with the launch based on these data.

    • Example 3: Titleist Golf Ball Market Share:

Worked solution for Titleist golf ball hypothesis test showing hypotheses, calculations, and conclusion
  • Context: Titleist historically claimed 70%70\% (p=0.70p = 0.70) of regular golfers use their golf balls. A survey of n=675n = 675 golfers playing at least 1010 rounds per year finds 430430 play Titleist.

  • 1) Hypotheses:     H0:p=0.70H_0: p = 0.70     HA:p<0.70H_A: p < 0.70

  • 2) Conditions:

    • Random sample of 675675 regular golfers.

    • np0=675(0.70)=472.5≥10n p_0 = 675(0.70) = 472.5 \ge 10; n(1−p0)=675(0.30)=202.5≥10n(1 - p_0) = 675(0.30) = 202.5 \ge 10.

    • 675675 is less than 10%10\% of all regular golfers.

  • 3) Sampling Distribution:     SE0=0.70(0.30)675=0.21675=0.0176SE_0 = \sqrt{\frac{0.70(0.30)}{675}} = \sqrt{\frac{0.21}{675}} = 0.0176     p^∼N(0.70,0.0176)\hat{p} \sim N(0.70, 0.0176)

  • 4) Sample Statistic and Test Statistic:     p^=430675≈0.637\hat{p} = \frac{430}{675} \approx 0.637     z=0.637−0.700.0176=−0.0630.0176=−3.57z = \frac{0.637 - 0.70}{0.0176} = \frac{-0.063}{0.0176} = -3.57

  • 5) P-value:

    • Seeking lower tail area (z≤−3.57z \le -3.57):       P-value=0.0002P\text{-value} = 0.0002

  • 6) Decision:

    • We have very strong evidence against H0H_0 (P-value<0.01P\text{-value} < 0.01).

  • 7) Conclusion:

    • There is very strong evidence that the proportion of regular golfers who play Titleist golf balls has decreased and is less than 70%70\% (0.700.70). Titleist has lost market share.

    • Example 4: High School Dropout Rate Analysis:

Worked solution for high school dropout rate hypothesis test
  • Context: The National Center for Education Statistics reported a typical annual dropout rate of 6.5%6.5\% (p0=0.065p_0 = 0.065). In a school district, 130130 of n=1782n = 1782 high school students dropped out last year. Test if the dropout rate has increased.

  • 1) Hypotheses:     H0:p=0.065H_0: p = 0.065     HA:p>0.065H_A: p > 0.065

  • 2) Conditions:

    • Assume students are representative of the district.

    • np0=1782(0.065)=115.83≥10n p_0 = 1782(0.065) = 115.83 \ge 10; n(1−p0)=1782(0.935)=1666.17≥10n(1 - p_0) = 1782(0.935) = 1666.17 \ge 10.

    • 17821782 students is less than 10%10\% of all high school students nationwide.

  • 3) Sampling Distribution:     SE0=0.065(0.935)1782=0.0607751782=0.0000341≈0.00584≈0.006SE_0 = \sqrt{\frac{0.065(0.935)}{1782}} = \sqrt{\frac{0.060775}{1782}} = \sqrt{0.0000341} \approx 0.00584 \approx 0.006     p^∼N(0.065,0.006)\hat{p} \sim N(0.065, 0.006)

  • 4) Sample Statistic and Test Statistic:     p^=1301782≈0.073\hat{p} = \frac{130}{1782} \approx 0.073     z=0.073−0.0650.006=0.0080.006≈1.33z = \frac{0.073 - 0.065}{0.006} = \frac{0.008}{0.006} \approx 1.33

  • 5) P-value:

    • Seeking upper tail area (z≥1.33z \ge 1.33):       Table area for z=1.33→0.9082\text{Table area for } z = 1.33 \rightarrow 0.9082       P-value=1−0.9082=0.0918P\text{-value} = 1 - 0.9082 = 0.0918

  • 6) Decision:

    • Because 0.05<P-value≤0.100.05 < P\text{-value} \le 0.10, there is only weak evidence against H0H_0.

  • 7) Conclusion:

    • There is weak evidence to suggest that the true dropout rate in this district exceeds the national benchmark of 6.5%6.5\%.

    • Example 5: IRS Tax Compliance Audit Fraud:

  • Context: Historically, IRS audits reveal that about 5%5\% (p=0.05p = 0.05) of individuals submit tax returns inviting criminal prosecution. A random sample of n=1000n = 1000 returns yields a sample proportion of p^=0.068\hat{p} = 0.068. Test if there is a signal of a change in taxpayer behavior.

  • Step 1: Hypotheses:     H0:p=0.05H_0: p = 0.05     HA:p≠0.05H_A: p \neq 0.05     (Two-tailed test to detect any change in behavior).

    • Step 2: Check Conditions:

  • Simple random sample of 10001000 tax returns.

  • np0=1000(0.05)=50≥10n p_0 = 1000(0.05) = 50 \ge 10; n(1−p0)=1000(0.95)=950≥10n(1 - p_0) = 1000(0.95) = 950 \ge 10.

  • 10001000 returns is far less than 10%10\% of all tax returns filed.

    • Step 3: Sampling Distribution:   SE0=0.05(0.95)1000=0.04751000=0.0000475≈0.00689SE_0 = \sqrt{\frac{0.05(0.95)}{1000}} = \sqrt{\frac{0.0475}{1000}} = \sqrt{0.0000475} \approx 0.00689   p^∼N(0.05,0.00689)\hat{p} \sim N(0.05, 0.00689)

    • Step 4: Test Statistic:   z=0.068−0.050.00689=0.0180.00689≈2.61z = \frac{0.068 - 0.05}{0.00689} = \frac{0.018}{0.00689} \approx 2.61

    • Step 5: P-value:

  • Area to the left of z=2.61z = 2.61 is 0.99550.9955.

  • Upper tail area:     P(Z≥2.61)=1−0.9955=0.0045P(Z \ge 2.61) = 1 - 0.9955 = 0.0045

  • Because the test is two-tailed, double the single-tail probability:     P-value=2×0.0045=0.0090P\text{-value} = 2 \times 0.0045 = 0.0090

    • Step 6: Decision:

  • Because P-value<0.01P\text{-value} < 0.01, there is strong evidence against H0H_0.

    • Step 7: Conclusion:

  • There is strong evidence that the proportion of fraudulent tax returns has changed from the historical benchmark of 5%5\%, specifically showing an increase.