Lecture 6 - Correlation and Regression Analysis
Lecture 6 - Correlation and Regression Analysis
Lecture Six
Correlation Analysis
We were talking about one variable and how we can describe this
variable by graphical form or numerical form.
But in real life we have correlation between two or more than two
variables and they affect of each other (such as Experience and
Salary, Price and quantity Supplied, Prices and quantity demanded)
Correlation Analysis
X X
Y Y
Y
Curvilinear
Relationships
X X X
Y Y
No
Relationship
X X
Correlation Analysis
Direct
Example : r= 0.85
Comment: there is positive strong linear relationship between income and consumption
Correlation Analysis
Strength
[ 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
𝑈