2022 CIVN2011A and STAT3029A- Lecture Series 10a - Simple Linear Regression
2022 CIVN2011A and STAT3029A- Lecture Series 10a - Simple Linear Regression
1 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
Outline
2 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
4 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
6 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
7 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
8 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
9 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
Lemma 1
The least squares estimators of the simple regression coefficients
are given by
SSXY
β̂1 = , and β̂o = Ȳ − β̂1 X̄ (3)
SSXX
where
n
X n
X
SSXY = (Xi − X̄ )(Yi − Ȳ ) and SSXX = (Xi − X̄ )2 . (4)
i=1 i=1
Remark 1
It can be easily verified that
n Pn Pn
X ( i=1 Xi ) ( i=1 Yi )
SSXY = Xi Yi − and (5)
n
i=1
10 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
Remark 2
11 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
Example 1
The length L of a metal rod is measured at various temperatures
T.
Temperature, t(o C ) 20 30 40 50 60 70 80 85
Length, l(mm) 102 107 109 109 113 117 120 121
12 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
13 / 14
Introduction to Regression Analysis Least squares criterion for determining regression coefficients
Example 2
(cont’
Comment on the suitability or otherwise of linear relationship
between L and t.Indeed, a linear relationship is suitable
P P P 2
Verify that
P ti = 435,
P 2 li = 898, ti = 27525,
ti li = 49915 and li = 101114.
Calculate SStt , SStl and SSll .
SStt = 27525 − 4352 /8 = 3871.875,
SStl = 49915 − 435 × 898/8 = 1086.25
SSll = 101114 − 8982 /8 = 313.5
Calculate the least square estimators of the regression
coefficients.
SStl 1086.25
β̂1 = = = 0.280549,
SStt 3871.875
898 435
β̂o = − 0.280549 × = 96.99515.
8 8 14 / 14