CrashCourse · @crashcourse

Regression: Crash Course Statistics #32

Uploaded June 8, 2019 · Length 12:40

Regression: Crash Course Statistics #32

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.

  1. 0:03

    Hi, I’m Adriene Hill and welcome back to Crash Course Statistics.

  2. 0:06

    There’s something to be said for flexibility.

  3. 0:08

    It allows you to adapt to new circumstances.

  4. 0:11

    Like a Transformer is a truck, but it can also be an awesome fighting robot.

  5. 0:15

    Today we’ll introduce you to one of the most flexible statistical tools--the General

  6. 0:18

    Linear Model, or GLM.

  7. 0:21

    The GLM will allow us to create many different models to help describe the world.

  8. 0:25

    The first we’ll talk about is The Regression Model.

  9. 0:27

    INTRO

  10. 0:36

    General Linear Models say that your data can be explained by two things: your model, and

  11. 0:41

    some error:

  12. 0:42

    First, the model.

  13. 0:43

    It usually takes the form Y = mx + b, or rather, Y = b + mx in most cases.

  14. 0:49

    Say I want to predict the number of trick-or-treaters I’ll get this Halloween by using enrollment

  15. 0:54

    numbers from the local middle school.

  16. 0:56

    I have to make sure I have enough candy on hand.

  17. 0:58

    I expect a baseline of 25 trick-or-treaters.

  18. 1:01

    And then for every middle school student, I’ll increase the number of trick-or-treaters

  19. 1:04

    I expect by 0.01.

  20. 1:07

    So this would be my model:

  21. 1:09

    There were about 1,000 middle school students nearby last year, so based on my model, I

  22. 1:13

    predicted that I’d get 35 trick-or-treaters.

  23. 1:16

    But reality doesn’t always match predictions.

  24. 1:19

    When Halloween came around, I got 42, which means that the error in this case was 7.

  25. 1:24

    Now, error doesn’t mean that something’s WRONG, per se.

  26. 1:27

    We call it error because it’s a deviation from our model.

  27. 1:30

    So the data isn’t wrong, the model is.

  28. 1:32

    And these errors can come from many sources: like variables we didn’t account for in

  29. 1:36

    our model-- including the candy-crazed kindergartners from the elementary school--or just random variation

  30. 1:42

    Models allow us to make inferences --whether it’s the number of kids on my doorstep at

  31. 1:46

    Halloween, or the number of credit card frauds committed in a year.

  32. 1:50

    General Linear Models take the information that data give us and portion it out into

  33. 1:54

    two major parts: information that can be accounted for by our model, and information that can’t be.