Comprehensive Study Notes on Normal Distributions, Hypothesis Testing, and Proportion Inference

Density Curves and the Normal Distribution (Section P.5)

  • Random Variables:

    • Definition: A random variable is a numeric quantity that changes from trial to trial in a random process. It is typically denoted by capital letters such as XX or YY.

    • Discrete Random Variable: A random variable that possesses a finite (or countably infinite) set of possible values.

    • Example: The numerical result obtained from rolling a fair six-sided die (X∈{1,2,3,4,5,6}X \in \{1, 2, 3, 4, 5, 6\}).

    • Example: The count of girls in a randomly selected family with 3 children (X∈{0,1,2,3}X \in \{0, 1, 2, 3\}).

    • Continuous Random Variable: A random variable that can assume any numerical value within a given continuous interval on the real line.

    • Example: The measured height of a randomly selected individual.

    • Example: The exact duration of time required to read a designated textbook section.

  • Density Curves:

    • Definition: A density curve is a smooth, continuous theoretical mathematical model representing the probability distribution of a continuous random variable.

    • Fundamental Properties:

    • Total Area Property: The total area underneath the density curve above the horizontal axis is exactly equal to 11 (corresponding to 100%100\% of the distribution).

    • Interval Proportion Property: The proportion of the population or the probability that the random variable falls within any designated interval [a,b][a, b] is given precisely by the area under the curve over that interval.

    • Example: Commute Distances in Atlanta:

    • A right-skewed continuous density curve models commute distances in Atlanta.

    • Total area across all potential commute distances equals 1.01.0.

    • Region for commute distances between 3030 and 40 miles40\,\text{miles} accounts for 0.150.15 (15%15\%) of the total area.

    • Region for commute distances strictly less than 30 miles30\,\text{miles} represents 0.800.80 (80%80\%) of the total area.

    • Region for commute distances strictly greater than 40 miles40\,\text{miles} represents 0.050.05 (5%5\%) of the total area.

    • Sum of disjoint regions: 0.80+0.15+0.05=1.000.80 + 0.15 + 0.05 = 1.00.


Atlanta Commute Distance Density Curve
  • Normal Distributions (N(μ,σ)N(\mu, \sigma)):

    • Definition: A symmetric, bell-shaped density curve uniquely defined by its population mean μ\mu and population standard deviation σ\sigma.

    • Center: The peak and center of symmetry of the distribution is situated directly at the mean μ\mu.

    • Horizontal Spread: The dispersion is governed by σ\sigma. Approximately 95%95\% of the total area under the normal curve lies within two standard deviations of the mean: (μ−2σ,μ+2σ)(\mu - 2\sigma, \mu + 2\sigma).

    • Notation: Written as X∼N(μ,σ)X \sim N(\mu, \sigma), denoting that the random variable XX is distributed normally with mean μ\mu and standard deviation σ\sigma.

  • The Standard Normal Distribution (N(0,1)N(0, 1)) and Z-Scores:

    • Definition: The specific normal distribution that has a mean of μ=0\mu = 0 and a standard deviation of σ=1\sigma = 1. It is denoted as Z∼N(0,1)Z \sim N(0, 1).

    • Standardizing (Forward Conversion): To convert an observation XX from any general normal distribution N(μ,σ)N(\mu, \sigma) into its corresponding standardized value (zz-score) in N(0,1)N(0, 1), apply:     Z=X−μσZ = \frac{X - \mu}{\sigma}

    • Unstandardizing (Reverse Conversion): To convert a standardized zz-score back to the original measurement scale XX in N(μ,σ)N(\mu, \sigma), apply:     X=μ+ZσX = \mu + Z\sigma

  • Finding Probabilities, Percentiles, and Cutoffs:

    • Methodology: Because no elementary closed-form algebraic formula evaluates the integral of a normal density curve, probabilities and percentiles are found using standard normal cumulative probability tables (Table IV) or statistical software (StatKey).

    • Worked Example: General Normal Transformation (N(68,4)N(68, 4)):

    • Problem: Find the proportion of the distribution lying above X=72X = 72 for N(68,4)N(68, 4).

    • Standardization Step: Convert X=72X = 72 to a zz-score:       Z=72−684=44=1.0Z = \frac{72 - 68}{4} = \frac{4}{4} = 1.0

    • Standard Normal Area Lookup: Table IV yields the cumulative area to the left of Z=1.00Z = 1.00 as 0.84130.8413.

    • Upper Tail Area: Subtract the cumulative left area from 11:       Area to the right of 1.0=1−0.8413=0.1587\text{Area to the right of } 1.0 = 1 - 0.8413 = 0.1587

    • Symmetry Verification: By symmetry, the right-tail area above Z=1.0Z = 1.0 equals the left-tail area below Z=−1.0Z = -1.0, which reads directly from Table IV as 0.15870.1587.

    • Conclusion: The area above 7272 in an N(68,4)N(68, 4) distribution is identical to the area above 1.01.0 in an N(0,1)N(0, 1) distribution: 0.15870.1587.

    • Worked Example: Exam Scores (N(75,10)N(75, 10)):

    • Exam scores follow an N(μ=75,σ=10)N(\mu = 75, \sigma = 10) distribution.

    • Question 1: What proportion of students score above 90 points?

      • Standardize X=90X = 90:         Z=90−7510=1510=1.50Z = \frac{90 - 75}{10} = \frac{15}{10} = 1.50

      • From Table IV or StatKey, the cumulative area to the left of Z=1.50Z = 1.50 is 0.93320.9332.

      • Proportion above 9090 points:         1−0.9332=0.0668≈0.0671 - 0.9332 = 0.0668 \approx 0.067

    • Question 2: What is the score cutoff for the lowest 20% of the distribution?

      • Identify the 20th20^{\text{th}} percentile in the standard normal distribution (Area=0.2000\text{Area} = 0.2000 to the left).

      • In Table IV, locate the area closest to 0.20000.2000: Z=−0.84Z = -0.84 yields an area of 0.20050.2005.

      • Unstandardize Z=−0.84Z = -0.84 into the raw score metric:         X=μ+Zσ=75+(−0.84)(10)=75−8.4=66.6X = \mu + Z\sigma = 75 + (-0.84)(10) = 75 - 8.4 = 66.6

      • High-precision software (StatKey) gives X=66.584X = 66.584.

      • Students scoring below 66.666.6 points fall into the bottom 20%20\% and are referred for tutoring.

