Stats Recitation: Sampling Distributions, Confidence Intervals, and t-Intervals

Sampling Distributions and the Central Limit Theorem

  • Parameters vs. Statistics:

    • A parameter is a numerical summary of a population (such as the population mean mm or μ\mu, and population standard deviation σ\sigma).

    • A statistic is a numerical summary computed from a sample (such as the sample mean xˉ\bar{x} or MM, and sample standard deviation ss).

  • Central Limit Theorem (CLT):

    • When drawing a random sample of size nn from any population, the sampling distribution of the sample mean xˉ\bar{x} approaches a normal distribution as the sample size increases.

    • Threshold requirement: n≥30n \ge 30.

  • Transitioning from Individual Observations to Sample Distributions:

    • When sample size nn is introduced, the population parameters mm and σ\sigma transition to sampling distribution parameters mxˉm_{\bar{x}} and σxˉ\sigma_{\bar{x}}.

    • The mean of the sampling distribution remains equal to the population mean: mxˉ=mm_{\bar{x}} = m.

    • The standard error (standard deviation of the sampling distribution) is divided by the square root of nn: σxˉ=σn\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}}.

  • Comparative Worked Example (Individual vs. Sample Mean):

    • Case 1: Individual Observation (n=1n = 1):

    • Given parameters: Mean m=150m = 150, standard deviation σ=20\sigma = 20.

    • Objective: Calculate the probability that an individual observation exceeds 165165, denoted as P(X>165)P(X > 165).

    • Compute the standard normal test statistic (ZZ-score):       Z=X−mσ=165−15020=1520=0.75Z = \frac{X - m}{\sigma} = \frac{165 - 150}{20} = \frac{15}{20} = 0.75

    • Determine probability using cumulative distribution tables:       P(Z>0.75)=1−0.7734=0.2266P(Z > 0.75) = 1 - 0.7734 = 0.2266

    • Case 2: Sample Mean Distribution (n=9n = 9):

    • Given: Sample size n=9n = 9, baseline mean m=150m = 150, baseline standard deviation σ=20\sigma = 20.

    • Define sampling parameters:       mxˉ=150m_{\bar{x}} = 150       σxˉ=σn=209=203=6.67\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}} = \frac{20}{\sqrt{9}} = \frac{20}{3} = 6.67

    • Objective: Calculate P(Xˉ>165)P(\bar{X} > 165).

    • Compute the standard normal test statistic using standard error (σxˉ=6.667\sigma_{\bar{x}} = 6.667):       P(Z>165−1506.667)=P(Z>2.25)P\left(Z > \frac{165 - 150}{6.667}\right) = P(Z > 2.25)

    • Determine probability using cumulative distribution tables:       P(Z>2.25)=1−0.9878=0.0122P(Z > 2.25) = 1 - 0.9878 = 0.0122

Confidence Intervals for a Population Mean with Known Variance (zz-Intervals)

  • Formula and Definition:

    • When the population standard deviation σ\sigma is known (or when sample size nn is large and σ\sigma is modeled via standard normal critical values zz):     xˉ±Zα/2[σn]\bar{x} \pm Z_{\alpha/2} \left[\frac{\sigma}{\sqrt{n}}\right]

    • Here, α=1−Confidence Level\alpha = 1 - \text{Confidence Level}, and α2\frac{\alpha}{2} represents the area in each tail of the standard normal distribution.


Handwritten calculations and normal curve sketches for sampling distributions, z-intervals, and t-intervals
  • Confidence Level Trade-Off (95%95\% vs. 90%90\%):

    • Higher confidence requires capturing a larger portion of the central area under the curve, leaving smaller tails (e.g., 2.5%2.5\% per tail for 95%95\% confidence vs. 5%5\% per tail for 90%90\% confidence).

    • Principle: More confident   ⟹  \implies longer (wider) interval.

  • Worked Example: Estimating Apple Yield:

    • Given data: Sample size n=64n = 64, sample mean xˉ=140\bar{x} = 140, standard deviation σ=20\sigma = 20, confidence level = 95%95\%.

    • Determine significance level and critical value:     1−0.95=0.05  ⟹  α=0.051 - 0.95 = 0.05 \implies \alpha = 0.05     α2=0.052=0.025\frac{\alpha}{2} = \frac{0.05}{2} = 0.025     Z0.025=1.96Z_{0.025} = 1.96

    • Calculate margin of error:     E=Zα/2[σn]=1.96[2064]=1.96[208]=1.96[2.5]=4.90E = Z_{\alpha/2} \left[\frac{\sigma}{\sqrt{n}}\right] = 1.96 \left[\frac{20}{\sqrt{64}}\right] = 1.96 \left[\frac{20}{8}\right] = 1.96 [2.5] = 4.90

    • Construct the confidence interval:     140±4.90140 \pm 4.90     (135.1,144.9)(135.1, 144.9)

    • Formal interpretation: We are 95%95\% confident the number of apples is between 135.1135.1 and 144.9144.9.

