0% found this document useful (0 votes)
75 views

Chapter 17 Least Square

This document describes linear regression. It provides the equations to calculate the slope and y-intercept of a linear regression line by minimizing the sum of squared errors. It also defines terms like the sum of squared errors (SSE) and sum of squared total (SST) for a linear regression model. An example data set is given with 9 data points to demonstrate linear regression.

Uploaded by

Muhammad Ibad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views

Chapter 17 Least Square

This document describes linear regression. It provides the equations to calculate the slope and y-intercept of a linear regression line by minimizing the sum of squared errors. It also defines terms like the sum of squared errors (SSE) and sum of squared total (SST) for a linear regression model. An example data set is given with 9 data points to demonstrate linear regression.

Uploaded by

Muhammad Ibad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

𝑛

 
∑ ( 𝑦 𝑖 −𝑏 𝑜 − 𝑏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)
𝑆𝑆𝐸=𝑆 𝑦𝑦 − 𝑏 𝑆 𝑥𝑦
 

• Sum of square total (SST)


  𝑛
2
𝑆𝑆𝑇 =∑ ( 𝑦 𝑖 − ´𝑦 ) =𝑆 𝑦𝑦
𝑖=1

You might also like