you can see that our line is in fact great fit for our datait goes right smack down the middleand all you need to predict new values is this predict function given new previously unseen page speedwe could predict the amount spent just using the slope times the page speed plus the intercept that' all there is to itand think it' greatactivity for linear regression time now to get your hands dirty try increasing the random variation in the test data and see if that has any impact rememberthe -squared is measure of the fitof how much do we capture the varianceso the amount of variancewell why don' you see if it actually makes difference or not that' linear regressiona pretty simple concept all we're doing is fitting straight line to set of observationsand then we can use that line to make predictions of new values that' all there is to it but why limit yourself to linethere' other types of regression we can do that are more complex we'll explore these next