Hypothesis Tests Using Normal Distributions (Section 5.1)

  • Connection Between Simulation Distributions and the Normal Distribution:

    • Graphs of sampling distributions, bootstrap distributions, and randomization distributions across large samples consistently display a bell shape.

    • This behavior is formalized by the Central Limit Theorem.

  • The Central Limit Theorem (CLT):

    • Formal Statement: For random samples drawn with a sufficiently large sample size, the distribution of many common sample statistics can be closely approximated by a normal distribution.

  • Modeling Randomization Distributions:

    • A bell-shaped randomization distribution is centered at the value specified by the null hypothesis and dispersed according to the standard error (SESE).

    • Best Approximating Model:     N(null parameter,SE)N(\text{null parameter}, SE)

    • Finding p-values:

    • The p-value is evaluated as the area or proportion under this approximating normal curve beyond the observed sample statistic in the direction dictated by the alternative hypothesis HaH_a.

    • Two-tailed tests: The p-value is obtained by taking twice the area of the smaller tail beyond the observed statistic.

    • Comparison of Methods: A p-value may be calculated either via simulated randomization distributions (simulation approach) or via the approximating normal distribution (theoretical approach).

  • Standardized Test Statistics (ZZ):

    • Definition: When the distribution of a sample statistic under the null hypothesis H0H_0 is normally distributed, the test statistic is standardized into a zz-score.

    • Formula:     Z=sample statistic−null parameterSEZ = \frac{\text{sample statistic} - \text{null parameter}}{SE}

    • p-value Computation via Standard Normal Distribution (N(0,1)N(0, 1)):

    • Once the test statistic is converted to ZZ, the p-value is the proportion of the N(0,1)N(0, 1) distribution falling beyond ZZ in the direction of HaH_a.

  • Comprehensive Worked Example: Organic Food and Longevity in Fruit Flies:

    • Context: A 16-year-old student conducted a controlled science experiment testing whether organic food confers health advantages over conventional food. Fruit flies were randomly divided into two nutritional groups: one fed conventional produce (potatoes, raisins, bananas, or soybeans) and the other fed organic versions of the same food. Biological parameters including longevity, fertility, stress resistance, and activity were tracked.

    • Data: After 13 days of feeding on potato diets:

    • Organic group: 318318 out of nO=500n_O = 500 flies were alive.

    • Conventional group: 285285 out of nC=500n_C = 500 flies were alive.

    • Step 1: Parameters, Hypotheses, and Observed Statistic:

    • Parameters: Let pOp_O be the true proportion of organic-fed flies surviving 13 days13\,\text{days}, and let pCp_C be the true proportion of conventional-fed flies surviving 13 days13\,\text{days}.

    • Hypotheses:       H0:pO=pCvs.Ha:pO>pCH_0: p_O = p_C \quad \text{vs.} \quad H_a: p_O > p_C       (Equivalently, H0:pO−pC=0H_0: p_O - p_C = 0 vs. Ha:pO−pC>0H_a: p_O - p_C > 0)

    • Sample Proportions:       p^O=318500=0.636,p^C=285500=0.570\hat{p}_O = \frac{318}{500} = 0.636, \quad \hat{p}_C = \frac{285}{500} = 0.570

    • Observed Sample Statistic:       p^O−p^C=0.636−0.570=0.066\hat{p}_O - \hat{p}_C = 0.636 - 0.570 = 0.066

    • Step 2: Simulation Approach (Randomization Distribution):

    • From simulation, standard error is SE=0.031SE = 0.031.

    • Simulated p-value: 0.020.02.

    • Decision: At a significance level of α=0.05\alpha = 0.05, because p-value=0.02≤0.05p\text{-value} = 0.02 \le 0.05, reject H0H_0.

    • Conclusion: There is statistically significant evidence to conclude that fruit flies have a higher survival rate when fed an organic diet.

    • Step 3: Normal Approximation Method (N(null parameter,SE)N(\text{null parameter}, SE)):

    • Best approximating normal model: N(0,0.031)N(0, 0.031).

    • The observed difference is 0.0660.066.

    • Proportion of N(0,0.031)N(0, 0.031) lying to the right of 0.0660.066 yields a p-value of 0.0170.017.

    • Step 4: Standardized Test Statistic and Table IV Lookup:

    • Standardized test statistic calculation:       Z=sample statistic−null parameterSE=0.066−00.031=2.129Z = \frac{\text{sample statistic} - \text{null parameter}}{SE} = \frac{0.066 - 0}{0.031} = 2.129

    • Because this is a right-tailed test, the p-value is the area to the right of Z=2.129Z = 2.129 in N(0,1)N(0, 1).

    • Using Table IV (Negative zz values): By symmetry, the area to the right of +2.129+2.129 equals the area to the left of −2.129-2.129. In Table IV, under row −2.1-2.1 and column .03.03, the cumulative probability is 0.01660.0166.

    • Using Table IV (Positive zz values): Under row 2.12.1 and column .03.03, the cumulative area to the left is 0.98340.9834. Therefore:       p-value=1−0.9834=0.0166\text{p-value} = 1 - 0.9834 = 0.0166

    • Both table evaluations confirm p-value=0.0166p\text{-value} = 0.0166, matching the theoretical normal calculation.

