CrashCourse · @crashcourse
Regression: Crash Course Statistics #32
Uploaded June 8, 2019 · Length 12:40
Summary
Learn about linear regression, a statistical tool to predict outcomes using continuous variables and understand model error.
- linear regression explained
- general linear model
- predictive modeling statistics
- regression line formula
- statistical error residuals
- hypothesis testing regression
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:03
Hi, I’m Adriene Hill and welcome back to Crash Course Statistics.
- 0:06
There’s something to be said for flexibility.
- 0:08
It allows you to adapt to new circumstances.
- 0:11
Like a Transformer is a truck, but it can also be an awesome fighting robot.
- 0:15
Today we’ll introduce you to one of the most flexible statistical tools--the General
- 0:18
Linear Model, or GLM.
- 0:21
The GLM will allow us to create many different models to help describe the world.
- 0:25
The first we’ll talk about is The Regression Model.
- 0:27
INTRO
- 0:36
General Linear Models say that your data can be explained by two things: your model, and
- 0:41
some error:
- 0:42
First, the model.
- 0:43
It usually takes the form Y = mx + b, or rather, Y = b + mx in most cases.
- 0:49
Say I want to predict the number of trick-or-treaters I’ll get this Halloween by using enrollment
- 0:54
numbers from the local middle school.
- 0:56
I have to make sure I have enough candy on hand.
- 0:58
I expect a baseline of 25 trick-or-treaters.
- 1:01
And then for every middle school student, I’ll increase the number of trick-or-treaters
- 1:04
I expect by 0.01.
- 1:07
So this would be my model:
- 1:09
There were about 1,000 middle school students nearby last year, so based on my model, I
- 1:13
predicted that I’d get 35 trick-or-treaters.
- 1:16
But reality doesn’t always match predictions.
- 1:19
When Halloween came around, I got 42, which means that the error in this case was 7.
- 1:24
Now, error doesn’t mean that something’s WRONG, per se.
- 1:27
We call it error because it’s a deviation from our model.
- 1:30
So the data isn’t wrong, the model is.
- 1:32
And these errors can come from many sources: like variables we didn’t account for in
- 1:36
our model-- including the candy-crazed kindergartners from the elementary school--or just random variation
- 1:42
Models allow us to make inferences --whether it’s the number of kids on my doorstep at
- 1:46
Halloween, or the number of credit card frauds committed in a year.
- 1:50
General Linear Models take the information that data give us and portion it out into
- 1:54
two major parts: information that can be accounted for by our model, and information that can’t be.


