Chapter 17 Least Square
Chapter 17 Least Square
Chapter 17 Least Square
∑ ( 𝑦 𝑖 −𝑏 𝑜 − 𝑏1 𝑥 𝑖 )=0
𝑖=1
𝑛
∑ ( 𝑦 𝑖 −𝑏 𝑜 − 𝑏1 𝑥 𝑖 ) 𝑥 𝑖=0
𝑖=1
•For
Linear regression: y=a+bx
• Linear regression:
For
y=a+bx
n=9
𝑦=𝑏 𝑜 +𝑏1 𝑥
x y
77 82 71.89 102.2121
𝑎 ¿ ^𝑦 =𝑎+𝑏𝑥
50 66 50.91 227.72
50 66 50.91 227.72
^𝑦 =12.0623+0.7771 𝑥
71
71
78
78
67.24
67.24
115.78
115.78
72 34 68.01 1156.68
72 34 68.01 1156.68
81 47 75.01 784.56
𝑏 ¿ ^𝑦 =12.0623+0.7771 (85) 81 47 75.01 784.56
94 85 85.11 0.012
94 85 85.11 0.012
96 99 86.66 152.28
96 99 86.66 152.28
^𝑦 =78
SSE=2654.22
99
99
99
99
89
89
100
100
67 68 64.13 14.98
67 68 64.13 14.98
Square error
• Sum of square error (SSE)
𝑆𝑆𝐸=𝑆 𝑦𝑦 − 𝑏 𝑆 𝑥𝑦