Confidence Intervals Using Normal Distributions (Section 5.2)

  • Modeling Bootstrap Distributions:

    • By the Central Limit Theorem, when the sample size is sufficiently large, a bell-shaped bootstrap distribution is centered at the original sample statistic with dispersion given by the bootstrap standard error (SESE).

    • Best Approximating Model:     N(sample statistic,SE)N(\text{sample statistic}, SE)

    • A P%P\% confidence interval is obtained by identifying the interval containing the central P%P\% of the area under this approximating normal distribution.

  • Percentiles of Normal Distributions:

    • Example: Middle 95% of N(40,5)N(40, 5):

    • To isolate the central 95%95\% of area, allocate 100%−95%2=2.5%=0.025\frac{100\% - 95\%}{2} = 2.5\% = 0.025 into each tail.

    • In the standard normal distribution N(0,1)N(0, 1), the endpoints containing the middle 95%95\% are −1.96-1.96 and +1.96+1.96.

    • Converting these critical endpoints to N(40,5)N(40, 5):       Lower Bound=5(−1.96)+40=−9.8+40=30.2\text{Lower Bound} = 5(-1.96) + 40 = -9.8 + 40 = 30.2       Upper Bound=5(1.96)+40=9.8+40=49.8\text{Upper Bound} = 5(1.96) + 40 = 9.8 + 40 = 49.8

    • Middle 95%95\% interval: (30.2,49.8)(30.2, 49.8).

    • Example: Middle 99% of Standard Normal Distribution:

    • To isolate the central 99%99\% of area, allocate 100%−99%2=0.5%=0.005\frac{100\% - 99\%}{2} = 0.5\% = 0.005 into each tail.

    • Looking up a left-tail cumulative area of 0.00500.0050 in Table IV, the value lies equidistant between −2.57-2.57 (0.00510.0051) and −2.58-2.58 (0.00490.0049), yielding Z=−2.575Z = -2.575 (or approximately ±2.576\pm 2.576).

    • The symmetric interval in N(0,1)N(0, 1) containing the middle 99%99\% of the area is (−2.576,2.576)(-2.576, 2.576).

  • Constructing Confidence Intervals Using z∗z^*:

    • When a bootstrap distribution is normal with standard error SESE, the general confidence interval formula is:     Sample statistic±z∗⋅SE\text{Sample statistic} \pm z^* \cdot SE

    • The critical multiplier z∗z^* is chosen such that the area under the standard normal curve between −z∗-z^* and +z∗+z^* equals the confidence level P%P\%.

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

    • 90% Confidence Level: Excludes 5%=0.055\% = 0.05 in each tail; z∗=1.645z^* = 1.645.

    • 95% Confidence Level: Excludes 2.5%=0.0252.5\% = 0.025 in each tail; z∗=1.960z^* = 1.960.

    • 99% Confidence Level: Excludes 0.5%=0.0050.5\% = 0.005 in each tail; z∗=2.576z^* = 2.576.

  • Comprehensive Worked Example: Online Dating Survey:

    • Context: A survey conducted in July 2015 sampled n=2000n = 2000 American adults at random. Across the sample, 15%15\% (p^=0.15\hat{p} = 0.15) reported having used online dating services.

    • Method 1: Bootstrap Distribution (StatKey):

    • Bootstrap resampling yields an empirical standard error of SE=0.008SE = 0.008.

    • The resulting 90% confidence interval spanning the central 90%90\% of bootstrap statistics is (0.137,0.163)(0.137, 0.163).

    • Method 2: Approximating Normal Distribution:

    • The bootstrap distribution is modeled as N(0.15,0.008)N(0.15, 0.008).

    • The central 90%90\% of this normal distribution spans from 0.1370.137 to 0.1630.163.

    • Method 3: Standard Normal Formula (Statistic±z∗⋅SE\text{Statistic} \pm z^* \cdot SE):

    • Original sample statistic: p^=0.15\hat{p} = 0.15.

    • Standard error: SE=0.008SE = 0.008.

    • Desired confidence: 90%90\%, requiring z∗=1.645z^* = 1.645.

    • Margin of error calculation:       ME=z∗⋅SE=1.645⋅0.008=0.01316ME = z^* \cdot SE = 1.645 \cdot 0.008 = 0.01316

    • Interval calculation:       0.15±1.645(0.008)=0.15±0.01316=(0.13684,0.16316)≈(0.137,0.163)0.15 \pm 1.645(0.008) = 0.15 \pm 0.01316 = (0.13684, 0.16316) \approx (0.137, 0.163)

    • Interpretation: One can be 90%90\% confident that the true proportion of all American adults who have used online dating is between 13.7%13.7\% and 16.3%16.3\%.

