NivaarExam PrepOfficial exam papers ↗

23-Chem-B3 Simulation, Modelling, and Optimization · December 2014

Question 5 of 7: Inference on a Least-Squares Linear Regression

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

National Exams — December 2014 — 04-Chem-B3, Simulation, Modelling & Optimization. Closed-book; any five of the seven questions constitute a complete paper (equal value). All seven are solved below as a study resource.

Reference texts: T. F. Edgar, D. M. Himmelblau & L. S. Lasdon, Optimization of Chemical Processes (2nd ed., McGraw-Hill) — unconstrained & constrained optimization and linear programming; S. S. Rao, Engineering Optimization: Theory and Practice (4th ed., Wiley); S. C. Chapra & R. P. Canale, Numerical Methods for Engineers (7th ed., McGraw-Hill) — root finding (Newton, bisection) and difference equations; D. C. Montgomery & G. C. Runger, Applied Statistics and Probability for Engineers (7th ed., Wiley) — linear regression and hypothesis testing; E. Kreyszig, Advanced Engineering Mathematics (10th ed., Wiley) — the error function and difference equations.

Question 5: Inference on a Least-Squares Linear Regression (20 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Given. $n = 10$ pairs; $b_0 = -0.8701$, $b_1 = 8.5168$; $S_{{yy}} = 80.61$ (total), $SS_R = 76.87$ (regression); error variance $s^2 = 0.468$; $C_{{00}} = 1.72911$, $C_{{11}} = 0.94354$. Critical two-sided $t$ values at $\nu = n-2 = 8$ d.o.f.:

$\alpha$0.500.400.300.200.10
$t(\alpha/2)$0.7060.8891.1081.3971.860

Find. (a) test $H_0:\beta_1 = 0$; (b) test $H_0:\beta_0 = 0$ (whether the through-origin model suffices); (c) the correlation coefficient $r$.

Approach. Use $s = \sqrt{{s^2}}$ and standard errors $\operatorname{{se}}(b_j) = s\sqrt{{C_{{jj}}}}$ to form $t = b_j/\operatorname{{se}}(b_j)$ on $\nu=8$ d.o.f.; obtain $r$ from the variance partition $r^2 = SS_R/S_{{yy}}$.

  1. Residual scale and d.o.f. $s = \sqrt{{0.468}} = 0.6841$ on $\nu = n-2 = 8$ d.o.f. (Check: $SS_E = S_{{yy}} - SS_R = 80.61 - 76.87 = 3.74$, and $SS_E/8 = 0.468$ — consistent with the stated error variance.)
  2. (a) Test $H_0:\beta_1 = 0$. The slope $t$-statistic is $$t = \frac{b_1}{s\sqrt{{C_{{11}}}}} = \frac{8.5168}{0.6841\sqrt{{0.94354}}} = \frac{8.5168}{0.6645} = \boxed{12.82}.$$ Since $12.82$ vastly exceeds every tabulated critical value (largest $= 1.860$ at $\alpha=0.10$), reject $H_0$: $Y$ depends significantly on $x$.
  3. (b) Test $H_0:\beta_0 = 0$. The intercept $t$-statistic is $$t = \frac{b_0}{s\sqrt{{C_{{00}}}}} = \frac{-0.8701}{0.6841\sqrt{{1.72911}}} = \frac{-0.8701}{0.8996} = \boxed{-0.967}.$$ Because $|{-0.967}| \lt 1.860$ (and indeed sits between the $\alpha=0.40$ and $\alpha=0.30$ criticals), we fail to reject $H_0:\beta_0=0$. The intercept is not significant, so the through-origin model $Y = \beta_1 x$ can replace the original.
  4. (c) Correlation coefficient. From the variance partition, $$r^2 = \frac{SS_R}{S_{{yy}}} = \frac{76.87}{80.61} = 0.9536 \;\Rightarrow\; r = +\sqrt{{0.9536}} = \boxed{0.9765},$$ positive because $b_1 \gt 0$.
Test / quantityStatisticDecision
(a) $H_0:\beta_1 = 0$$t = 12.82$ ($\nu=8$)Reject — $Y$ depends on $x$
(b) $H_0:\beta_0 = 0$$t = -0.967$Fail to reject — $Y=\beta_1 x$ acceptable
(c) Correlation coefficient$r = +0.9765$$r^2 = 0.954$