Equation of a fitted line
A fitted line is written with the response variable on the left and the explanatory variable on the right. Use two points that lie on the line to find its slope, then use one of those points to find the intercept
- Keep the response on the left Write the response variable as y and the explanatory variable as x. \(\displaystyle \text{RV}=y=a+bx,\quad\text{EV}=x\)
- Use line points Choose two points that are on the fitted line, not just two points in the cloud \(\displaystyle b=\frac{15-7}{6-2}=2\)
- Find the intercept Substitute one line point and the slope into a = y − bx \(\displaystyle a=7-2\times2=3\)
- Check the equation Substitute an anchor into the equation to check that it gives the anchor's response value \(\displaystyle y=3+2x,\quad 15=3+2\times6\)
Worked example
A fitted line through (3, 11) and (7, 23) models a response y from x. Find its equation and estimate y when x = 5.
- \(\displaystyle b=\frac{23-11}{7-3}=\frac{12}{4}=3\)Find the slope from the rise and run between two points on the line
- \(\displaystyle a=11-3\times3=2\)Use the point (3, 11) and the slope to find the intercept
- \(\displaystyle \widehat{y}=2+3x\)Write the fitted line with the response variable on the left
- \(\displaystyle \widehat{y}=2+3\times5=17\)Substitute x = 5 to obtain the estimated response
Common mistakes
Difficulty levels
Questions about this topic
How is the slope found from two points?+
Subtract the first y-value from the second y-value and divide by the difference between the x-values
What does the intercept represent?+
The intercept is the predicted response when the explanatory variable is zero. That interpretation is only useful when zero is meaningful for the context
Why should arbitrary scatterplot points not be used for the fitted-line slope?+
The data points can lie above or below the fitted line. Only points on the fitted line give its slope
Can I use a calculator?+
A calculator is allowed unless a question is marked no calculator
Which year level and chapter is this?+
Year 11, VCE Units 1 & 2, General Mathematics, chapter 7: Bivariate data