Inference for a Single Proportion (Section 6.1)

  • Sampling Distribution of a Sample Proportion (p^\hat{p}):

    • When taking random samples of size nn from a population with true proportion pp, the theoretical sampling distribution of p^\hat{p} has:

    • Center: Centered at the population parameter pp.

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

    • Normality Conditions (Sample Size Check): The sampling distribution is reasonably modeled by a normal distribution provided that:       np≥10andn(1−p)≥10np \ge 10 \quad \text{and} \quad n(1 - p) \ge 10

  • Standard Error Calculations for Varying Sample Sizes:

    • Case 1: p=0.25p = 0.25 and n=50n = 50     SE=0.25(1−0.25)50=0.25(0.75)50=0.187550=0.00375≈0.061SE = \sqrt{\frac{0.25(1 - 0.25)}{50}} = \sqrt{\frac{0.25(0.75)}{50}} = \sqrt{\frac{0.1875}{50}} = \sqrt{0.00375} \approx 0.061

    • Case 2: p=0.25p = 0.25 and n=200n = 200     SE=0.25(1−0.25)200=0.1875200=0.0009375≈0.031SE = \sqrt{\frac{0.25(1 - 0.25)}{200}} = \sqrt{\frac{0.1875}{200}} = \sqrt{0.0009375} \approx 0.031

    • Observation: Quadrupling the sample size from 5050 to 200200 cuts the standard error in half (from 0.0610.061 to 0.0310.031), illustrating the inverse-square-root relationship between sample size and standard error.

  • Example: On-Time Flight Arrivals:

    • The Bureau of Transportation Statistics states that 80%80\% (p=0.80p = 0.80) of an airline's flights arrive on time (defined as within 15 minutes15\,\text{minutes} of scheduled arrival).

    • A random sample of n=400n = 400 flights is examined.

    • Verification of Normality Conditions:     np=400(0.80)=320≥10np = 400(0.80) = 320 \ge 10     n(1−p)=400(1−0.80)=400(0.20)=80≥10n(1 - p) = 400(1 - 0.80) = 400(0.20) = 80 \ge 10     Both criteria are met; the distribution is approximately normal.

    • Standard Error Calculation:     SE=0.80(1−0.80)400=0.80(0.20)400=0.16400=0.0004=0.02SE = \sqrt{\frac{0.80(1 - 0.80)}{400}} = \sqrt{\frac{0.80(0.20)}{400}} = \sqrt{\frac{0.16}{400}} = \sqrt{0.0004} = 0.02

  • Confidence Intervals for a Single Population Proportion:

    • Sample Statistic: Observed sample proportion p^\hat{p}.

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

    • Normality Conditions: The sample size must satisfy:     np^≥10andn(1−p^)≥10n\hat{p} \ge 10 \quad \text{and} \quad n(1 - \hat{p}) \ge 10

    • Formula for a P%P\% Confidence Interval:     p^±z∗p^(1−p^)n\hat{p} \pm z^* \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}

    • Step-by-Step Procedure:

    1. Verify that np^≥10n\hat{p} \ge 10 and n(1−p^)≥10n(1 - \hat{p}) \ge 10.

    2. Identify the critical value z∗z^* in N(0,1)N(0, 1) matching the required confidence level.

    3. Calculate the standard error and margin of error, then compute the confidence interval endpoints.

    • Worked Example: Peanut Proportion in Mixed Nuts:

    • In a sample of n=100n = 100 mixed nuts, 5252 are peanuts.

    • Sample proportion: p^=52100=0.52\hat{p} = \frac{52}{100} = 0.52.

    • Critical value for a 95%95\% confidence interval: z∗=1.96z^* = 1.96.

    • Check conditions:       np^=100(0.52)=52≥10n\hat{p} = 100(0.52) = 52 \ge 10       n(1−p^)=100(1−0.52)=100(0.48)=48≥10n(1 - \hat{p}) = 100(1 - 0.52) = 100(0.48) = 48 \ge 10

    • Standard error calculation:       SE=0.52(1−0.52)100=0.52(0.48)100=0.2496100=0.002496≈0.04996SE = \sqrt{\frac{0.52(1 - 0.52)}{100}} = \sqrt{\frac{0.52(0.48)}{100}} = \sqrt{\frac{0.2496}{100}} = \sqrt{0.002496} \approx 0.04996

    • Confidence interval calculation:       0.52±1.96⋅0.04996=0.52±0.0979=(0.4221,0.6179)≈(0.42,0.62)0.52 \pm 1.96 \cdot 0.04996 = 0.52 \pm 0.0979 = (0.4221, 0.6179) \approx (0.42, 0.62)

    • Contextual Interpretation: We are 95%95\% confident that the true proportion of peanuts in this brand of mixed nuts is between 0.420.42 and 0.620.62 (or between 42%42\% and 62%62\%).

    • Comparison: This theoretical interval is identical to the interval of 0.420.42 to 0.620.62 derived via bootstrap resampling.

  • Determining Sample Size for a Desired Margin of Error:

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

    • As sample size nn increases, the margin of error MEME decreases.

    • Sample Size Formula:     n=(z∗ME)2p~(1−p~)n = \left(\frac{z^*}{ME}\right)^2 \tilde{p}(1 - \tilde{p})

    • Selection of p~\tilde{p}:

    • Use an available prior estimate or sample proportion (such as p^\hat{p}) if known.

    • If no prior estimate is available, adopt the conservative estimate p~=0.5\tilde{p} = 0.5, which maximizes the product p~(1−p~)=0.25\tilde{p}(1 - \tilde{p}) = 0.25 and guarantees the resulting sample size achieves the desired margin of error.

    • Rounding rule: Always round non-integer calculations up to the next highest integer to guarantee the target precision.

    • Worked Example: Quebec Sovereignty Poll:

    • In a prior poll of 800800 Quebec residents, 28%28\% favored secession from Canada (p~=0.28\tilde{p} = 0.28).

    • Target precision: Estimate the true proportion to within ±1%\pm 1\% (ME=0.01ME = 0.01) with 99%99\% confidence (z∗=2.576z^* = 2.576).

    • Calculation:       n=(2.5760.01)2(0.28)(1−0.28)n = \left(\frac{2.576}{0.01}\right)^2 (0.28)(1 - 0.28)       n=(257.6)2⋅(0.28)(0.72)=66357.76⋅0.2016=13377.72n = (257.6)^2 \cdot (0.28)(0.72) = 66357.76 \cdot 0.2016 = 13377.72

    • Rounding up yields a required sample size of n=13,378 residentsn = 13,378\,\text{residents}.

  • Hypothesis Testing for a Single Proportion:

    • Null and Alternative Hypotheses:     H0:p=p0vs.Ha:p≠p0(or Ha:p>p0,  Ha:p<p0)H_0: p = p_0 \quad \text{vs.} \quad H_a: p \ne p_0 \quad (\text{or } H_a: p > p_0, \; H_a: p < p_0)     where p0p_0 is the hypothesized null parameter value.

    • Null Standard Error:

    • Because hypothesis testing assumes the null hypothesis H0H_0 is true, the standard error must be computed using the null parameter p0p_0 rather than the sample statistic p^\hat{p}:       SE0=p0(1−p0)nSE_0 = \sqrt{\frac{p_0(1 - p_0)}{n}}

    • Standardized Test Statistic:     Z=p^−p0p0(1−p0)nZ = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1 - p_0)}{n}}}

    • Sample Size Conditions: To ensure validity of the normal distribution, check:     np0≥10andn(1−p0)≥10n p_0 \ge 10 \quad \text{and} \quad n(1 - p_0) \ge 10

    • Step-by-Step Procedure:

    1. State H0H_0 and HaH_a, define the population parameter pp, and identify p^\hat{p}.

    2. Verify that np0≥10n p_0 \ge 10 and n(1−p0)≥10n(1 - p_0) \ge 10.

    3. Calculate the test statistic ZZ.

    4. Find the p-value using the standard normal distribution (N(0,1)N(0, 1)) based on HaH_a.

    5. Compare the p-value to the significance level α\alpha and state the formal conclusion in context.

    • Worked Example: Autonomous vs. Human-Controlled Vehicles:

    • Context: In an October 2015 Nielsen survey, a random sample of n=340n = 340 US middle school students were asked whether they would prefer a self-driving car or a car they control themselves. In the sample, 59%59\% (p^=0.59\hat{p} = 0.59) preferred driving themselves, while 41%41\% preferred self-driving vehicles. Test at the α=0.05\alpha = 0.05 significance level whether more than 50%50\% of all US middle school students prefer driving themselves.

    • Hypotheses:       H0:p=0.50vs.Ha:p>0.50H_0: p = 0.50 \quad \text{vs.} \quad H_a: p > 0.50       where pp represents the true proportion of all US middle school students who prefer controlling their own car.

    • Condition Verification:       np0=340(0.50)=170≥10n p_0 = 340(0.50) = 170 \ge 10       n(1−p0)=340(1−0.50)=170≥10n(1 - p_0) = 340(1 - 0.50) = 170 \ge 10       Conditions are verified.

    • Standardized Test Statistic Calculation:       SE0=0.50(1−0.50)340=0.25340=0.00073529≈0.027116SE_0 = \sqrt{\frac{0.50(1 - 0.50)}{340}} = \sqrt{\frac{0.25}{340}} = \sqrt{0.00073529} \approx 0.027116       Z=p^−p0SE0=0.59−0.500.027116=0.090.027116≈3.32Z = \frac{\hat{p} - p_0}{SE_0} = \frac{0.59 - 0.50}{0.027116} = \frac{0.09}{0.027116} \approx 3.32

    • p-value Determination:

      • For a right-tailed test, the p-value is the area to the right of Z=3.32Z = 3.32 in N(0,1)N(0, 1).

      • From Table IV, the cumulative area to the left of Z=3.32Z = 3.32 is 0.99950.9995.       p-value=1−0.9995=0.0005\text{p-value} = 1 - 0.9995 = 0.0005

    • Conclusion:

      • Because p-value=0.0005<α=0.05p\text{-value} = 0.0005 < \alpha = 0.05, reject H0H_0.

      • We have sufficient evidence to conclude that more than 50%50\% of US middle school students prefer a car that they control themselves.