Sample Size Determination for Estimating a Population Mean

  • Sample Size Formula:

    • Derived by setting the margin of error (or bound BB) equal to Zα/2(σn)Z_{\alpha/2} \left(\frac{\sigma}{\sqrt{n}}\right) and solving for nn:     n=(σZα/2B)2n = \left(\frac{\sigma Z_{\alpha/2}}{B}\right)^2

  • Worked Example: Sample Size for Specified Precision:

    • Given: σ=20\sigma = 20, desired 90%90\% confidence interval within a margin of error of B=±3B = \pm 3.

    • Determine critical value:     α=1−0.90=0.10\alpha = 1 - 0.90 = 0.10     α2=0.102=0.05\frac{\alpha}{2} = \frac{0.10}{2} = 0.05     Z0.05=1.6449Z_{0.05} = 1.6449

    • Calculate required sample size nn:     n=(20×1.64493)2=(32.8983)2=(10.966)2=120.25≈121n = \left(\frac{20 \times 1.6449}{3}\right)^2 = \left(\frac{32.898}{3}\right)^2 = (10.966)^2 = 120.25 \approx 121

    • Rule: Round up to the next integer to guarantee the margin of error does not exceed the bound BB, yielding n=121n = 121.

Small Sample Inference with Unknown Variance (tt-Intervals)

  • Conditions for Using the Student's tt-Distribution:

    • Applied when the sample size nn is small (n<30n < 30) and the population standard deviation σ\sigma is unknown, requiring the use of the sample standard deviation ss.

    • Degrees of freedom: df=n−1df = n - 1.

    • Formula for the confidence interval:     xˉ±tα/2[sn]\bar{x} \pm t_{\alpha/2} \left[\frac{s}{\sqrt{n}}\right]

  • Worked Example: Small Sample Mean Estimation:

    • Given data: Sample size n=16n = 16, sample mean xˉ=140\bar{x} = 140, sample standard deviation s=22s = 22, confidence level = 95%95\%.

    • Determine degrees of freedom and tail area:     df=n−1=16−1=15df = n - 1 = 16 - 1 = 15     1−0.95=0.05  ⟹  α2=0.0251 - 0.95 = 0.05 \implies \frac{\alpha}{2} = 0.025

    • Look up critical value for df=15df = 15 with tail area 0.0250.025:     t0.025,15=2.1314t_{0.025, 15} = 2.1314

    • Compute standard error and margin of error:     sn=2216=224=5.5\frac{s}{\sqrt{n}} = \frac{22}{\sqrt{16}} = \frac{22}{4} = 5.5     E=2.1314×5.5=11.7227≈11.7E = 2.1314 \times 5.5 = 11.7227 \approx 11.7

    • Construct interval:     140±11.7140 \pm 11.7

    • Upper limit: 140+11.7=151.7140 + 11.7 = 151.7

    • Lower limit: Transcribed in course records as 138.3138.3 (mathematical difference 140−11.7=128.3140 - 11.7 = 128.3).

Large-Sample Inferences and Sample Size for Population Proportions

  • Confidence Intervals for Proportions:

    • Population parameter: pp (the true proportion of the population possessing a given attribute).

    • Sample proportion estimator: p^=xn\hat{p} = \frac{x}{n}, where xx is the number of successes in nn trials.

    • Standard error of the proportion: p^(1−p^)n\sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}.

    • Large-sample confidence interval formula:     p^±Zα/2p^(1−p^)n\hat{p} \pm Z_{\alpha/2} \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}}


