The one point carrying your regression
Today let's find out why a single point in your data can do more to shape a fitted regression line than all the other points put together.
An appraiser pulls together the last 18 home sales in one neighborhood. For each sale she has two numbers: the home's square footage, running from 1,200 up to 2,200, and its sale price, in thousands of dollars, running from 143.7 up to 251.0. Here is what those 18 sales look like, plotted against each other.
Bigger homes sell for more, roughly along a straight line. Fit that line through all 18 points and every single home pulls on it, but not equally.
Here is the question this whole lesson answers. Of these 18 homes, exactly one of them pulls harder on that line than any of the other 17. Drop that one home and refit the line, and it moves more than dropping any other home would. Which home is it, and how would you find that out without actually refitting the model 18 separate times?
By the end of this lesson you will know exactly how to find that home, by hand and with two R functions, and what to do once you have found it.
Fitting the line through eighteen home sales
Let's build these 18 home sales in R, the same ones from the plot, and fit a straight line through them.
Rounded, that is price = 69.90 + 0.07483 x sqft. Every extra square foot adds about 0.07483 (roughly 75 dollars) to the predicted price, starting from a baseline of 69.90 at zero square feet.
That line did not come from one home. It came from all 18 at once, lm() choosing the intercept and slope that make the 18 leftover gaps, the residuals, as small as possible overall. But "as small as possible overall" hides a question: did every home contribute the same amount to landing on that particular line, or did some homes push harder than others?
Let's check how well this line actually fits the 18 points before going any further.
An R-squared of 0.625 means sqft explains about 62.5% of the spread in price across these 18 homes. The residual standard error, 18.77, is the typical size of the leftover gap between a home's actual price and what the line predicts, measured in the same thousands-of-dollars units as price. The 16 is the degrees of freedom left over after the line uses up 2 of the 18 homes' worth of information to estimate its intercept and its slope.
One honest way to measure each home's pull on the line is to refit it 18 times, once with each home left out, and see whose absence moves it most. That works, but doing it 18 separate times by hand is slow. A faster route to the same answer starts from a single quantity computed once: how far a home's own sqft sits from the group's average.