Inference for a Difference in Proportions (Section 6.3)

  • Context: Comparing Proportions from Two Distinct Groups:

    • Focuses on comparing proportions between two distinct, independent populations or treatment groups (p1p_1 versus p2p_2).

    • Distinction: This does not apply to two categories within the same single categorical sample (e.g., comparing the proportion voting for Candidate A versus Candidate B within a single poll).

  • Sampling Distribution of the Difference in Proportions (p^1−p^2\hat{p}_1 - \hat{p}_2):

    • When taking independent random samples of size n1n_1 and n2n_2 from populations with proportions p1p_1 and p2p_2:

    • Center: The distribution is centered at p1−p2p_1 - p_2.

    • Standard Error Formula:       SE=p1(1−p1)n1+p2(1−p2)n2SE = \sqrt{\frac{p_1(1 - p_1)}{n_1} + \frac{p_2(1 - p_2)}{n_2}}

    • Normality Conditions: The sampling distribution is approximately normal if all four conditions hold:       n1p1≥10,n1(1−p1)≥10,n2p2≥10,n2(1−p2)≥10n_1 p_1 \ge 10, \quad n_1(1 - p_1) \ge 10, \quad n_2 p_2 \ge 10, \quad n_2(1 - p_2) \ge 10

  • Worked Example: Belief in "One True Love":

    • A study asked respondents whether they agree with the statement: "There is only one true love for each person."

    • Results by gender (26252625 total participants):

    • Males: 372372 of nM=1213n_M = 1213 agree.

    • Females: 363363 of nF=1412n_F = 1412 agree.

    • Sample proportions:     p^M=3721213≈0.307,p^F=3631412≈0.257\hat{p}_M = \frac{372}{1213} \approx 0.307, \quad \hat{p}_F = \frac{363}{1412} \approx 0.257

    • Point estimate of the difference:     p^M−p^F=0.307−0.257=0.05\hat{p}_M - \hat{p}_F = 0.307 - 0.257 = 0.05

    • Condition checks:     nMp^M=1213(0.307)=372≥10n_M \hat{p}_M = 1213(0.307) = 372 \ge 10     nM(1−p^M)=1213(1−0.307)=841≥10n_M(1 - \hat{p}_M) = 1213(1 - 0.307) = 841 \ge 10     nFp^F=1412(0.257)=363≥10n_F \hat{p}_F = 1412(0.257) = 363 \ge 10     nF(1−p^F)=1412(1−0.257)=1049≥10n_F(1 - \hat{p}_F) = 1412(1 - 0.257) = 1049 \ge 10

    • Standard error calculation:     SE=0.307(1−0.307)1213+0.257(1−0.257)1412=0.212751213+0.190951412SE = \sqrt{\frac{0.307(1 - 0.307)}{1213} + \frac{0.257(1 - 0.257)}{1412}} = \sqrt{\frac{0.21275}{1213} + \frac{0.19095}{1412}}     SE=0.0001754+0.0001352=0.0003106≈0.018SE = \sqrt{0.0001754 + 0.0001352} = \sqrt{0.0003106} \approx 0.018

  • Confidence Intervals for a Difference in Proportions (p1−p2p_1 - p_2):

    • Standard Error using Sample Estimates:     SE=p^1(1−p^1)n1+p^2(1−p^2)n2SE = \sqrt{\frac{\hat{p}_1(1 - \hat{p}_1)}{n_1} + \frac{\hat{p}_2(1 - \hat{p}_2)}{n_2}}

    • Normality Conditions: Verify that all four counts are at least 1010:     n1p^1≥10,n1(1−p^1)≥10,n2p^2≥10,n2(1−p^2)≥10n_1 \hat{p}_1 \ge 10, \quad n_1(1 - \hat{p}_1) \ge 10, \quad n_2 \hat{p}_2 \ge 10, \quad n_2(1 - \hat{p}_2) \ge 10

    • Formula for Confidence Interval:     (p^1−p^2)±z∗p^1(1−p^1)n1+p^2(1−p^2)n2(\hat{p}_1 - \hat{p}_2) \pm z^* \sqrt{\frac{\hat{p}_1(1 - \hat{p}_1)}{n_1} + \frac{\hat{p}_2(1 - \hat{p}_2)}{n_2}}

  • Comprehensive Worked Example: Crows Holding a Grudge:

    • Context: Biologists studying American crows trapped and tagged seven individual crows while wearing a caveman mask. A control group wore a neutral mask and did not trap any crows. More than two years later, at sites exceeding one kilometer from the original trapping location, crow reactions were recorded for both mask types. Scolding behaviors were directed at the caveman mask not only by the original tagged birds, but also by untagged crows and crows born after the trapping took place.

    • Data:

    • Caveman mask: Scolded in 158158 out of nC=444n_C = 444 encounters (p^C=158444≈0.356\hat{p}_C = \frac{158}{444} \approx 0.356).

    • Neutral mask: Scolded in 109109 out of nN=922n_N = 922 encounters (p^N=109922≈0.118\hat{p}_N = \frac{109}{922} \approx 0.118).

    • Condition Checks:     nCp^C=444(0.356)=158≥10n_C \hat{p}_C = 444(0.356) = 158 \ge 10     nC(1−p^C)=444(1−0.356)=286≥10n_C(1 - \hat{p}_C) = 444(1 - 0.356) = 286 \ge 10     nNp^N=922(0.118)=109≥10n_N \hat{p}_N = 922(0.118) = 109 \ge 10     nN(1−p^N)=922(1−0.118)=813≥10n_N(1 - \hat{p}_N) = 922(1 - 0.118) = 813 \ge 10     All four sample size criteria are satisfied.

    • Confidence Level and Critical Value: For a 90%90\% confidence level, z∗=1.645z^* = 1.645.

    • Standard Error Calculation:     SE=0.356(1−0.356)444+0.118(1−0.118)922=0.356(0.644)444+0.118(0.882)922SE = \sqrt{\frac{0.356(1 - 0.356)}{444} + \frac{0.118(1 - 0.118)}{922}} = \sqrt{\frac{0.356(0.644)}{444} + \frac{0.118(0.882)}{922}}     SE=0.22926444+0.10408922=0.0005164+0.0001129=0.0006293≈0.025086SE = \sqrt{\frac{0.22926}{444} + \frac{0.10408}{922}} = \sqrt{0.0005164 + 0.0001129} = \sqrt{0.0006293} \approx 0.025086

    • Confidence Interval Calculation:     Point Estimate=p^C−p^N=0.356−0.118=0.238\text{Point Estimate} = \hat{p}_C - \hat{p}_N = 0.356 - 0.118 = 0.238     ME=1.645⋅0.025086≈0.04127ME = 1.645 \cdot 0.025086 \approx 0.04127     0.238±0.04127=(0.19673,0.27927)≈(0.197,0.279)0.238 \pm 0.04127 = (0.19673, 0.27927) \approx (0.197, 0.279)

    • Contextual Interpretation: We are 90%90\% confident that the true difference in the proportion of encounters resulting in scoldings between the caveman mask and the neutral mask (pC−pNp_C - p_N) is between 0.1970.197 and 0.2790.279 (or between 19.7%19.7\% and 27.9%27.9\%).

  • Hypothesis Testing for a Difference in Proportions:

    • Hypotheses:     H0:p1−p2=0(i.e., p1=p2)vs.Ha:p1−p2≠0(or Ha:p1−p2>0,  Ha:p1−p2<0)H_0: p_1 - p_2 = 0 \quad (\text{i.e., } p_1 = p_2) \quad \text{vs.} \quad H_a: p_1 - p_2 \ne 0 \quad (\text{or } H_a: p_1 - p_2 > 0, \; H_a: p_1 - p_2 < 0)

    • Null Parameter: 00.

    • The Pooled Proportion (p^\hat{p}):

    • Definition: The combined sample proportion obtained by pooling the successes of both groups across the combined total sample size n1+n2n_1 + n_2.

    • Rationale: Under the null hypothesis H0:p1=p2H_0: p_1 = p_2, both populations share an identical underlying proportion pp. Pooling provides the best, most efficient estimate of this shared parameter.

    • Formula:       p^=total successestotal sample size=x1+x2n1+n2\hat{p} = \frac{\text{total successes}}{\text{total sample size}} = \frac{x_1 + x_2}{n_1 + n_2}

    • Introductory Example: If group 1 has p^1=3850\hat{p}_1 = \frac{38}{50} and group 2 has p^2=4150\hat{p}_2 = \frac{41}{50}, the pooled proportion is:       p^=38+4150+50=79100=0.79\hat{p} = \frac{38 + 41}{50 + 50} = \frac{79}{100} = 0.79

    • Standard Error Under the Null Hypothesis (SEpoolSE_{\text{pool}}):

    • Using the pooled estimate p^\hat{p} for both groups:       SE=p^(1−p^)n1+p^(1−p^)n2SE = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n_1} + \frac{\hat{p}(1 - \hat{p})}{n_2}}

    • Standardized Test Statistic:     Z=(p^1−p^2)−0p^(1−p^)n1+p^(1−p^)n2Z = \frac{(\hat{p}_1 - \hat{p}_2) - 0}{\sqrt{\frac{\hat{p}(1 - \hat{p})}{n_1} + \frac{\hat{p}(1 - \hat{p})}{n_2}}}

    • p-value Computation: Provided the sample size conditions hold (either checking that observed counts in each cell exceed 1010, or that n1p^,n1(1−p^),n2p^,n2(1−p^)≥10n_1\hat{p}, n_1(1-\hat{p}), n_2\hat{p}, n_2(1-\hat{p}) \ge 10), the p-value is calculated from N(0,1)N(0, 1).

  • Comprehensive Worked Example: "Split or Steal" Game Show Decision Analysis:

    • Context: On the British television show Golden Balls, the final round features two contestants deciding whether to "split" or "steal" a jackpot. Payoff matrix: if both split, they divide the money equally; if one splits and the other steals, the stealer takes the entire jackpot; if both steal, both leave with nothing. Researchers analyzed 287287 episodes, recording 574574 total individual decisions classified by contestant age.

    • Contingency Data Table:

    • Under 40: 187187 Split, 195195 Steal, Total nY=382n_Y = 382

    • Over 40: 116116 Split, 7676 Steal, Total nO=192n_O = 192

    • Combined Column Totals: 303303 Split, 271271 Steal, Total n=574n = 574

    • Step 1: Hypotheses and Sample Proportions:

    • Let pYp_Y be the proportion of younger players (under 40) who split, and pOp_O be the proportion of older players (over 40) who split.

    • Hypotheses:       H0:pY=pOvs.Ha:pY≠pOH_0: p_Y = p_O \quad \text{vs.} \quad H_a: p_Y \ne p_O

    • Individual sample proportions:       p^Y=187382≈0.4895≈0.490\hat{p}_Y = \frac{187}{382} \approx 0.4895 \approx 0.490       p^O=116192≈0.6042≈0.604\hat{p}_O = \frac{116}{192} \approx 0.6042 \approx 0.604

    • Observed difference in sample proportions:       p^Y−p^O=0.4895−0.6042=−0.1147\hat{p}_Y - \hat{p}_O = 0.4895 - 0.6042 = -0.1147

    • Step 2: Pooled Proportion Calculation:     p^=187+116382+192=303574≈0.52788≈0.528\hat{p} = \frac{187 + 116}{382 + 192} = \frac{303}{574} \approx 0.52788 \approx 0.528     1−p^=1−0.52788=0.47212≈0.4721 - \hat{p} = 1 - 0.52788 = 0.47212 \approx 0.472

    • Step 3: Verification of Conditions:

    • The observed cell counts are 187,195,116,76187, 195, 116, 76, all of which substantially exceed 1010.

    • Expected counts under the pooled model:       nYp^=382(0.52788)≈201.7≥10n_Y \hat{p} = 382(0.52788) \approx 201.7 \ge 10       nY(1−p^)=382(0.47212)≈180.3≥10n_Y(1 - \hat{p}) = 382(0.47212) \approx 180.3 \ge 10       nOp^=192(0.52788)≈101.4≥10n_O \hat{p} = 192(0.52788) \approx 101.4 \ge 10       nO(1−p^)=192(0.47212)≈90.6≥10n_O(1 - \hat{p}) = 192(0.47212) \approx 90.6 \ge 10

    • Conditions for the normal approximation are satisfied.

    • Step 4: Standard Error and Test Statistic Calculation:

    • Pooled standard error calculation:       SE=p^(1−p^)nY+p^(1−p^)nO=0.52788(0.47212)382+0.52788(0.47212)192SE = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n_Y} + \frac{\hat{p}(1 - \hat{p})}{n_O}} = \sqrt{\frac{0.52788(0.47212)}{382} + \frac{0.52788(0.47212)}{192}}       SE=0.24922382+0.24922192=0.00065241+0.00129803=0.00195044≈0.044164SE = \sqrt{\frac{0.24922}{382} + \frac{0.24922}{192}} = \sqrt{0.00065241 + 0.00129803} = \sqrt{0.00195044} \approx 0.044164

    • Standardized test statistic:       Z=p^Y−p^O−0SE=−0.11470.044164≈−2.60(or −2.58 using rounded inputs)Z = \frac{\hat{p}_Y - \hat{p}_O - 0}{SE} = \frac{-0.1147}{0.044164} \approx -2.60 \quad (\text{or } -2.58 \text{ using rounded inputs})

    • Step 5: p-value Calculation and Decision:

    • For a two-tailed test, p-value=2×P(Z≤−2.58)\text{p-value} = 2 \times P(Z \le -2.58).

    • From Table IV, the area to the left of Z=−2.58Z = -2.58 is 0.00490.0049.

    • Two-tailed p-value:       p-value=2×0.0049=0.0098\text{p-value} = 2 \times 0.0049 = 0.0098       (Using Z=−2.60Z = -2.60 gives 2×0.0047=0.00942 \times 0.0047 = 0.0094)

    • Decision: Because p-value≈0.010<α=0.05p\text{-value} \approx 0.010 < \alpha = 0.05, reject H0H_0.

    • Contextual Conclusion: The sample evidence indicates a statistically significant difference between the proportion of younger contestants and older contestants who choose to split the jackpot on Golden Balls (older contestants split significantly more often than younger contestants).

