Rounding to three decimal places, the slope is approximately -1.892 and the y-intercept is approximately 31.931. Therefore, the equation for the line of best fit is closest to: c. y = -1.893x + 31.901
To find the equation for the line of best fit, we'll use the least squares method to calculate the slope (m) and y-intercept (b).
Given data:
X: 2, 5, 7, 12, 16
y: 30, 19, 20, 9, 2
Let's first calculate the means of X and y:
Now, let's calculate the slope (m) using the formula:
Calculating the numerator and denominator:
Numerator:
Denominator:
Now, let's calculate the slope m:
Next, let's calculate the y-intercept b using the formula:
Rounding to three decimal places, the slope is approximately -1.892 and the y-intercept is approximately 31.931. Therefore, the equation for the line of best fit is closest to option: c. y = -1.893x + 31.901