wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
FORMULA SHEET • MODULES S.4–S.54 Reference Sections

Statistical Inference, Hypothesis Testing, Chi-Square & ANOVA

Maximum Likelihood Estimation (MLE), Bias–Variance MSE decomposition, Z vs. Student's t confidence intervals, p-values and Statistical Power, Paired vs. Welch's two-sample t-tests, Chi-Square tables, and One-Way ANOVA.

Mathematical Rigor & Accuracy Notes
  • Frequentist Confidence Interval Meaning: Fixed μ\mu is NOT random—a 95%95\% confidence interval means 95%95\% of independently generated random intervals Xˉ±ME\bar{X} \pm \text{ME} trap μ\mu under repeated sampling.
  • The #1 p-Value Misconception: p=P(data at least as extreme∣H0)p = P(\text{data at least as extreme} \mid H_0) measures compatibility with the null model, NEVER the posterior probability P(H0∣data)P(H_0 \mid \text{data}) that H0H_0 is true.
  • Welch's Unpooled t-Test Default: Student's pooled two-sample tt-test breaks badly when sample sizes and variances both differ; Welch's Satterthwaite approximation controls Type I error without equal-variance assumptions.
  • Simpson's Paradox & Multiple Testing Inflation: Running mm tests at α=0.05\alpha = 0.05 raises family-wise false positives to 1−(1−α)m1 - (1-\alpha)^m (e.g., 40%40\% at m=10m = 10), while pooled counts can reverse subgroup rates under hidden confounders.

1. Point Estimation, MLE, Fisher Information & MSE

Likelihood & Log-Likelihood Score Equation
ℓ(θ)=∑i=1nln⁡f(xi∣θ),θ^MLE=arg⁡max⁡θℓ(θ),∂ℓ∂θ∣θ^=0\ell(\theta) = \sum_{i=1}^{n} \ln f(x_i \mid \theta), \qquad \hat{\theta}_{\text{MLE}} = \arg\max_{\theta} \ell(\theta), \qquad \frac{\partial \ell}{\partial \theta}\Big|_{\hat{\theta}} = 0

Condition:Maximizing ℓ(θ)\ell(\theta) matches minimizing empirical cross-entropy / KL divergence between sample and model.

Fisher Information & Cramér–Rao Variance Lower Bound
I(θ)=−E ⁣[∂2ℓ∂θ2],Var⁡(θ^)≥1n I1(θ)(unbiased θ^)I(\theta) = -\mathbb{E}\!\left[\frac{\partial^2 \ell}{\partial \theta^2}\right], \qquad \operatorname{Var}(\hat{\theta}) \ge \frac{1}{n\,I_1(\theta)} \quad (\text{unbiased } \hat{\theta})
Bias–Variance Decomposition of Mean Squared Error
MSE⁡(θ^)=E[(θ^−θ)2]=(E[θ^]−θ)2+Var⁡(θ^)=Bias⁡2+Var⁡\operatorname{MSE}(\hat{\theta}) = \mathbb{E}\bigl[(\hat{\theta} - \theta)^2\bigr] = \bigl(\mathbb{E}[\hat{\theta}] - \theta\bigr)^2 + \operatorname{Var}(\hat{\theta}) = \operatorname{Bias}^2 + \operatorname{Var}

2. Confidence Intervals, p-Values & Statistical Power

One-Sample Confidence Intervals (Normal Mean & Proportion)
xˉ±tα/2, n−1sn,p^±zα/2p^(1−p^)n\bar{x} \pm t_{\alpha/2,\, n-1}\frac{s}{\sqrt{n}}, \qquad \hat{p} \pm z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

Condition:Use zα/2z_{\alpha/2} only when population σ\sigma is known; use Student's tα/2, n−1t_{\alpha/2,\,n-1} whenever σ\sigma is estimated from sample ss.

Two-Tailed p-Value & Statistical Power Separation
p=P(∣T∣≥∣tobs∣∣H0),Power=1−β=P(Reject H0∣H1)p = P\bigl(|T| \ge |t_{\text{obs}}| \mid H_0\bigr), \qquad \text{Power} = 1 - \beta = P(\text{Reject } H_0 \mid H_1)

Increasing sample size nn narrows standard error σ/n\sigma/\sqrt{n}, boosting Power cleanly for a fixed α\alpha.