Exam 3 Master Formula Sheet, Terminology, and Review Guide

  • Comprehensive Definitions Checklist:

    • Density Curve: A theoretical model for the distribution of a continuous random variable having total area 11 and where area over any interval equals the proportion of data in that interval.

    • Normal Distribution (N(μ,σ)N(\mu, \sigma)): A symmetric, bell-shaped continuous probability distribution with center μ\mu and scale σ\sigma, where approximately 95%95\% of values fall within (μ−2σ,μ+2σ)(\mu - 2\sigma, \mu + 2\sigma).

    • Standard Normal Distribution (N(0,1)N(0, 1)): The standardized normal distribution having mean μ=0\mu = 0 and standard deviation σ=1\sigma = 1.

    • Standardized Test Statistic (ZZ):     Z=sample statistic−null parameterSEZ = \frac{\text{sample statistic} - \text{null parameter}}{SE}     Measures the distance between the observed statistic and the hypothesized null value in units of standard error.

    • p-value: The probability, assuming the null hypothesis is true, of obtaining a sample statistic at least as extreme as the observed statistic, calculated as tail area(s) from a randomization or standard normal distribution.

    • Standard Error (SESE): The standard deviation of a sampling distribution of a statistic.

    • Confidence Interval: An interval estimate for an unknown population parameter constructed as sample statistic±z∗⋅SE\text{sample statistic} \pm z^* \cdot SE.

    • Pooled Proportion (p^\hat{p}): The overall proportion of successes across two samples combined into a single pooled group of size n1+n2n_1 + n_2.

  • Master Formula Comparison Table:

