Basic Statistics Intro


Basic Statistics Intro

Anna
Michael, have you ever thought about how you'd predict a tip amount if all you had was a list of tips from a few meals? No bill amounts, just the tips themselves.

Michael
That sounds tricky. I suppose you'd need some kind of average, right? Maybe the mean tip would be your best guess for the next one.

Anna
Exactly. And that's exactly where the instructor started in this video. With only the dependent variable—tip amount—the best prediction for any future tip is simply the mean of the sample. So if you had tips of $5, $17, $11, $8, $14, and $5, the mean is $10. That's your best-fit line, a flat horizontal line at $10.

Michael
Okay, but clearly the actual tips aren't all $10. Some are above, some below. That difference between the observed value and the mean—he called that the residual, or the error, right?

Anna
Yes! For each tip, the residual is the observed value minus the mean. So for a $5 tip, the residual is -$5; for $17, it's +$7. And if you add up all the residuals, they sum to zero—that's always true when you use the mean.

Michael
Right. And then to measure how spread out the data is around that line, we square each residual. That gives us the sum of squared residuals, or the sum of squared errors—SSE for short. In this example, the squared residuals were 25, 49, 1, 4, 16, and 25, adding up to 120.

Anna
Exactly. Now here's the key idea: simple linear regression is about introducing an independent variable—like the bill amount—to create a new line that fits the data better. The goal is to minimize that SSE. So the regression line is literally the line that makes the sum of squared residuals as small as possible.

Michael
So we're comparing two models. Model one: just the mean of the dependent variable, with SSE = 120. Model two: the regression line that uses the independent variable. If the regression is good, it will 'eat up' some of that 120, reducing the SSE. That's how we judge whether the independent variable actually helps.

Anna
Perfect summary. And if the regression line ends up being flat—meaning the independent variable doesn't explain anything—then the best prediction is still the mean. So the whole idea of regression is always relative to that baseline mean-only model.

Michael
That makes so much sense. It's not just about drawing a line through points; it's about seeing how much better that line is than just guessing the average. Brilliant foundation for the rest of the series.

Ask anything
We've read this whole study set, so questions about it get the best answers.