Mostly Harmless StatisticsXYZ Homework Edition

⇩ Download ▾

12.12 Chapter 12 Formulas

SSxx=(n1)srx2SS_{xx} = (n-1) s_{rx}^{2}
SSyy=(n1)sy2SS_{yy} = (n-1) s_{y}^{2}
SSxy=(xy)n·x¯·y¯SS_{xy} = \sum (xy) - n \cdot \bar{x} \cdot \bar{y}
Correlation Coefficient
r=SSxy(SSxx·SSyy)r = \frac{SS_{xy}}{\sqrt{\left(SS_{xx} \cdot SS_{yy}\right)}}
Correlation t-test
H0:ρ=0H_{0}: \rho = 0
H1:ρ0H_{1}: \rho \neq 0
t=r(n21r2)t = r \sqrt{\left( \frac{n-2}{1-r^{2}} \right)}
df=n2df = n-2
Regression Equation (Line of Best Fit)
y^=b0+b1x\hat{y} = b_{0} + b_{1}x
Slope
b1=SSxySSxxb_{1} = \frac{SS_{xy}}{SS_{xx}}
y-Intercept
b0=y¯b1x¯b_{0} = \bar{y} - b_{1} \bar{x}
Slope t-test
H0:β1=0H_{0}: \beta_{1} = 0
H1:β10H_{1}: \beta_{1} \neq 0
t=b1(MSESSxx)t = \frac{b_{1}}{\sqrt{ \left( \frac{MSE}{SS_{xx}} \right)}}
df=np1=n2df = n - p - 1 = n - 2
Slope/Model F-test
H0:β1=0H_{0}: \beta_{1} = 0
H1:β10H_{1}: \beta_{1} \neq 0
Standard Error of Estimate
sest=(yiy^i)2n2=MSEs_{est} = \sqrt{ \frac{\sum \left(y_{i} - \hat{y}_{i}\right)^{2}}{n-2}} = \sqrt{MSE}
Residual
ei=yiy^ie_{i} = y_{i} - \hat{y}_{i}
Prediction Interval
y^±tα/2·sest(1+1n+(xx¯)2SSxx)\hat{y} \pm t_{\alpha / 2} \cdot s_{est} \sqrt{\left( 1 + \frac{1}{n} + \frac{\left(x - \bar{x}\right)^{2}}{SS_{xx}} \right)}
Coefficient of Determination
R2=(r)2=SSRSSTR^{2} = (r)^{2} = \frac{SSR}{SST}
Multiple Linear Regression Equation
y^=b0+b1x1+b2x2+·+bpxp\hat{y} = b_{0} + b_{1} x_{1} + b_{2} x_{2} + \cdot + b_{p} x_{p}
Model F-Test for Multiple Regression
H0:β1=β2==βp=0H_{0}: \beta_{1} = \beta_{2} = \cdots = \beta_{p} = 0
H1:H_{1}: At least one slope is not zero.
Adjusted Coefficient of Determination
Radj2=1((1R2)(n1)(np1))R_{adj}^{2} = 1 - \left( \frac{\left(1 - R^{2}\right) (n-1)}{(n - p - 1)} \right)
 
Regression ANOVA table with equations.

Adapted from Mostly Harmless Statistics by Rachel Webb (Portland State University, https://mostlyharmlessstat.wixsite.com/webpage), © Rachel Webb, licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.

These eBooks are a prerelease and are not yet certified conformant with WCAG 2.1 AA or ADA Title II. Every page is built against an automated accessibility gate, and the published editions will meet ADA Title II requirements when they release in late September 2026. If something is unusable, please tell us.