QUESTION IMAGE
Question
use linear regression to find a function that fits the following points. (-2, -1) (3, 9) ?x +
Step1: Calculate the slope \(m\)
The formula for slope \(m=\frac{y_2 - y_1}{x_2 - x_1}\).
Let \((x_1,y_1)=(-2,-1)\) and \((x_2,y_2)=(3,9)\).
\(m=\frac{9-(-1)}{3-(-2)}=\frac{9 + 1}{3+2}=\frac{10}{5}=2\)
Step2: Find the \(y\) - intercept \(b\)
Use the point - slope form \(y=mx + b\). Substitute \(m = 2\) and the point \((x,y)=(3,9)\) (we could also use \((-2,-1)\)).
\(9=2\times3 + b\)
\(9 = 6 + b\)
Subtract 6 from both sides: \(b=9 - 6=3\)
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
\(2x+3\)