Hypothesis Testing Decision Matrix (H₀ True vs. H₁ True)

Decision / RealityH₀ Actually TrueH₁ Actually True
Reject H0H_0Type I Error (False Positive, prob α\alpha)Correct Discovery (Power =1−β= 1 - \beta)
Fail to Reject H0H_0Correct Retention (Confidence 1−α1 - \alpha)Type II Error (False Negative, prob β\beta)

3. Paired & Welch's Two-Sample t-Tests, Cohen's d & Chi-Square

Paired Difference t-Test ($d_i = y_i - x_i$)
tpaired=dˉ−μd,0sd/n∼tn−1,Var⁡(Y−X)=σX2+σY2−2Cov⁡(X,Y)t_{\text{paired}} = \frac{\bar{d} - \mu_{d,0}}{s_d / \sqrt{n}} \sim t_{n-1}, \qquad \operatorname{Var}(Y - X) = \sigma_X^2 + \sigma_Y^2 - 2\operatorname{Cov}(X, Y)
Independent Welch's t-Statistic & Cohen's d Effect Size
tWelch=Xˉ1−Xˉ2s12/n1+s22/n2,ν≈(s12n1+s22n2)2(s12/n1)2n1−1+(s22/n2)2n2−1,d=Xˉ1−Xˉ2spooledt_{\text{Welch}} = \frac{\bar{X}_1 - \bar{X}_2}{\sqrt{s_1^2/n_1 + s_2^2/n_2}}, \qquad \nu \approx \frac{\left(\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}\right)^2}{\frac{(s_1^2/n_1)^2}{n_1-1} + \frac{(s_2^2/n_2)^2}{n_2-1}}, \qquad d = \frac{\bar{X}_1 - \bar{X}_2}{s_{\text{pooled}}}
Pearson Chi-Square Contingency & Goodness-of-Fit
χ2=∑i,j(Oij−Eij)2Eij,Eij=RiCjN,df=(r−1)(c−1)\chi^2 = \sum_{i,j} \frac{(O_{ij} - E_{ij})^2}{E_{ij}}, \qquad E_{ij} = \frac{R_i C_j}{N}, \qquad \text{df} = (r - 1)(c - 1)

Condition:Asymptotic χ2\chi^2 calibration generally requires expected cell counts Eij≥5E_{ij} \ge 5.

4. One-Way ANOVA Variance Decomposition & Multiple Testing

Pythagorean Sum-of-Squares Partition & Family-Wise Error Rate
∑i=1k∑j=1ni(yij−yˉ)2⏟SST=∑i=1kni(yˉi−yˉ)2⏟SSB+∑i=1k∑j=1ni(yij−yˉi)2⏟SSW,FWER=1−(1−α)m\underbrace{\sum_{i=1}^{k}\sum_{j=1}^{n_i}(y_{ij}-\bar{y})^2}_{\text{SST}} = \underbrace{\sum_{i=1}^{k} n_i(\bar{y}_i - \bar{y})^2}_{\text{SSB}} + \underbrace{\sum_{i=1}^{k}\sum_{j=1}^{n_i}(y_{ij} - \bar{y}_i)^2}_{\text{SSW}}, \qquad \text{FWER} = 1 - (1-\alpha)^m

Bonferroni guards mm pairwise comparisons by testing each at significance threshold αadj=α/m\alpha_{\text{adj}} = \alpha/m.

One-Way ANOVA Decomposition Summary Table (k Groups, Total N)

SourceSum of Squares (SS)dfMean Square (MS)F-Ratio
Between Groups (Signal)SSB=∑ini(yˉi−yˉ)2\text{SSB} = \sum_i n_i(\bar{y}_i - \bar{y})^2k−1k - 1MSB=SSB/(k−1)\text{MSB} = \text{SSB}/(k - 1)F=MSB/MSW∼Fk−1, N−kF = \text{MSB}/\text{MSW} \sim F_{k-1,\,N-k}
Within Groups (Noise)SSW=∑i,j(yij−yˉi)2\text{SSW} = \sum_{i,j}(y_{ij} - \bar{y}_i)^2N−kN - kMSW=SSW/(N−k)\text{MSW} = \text{SSW}/(N - k)—
TotalSST=SSB+SSW\text{SST} = \text{SSB} + \text{SSW}N−1N - 1——

Related Formula Reference Sheets

All Formula Sheets