Lecture 5 - Correlation and Regression Analysis
Lecture 5 - Correlation and Regression Analysis
Lecture Six
Correlation Analysis
X X
Y Y
Y
Curvilinear
Relationships
X X X
Y Y
No
Relationship
X X
Correlation Analysis
Strength
Example : r= 0.85
Comment: there is positive strong linear relationship between income and consumption
Loans (in million $) (Y) Deposits (in million $) (X)
245 1400
312 1600
279 1700
308 1875
199 1100
219 1550
405 2350
324 2450
319 1425
255 1700
Loans in Deposits in
xy x -square y-square
million $ (y) million $ (x)
n xy x y 245 1400 343000 1960000 60025
312 1600 499200 2560000 97344
r 279 1700 474300 2890000 77841
2 2 2 2 308 1875 577500 3515625 94864
[ n ( x ) ( x ) ][ n ( y ) ( y ) ] 199
219
1100
1550
218900
339450
1210000
2402500
39601
47961
405 2350 951750 5522500 164025
324 2450 793800 6002500 104976
319 1425 454575 2030625 101761
255 1700 433500 2890000 65025
2865 17150 5085975 30983750 853423
sum of y sum of x sum of xy sum of x square sum of y square
Yi β̂ 0 β̂1X i U i
Linear component Random Error
component
Simple Linear Regression Model
Statistical Models and Mathematical Models?
+εi
- εi
Estimated Y
X
Linear Regression
Example:
𝑆𝑎𝑙𝑎𝑟𝑦 = 𝛽መ0 + 𝛽መ1 𝐸𝑥𝑝𝑒𝑟𝑖𝑒𝑛𝑐𝑒 𝑖 + 𝑈𝑖
Estimated model:
= 3000 + 200 𝐸𝑥𝑝𝑒𝑟𝑖𝑒𝑛𝑐𝑒 𝑖
𝑆𝑎𝑙𝑎𝑟𝑦
Comment:
Yi β̂ 0 β̂1X i U i
𝑛 σ 𝑋𝑖 𝑌𝑖 − σ 𝑋𝑖 σ 𝑌𝑖
𝛽መ0 = 𝒀
ഥ − 𝛽መ1 𝑿
ഥ 𝛽መ1 =
𝑛 σ 𝑋𝑖 2 − σ 𝑋𝑖 2
Loans in million $ (y) Deposits in million $ (x) xy x -square y-square
𝛽መ0 = 𝒀
ഥ − 𝛽መ1 𝑿
ഥ 𝑛 σ 𝑋𝑖 𝑌𝑖 − σ 𝑋𝑖 σ 𝑌𝑖
𝛽መ1 =
𝑛 σ 𝑋𝑖 2 − σ 𝑋𝑖 2
σ𝑦 2865
𝑦ത = = = 286.5
𝑛 10 10 × 5085975 − 17150 × 2865
σ𝑥 17150
𝑥ҧ = = = 1715 10 × 30983750 − 17150 2
𝑛 10
= 0.109 ~0.11
= 286.5 − 0.11 × 1715 = 97.85
Linear Regression
Estimated Model:
𝑖 = 0
𝑈