Download 3.2 Getting a Line on the Pattern

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts
no text concepts found
Transcript
3.2 Getting a Line on the Pattern
Using Lines for Prediction


Find a model that describes the relationship
between the two variables
Use the line to predict the value of y when
you know the value of x



Variable on x-axis – explanatory variable
Variable on the y-axis – response variable
Predicting value of y when:


x is inside the range of values –
interpolation
x is outside the range of values -extrapolation
3.2 Getting a Line on the Pattern
Using Lines for Prediction
Residual – difference between
observed and predicted value of y
Residual = observed y – predicted y

residual  y  yˆ

D4, pg. 122
3.2 Getting a Line on the Pattern
Least Squares Regression Lines

Line of best fit is where the sum of squared
errors (SSE) is as small as possible
SSE   (residual )
  ( y  yˆ )
2
2
3.2 Getting a Line on the Pattern
Least Squares Regression Lines




The sum (and mean) of the residuals is 0.
The line contains the point of averages. ( x , y )
The standard deviation of the residuals is
smaller than for any other line that goes
through the point ( x , y )
The line has slope b1, where
( x  x )( y  y )

b 
 (x  x )
1
2
Related documents