Setting

Context

Parameter

Sample Statistic

Standard Error (SESE)

Normality Conditions

Single Proportion

Confidence Interval

pp

p^\hat{p}

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

np^≥10n\hat{p} \ge 10, n(1−p^)≥10n(1 - \hat{p}) \ge 10

Single Proportion

Hypothesis Test

pp

p^\hat{p}

SE0=p0(1−p0)nSE_0 = \sqrt{\frac{p_0(1 - p_0)}{n}}

np0≥10np_0 \ge 10, n(1−p0)≥10n(1 - p_0) \ge 10

Difference in Proportions

Confidence Interval

p1−p2p_1 - p_2

p^1−p^2\hat{p}_1 - \hat{p}_2

SE=p^1(1−p^1)n1+p^2(1−p^2)n2SE = \sqrt{\frac{\hat{p}_1(1 - \hat{p}_1)}{n_1} + \frac{\hat{p}_2(1 - \hat{p}_2)}{n_2}}

n1p^1,n1(1−p^1),n2p^2,n2(1−p^2)≥10n_1\hat{p}_1, n_1(1-\hat{p}_1), n_2\hat{p}_2, n_2(1-\hat{p}_2) \ge 10

Difference in Proportions

Hypothesis Test

p1−p2p_1 - p_2