Diagram of population and sample proportions with normal distribution confidence interval calculations
  • Practice Problem 8.110: European Travel Destinations:

    • Scenario: A survey of European trip planning.

    • Population (POPPOP): All families planning a trip to Europe.

    • Parameter pp: Percentage of the European trip planning population that want to visit France.

    • Sample data: Sample size n=125n = 125 families, with x=15x = 15 wanting to go to France.

    • Point estimate:       p^=xn=15125=0.12\hat{p} = \frac{x}{n} = \frac{15}{125} = 0.12

    • Compute 98%98\% Confidence Interval for the True Proportion:

    • Significance level:       α=1−0.98=0.02\alpha = 1 - 0.98 = 0.02       α2=0.01\frac{\alpha}{2} = 0.01

    • Critical value for tail area 0.010.01:       Z0.01=2.3263Z_{0.01} = 2.3263

    • Margin of error calculation:       E=Zα/2p^(1−p^)n=2.32630.12(1−0.12)125=2.32630.12(0.88)125=2.3263×0.02905=0.0676≈0.07E = Z_{\alpha/2} \sqrt{\frac{\hat{p}(1 - \hat{p})}{n}} = 2.3263 \sqrt{\frac{0.12(1 - 0.12)}{125}} = 2.3263 \sqrt{\frac{0.12(0.88)}{125}} = 2.3263 \times 0.02905 = 0.0676 \approx 0.07

    • Interval calculation:       p^±E=0.12±0.07\hat{p} \pm E = 0.12 \pm 0.07       [0.05,0.19][0.05, 0.19]

    • Conclusion: We are 98%98\% confident that 0.05≤p≤0.190.05 \le p \le 0.19.

  • Sample Size Determination for Proportions Without Prior Estimates:

    • When no prior estimate of p^\hat{p} is available, set p^=0.5\hat{p} = 0.5 to maximize the product p^(1−p^)=0.5(0.5)=0.25\hat{p}(1 - \hat{p}) = 0.5(0.5) = 0.25, ensuring a conservative (maximum) sample size.

    • Sample size formula:     n=p^(1−p^)(ZB)2n = \hat{p}(1 - \hat{p}) \left(\frac{Z}{B}\right)^2

    • Application: Require bound of error B=0.05B = 0.05 at 98%98\% confidence (Z=2.3263Z = 2.3263):     n=0.5(1−0.5)(2.32630.05)2=0.25(46.526)2=0.25×2164.67=541.17≈542n = 0.5(1 - 0.5) \left(\frac{2.3263}{0.05}\right)^2 = 0.25 \left(46.526\right)^2 = 0.25 \times 2164.67 = 541.17 \approx 542

Systematic Factors Controlling Margin of Error

  • Conditions That Reduce Margin of Error:

    • The margin of error is defined as E=Zα/2(σn)E = Z_{\alpha/2} \left(\frac{\sigma}{\sqrt{n}}\right).

    • A smaller margin of error (higher precision) is achieved by:

    • Lowering the population standard deviation σ\sigma (variability lower than expected).

    • Lowering the confidence level (which decreases critical value Zα/2Z_{\alpha/2} or tα/2t_{\alpha/2}).

    • Increasing the sample size nn (which increases the denominator n\sqrt{n}).

