APPM1022A - Mathematical Statistics for Construction: Chapter 1 Sampling Distribution

Sampling Distributions and the Central Limit Theorem

  • Fundamental Concepts of Sampling:

    • Population vs. Sample: In construction and engineering environments, measuring every single element produced—such as every concrete cylinder or weld—is practically impossible. Instead, an observable subset of size nn is extracted from the broader population of size NN.

    • Sample: A collection of observable random variables X1,X2,…,XnX_1, X_2, \dots, X_n, where the integer nn defines the sample size.

    • Random Sample: A set of nn independent and identically distributed (iidiid) random variables X1,X2,…,XnX_1, X_2, \dots, X_n. Identically distributed signifies that every individual random variable XiX_i possesses the identical probability distribution.

    • Statistic: Any mathematical function TT of the observable random variables X1,X2,…,XnX_1, X_2, \dots, X_n that does not depend on any unknown population parameters.

    • Sampling Distribution: The probability distribution of a given sample statistic (such as the sample mean Xˉ\bar{X} or sample proportion p^\hat{p}) generated by repeatedly drawing samples of size nn from the target population.

  • Common Sampling Methodologies:

    • Stratified Sampling ("Guaranteed Coverage" Method): The entire population is divided into distinct, non-overlapping subgroups or strata; every group is tested, but only a few representative elements are drawn from each subgroup.

    • Cluster Sampling ("Energy-Saver" Method): The population is partitioned into clusters; only a few clusters are selected for testing, but many or all individuals inside those chosen clusters are evaluated.

    • Systematic Sampling ("Assembly-Line" Method): Elements are sampled in a steady, predictable rhythm or fixed intervals (for instance, testing every kk-th unit on a production conveyor).

  • The Central Limit Theorem (CLT):

    • Formal Theorem: Let X1,X2,…,XnX_1, X_2, \dots, X_n denote a random sample (iidiid random variables) extracted from a population characterized by mean μ\mu and finite variance σ2>0\sigma^2 > 0. Defining the sample mean as:     Xˉn=1n∑i=1nXi\bar{X}_n = \frac{1}{n} \sum_{i=1}^{n} X_i     As n→∞n \to \infty, the standardized sample mean converges in distribution to a standard normal random variable, regardless of the shape or skew of the underlying population distribution:     Xˉn−μσ/n→dN(0,1)\frac{\bar{X}_n - \mu}{\sigma / \sqrt{n}} \xrightarrow{d} N(0, 1)

    • Finite-Sample Approximation: For sufficiently large finite samples (typically n≥30n \ge 30 or when the underlying population is inherently normal), the distribution of the sample mean is approximated by:     Xˉn∼˙N(μ,σ2n)\bar{X}_n \dot{\sim} N\left(\mu, \frac{\sigma^2}{n}\right)

    • Equivalent Statement for the Sum: Defining the sum of observations as Sn=X1+⋯+Xn=nXˉnS_n = X_1 + \dots + X_n = n\bar{X}_n, the standardized sum satisfies:     Sn−nμσn→dN(0,1)\frac{S_n - n\mu}{\sigma\sqrt{n}} \xrightarrow{d} N(0, 1)

    • Center and Spread: The expected value of all possible sample averages equals the true population mean (μxˉ=μ\mu_{\bar{x}} = \mu). The variability of sample averages is governed by the Standard Error (SESE):     SE=σnSE = \frac{\sigma}{\sqrt{n}}

    • Finite Population Correction (FPC): When sampling without replacement from a finite population of size NN, the mean and standard error of the sample mean are governed by:     μxˉ=μ\mu_{\bar{x}} = \mu     σxˉ=σN−nNn−n\sigma_{\bar{x}} = \sigma \sqrt{\frac{N - n}{Nn - n}}

  • Standardized ZZ-Score for Sample Means:

    • Transition from Individual to Mean: Standardizing an individual measurement converts z=x−μσz = \frac{x - \mu}{\sigma} into a metric measuring the dispersion of sample averages:     z=xˉ−μσ/nz = \frac{\bar{x} - \mu}{\sigma / \sqrt{n}}

    • Structural Components of the ZZ-Formula:

    • Numerator (xˉ−μ\bar{x} - \mu): Quantifies the absolute distance between the observed sample average and the expected population center.

    • Denominator (σ/n\sigma / \sqrt{n}): Represents the expected chance variation ("wobble") of a sample mean of size nn.

    • Quotient (zz): Expresses how many standard errors the observed sample mean lies away from the hypothesized target.

  • Sampling Distributions of Proportions and Differences:

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

    • Applied to binary engineering outcomes (e.g., whether a weld passes inspection or a road segment cracks within 5 years).

    • For population success parameter pp and failure parameter q=1−pq = 1 - p, with sample proportion p^=xn\hat{p} = \frac{x}{n} (xx being the count of successes):       μp=p\mu_p = p       σp=pqn\sigma_p = \sqrt{\frac{pq}{n}}       z=p^−ppqnz = \frac{\hat{p} - p}{\sqrt{\frac{pq}{n}}}

    • Sampling Distribution of Differences in Means:

    • Given two populations with parameters (μ1,σ1)(\mu_1, \sigma_1) and (μ2,σ2)(\mu_2, \sigma_2), with independent samples n1n_1 and n2n_2:       μ(xˉ1−xˉ2)=μ1−μ2\mu_{(\bar{x}_1 - \bar{x}_2)} = \mu_1 - \mu_2       σ(xˉ1−xˉ2)=σ12n1+σ22n2\sigma_{(\bar{x}_1 - \bar{x}_2)} = \sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}

    • Sampling Distribution of Differences in Proportions:

    • For independent binomial samples with parameters p1,q1,n1p_1, q_1, n_1 and p2,q2,n2p_2, q_2, n_2 where n1,n2≥30n_1, n_2 \ge 30:       μ(p1−p2)=p1−p2\mu_{(p_1 - p_2)} = p_1 - p_2       σ(p1−p2)=σp12+σp22=p1q1n1+p2q2n2\sigma_{(p_1 - p_2)} = \sqrt{\sigma_{p_1}^2 + \sigma_{p_2}^2} = \sqrt{\frac{p_1 q_1}{n_1} + \frac{p_2 q_2}{n_2}}       z=p^1−p^2−(p1−p2)p1q1n1+p2q2n2z = \frac{\hat{p}_1 - \hat{p}_2 - (p_1 - p_2)}{\sqrt{\frac{p_1 q_1}{n_1} + \frac{p_2 q_2}{n_2}}}

  • Worked Examples and Problem Scenarios:

    • Discrete Population Sampling Without Replacement: For a population {1,2,3,4,5}\{1, 2, 3, 4, 5\} evaluating all possible samples of size n=3n = 3, or population {2,4,6,8}\{2, 4, 6, 8\} evaluating samples of size n=2n = 2, calculate the mean of each sample combination to construct the discrete sampling distribution of Xˉ\bar{X} and verify that the grand mean of sample means equals the population mean μ\mu.

    • Soft Drink Can Fill Volume: A beverage canning line dispenses cans with mean volume μ=350 ml\mu = 350\text{ ml} and σ=25 ml\sigma = 25\text{ ml}. For a random sample of n=10n = 10 cans:     SE=2510≈7.9057 mlSE = \frac{25}{\sqrt{10}} \approx 7.9057\text{ ml}     Evaluating the probability that the sample mean falls within 15 ml15\text{ ml} of 350 ml350\text{ ml} involves finding P(335≤Xˉ≤365)P(335 \le \bar{X} \le 365), which translates to:     z=±157.9057≈±1.90z = \frac{\pm 15}{7.9057} \approx \pm 1.90     P(−1.90≤Z≤1.90)=2×0.4713=0.9426P(-1.90 \le Z \le 1.90) = 2 \times 0.4713 = 0.9426

    • Community Intelligence Scores: For normally distributed IQ scores with μ=100\mu = 100 and σ=15\sigma = 15, the probability of selecting an individual with an IQ of 140 or higher is computed via:     z=140−10015=2.67z = \frac{140 - 100}{15} = 2.67     P(X≥140)=P(Z≥2.67)=0.5−0.4962=0.0038P(X \ge 140) = P(Z \ge 2.67) = 0.5 - 0.4962 = 0.0038

    • Tool Production Defect Rates: A machine generates 2%2\% defective tools (p=0.02,q=0.98p = 0.02, q = 0.98). In a sample of n=400n = 400 tools:     σp=0.02×0.98400=0.0196400=0.007\sigma_p = \sqrt{\frac{0.02 \times 0.98}{400}} = \sqrt{\frac{0.0196}{400}} = 0.007

    • (a) Probability that 3%3\% or more are defective (p^≥0.03\hat{p} \ge 0.03):       z=0.03−0.020.007≈1.43z = \frac{0.03 - 0.02}{0.007} \approx 1.43       P(p^≥0.03)=P(Z≥1.43)=0.5−0.4236=0.0764P(\hat{p} \ge 0.03) = P(Z \ge 1.43) = 0.5 - 0.4236 = 0.0764

    • (b) Probability that 2%2\% or fewer are defective (p^≤0.02\hat{p} \le 0.02):       z=0.02−0.020.007=0z = \frac{0.02 - 0.02}{0.007} = 0       P(p^≤0.02)=0.5000P(\hat{p} \le 0.02) = 0.5000

    • Manufacturer Light Bulb Lifespan Comparison: Manufacturer A produces bulbs with μA=1400 h\mu_A = 1400\text{ h} and σA=200 h\sigma_A = 200\text{ h}; Manufacturer B produces bulbs with μB=1200 h\mu_B = 1200\text{ h} and σB=100 h\sigma_B = 100\text{ h}. Testing independent samples of nA=nB=125n_A = n_B = 125 bulbs yields:     μ(XˉA−XˉB)=1400−1200=200 h\mu_{(\bar{X}_A - \bar{X}_B)} = 1400 - 1200 = 200\text{ h}     σ(XˉA−XˉB)=2002125+1002125=40000+10000125=400=20 h\sigma_{(\bar{X}_A - \bar{X}_B)} = \sqrt{\frac{200^2}{125} + \frac{100^2}{125}} = \sqrt{\frac{40000 + 10000}{125}} = \sqrt{400} = 20\text{ h}

    • (a) Probability of mean lifetime at least 160 h160\text{ h} greater (XˉA−XˉB≥160\bar{X}_A - \bar{X}_B \ge 160):       z=160−20020=−2.00z = \frac{160 - 200}{20} = -2.00       P(Z≥−2.00)=0.5+0.4772=0.9772P(Z \ge -2.00) = 0.5 + 0.4772 = 0.9772

    • (b) Probability of mean lifetime at least 250 h250\text{ h} greater (XˉA−XˉB≥250\bar{X}_A - \bar{X}_B \ge 250):       z=250−20020=2.50z = \frac{250 - 200}{20} = 2.50       P(Z≥2.50)=0.5−0.4938=0.0062P(Z \ge 2.50) = 0.5 - 0.4938 = 0.0062

    • Continuous Population Difference: For continuous random variables x∼N(62,102)x \sim N(62, 10^2) and y∼N(21,52)y \sim N(21, 5^2), drawing one random element from each yields difference distribution parameters:     μx−y=62−21=41\mu_{x-y} = 62 - 21 = 41     σx−y=102+52=125≈11.18\sigma_{x-y} = \sqrt{10^2 + 5^2} = \sqrt{125} \approx 11.18     The probability that x−y>50x - y > 50 is:     z=50−4111.18=911.18≈0.81z = \frac{50 - 41}{11.18} = \frac{9}{11.18} \approx 0.81     P(x−y>50)=P(Z>0.81)=0.5−0.2910=0.2090P(x - y > 50) = P(Z > 0.81) = 0.5 - 0.2910 = 0.2090

    • University Female Enrolment Proportions: University A has 50%50\% women (pA=0.50,nA=40p_A = 0.50, n_A = 40); University B has 25%25\% women (pB=0.25,nB=60p_B = 0.25, n_B = 60). The sampling distribution of difference in sample proportions satisfies:     μ(p^A−p^B)=0.50−0.25=0.25\mu_{(\hat{p}_A - \hat{p}_B)} = 0.50 - 0.25 = 0.25     σ(p^A−p^B)=0.50×0.5040+0.25×0.7560=0.2540+0.187560=0.00625+0.003125=0.009375≈0.0968\sigma_{(\hat{p}_A - \hat{p}_B)} = \sqrt{\frac{0.50 \times 0.50}{40} + \frac{0.25 \times 0.75}{60}} = \sqrt{\frac{0.25}{40} + \frac{0.1875}{60}} = \sqrt{0.00625 + 0.003125} = \sqrt{0.009375} \approx 0.0968     The probability of finding more women in sample A than sample B (p^A−p^B>0\hat{p}_A - \hat{p}_B > 0) is:     z=0−0.250.0968≈−2.58z = \frac{0 - 0.25}{0.0968} \approx -2.58     P(Z>−2.58)=0.5+0.4951=0.9951P(Z > -2.58) = 0.5 + 0.4951 = 0.9951

