Four afternoons give sunshine hours and sales in tens: , , and . Fit the least-squares line . Give to one decimal place.
Worked solution
The mean sunshine is , and the mean count is . The numerator of the slope is The denominator is The slope is . The intercept is , so the fitted line is . The predictions are , , and , and the residuals are , , and , which sum to zero as a line with an intercept requires.