p^1−p^2\hat{p}_1 - \hat{p}_2

SEpool=p^(1−p^)n1+p^(1−p^)n2SE_{\text{pool}} = \sqrt{\frac{\hat{p}(1 - \hat{p})}{n_1} + \frac{\hat{p}(1 - \hat{p})}{n_2}}

n1p^,n1(1−p^),n2p^,n2(1−p^)≥10n_1\hat{p}, n_1(1-\hat{p}), n_2\hat{p}, n_2(1-\hat{p}) \ge 10

  • Sample Size Determination for a Desired Margin of Error:   n=(z∗ME)2p~(1−p~)n = \left(\frac{z^*}{ME}\right)^2 \tilde{p}(1 - \tilde{p})

    • Use prior estimate p~=p^\tilde{p} = \hat{p} if known; otherwise use conservative default p~=0.5\tilde{p} = 0.5.

    • Always round up to the next integer.

  • Standard Critical Values Reference Table:

Confidence Level

Total Area Excluded in Both Tails

Area in One Tail

Critical Value (z∗z^*)

90%

0.100.10

0.050.05

1.6451.645

95%

0.050.05

0.0250.025

1.9601.960

99%

0.010.01

0.0050.005

2.5762.576

  • Key Skills and Problem-Solving Strategy Checklist:

    • Estimate areas underneath density curves ensuring sum of all regions equals 1.01.0.

    • Standardize and unstandardize normal random variables via Z=X−μσZ = \frac{X - \mu}{\sigma} and X=μ+ZσX = \mu + Z\sigma.

    • Calculate probabilities and percentiles utilizing cumulative standard normal tables (Table IV).

    • Identify the approximating normal model for a randomization distribution: N(null parameter,SE)N(\text{null parameter}, SE).

    • Identify the approximating normal model for a bootstrap distribution: N(sample statistic,SE)N(\text{sample statistic}, SE).

    • Recognize when to substitute p^\hat{p} versus the null value p0p_0 or pooled value p^\hat{p} into the standard error formula.

    • Verify sample size criteria (≥10\ge 10 successes and failures) before applying normal distribution procedures.