Estimation Theory: Point and Interval Estimation

  • Point Estimation vs. Interval Estimation:

    • Point Estimation: Utilizing a single sample statistic (e.g., sample mean xˉ=42.3 MPa\bar{x} = 42.3\text{ MPa}) as the single best guess for an unknown true population parameter (e.g., μ\mu).


Point Estimation: Sample vs. Population
  • Comparison Between Inference Methods:

    • Estimation: Inquires "Exactly how strong is it?" producing a single point estimate (e.g., "Average yield strength is 42.3 MPa42.3\text{ MPa}") or an interval estimate.

    • Hypothesis Testing: Compares empirical data to historical specifications (e.g., "Is it stronger than the old supplier?") producing a qualitative decision (e.g., "Yes, it is significantly stronger").

  • Dart vs. Net Conceptual Model:

    • A point estimate resembles throwing a single dart at a bullseye; there is substantial risk of missing the true parameter due to sampling sway.

    • An interval estimate resembles throwing a wide net over the target, establishing a bounded numerical range (xˉ±Margin of Error\bar{x} \pm \text{Margin of Error}) that captures the true parameter with specified probability.


Dart vs. Net Analogy for Point and Interval Estimation
  • Properties of Desirable Estimators:

    • Unbiasedness: An estimator is unbiased if the expected value (mean) of its sampling distribution equals the true parameter being estimated (E[θ^]=θE[\hat{\theta}] = \theta). Systematic over- or under-estimation denotes bias.

    • Minimum Variance: Among unbiased estimators, the preferred estimator has the smallest sampling variance, ensuring tighter clustering around the target.

    • Reliability and Sway: Governed directly by the Standard Error (SE=σnSE = \frac{\sigma}{\sqrt{n}}). A small SESE indicates high precision and trustworthy point estimates; an inflated SESE renders point estimates unreliable.

  • Constructing Confidence Intervals:

    • General Structure:     Confidence Interval=Point Estimate±Margin of Error\text{Confidence Interval} = \text{Point Estimate} \pm \text{Margin of Error}     Confidence Interval=Estimator±(z×SE)\text{Confidence Interval} = \text{Estimator} \pm (z \times SE)