Comprehensive Homework and Recitation Problem Sets

  • Problem 1: Standard Normal Critical Value for 99%99\% Confidence:

    • Target: Find the ZZ-score corresponding to a central area of 0.990.99.

    • Tail area:     1−0.992=0.005\frac{1 - 0.99}{2} = 0.005

    • Critical value:     Z(0.005)=2.5758Z(0.005) = 2.5758

  • Problem 2: Mining Closure Operation Days:

    • Study context: Over 3030 years, closed ≥6,000\ge 6,000 mines out of a total population of 17,00017,000.

    • Sample parameters: Random sample of n=40n = 40 days (40≥3040 \ge 30, satisfying CLT), sample mean xˉ=15.07\bar{x} = 15.07, population standard deviation σ=1.8\sigma = 1.8, confidence level = 95%95\%.

    • Significance level and critical value:     1−0.95=0.05  ⟹  α2=0.0251 - 0.95 = 0.05 \implies \frac{\alpha}{2} = 0.025     Z(0.025)=1.9600Z(0.025) = 1.9600

    • Margin of error computation:     E=Zα/2σn=1.96⋅1.840=1.96⋅1.86.324555=1.96×0.2846=0.558E = Z_{\alpha/2} \frac{\sigma}{\sqrt{n}} = 1.96 \cdot \frac{1.8}{\sqrt{40}} = 1.96 \cdot \frac{1.8}{6.324555} = 1.96 \times 0.2846 = 0.558

    • Boundary calculations:     15.07±0.55815.07 \pm 0.558

    • Upper boundary: 15.07+0.558=15.6315.07 + 0.558 = 15.63

    • Lower boundary: 15.07−0.558=14.5115.07 - 0.558 = 14.51

  • Problem 3: Multiple Sample Mean Evaluations and Standard Errors:

    • Sample size rs=15rs = 15:

    • Mean M=38.1M = 38.1, σ=1.0\sigma = 1.0, confidence level = 95%95\%.

    • Standard error calculation:       σrs=1.015=0.2582\frac{\sigma}{\sqrt{rs}} = \frac{1.0}{\sqrt{15}} = 0.2582

    • Margin of error:       E=1.96×0.2582=±0.51E = 1.96 \times 0.2582 = \pm 0.51

    • Sample size 1010:

    • Given sample mean: M(Size 10)=39.75M(\text{Size } 10) = 39.75.

  • Problem 4: Oocyte Counts in Age Cohort:

    • Given data: Sample size n=98n = 98, subject age cohort 36–40 years old36\text{--}40\,\text{years old}, sample mean M=9.7M = 9.7, confidence level = 95%95\%.

    • Resulting standard normal interval: (8.3,11.1)(8.3, 11.1).

    • Interpretation: We are 95%95\% confident that the true mean of all oocytes is between 8.38.3 and 11.111.1.

  • Problem 5: Normal Distribution Mean Estimation (n=18n = 18):

    • Given parameters: Sample mean xˉ=57,500\bar{x} = 57,500, standard deviation σ=9,500\sigma = 9,500, sample size n=18n = 18, confidence level = 90%90\%.

    • Critical value:     α=1−0.90=0.10  ⟹  α2=0.05\alpha = 1 - 0.90 = 0.10 \implies \frac{\alpha}{2} = 0.05     Z0.05=1.6449Z_{0.05} = 1.6449

    • Margin of error computation:     E=1.6449×9,50018=1.6449×9,5004.24264=1.6449×2239.17=3,683E = 1.6449 \times \frac{9,500}{\sqrt{18}} = 1.6449 \times \frac{9,500}{4.24264} = 1.6449 \times 2239.17 = 3,683

    • Construct interval:     57,500±3,68357,500 \pm 3,683

    • Upper limit: 57,500+3,683=61,18357,500 + 3,683 = 61,183

    • Lower limit: 57,500−3,683=53,81757,500 - 3,683 = 53,817

  • Problem 6: Sample Size for Specified Margins of Error (90%90\% Confidence):

    • Formula:     n=(Z⋅σE)2n = \left(\frac{Z \cdot \sigma}{E}\right)^2

    • Parameters: σ=9,500\sigma = 9,500, Z=1.645Z = 1.645.

    • Case A: Bound of Error E=3,000E = 3,000:     n=(1.645×9,5003,000)2=(15,627.53,000)2=(5.209)2=27.13  ⟹  n=28n = \left(\frac{1.645 \times 9,500}{3,000}\right)^2 = \left(\frac{15,627.5}{3,000}\right)^2 = (5.209)^2 = 27.13 \implies n = 28

    • Case B: Bound of Error E=1,000E = 1,000:     n=(1.645×9,5001,000)2=(15.6275)2=244.2  ⟹  n=245n = \left(\frac{1.645 \times 9,500}{1,000}\right)^2 = (15.6275)^2 = 244.2 \implies n = 245

  • Problem 7: Infant Birth Weight Sample Size Determination:

    • Parameters: Mean m=3,600m = 3,600, standard deviation σ=600\sigma = 600, confidence level = 99%99\%, desired bound within E=150 gE = 150\,g.

    • Critical value for 99%99\% confidence: Z=2.576Z = 2.576.

    • Sample size computation:     n=(Z⋅σE)2=(2.576×600150)2=(1,545.6150)2=(10.304)2=106.17≈106.7  ⟹  n=107 babiesn = \left(\frac{Z \cdot \sigma}{E}\right)^2 = \left(\frac{2.576 \times 600}{150}\right)^2 = \left(\frac{1,545.6}{150}\right)^2 = (10.304)^2 = 106.17 \approx 106.7 \implies n = 107\,\text{babies}

  • Problem 8: Sampling Methodology:

    • Design requirement: Simple random sample (SRSSRS) required for unbiased parameter estimation.

  • Problem 12: High-Precision Mean Estimation (n=37n = 37):

    • Parameters: Sample size n=37n = 37, sample mean xˉ=16.93514\bar{x} = 16.93514, population standard deviation σ=2.5\sigma = 2.5, sample standard deviation s=2.7s = 2.7, confidence level = 99%99\%.

    • Standard error computation:     SE=σn=2.537=2.56.08276=0.41100SE = \frac{\sigma}{\sqrt{n}} = \frac{2.5}{\sqrt{37}} = \frac{2.5}{6.08276} = 0.41100

    • Margin of error (Z0.005=2.5758Z_{0.005} = 2.5758):     E=2.5758×0.41100=1.05866E = 2.5758 \times 0.41100 = 1.05866

    • Confidence interval limits:     xˉ±E=16.93514±1.05866\bar{x} \pm E = 16.93514 \pm 1.05866

    • Lower boundary: 16.935−1.05866=15.876316.935 - 1.05866 = 15.8763

    • Upper boundary: 16.935+1.05866=17.998716.935 + 1.05866 = 17.9987

  • Problem 13: Aggregated Sample Estimation (n=45n = 45):

    • Parameters: Sample size n=45n = 45, sum of observations ∑X=935.3\sum X = 935.3, standard deviation σ=2.7\sigma = 2.7, confidence level = 99%99\%.

    • Sample mean:     xˉ=935.345=20.784\bar{x} = \frac{935.3}{45} = 20.784

    • Standard error:     SE=σn=2.745=2.76.7082=0.4024922SE = \frac{\sigma}{\sqrt{n}} = \frac{2.7}{\sqrt{45}} = \frac{2.7}{6.7082} = 0.4024922

    • Margin of error (Z0.005=2.5758Z_{0.005} = 2.5758):     E=2.5758×0.4024922=1.0367513E = 2.5758 \times 0.4024922 = 1.0367513

    • Confidence interval upper bound:     xˉ+E=20.784+1.0367513=21.8211957\bar{x} + E = 20.784 + 1.0367513 = 21.8211957

  • Problem 14: Comparative Analysis of Powder Depth:

    • Confidence interval for Breckenridge: (15.8763,17.9987)(15.8763, 17.9987).

    • Comparative site confidence interval: (19,21)(19, 21).

    • Observational finding: The intervals do not overlap; there is a large gap between the mean powder depth intervals.

  • Problem 15: Critical Value Lookups:

    • Distribution parameter: t0.0001,3=22.2037t_{0.0001, 3} = 22.2037.

  • Problem 16: Small Sample tt-Interval with Unknown Variance (n=27n = 27):

    • Given data: Sample size n=27n = 27, sample mean xˉ=211.2\bar{x} = 211.2, variance measure s2=6,344.37s^2 = 6,344.37, confidence level = 95%95\%.

    • Degrees of freedom and significance level:     df=n−1=27−1=26df = n - 1 = 27 - 1 = 26     1−0.95=0.05  ⟹  α2=0.0251 - 0.95 = 0.05 \implies \frac{\alpha}{2} = 0.025

    • Look up critical value: Evaluate critical value at df=26df = 26 with tail area 0.0250.025.

    • Confidence interval formula:     xˉ±tα/2,26[sn]\bar{x} \pm t_{\alpha/2, 26} \left[\frac{s}{\sqrt{n}}\right]

  • Problem 17: Small Sample Assessment (n=21n = 21):

    • Given data: Sample size n=21n = 21, sample mean xˉ=37.8\bar{x} = 37.8, sample standard deviation s=5.9s = 5.9, confidence level = 90%90\%.

    • Degrees of freedom:     df=n−1=21−1=20df = n - 1 = 21 - 1 = 20

    • Significance level:     α=1−0.90=0.10  ⟹  α2=0.05\alpha = 1 - 0.90 = 0.10 \implies \frac{\alpha}{2} = 0.05

    • Critical value for df=20df = 20 with tail area 0.050.05:     t0.05,20=1.7247t_{0.05, 20} = 1.7247

    • Margin of error calculation:     E=tα/2(sn)=1.7247(5.921)=1.7247(5.94.5825757)=1.7247×1.28748=2.2205E = t_{\alpha/2} \left(\frac{s}{\sqrt{n}}\right) = 1.7247 \left(\frac{5.9}{\sqrt{21}}\right) = 1.7247 \left(\frac{5.9}{4.5825757}\right) = 1.7247 \times 1.28748 = 2.2205

    • Confidence interval:     37.8±2.220537.8 \pm 2.2205

    • Upper boundary: 37.8+2.2205=40.020537.8 + 2.2205 = 40.0205

    • Lower boundary: 37.8−2.2205=35.579537.8 - 2.2205 = 35.5795