Sampling Distribution and 95% Confidence Interval
  • Confidence Level Multipliers and Trade-Offs:

    • 90% Confidence Level: Critical value zα/2=1.645z_{\alpha/2} = 1.645. Used for low-risk, rapid exploratory estimates ("tight net").

    • 95% Confidence Level: Critical value zα/2=1.960z_{\alpha/2} = 1.960. Industry standard default setting ("standard net").

    • 99% Confidence Level: Critical value zα/2=2.576z_{\alpha/2} = 2.576. Applied in life-safety-critical, high-liability, or high-cost structural engineering evaluations ("wide net").

    • Core Trade-Off: Greater statistical confidence necessitates a broader critical multiplier, producing a wider, less precise interval.

  • Standard Confidence Interval Formulas:

    • Single Population Mean (μ\mu):       xˉ±zα/2σn\bar{x} \pm z_{\alpha/2} \frac{\sigma}{\sqrt{n}}

    • Single Population Proportion (pp):       p^±zα/2p^q^n\hat{p} \pm z_{\alpha/2} \sqrt{\frac{\hat{p}\hat{q}}{n}}

    • Difference Between Two Population Means (μ1−μ2\mu_1 - \mu_2):       (xˉ1−xˉ2)±zα/2s12n1+s22n2(\bar{x}_1 - \bar{x}_2) \pm z_{\alpha/2} \sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}

    • Difference Between Two Population Proportions (p1−p2p_1 - p_2):       (p^1−p^2)±zα/2p^1q^1n1+p^2q^2n2(\hat{p}_1 - \hat{p}_2) \pm z_{\alpha/2} \sqrt{\frac{\hat{p}_1\hat{q}_1}{n_1} + \frac{\hat{p}_2\hat{q}_2}{n_2}}

    • The "Zero Rule" for Interval Comparisons:

  • When assessing difference intervals (μ1−μ2\mu_1 - \mu_2 or p1−p2p_1 - p_2):

    • If the confidence interval captures zero within its lower and upper bounds, conclude there is no statistically significant difference between the two populations at the chosen significance level.

    • If the interval is strictly positive (entirely above 0), conclude Group 1 is significantly higher than Group 2.

    • If the interval is strictly negative (entirely below 0), conclude Group 2 is significantly higher than Group 1.

    • Sample Size Determination Formulas:

  • To achieve a specified maximum tolerable margin of error (BB), invert the margin of error equation B=z×σnB = z \times \frac{\sigma}{\sqrt{n}}, yielding:     n=(z×σB)2n = \left(\frac{z \times \sigma}{B}\right)^2

  • For proportions, where B=z×pqnB = z \times \sqrt{\frac{pq}{n}}, inverting gives:     n=z2 p(1−p)B2n = \frac{z^2 \, p(1-p)}{B^2}

  • Conservative Rule for Proportions: When the prior population proportion pp is unknown, assign p=0.5p = 0.5, maximizing the product pq=0.25pq = 0.25 and guaranteeing an adequate sample size.

    • Practical Estimation Case Studies:

  • Client Protein Intake: In a sample of n=50n = 50 nutrition clients, mean intake is xˉ=75 g\bar{x} = 75\text{ g} with s=6 gs = 6\text{ g}. Constructing a 95%95\% confidence interval:     SE=650≈0.8485 gSE = \frac{6}{\sqrt{50}} \approx 0.8485\text{ g}     Margin of Error=1.96×0.8485≈1.663 g\text{Margin of Error} = 1.96 \times 0.8485 \approx 1.663\text{ g}     95% CI=75±1.663=(73.34 g,76.66 g)95\%\text{ CI} = 75 \pm 1.663 = (73.34\text{ g}, 76.66\text{ g})

  • University Large Language Model Usage: A survey of n=200n = 200 Wits university students revealed x=143x = 143 use LLMs regularly (p^=143200=0.715,q^=0.285\hat{p} = \frac{143}{200} = 0.715, \hat{q} = 0.285). For a 98%98\% confidence interval (zα/2=2.326z_{\alpha/2} = 2.326):     SE=0.715×0.285200=0.203775200≈0.03192SE = \sqrt{\frac{0.715 \times 0.285}{200}} = \sqrt{\frac{0.203775}{200}} \approx 0.03192     Margin of Error=2.326×0.03192≈0.0742\text{Margin of Error} = 2.326 \times 0.03192 \approx 0.0742     98% CI=0.715±0.0742=(0.6408,0.7892)  ⟹  (64.08%,78.92%98\%\text{ CI} = 0.715 \pm 0.0742 = (0.6408, 0.7892) \implies (64.08\%, 78.92\%

  • Engineering Industry Gender Pay Gap: Stats SA sampled n1=100n_1 = 100 male engineers (xˉ1=398000 ZAR,s1=80000 ZAR\bar{x}_1 = 398000\text{ ZAR}, s_1 = 80000\text{ ZAR}) and n2=100n_2 = 100 female engineers (xˉ2=358000 ZAR,s2=75000 ZAR\bar{x}_2 = 358000\text{ ZAR}, s_2 = 75000\text{ ZAR}):     xˉ1−xˉ2=398000−358000=40000 ZAR\bar{x}_1 - \bar{x}_2 = 398000 - 358000 = 40000\text{ ZAR}     SE=800002100+750002100=64000000+56250000=120250000≈10965.86 ZARSE = \sqrt{\frac{80000^2}{100} + \frac{75000^2}{100}} = \sqrt{64000000 + 56250000} = \sqrt{120250000} \approx 10965.86\text{ ZAR}     Margin of Error=1.96×10965.86≈21493.08 ZAR\text{Margin of Error} = 1.96 \times 10965.86 \approx 21493.08\text{ ZAR}     95% CI=40000±21493.08=(18506.92 ZAR,61493.08 ZAR)95\%\text{ CI} = 40000 \pm 21493.08 = (18506.92\text{ ZAR}, 61493.08\text{ ZAR})     Because the interval lies entirely above 0 (R18507\text{R}18507 to R61493\text{R}61493), the data demonstrates statistically significant gender disparity favoring male salaries.

  • University Matriculant Enrolment by School Quintile: A sample evaluates n1=150n_1 = 150 Quintile 5 matriculants (x1=60,p^1=0.40x_1 = 60, \hat{p}_1 = 0.40) and n2=150n_2 = 150 Quintile 1–3 matriculants (x2=15,p^2=0.10x_2 = 15, \hat{p}_2 = 0.10). Evaluating at 99%99\% confidence (zα/2=2.576z_{\alpha/2} = 2.576):     p^1−p^2=0.40−0.10=0.30\hat{p}_1 - \hat{p}_2 = 0.40 - 0.10 = 0.30     SE=0.40×0.60150+0.10×0.90150=0.24150+0.09150=0.0016+0.0006=0.0022≈0.0469SE = \sqrt{\frac{0.40 \times 0.60}{150} + \frac{0.10 \times 0.90}{150}} = \sqrt{\frac{0.24}{150} + \frac{0.09}{150}} = \sqrt{0.0016 + 0.0006} = \sqrt{0.0022} \approx 0.0469     Margin of Error=2.576×0.0469≈0.1208\text{Margin of Error} = 2.576 \times 0.0469 \approx 0.1208     99% CI=0.30±0.1208=(0.1792,0.4208)  ⟹  (17.92%,42.08%99\%\text{ CI} = 0.30 \pm 0.1208 = (0.1792, 0.4208) \implies (17.92\%, 42.08\%     Zero is excluded from the interval, verifying substantially higher enrolment rates from affluent schools.

  • Youth Unemployment Sample Sizing: In surveying municipal youth (ages 15–34), national QLFS benchmarks establish p=0.46p = 0.46. For 95%95\% confidence (z=1.96z = 1.96) and a margin of error of 3%3\% (B=0.03B = 0.03):     n=1.962×0.46×0.540.032=3.8416×0.24840.0009≈1060.29  ⟹  n=1061n = \frac{1.96^2 \times 0.46 \times 0.54}{0.03^2} = \frac{3.8416 \times 0.2484}{0.0009} \approx 1060.29 \implies n = 1061     Applying the conservative assumption p=0.50p = 0.50:     n=1.962×0.50×0.500.032=3.8416×0.250.0009≈1067.11  ⟹  n=1068n = \frac{1.96^2 \times 0.50 \times 0.50}{0.03^2} = \frac{3.8416 \times 0.25}{0.0009} \approx 1067.11 \implies n = 1068     If the required precision is relaxed to a 5%5\% margin of error (B=0.05B = 0.05) with p=0.46p = 0.46:     n=1.962×0.46×0.540.052=0.954250.0025≈381.7  ⟹  n=382n = \frac{1.96^2 \times 0.46 \times 0.54}{0.05^2} = \frac{0.95425}{0.0025} \approx 381.7 \implies n = 382

Hypothesis Testing Principles and Large-Sample Z-Tests

  • Core Philosophy and The Courtroom Analogy:

    • Hypothesis testing operates under legal jurisprudence principles: a defendant is presumed innocent until proven guilty beyond a reasonable doubt.

    • Null Hypothesis (H0H_0): Represents the status quo, the manufacturer's claim, or baseline assumption. Assumed true until empirical evidence demonstrates extreme implausibility.

    • Alternative Hypothesis (HaH_a): Represents the research suspicion, potential defect, or assertion being tested. Research does not prove HaH_a directly; rather, sample evidence discredits H0H_0.

  • Mechanics of Hypothesis Testing:

    • Test Statistic (ZZ-score as "The Bouncer"): Quantifies how many standard errors the sample estimate deviates from the null hypothesis baseline:     Z=Sample Estimate−Claimed ValueStandard ErrorZ = \frac{\text{Sample Estimate} - \text{Claimed Value}}{\text{Standard Error}}

    • PP-Value: The exact probability of obtaining a test statistic at least as extreme as the observed value, assuming H0H_0 is strictly true.

    • Significance Level (α\alpha as "The Red Rope"): The threshold risk tolerance for committing an error in rejecting the status quo. Standard thresholds are fixed at 0.050.05 or 0.010.01.

    • Decision Criterion:

    • If P-value<αP\text{-value} < \alpha: Reject H0H_0. The evidence against the null claim is overwhelming.

    • If P-value≥αP\text{-value} \ge \alpha: Do not reject H0H_0. Insufficient evidence exists to warrant abandoning the status quo.

  • Directionality: One-Tailed vs. Two-Tailed Tests:

    • Right-Tailed Test: Formulated when testing for an increase or surplus (H0:μ≤μ0H_0: \mu \le \mu_0 vs. Ha:μ>μ0H_a: \mu > \mu_0). The entire critical rejection region α\alpha is concentrated in the upper tail.

    • Left-Tailed Test: Formulated when testing for a deficit or underperformance (H0:μ≥μ0H_0: \mu \ge \mu_0 vs. Ha:μ<μ0H_a: \mu < \mu_0). Rejection region α\alpha is concentrated entirely in the lower tail.

    • Two-Tailed Test: Formulated when testing for any deviation or non-conformance (H0:μ=μ0H_0: \mu = \mu_0 vs. Ha:μ≠μ0H_a: \mu \ne \mu_0). The significance level is divided evenly, allocating α2\frac{\alpha}{2} to each tail.

  • Type I and Type II Errors:

    • Type I Error (α\alpha, False Positive / False Alarm): Rejecting a null hypothesis H0H_0 that is actually true (e.g., sounding a fire alarm when no fire exists).

    • Type II Error (β\beta, False Negative / Missed Defect): Failing to reject a null hypothesis H0H_0 when it is actually false (e.g., passing an inspection when a structural crack is physically present).


Type I vs. Type II Errors
  • Controlling Errors: The investigator directly dictates α\alpha. Calculating β\beta is mathematically complex, which enforces the strict operational convention of stating "Do not reject H0H_0" instead of "Accept H0H_0".

    • The 5-Step Hypothesis Testing Protocol:

  • Set the Stage: Explicitly declare H0H_0 and HaH_a.

  • Measure Evidence: Compute the sample point statistic (xˉ\bar{x} or \hat{p}$).\n 3. *Measure Sway*: Determine the standard error (SE).\n 4. *Calculate Test Statistic and P-Value*: Compute Zandestablishtheexactassociatedand establish the exact associatedP-value.\n 5. *Deliver the Verdict*: Compare P−valueto-value to\alpha and issue an engineering decision, keeping in mind that statistical significance does not automatically guarantee practical significance.\n\n* **Large-Sample Hypothesis Testing Case Studies**:\n * **Municipal Standpipe Water Pressure**:\n * *Specification*: Legal minimum water pressure is \ge 25\text{ kPa}.\n * *Data*: Sample n = 36,averagepressure, average pressure\bar{x} = 23.5\text{ kPa},standarddeviation, standard deviations = 4.5\text{ kPa},significancelevel, significance level\alpha = 0.01.\n * *Hypotheses*: H_0: \mu \ge 25\text{ kPa}vs.vs.H_a: \mu < 25\text{ kPa} (Left-tailed test).\n * *Calculations*:\n      SE = \frac{4.5}{\sqrt{36}} = 0.75\text{ kPa}\n      Z = \frac{23.5 - 25}{0.75} = -2.00\n * *Decision*: For \alpha = 0.01,thecriticalthresholdis, the critical threshold isZ_{\text{crit}} = -2.33((P\text{-value} = 0.0228).Because). Because-2.00 > -2.33((P\text{-value} > 0.01),donotreject), do not rejectH_0.Thereisinsufficientevidenceatthe. There is insufficient evidence at the1\% level to prove legal under-pressure.\n * **Construction Site Monthly Wages**:\n * *Claim*: Management asserts average monthly site worker wages equal \text{R}25000.\n * *Data*: Sample n = 50,,\bar{x} = \text{R}24000,,s = \text{R}3000,,\alpha = 0.01.\n * *Hypotheses*: H_0: \mu \ge 25000vs.vs.H_a: \mu < 25000 (Left-tailed test).\n * *Calculations*:\n      SE = \frac{3000}{\sqrt{50}} \approx 424.26\text{ ZAR}\n      Z = \frac{24000 - 25000}{424.26} \approx -2.36\n * *Decision*: The critical value is Z_{\text{crit}} = -2.33((P\text{-value} = 0.0091).Because). Because-2.36 < -2.33((P < 0.01),reject), rejectH_0. There is statistically significant evidence of underpayment.\n * **Road Asphalt Layer Thickness**:\n * *Specification*: Contract thickness must equal exactly 120\text{ mm}.\n * *Data*: Sample n = 40cores,cores,\bar{x} = 118\text{ mm},,s = 6\text{ mm},,\alpha = 0.05.\n * *Hypotheses*: H_0: \mu = 120\text{ mm}vs.vs.H_a: \mu e 120\text{ mm} (Two-tailed test).\n * *Calculations*:\n    SE = \frac{6}{\sqrt{40}} \approx 0.9487\text{ mm}\n    Z = \frac{118 - 120}{0.9487} \approx -2.11\n * *Decision*: For two-tailed \alpha = 0.05,criticalthresholdsare, critical thresholds areZ_{\text{crit}} = \pm 1.96.Because. Because|-2.11| > 1.96((P\text{-value} = 0.0348 < 0.05),reject), rejectH_0. The asphalt layer deviates significantly from specification.\n* **National Building Code Inspection Compliance**:\n * *Specification*: Regulation requires \ge 85\%((p_0 = 0.85) of new residential units to pass initial inspection.\n * *Data*: An inspector evaluates n = 200units,passingunits, passingx = 160((\hat{p} = 0.80),at), at\alpha = 0.05.\n * *Hypotheses*: H_0: p \ge 0.85vs.vs.H_a: p < 0.85 (Left-tailed test).\n * *Calculations*:\n    SE = \sqrt{\frac{0.85 \times 0.15}{200}} = \sqrt{\frac{0.1275}{200}} \approx 0.02525\n    Z = \frac{0.80 - 0.85}{0.02525} \approx -1.98\n * *Decision*: Lower critical bound is Z_{\text{crit}} = -1.645((P\text{-value} = 0.0239).Because). Because-1.98 < -1.645,reject, rejectH_0. The developer is failing building regulation targets.\n* **Provincial Sanitation Inequality Comparison**:\n * *Data*: Independent surveys of n_1 = 150householdsinWesternCape(households in Western Cape (x_1 = 143, \hat{p}1 = 0.953)and) andn_2 = 150inLimpopo(in Limpopo (x_2 = 45, \hat{p}_2 = 0.300).\n * *Hypotheses*: H_0: p_1 - p_2 = 0vs.vs.H_a: p_1 - p_2 e 0.\n* *Calculations*:\n  SE = \sqrt{\frac{0.953(0.047)}{150} + \frac{0.300(0.700)}{150}} = \sqrt{0.0002986 + 0.001400} = \sqrt{0.0016986} \approx 0.0412\n  Z = \frac{0.953 - 0.300}{0.0412} = \frac{0.653}{0.0412} \approx 15.85\n* *Decision*: The calculated test statistic Z = 15.85 far exceeds any standard critical threshold, confirming massive, statistically significant disparity in sanitation access between the provinces.\n\n\n# Small-Sample Inference: Student's t-Distribution\n\n* **Breakdown of the Z-Test for Small Samples**:\n * When sample sizes fall below 30 (n < 30)andthetruepopulationstandarddeviation) and the true population standard deviation\sigmaisunknown,thesamplestandarddeviationis unknown, the sample standard deviations must be used as a proxy.\n * The resulting standardized ratio does not follow a normal distribution:\n    \frac{\bar{x} - \mu}{s / \sqrt{n}} ot\sim N(0, 1)\n * Replacing \sigmawiththesampleestimatewith the sample estimatesintroducessubstantialadditionalvariabilitybecauseintroduces substantial additional variability becauses varies from sample to sample.\n\n* **Properties of Student's t-Distribution**:\n * Symmetrical and bell-shaped with a center located precisely at 0.\n * Characterized by "heavier tails" (greater area in the tails) and a flatter peak than the standard normal distribution, reflecting heightened uncertainty.\n * The exact geometric profile is dictated entirely by its Degrees of Freedom (df = n - 1).\n * As sample size increases (n \to \inftyorordf \to \infty),the), thet−distributionconvergestowardthestandardnormal-distribution converges toward the standard normalZ-distribution.\n\n![Student's t-Distribution for Various Degrees of Freedom](https://assets.knowt.com/pdf-flow-prod/f00ab27a-04ea-4c0e-9b78-a9e857d304f9-figures/2.png)\n\n* **Mathematical Meaning of Degrees of Freedom (df = n - 1)**:\n * Calculating sample variance requires prior calculation of the sample mean \bar{x}.\n * Imposing the restriction \sum{i=1}^n (x_i - \bar{x}) = 0consumesonepieceofmathematicalinformation,leavingconsumes one piece of mathematical information, leavingn - 1 independent observations free to vary.\n\n* **Reading the t-Distribution Table**:\n * Critical values (t_{\alpha, df}) across key degrees of freedom and two-sided confidence intervals:\n * df = 1:90: 90% CI =6.314;95; 95% CI =12.706;98; 98% CI =31.821;99; 99% CI =63.657\n * df = 2:90: 90% CI =2.920;95; 95% CI =4.303;98; 98% CI =6.965;99; 99% CI =9.925\n * df = 3:90: 90% CI =2.353;95; 95% CI =3.182;98; 98% CI =4.541;99; 99% CI =5.841\n * df = 4:90: 90% CI =2.132;95; 95% CI =2.776;98; 98% CI =3.747;99; 99% CI =4.604\n * df = 5:90: 90% CI =2.015;95; 95% CI =2.571;98; 98% CI =3.365;99; 99% CI =4.032\n * df = 10:90: 90% CI =1.812;95; 95% CI =2.228;98; 98% CI =2.764;99; 99% CI =3.169\n * df = 15:90: 90% CI =1.753;95; 95% CI =2.131;98; 98% CI =2.602;99; 99% CI =2.947\n * df = 20:90: 90% CI =1.725;95; 95% CI =2.086;98; 98% CI =2.528;99; 99% CI =2.845\n * df = 30:90: 90% CI =1.697;95; 95% CI =2.042;98; 98% CI =2.457;99; 99% CI =2.750\n * df = \infty:90: 90% CI =1.645;95; 95% CI =1.960;98; 98% CI =2.326;99; 99% CI =2.576\n\n* **One-Sample t-Confidence Interval and Safety Analysis**:\n * **Formula**: For a 100(1 - \alpha)\% confidence interval:\n    \bar{x} \pm t_{\alpha/2, df} \times \frac{s}{\sqrt{n}}\n * **Concrete Batch Cylinder Strength Scenario**:\n * A site engineer tests n = 5cylinders,yieldingstrengths:cylinders, yielding strengths:28, 30, 29, 27, 31\text{ MPa}.\n * Mean: \bar{x} = 29.0\text{ MPa};Standarddeviation:; Standard deviation:s = 1.581\text{ MPa};Standarderror:; Standard error:SE = \frac{1.581}{\sqrt{5}} = 0.707\text{ MPa}.\n * Degrees of freedom: df = 5 - 1 = 4.Fromthetable,. From the table,t_{0.025, 4} = 2.776.\n * t−IntervalMarginofError:-Interval Margin of Error:2.776 \times 0.707 = 1.963\text{ MPa}.\n * Correct 95\%CI:CI:(27.04\text{ MPa}, 30.96\text{ MPa}).\n * **Direct Comparison with Erroneous Z-Calculation**:\n * Erroneous Z−Interval:-Interval:1.96 \times 0.707 = 1.386\text{ MPa} \implies (27.61\text{ MPa}, 30.39\text{ MPa}).\n * Discrepancy: The Z−intervalis-interval is0.575\text{ MPa} narrower than reality demands.\n * **Practical Engineering Risk**: If the contract specifies a minimum threshold of 27.5\text{ MPa},theerroneous, the erroneousZ−testassertsapass(-test asserts a pass (27.61 > 27.5),whereasthevalid), whereas the validt−testwarnsthattruestrengthcouldbeaslowas-test warns that true strength could be as low as27.04\text{ MPa}, failing compliance and creating structural danger.\n\n* **One-Sample t-Hypothesis Test**:\n * **Test Statistic**:\n    t = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}\n * **RDP House Floor Area Audit Example**:\n * *Problem*: Legal minimum floor area is 40\text{ m}^2.Anauditormeasures. An auditor measuresn = 8completedhomes:completed homes:36, 38, 35, 39, 37, 34, 38, 36\text{ m}^2.\n * *Sample Metrics*: \bar{x} = 36.625\text{ m}^2, s = 1.685\text{ m}^2, df = 7.\n * *Hypotheses*: H_0: \mu \ge 40vs.vs.H_a: \mu < 40.\n * *Calculations*:\n      SE = \frac{1.685}{\sqrt{8}} \approx 0.5957\text{ m}^2\n      t = \frac{36.625 - 40}{0.5957} \approx -5.66\n * *Decision*: Critical threshold for df = 7, \alpha = 0.05isist_{\text{crit}} = -1.895.Theobserved. The observedt = -5.66fallsdeepwithintherejectionregion(falls deep within the rejection region (P = P(T_7 \le -5.66) \approx 0.00038 < 0.05).Reject). RejectH_0; the contractor is constructing substandard homes.\n\n![One-Sample t-Test Rejection Region for RDP House Size](https://assets.knowt.com/pdf-flow-prod/f00ab27a-04ea-4c0e-9b78-a9e857d304f9-figures/8.png)\n\n* **Two Independent Samples: Pooled Variance t-Test**:\n * **Underlying Assumptions**:\n 1. Both populations are normally distributed.\n 2. Samples are drawn independently.\n 3. Population variances are equal (Homoscedasticity: \sigma_1^2 = \sigma_2^2 = \sigma^2).\n * **Variance Ratio Rule of Thumb**:\n    \text{Ratio} = \frac{\text{larger } s^2}{\text{smaller } s^2}\n * If \text{Ratio} \le 3: Variances are approximately equal; pool the variance.\n * If \text{Ratio} > 3: Variances are unequal; employ separate-variance alternatives (Welch's / Satterthwaite approximation).\n * **Pooled Formulas**:\n * Pooled Sample Variance:\n      s_p^2 = \frac{(n_1 - 1)s_1^2 + (n_2 - 1)s_2^2}{n_1 + n_2 - 2}\n * Test Statistic (df = n_1 + n_2 - 2):\n      t = \frac{(\bar{x}1 - \bar{x}_2) - D_0}{\sqrt{s_p^2 \left(\frac{1}{n_1} + \frac{1}{n_2}\right)}}\n * Confidence Interval:\n      (\bar{x}_1 - \bar{x}_2) \pm t{\alpha/2, df} \sqrt{s_p^2 \left(\frac{1}{n_1} + \frac{1}{n_2}\right)}\n * **Steel Rebar Reinforcing Quality Example**:\n * Supplier A (n_1 = 8):):1.58, 1.56, 1.60, 1.55, 1.59, 1.57, 1.61, 1.54\text{ kg/m}.\n * Supplier B (n_2 = 7):):1.52, 1.54, 1.53, 1.50, 1.55, 1.51, 1.53\text{ kg/m}.\n * Total degrees of freedom: df = 8 + 7 - 2 = 13.\n * At \alpha = 0.05,two−tailedcriticalcutoffis, two-tailed critical cutoff ist_{\text{crit}} = \pm 2.16.\n * The calculated test statistic yields t = 4.44.Because. Because4.44 > 2.16,reject, rejectH_0. Supplier steel quality differs significantly.\n\n![Two-Sample t-Test Rejection Region for Steel Supplier Comparison](https://assets.knowt.com/pdf-flow-prod/f00ab27a-04ea-4c0e-9b78-a9e857d304f9-figures/14.png)\n\n * **Skills Training Program Productivity**:\n * New Method (n_1 = 8):):\bar{x}1 = 42\text{ units/day}, s_1 = 5.2.\n * Old Method (n_2 = 8):):\bar{x}_2 = 38\text{ units/day}, s_2 = 4.8.\n * Variance Check: \text{Ratio} = \frac{5.2^2}{4.8^2} = \frac{27.04}{23.04} = 1.174 \le 3 (equal variance assumption valid).\n * Pooled Variance:\n      s_p^2 = \frac{7(27.04) + 7(23.04)}{14} = 25.04 \implies s_p = 5.004\n * Standard Error:\n      SE = 5.004 \sqrt{\frac{1}{8} + \frac{1}{8}} = 5.004 \sqrt{0.25} = 2.502\n * Test Statistic (df = 14):\n      t = \frac{42 - 38}{2.502} = \frac{4}{2.502} = 1.599\n * At \alpha = 0.05,criticalvalueis, critical value ist{0.025, 14} = 2.145.Because. Because1.599 < 2.145,failtoreject, fail to rejectH_0. Productivity improvement is not statistically significant.\n * 95\% Confidence Interval for difference:\n      4 \pm 2.145(2.502) = 4 \pm 5.367 = (-1.367\text{ units}, 9.367\text{ units})\n      Because zero is within the interval, significant improvement cannot be claimed.\n\n* **Paired t-Test for Dependent Samples**:\n * Applied when observations are inherently matched, paired, or repeated across the same experimental units (e.g., pre-treatment vs. post-treatment).\n * Compute paired differences for each unit: d_i = x_{1i} - x_{2i}.\n * Test Statistic (df = n - 1):\n    t = \frac{\bar{d} - 0}{s_d / \sqrt{n}}\n * **RDP Settlement Ceiling-Retrofit Thermal Evaluation**:\n * Indoor temperatures measured at 7 a.m. in n = 8 homes before and after ceiling installation:\n * House 1: Before = 9^\circ\text{C},After=, After =14^\circ\text{C},Difference, Differenced_1 = 5\n * House 2: Before = 8^\circ\text{C},After=, After =12^\circ\text{C},Difference, Differenced_2 = 4\n * House 3: Before = 10^\circ\text{C},After=, After =13^\circ\text{C},Difference, Differenced_3 = 3\n * House 4: Before = 7^\circ\text{C},After=, After =12^\circ\text{C},Difference, Differenced_4 = 5\n * House 5: Before = 9^\circ\text{C},After=, After =14^\circ\text{C},Difference, Differenced_5 = 5\n * House 6: Before = 8^\circ\text{C},After=, After =11^\circ\text{C},Difference, Differenced_6 = 3\n * House 7: Before = 11^\circ\text{C},After=, After =16^\circ\text{C},Difference, Differenced_7 = 5\n * House 8: Before = 9^\circ\text{C},After=, After =12^\circ\text{C},Difference, Differenced_8 = 3\n * Mean difference: \bar{d} = \frac{5+4+3+5+5+3+5+3}{8} = \frac{33}{8} = 4.125^\circ\text{C}.\n * Differences squared: \sum d^2 = 25+16+9+25+25+9+25+9 = 143.\n * Sample Variance of differences:\n      s_d^2 = \frac{143 - \frac{33^2}{8}}{7} = \frac{143 - 136.125}{7} = \frac{6.875}{7} \approx 0.9821 \implies s_d \approx 0.991\n * Test Statistic (df = 7):\n      t = \frac{4.125}{0.991 / \sqrt{8}} = \frac{4.125}{0.3504} \approx 11.77\n * With t_{0.025, 7} = 2.365,reject, rejectH_0((11.77 > 2.365); the ceiling retrofits generate highly significant thermal insulation improvements.\n\n\n# The Chi-Square Distribution and Categorical Data Analysis\n\n* **Mathematical Foundations of the Chi-Square (\chi^2) Distribution**:\n * Arises when measuring squared distances from a center rather than directional deviations. Squaring eliminates negative signs, tracking pure dispersion.\n * Defined formally as the sum of independent squared standard normal variables:\n    \chi^2 = \sum_{i=1}^k Z_i^2\n * If one Z−scoreissquared(-score is squared (Z^2),theresultingvariablefollowsa), the resulting variable follows a\chi^2−distributionwith-distribution withdf = 1.\n * Summing five squared independent Z−scores(-scores (Z_1^2 + \dots + Z_5^2)yieldsa) yields a\chi^2−distributionwith-distribution withdf = 5.\n * Connection to sample variance: Because s^2 = \frac{\sum (x - \bar{x})^2}{n - 1}, standardizing the observations establishes that:\n    \frac{(n - 1)s^2}{\sigma^2} \sim \chi^2_{n - 1}\n * **Key Geometric and Structural Features**:\n * Support is strictly non-negative: Range lies on (0, \infty).\n * Skewed to the right (asymmetrical); right-skewness attenuates as df grows.\n * Mean of \chi^2distributionequalsdistribution equalsdf;varianceequals; variance equals2 \times df.\n * While degrees of freedom adjust tail thickness in Zandandt,in, in\chi^2 they dictate the location of the distribution's peak.\n\n![Chi-Square Distributions Across Degrees of Freedom](https://assets.knowt.com/pdf-flow-prod/18571286-111f-4a96-b926-796a2e14fb0c-figures/0.png)\n\n* **Inference for a Single Population Variance (\sigma^2)**:\n * **Confidence Interval Formulas**:\n * For population variance \sigma^2:\n      \frac{(n - 1)s^2}{\chi^2_{\text{right}}} < \sigma^2 < \frac{(n - 1)s^2}{\chi^2_{\text{left}}}\n * For population standard deviation \sigma:\n      \sqrt{\frac{(n - 1)s^2}{\chi^2_{\text{right}}}} < \sigma < \sqrt{\frac{(n - 1)s^2}{\chi^2_{\text{left}}}}\n * Where \chi^2_{\text{right}} = \chi^2_{\alpha/2, n-1}andand\chi^2_{\text{left}} = \chi^2_{1 - \alpha/2, n-1}.\n * **Concrete Compressive Strength Variance Case Study**:\n * A quality engineer takes n = 25concretecylinders,measuringsamplestandarddeviationconcrete cylinders, measuring sample standard deviations = 4.2\text{ MPa}.\n * Degrees of freedom: df = 25 - 1 = 24.\n * For a 95\%confidencelevel(confidence level (\alpha = 0.05), the critical values are:\n      \chi^2_{\text{right}} = \chi^2_{0.025, 24} = 36.415\n      \chi^2_{\text{left}} = \chi^2_{0.975, 24} = 13.848\n * Numerator computation: (n - 1)s^2 = 24 \times 4.2^2 = 24 \times 17.64 = 423.36.\n * Variance Interval:\n      \frac{423.36}{36.415} < \sigma^2 < \frac{423.36}{13.848} \implies 11.626\text{ MPa}^2 < \sigma^2 < 30.572\text{ MPa}^2\n * Standard Deviation Interval:\n      \sqrt{11.626} < \sigma < \sqrt{30.572} \implies 3.41\text{ MPa} < \sigma < 5.53\text{ MPa}\n\n![Chi-Square Critical Values for df = 24](https://assets.knowt.com/pdf-flow-prod/18571286-111f-4a96-b926-796a2e14fb0c-figures/1.png)\n\n* **Categorical Data Analysis: The Three Fundamental \chi^2 Tests**:\n * **General Test Statistic**:\n    \chi^2 = \sum \frac{(O - E)^2}{E}\n    where Oisobservedcellfrequencyandis observed cell frequency andEisexpectedcellfrequencyunderis expected cell frequency underH_0.\n * **Core Assumptions**:\n 1. *Random Sampling*: Data represents an unbiased random sample from the relevant population.\n 2. *Mutually Exclusive Categories*: Each observation falls into exactly one cell.\n 3. *Adequate Cell Counts*: Expected frequencies must satisfy E \ge 5inallcells.Ifanyin all cells. If anyE < 5, combine adjacent categories.\n\n* **Goodness-of-Fit Test (Single Categorical Variable)**:\n * Evaluates whether observed sample frequencies match expected theoretical distributions.\n * Degrees of Freedom: df = k - 1,where, wherek is the number of categories.\n * **Fatal Road Crash Day-of-Week Case Study**:\n * Urban planners test if n = 84fatalcrashesoccuruniformlyacrossall7days(fatal crashes occur uniformly across all 7 days (E = \frac{84}{7} = 12\text{ crashes/day}):\n * Monday: O = 10\n * Tuesday: O = 8\n * Wednesday: O = 9\n * Thursday: O = 11\n * Friday: O = 12\n * Saturday: O = 18\n * Sunday: O = 16\n * Calculation:\n      \chi^2 = \frac{(10-12)^2}{12} + \frac{(8-12)^2}{12} + \frac{(9-12)^2}{12} + \frac{(11-12)^2}{12} + \frac{(12-12)^2}{12} + \frac{(18-12)^2}{12} + \frac{(16-12)^2}{12}\n      \chi^2 = \frac{4 + 16 + 9 + 1 + 0 + 36 + 16}{12} = \frac{82}{12} \approx 6.833\n * Degrees of Freedom: df = 7 - 1 = 6.At. At\alpha = 0.05,criticalthresholdis, critical threshold is\chi^2_{0.05, 6} = 12.592.\n * *Decision*: Because 6.833 < 12.592,donotreject, do not rejectH_0. Although weekend counts are elevated, a sample of 84 crashes is insufficient to prove non-uniformity beyond chance.\n\n* **Test of Independence (Two Categorical Variables, Single Sample)**:\n * Assesses whether two categorical variables evaluated in a single sample are statistically dependent.\n * Expected Frequency Formula:\n    E = \frac{(\text{Row Total}) \times (\text{Column Total})}{\text{Grand Total}}\n * Degrees of Freedom: df = (r - 1)(c - 1).\n * **Structural Defect vs. Geographic Location Case Study**:\n * Single random sample of N = 150 defective housing units categorized by Location and Defect Type:\n * Material Failure: Coastal = 25, Inland = 15, High-altitude = 10; Row Total = 50\n * Design Flaw: Coastal = 10, Inland = 20, High-altitude = 15; Row Total = 45\n * Workmanship Error: Coastal = 15, Inland = 15, High-altitude = 25; Row Total = 55\n * Column Totals: Coastal = 50, Inland = 50, High-altitude = 50; Grand Total = 150\n * Expected Frequencies (E = \frac{\text{Row Total} \times 50}{150} = \frac{\text{Row Total}}{3}):\n * Material Failure: E = \frac{50}{3} = 16.67\n * Design Flaw: E = \frac{45}{3} = 15.00\n * Workmanship Error: E = \frac{55}{3} = 18.33\n * Cell Chi-Square Contributions:\n * Coastal Material Failure: \frac{(25 - 16.67)^2}{16.67} = \frac{69.39}{16.67} \approx 4.16\n * Coastal Design Flaw: \frac{(10 - 15)^2}{15} = \frac{25}{15} \approx 1.67\n * High-altitude Workmanship: \frac{(25 - 18.33)^2}{18.33} = \frac{44.49}{18.33} \approx 2.43\n * Degrees of Freedom: df = (3 - 1)(3 - 1) = 4.At. At\alpha = 0.05,,\chi^2_{0.05, 4} = 9.488$.

    • Decision: The overall sum χ2\chi^2 exceeds 9.4889.488, rejecting independence. Material failures dominate coastal zones (saltwater corrosion), while workmanship errors dominate high-altitude sites (thermal setting difficulties).

  • Standardized Residuals Analysis:     Standardized Residual=O−EE\text{Standardized Residual} = \frac{O - E}{\sqrt{E}}     Values outside [−2,+2][-2, +2] identify cells driving the statistical association (e.g., Coastal Material Failure has residual 25−16.6716.67=+2.04\frac{25 - 16.67}{\sqrt{16.67}} = +2.04).

    • Test of Homogeneity (Multiple Independent Samples):

  • Evaluates whether multiple distinct populations share identical category proportions. Column totals are fixed by research design prior to sampling.

  • Provincial Employment Status Distribution Case Study:

    • Independent samples of n=150n = 150 adults drawn from Gauteng, KZN, and Western Cape (N=450N = 450):

      • Employed: Gauteng = 88, KZN = 72, Western Cape = 80; Row Total = 240

      • Unemployed: Gauteng = 42, KZN = 55, Western Cape = 33; Row Total = 130

      • Not Economically Active (NEA): Gauteng = 20, KZN = 23, Western Cape = 37; Row Total = 80

      • Column Totals: 150 in each province

    • Expected Frequencies:

      • Employed: E=240×150450=80.0E = \frac{240 \times 150}{450} = 80.0

      • Unemployed: E=130×150450=43.33E = \frac{130 \times 150}{450} = 43.33

      • NEA: E=80×150450=26.67E = \frac{80 \times 150}{450} = 26.67

    • Degrees of Freedom: df=(3−1)(3−1)=4df = (3 - 1)(3 - 1) = 4. Critical value at α=0.05\alpha = 0.05 is 9.4889.488.

    • Decision: Calculated χ2>9.488\chi^2 > 9.488, rejecting homogeneity. KZN displays significantly elevated unemployment (5555 observed vs. 43.3343.33 expected), while the Western Cape displays elevated NEA individuals (3737 observed vs. 26.6726.67 expected).

The F-Distribution and Comparing Process Variances

  • Mathematical Definition and Principles:

    • Defined as the ratio of two independent chi-square distributed random variables, each divided by its respective degrees of freedom:     F=s12/σ12s22/σ22F = \frac{s_1^2 / \sigma_1^2}{s_2^2 / \sigma_2^2}

    • Under the null hypothesis of equal population variances (H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2), the parameter variances cancel, reducing the statistic to:     F=s12s22F = \frac{s_1^2}{s_2^2}

    • Degrees of Freedom: Numerator degrees of freedom df1=n1−1df_1 = n_1 - 1; Denominator degrees of freedom df2=n2−1df_2 = n_2 - 1.

    • Computational Convention: Always place the larger sample variance in the numerator (s12≥s22s_1^2 \ge s_2^2). This forces the calculated FF-ratio to be ≥1\ge 1, allowing the test to utilize upper-tail tables.

  • Primary Engineering Functions of the FF-Distribution:

    1. Variance Comparison: Comparing the variability, consistency, or precision between two production processes, material suppliers, or testing techniques.

    2. Statistical Gatekeeper: Serving as an obligatory preliminary test prior to conducting two-sample pooled tt-tests.

    3. Analysis of Variance (ANOVA): Testing for equivalence across three or more group means simultaneously.

  • Hypothesis Testing for Two Population Variances:

    • Hypotheses:

    • Two-tailed test: H0:σ12=σ22H_0: \sigma_1^2 = \sigma_2^2 vs. Ha:σ12≠σ22H_a: \sigma_1^2 \ne \sigma_2^2 (critical value evaluated at α2\frac{\alpha}{2}

    • Right-tailed test: H0:σ12≤σ22H_0: \sigma_1^2 \le \sigma_2^2 vs. Ha:σ12>σ22H_a: \sigma_1^2 > \sigma_2^2 (critical value evaluated at α\alpha

    • Confidence Interval for the Ratio of Two Variances (σ12/σ22\sigma_1^2 / \sigma_2^2):     [s12/s22Fα/2,df1,df2,  (s12s22)×Fα/2,df2,df1]\left[ \frac{s_1^2 / s_2^2}{F_{\alpha/2, df_1, df_2}}, \; \left(\frac{s_1^2}{s_2^2}\right) \times F_{\alpha/2, df_2, df_1} \right]

  • Engineering Case Studies in Variance Testing:

    • Cement Strength Consistency (Supplier A vs. Supplier B):

    • Data: Supplier A has n1=11n_1 = 11 batches, s1=5.8 MPas_1 = 5.8\text{ MPa}; Supplier B has n2=10n_2 = 10 batches, s2=2.3 MPas_2 = 2.3\text{ MPa}.

    • Test at α=0.05\alpha = 0.05 (two-tailed; α2=0.025\frac{\alpha}{2} = 0.025).

    • Degrees of Freedom: df1=11−1=10df_1 = 11 - 1 = 10 (numerator); df2=10−1=9df_2 = 10 - 1 = 9 (denominator).

    • Calculated FF-statistic:       F=s12s22=5.822.32=33.645.29≈6.36F = \frac{s_1^2}{s_2^2} = \frac{5.8^2}{2.3^2} = \frac{33.64}{5.29} \approx 6.36

    • Critical Value from table: F0.025,10,9=3.96F_{0.025, 10, 9} = 3.96.

    • Decision: Because 6.36>3.966.36 > 3.96, reject H0H_0. There is statistically significant evidence that the two cement suppliers exhibit unequal variance.

    • Engineering Implications:

      • Supplier A exhibits high variance, leading to unpredictable compressive strengths, risk of batch failure, and structural overdesign waste.

      • Supplier B exhibits tightly controlled quality and predictable strength.

      • Because equal variance is violated, a pooled two-sample tt-test cannot be used to compare their means; Welch's separate-variance tt-test must be employed.

    • Confidence Interval on Ratio of Cement Variances:

    • Sample variance ratio: s12s22=6.36\frac{s_1^2}{s_2^2} = 6.36.

    • Upper-tail critical values: F0.025,10,9=3.96F_{0.025, 10, 9} = 3.96 and F0.025,9,10=3.78F_{0.025, 9, 10} = 3.78.

    • Lower bound: 6.363.96≈1.61\frac{6.36}{3.96} \approx 1.61.

    • Upper bound: 6.36×3.78≈24.046.36 \times 3.78 \approx 24.04.

    • 95%95\% CI for σ12σ22\frac{\sigma_1^2}{\sigma_2^2}: (1.61,24.04)(1.61, 24.04). Because the interval does not capture 1, unequal variance is confirmed.

    • Steel Rebar Tensile Strength Variance:

    • Sample X: n1=9,s1=4.2 MPa  ⟹  df1=8n_1 = 9, s_1 = 4.2\text{ MPa} \implies df_1 = 8.

    • Sample Y: n2=7,s2=2.8 MPa  ⟹  df2=6n_2 = 7, s_2 = 2.8\text{ MPa} \implies df_2 = 6.

    • Test at α=0.05\alpha = 0.05 (two-tailed, α2=0.025\frac{\alpha}{2} = 0.025):       F=4.222.82=17.647.84=2.25F = \frac{4.2^2}{2.8^2} = \frac{17.64}{7.84} = 2.25

    • From FF-tables, F0.025,8,6=5.60F_{0.025, 8, 6} = 5.60.

    • Decision: Because 2.25<5.602.25 < 5.60, do not reject H0H_0. The evidence is insufficient to conclude that tensile strength variances differ.

  • Critical Assumptions and Diagnostics:

    • Normality: The FF-test is sensitive to departures from normality in either parent population.

    • Independence: Observations within and between groups must be independent.

    • Violation Action: When parent distributions depart from normality, the parametric FF-test loses validity; non-parametric tests such as Levene's test should be substituted.

Correlation and Simple Linear Regression

  • The Analytical Shift: From Differences to Relationships:

    • Previous analytical modules addressed differences in location (μ\mu) or dispersion (σ2\sigma^2).

    • Correlation and regression address relationship structures between paired quantitative variables (x,y)(x, y).

    • Correlation: Quantifies the direction and strength of the linear association between two variables.

    • Regression: Models the mathematical relationship, expressing yy as a functional equation of xx to enable predictive estimation.

  • Pearson Correlation Coefficient (rr):

    • Measures the degree of linear association between two variables, bounded strictly within −1.0≤r≤+1.0-1.0 \le r \le +1.0.

    • Algebraic Formula:     r=n∑xy−∑x∑y[n∑x2−(∑x)2][n∑y2−(∑y)2]r = \frac{n \sum xy - \sum x \sum y}{\sqrt{\left[n \sum x^2 - (\sum x)^2\right] \left[n \sum y^2 - (\sum y)^2\right]}}


Scatter Plots Demonstrating Various Values of the Correlation Coefficient r
  • Standard Interpretation Thresholds:

    • +0.7 to +1.0+0.7 \text{ to } +1.0: Strong positive linear relationship

    • +0.3 to +0.7+0.3 \text{ to } +0.7: Moderate positive linear relationship

    • −0.3 to +0.3-0.3 \text{ to } +0.3: Weak or no linear relationship

    • −0.7 to −0.3-0.7 \text{ to } -0.3: Moderate negative linear relationship

    • −1.0 to −0.7-1.0 \text{ to } -0.7: Strong negative linear relationship

  • Linearity Constraint: Pearson's rr exclusively detects linear relationships. Non-linear associations (e.g., strong quadratic curves) can produce r≈0r \approx 0 despite a deterministic relationship existing.


Linear vs. Non-linear Scatter Relationships
  • Hypothesis Testing for Correlation:

    • Tests whether observed correlation is statistically significant or an artifact of sample size:     H0:ρ=0vs.Ha:ρ≠0H_0: \rho = 0 \quad \text{vs.} \quad H_a: \rho \ne 0

  • Test Statistic (df=n−2df = n - 2):   t=rn−21−r2t = r \sqrt{\frac{n - 2}{1 - r^2}}

  • The Gatekeeper Principle: Regression fitting and predictive modeling are mathematically invalid unless rr achieves statistical significance (P<αP < \alpha). If not significant, terminate the workflow immediately.


Five-Step Workflow from Correlation to Regression Prediction
  • Fisher ZZ-Transformation for Correlation Inference:

    • While the standard tt-test evaluates H0:ρ=0H_0: \rho = 0, testing non-zero nulls (H0:ρ=ρ0H_0: \rho = \rho_0) or constructing confidence intervals requires transforming skewed rr into normally distributed metric ZZ:     Z=12ln⁡(1+r1−r)=atanh(r)Z = \frac{1}{2} \ln\left(\frac{1 + r}{1 - r}\right) = \text{atanh}(r)

    • Distribution Properties:     μZ=atanh(ρ)\mu_Z = \text{atanh}(\rho)     σZ=1n−3\sigma_Z = \frac{1}{\sqrt{n - 3}}

    • Confidence Bounds on ZZ:     L=Z−z1−α/2n−3L = Z - \frac{z_{1 - \alpha/2}}{\sqrt{n - 3}}     U=Z+z1−α/2n−3U = Z + \frac{z_{1 - \alpha/2}}{\sqrt{n - 3}}

    • Back-Transformation to Original Correlation Metric (CI for ρ\rho):     CI=(e2L−1e2L+1,  e2U−1e2U+1)=(tanh⁡(L),  tanh⁡(U))\text{CI} = \left( \frac{e^{2L} - 1}{e^{2L} + 1}, \; \frac{e^{2U} - 1}{e^{2U} + 1} \right) = (\tanh(L), \; \tanh(U))

    • Body Mass vs. Blood Pressure Case Example: A researcher claims positive correlation between body mass and blood pressure but asserts ρ<0.50\rho < 0.50. Given n=20n = 20 and sample correlation r=0.3612r = 0.3612, the Fisher ZZ-transform provides the appropriate mechanism for formally testing this specific non-zero parameter assertion.

  • Ordinary Least Squares (OLS) Linear Regression:

    • Identifies the line of best fit that minimizes the sum of squared prediction errors (residuals):     y^=a+bx\hat{y} = a + bx     where y^\hat{y} is predicted outcome, aa is yy-intercept, and bb is slope.


Anatomy of Residuals and Sum of Squared Errors
  • Mathematical Formulas for Parameters:     b=n∑xy−∑x∑yn∑x2−(∑x)2b = \frac{n \sum xy - \sum x \sum y}{n \sum x^2 - (\sum x)^2}     a=yˉ−bxˉ=∑y∑x2−∑x∑xyn∑x2−(∑x)2a = \bar{y} - b\bar{x} = \frac{\sum y \sum x^2 - \sum x \sum xy}{n \sum x^2 - (\sum x)^2}

  • Coefficient of Determination (r2r^2):

    • Quantifies the proportion of total variation in the response variable yy explained by linear relationship with explanatory variable xx.

    • The unexplained fraction (1−r21 - r^2) represents variance driven by omitted external variables or random noise.

  • Error of Estimation (EE):     E=∑i=1n(yi−y^i)2E = \sum_{i=1}^{n} (y_i - \hat{y}_i)^2

    • Concrete Curing Time vs. Strength Case Study:

  • Experimental paired data across n=6n = 6 concrete batches:

    • Batch 1: Curing time x=6 daysx = 6\text{ days}, Strength y=3.0 MPay = 3.0\text{ MPa}

    • Batch 2: Curing time x=7 daysx = 7\text{ days}, Strength y=2.9 MPay = 2.9\text{ MPa}

    • Batch 3: Curing time x=20 daysx = 20\text{ days}, Strength y=8.2 MPay = 8.2\text{ MPa}

    • Batch 4: Curing time x=19 daysx = 19\text{ days}, Strength y=2.8 MPay = 2.8\text{ MPa}

    • Batch 5: Curing time x=13 daysx = 13\text{ days}, Strength y=1.4 MPay = 1.4\text{ MPa}

    • Batch 6: Curing time x=8 daysx = 8\text{ days}, Strength y=1.5 MPay = 1.5\text{ MPa}

  • Summary Statistics: ∑x=73\sum x = 73, ∑y=19.8\sum y = 19.8, ∑x2=1079\sum x^2 = 1079, ∑y2=96.7\sum y^2 = 96.7, ∑xy=285.7\sum xy = 285.7.

  • Pearson Correlation:     r=6(285.7)−(73)(19.8)[6(1079)−732][6(96.7)−19.82]=1714.2−1445.4(6474−5329)(580.2−392.04)=268.81145×188.16=268.8464.15≈0.579r = \frac{6(285.7) - (73)(19.8)}{\sqrt{\left[6(1079) - 73^2\right] \left[6(96.7) - 19.8^2\right]}} = \frac{1714.2 - 1445.4}{\sqrt{(6474 - 5329)(580.2 - 392.04)}} = \frac{268.8}{\sqrt{1145 \times 188.16}} = \frac{268.8}{464.15} \approx 0.579

  • Coefficient of Determination: r2=(0.579)2=0.335r^2 = (0.579)^2 = 0.335 (33.5%33.5\% of variation explained by curing time).

  • Regression Slope and Intercept:     b=268.81145≈0.2348≈0.235b = \frac{268.8}{1145} \approx 0.2348 \approx 0.235     xˉ=736≈12.167,yˉ=19.86=3.30\bar{x} = \frac{73}{6} \approx 12.167, \quad \bar{y} = \frac{19.8}{6} = 3.30     a=3.30−(0.2348×12.167)=3.30−2.856=0.444a = 3.30 - (0.2348 \times 12.167) = 3.30 - 2.856 = 0.444     y^=0.444+0.235x\hat{y} = 0.444 + 0.235x

  • Predictions:

    • 5 days: y^=0.444+0.235(5)=1.62 MPa\hat{y} = 0.444 + 0.235(5) = 1.62\text{ MPa}

    • 10 days: y^=0.444+0.235(10)=2.79 MPa\hat{y} = 0.444 + 0.235(10) = 2.79\text{ MPa}

    • 15 days: y^=0.444+0.235(15)=3.97 MPa\hat{y} = 0.444 + 0.235(15) = 3.97\text{ MPa}

    • 20 days: y^=0.444+0.235(20)=5.14 MPa\hat{y} = 0.444 + 0.235(20) = 5.14\text{ MPa}

  • Hypothesis Test on Correlation (n=6,df=4n = 6, df = 4):     t=0.5796−21−0.5792=0.57940.6648=0.579×2.453≈1.42t = 0.579 \sqrt{\frac{6 - 2}{1 - 0.579^2}} = 0.579 \sqrt{\frac{4}{0.6648}} = 0.579 \times 2.453 \approx 1.42

    • At α=0.05\alpha = 0.05, critical threshold is t0.025,4=2.776t_{0.025, 4} = 2.776.

    • Because 1.42<2.7761.42 < 2.776, the correlation is not statistically significant. This demonstrates the critical sample size effect: moderate relationships (r=0.579r = 0.579) fail to reach significance with very small samples (n=6n = 6).

    • Work Hours vs. Safety Incidents Case Study:

  • Paired data across n=10n = 10 work sites evaluating weekly hours worked (xx) and incident counts (yy):     (40,2),(45,3),(50,5),(35,1),(55,7),(60,9),(42,2),(48,4),(52,6),(38,2)(40, 2), (45, 3), (50, 5), (35, 1), (55, 7), (60, 9), (42, 2), (48, 4), (52, 6), (38, 2).


Scatter Plot of Work Hours vs. Safety Incidents
  • Summary Findings:

    • Very strong positive correlation: r=0.981r = 0.981.

    • Statistically significant relationship: p<0.05p < 0.05.

    • Slope b=0.321b = 0.321: For each additional hour worked per week, expected incidents increase by 0.3210.321.

    • Coefficient of Determination: r2=0.962r^2 = 0.962 (96.2%96.2\% of incident variation is explained by weekly work hours).

    • Predictive Benchmark: A 50-hour work week predicts 5 safety incidents.

    • Distance vs. Property Price Case Study:

  • Data across 8 metropolitan zones evaluating distance from city center (x in kmx\text{ in km}) vs. property price (y in R thousandsy\text{ in R thousands}):     (5,2500),(10,2200),(15,1800),(20,1500),(25,1200),(30,1000),(35,850),(40,700)(5, 2500), (10, 2200), (15, 1800), (20, 1500), (25, 1200), (30, 1000), (35, 850), (40, 700).

  • Negative linear relationship: Price declines systematically with increasing distance from the municipal center.

    • Non-Linear Regression Alternatives:

  • When scatter plots display clear curvature, linear models become inappropriate. Common non-linear structures include:

    • Quadratic Model: y^=a+bx+cx2\hat{y} = a + bx + cx^2

    • Power Model: y^=a⋅xb\hat{y} = a \cdot x^b

    • Exponential Model: y^=a⋅bx\hat{y} = a \cdot b^x

    • Logarithmic Model: y^=a+bln⁡(x)\hat{y} = a + b\ln(x)


Non-linear Regression Models: Quadratic, Power, Exponential, Logarithmic
  • Diagnostic Verification of Regression Assumptions:

    • Linearity: Evaluated by inspecting the original scatter plot of yy against xx.

    • Normality of Residuals: Verified via residual histograms and normal Q-Q probability plots.

    • Homoscedasticity (Constant Variance): Evaluated by plotting residuals against fitted values (y^\hat{y}); points must exhibit random scatter without expanding funnel profiles.

    • Independence: Ensured through sound experimental and sampling design.


Diagnostic Plots for Checking Regression Assumptions
  • Critical Modeling Pitfalls:

    1. Correlation Does Not Imply Causation: Confounding variables can generate strong spurious correlations (e.g., ice cream sales correlated with drowning incidents).

    2. Danger of Extrapolation: Applying regression models outside the observed domain of xx generates unreliable predictions.

    3. Outlier Vulnerability: A single extreme data point can heavily distort the estimated slope and correlation coefficient.

Comprehensive Statistical Toolkit and Decision Framework

  • Master Parameter Inference Reference Guide:

    • Single Population Mean (μ\mu):

    • Test Statistic: t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s / \sqrt{n}}

    • Distribution: tt-distribution with df=n−1df = n - 1

    • Core Assumption: Normally distributed population

    • Difference in Means with Equal Variances (σ12=σ22\sigma_1^2 = \sigma_2^2):

    • Test Statistic: t=(xˉ1−xˉ2)−D0sp1n1+1n2t = \frac{(\bar{x}_1 - \bar{x}_2) - D_0}{s_p \sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}

    • Distribution: tt-distribution with df=n1+n2−2df = n_1 + n_2 - 2

    • Core Assumption: Normal populations, independent samples, equal variances

    • Difference in Means with Unequal Variances (σ12≠σ22\sigma_1^2 \ne \sigma_2^2):

    • Test Statistic: t=(xˉ1−xˉ2)−D0s12n1+s22n2t = \frac{(\bar{x}_1 - \bar{x}_2) - D_0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}}

    • Distribution: tt-distribution with Satterthwaite adjusted degrees of freedom

    • Core Assumption: Normal populations, independent samples, unequal variances

    • Single Population Variance (σ2\sigma^2):

    • Test Statistic: χ2=(n−1)s2σ02\chi^2 = \frac{(n - 1)s^2}{\sigma_0^2}

    • Distribution: χ2\chi^2-distribution with df=n−1df = n - 1

    • Core Assumption: Normally distributed population

    • Ratio of Two Variances (σ12/σ22\sigma_1^2 / \sigma_2^2):

    • Test Statistic: F=s12s22F = \frac{s_1^2}{s_2^2}

    • Distribution: FF-distribution with df1=n1−1,df2=n2−1df_1 = n_1 - 1, df_2 = n_2 - 1

    • Core Assumption: Normal populations, independent samples

    • Correlation Parameter (ρ\rho):

    • Test Statistic: t=rn−21−r2t = r \sqrt{\frac{n - 2}{1 - r^2}}

    • Distribution: tt-distribution with df=n−2df = n - 2

    • Core Assumption: Bivariate normal distribution

    • Regression Slope (β\beta):

    • Test Statistic: t=bsbt = \frac{b}{s_b}

    • Distribution: tt-distribution with df=n−2df = n - 2

    • Core Assumption: Bivariate normal, homoscedastic, independent errors

  • Systematic Hypothesis Testing Decision Workflow:


Decision Tree for Selecting the Right Statistical Test
  • Single Variable Evaluation:

    • If analyzing a central location mean (μ\mu) with n<30n < 30: Execute a one-sample tt-test (df=n−1df = n - 1).

    • If analyzing process variability or dispersion (σ2\sigma^2): Execute a one-sample χ2\chi^2-test (df=n−1df = n - 1).

  • Two Group Comparison:

    • Always execute an FF-test first to determine equality of population variances (σ12=?σ22\sigma_1^2 \stackrel{?}{=} \sigma_2^2).

    • If variances are determined equal (F<FcritF < F_{\text{crit}} or Ratio≤3\text{Ratio} \le 3): Run the pooled two-sample tt-test (df=n1+n2−2df = n_1 + n_2 - 2).

    • If variances are determined unequal (F≥FcritF \ge F_{\text{crit}} or Ratio>3\text{Ratio} > 3): Run the separate-variance Welch/Satterthwaite tt-test.

  • Two Variable Relationship Evaluation:

    • Compute Pearson's correlation coefficient rr.

    • Test significance of rr using the tt-test (df=n−2df = n - 2).

    • If not significant: Terminate workflow; regression predictions are invalid.

    • If significant: Fit OLS regression line (y^=a+bx\hat{y} = a + bx) and generate predictions.