Regression: Crash Course Statistics #32

Поділитися
Вставка
  • Опубліковано 8 лют 2025
  • Today we're going to introduce one of the most flexible statistical tools - the General Linear Model (or GLM). GLMs allow us to create many different models to help describe the world - you see them a lot in science, economics, and politics. Today we're going to build a hypothetical model to look at the relationship between likes and comments on a trending UA-cam video using the Regression Model. We'll be introducing other popular models over the next few episodes.
    Crash Course is on Patreon! You can support us directly by signing up at / crashcourse
    Thanks to the following Patrons for their generous monthly contributions that help keep Crash Course free for everyone forever:
    Mark Brouwer, Kenneth F Penttinen, Trevin Beattie, Satya Ridhima Parvathaneni, Erika & Alexa Saur, Glenn Elliott, Justin Zingsheim, Jessica Wode, Eric Prestemon, Kathrin Benoit, Tom Trval, Jason Saslow, Nathan Taylor, Brian Thomas Gossett, Khaled El Shalakany, Indika Siriwardena, SR Foxley, Sam Ferguson, Yasenia Cruz, Eric Koslow, Caleb Weeks, D.A. Noe, Shawn Arnold, Malcolm Callis, Advait Shinde, William McGraw, Andrei Krishkevich, Rachel Bright, Mayumi Maeda, Kathy & Tim Philip, Jirat, Ian Dundore
    --
    Want to find Crash Course elsewhere on the internet?
    Facebook - / youtubecrashcourse
    Twitter - / thecrashcourse
    Tumblr - / thecrashcourse
    Support Crash Course on Patreon: / crashcourse
    CC Kids: / crashcoursekids

КОМЕНТАРІ • 188

  • @justynaizabela2495
    @justynaizabela2495 6 років тому +590

    This series is amazing! I have majored in Statistics and still this series explains everything much better than college classes.

    • @panosshady6168
      @panosshady6168 5 років тому +73

      You majored in statistics? Wow, and here I thought that I hated myself.

  • @sarlut
    @sarlut 4 роки тому +66

    I swear this series is the reason I am actually doing well in statistics! Wish I had this in my BSC (MSc Student)

  • @theidiotboy100
    @theidiotboy100 2 роки тому +18

    I think you guys are the reason people study or stay in school. net positive for humanity. thanks for helping people.

  • @benbernanke4037
    @benbernanke4037 5 років тому +19

    These graphical presentations are so good, especially at 8:30 the didferent sums of square types

  • @Waltham1892
    @Waltham1892 6 років тому +833

    BRAIN HURT!!!

    • @MasterofPlay7
      @MasterofPlay7 5 років тому +16

      nah actually I find it very fun, Z test T test F test and anova all has to do with std and variance which has to do with the mean

    • @nikkid4890
      @nikkid4890 5 років тому +7

      @@MasterofPlay7 I also LOVE stats. And this from a person that sold my math text books for toffee at school! Once you get it, it's so much fun!

    • @MasterofPlay7
      @MasterofPlay7 5 років тому +9

      ​@@nikkid4890 yes we human are too dumb, most statistical analysis have to do with a straight line (most models are based on y=ax+b) cuz we can only perceive the relationship through a straight line

  • @NN_2000
    @NN_2000 5 років тому +176

    Only crash course can make statistics interesting. Thank you for making quality educational videos for free! :D

  • @klaras5703
    @klaras5703 5 років тому +162

    the best thing about the video is how the pumpkin and the transformer slowly eat all the candy worms that were on the table during the video

  • @mayankjacky
    @mayankjacky Рік тому +2

    Thanks

  • @raposo_debora
    @raposo_debora 4 роки тому +62

    This course is sooo good. I'm using the Covid-19 Quaratine to educate myself in Statistics and this Crash Course was THE finding. Thanks a lot!

  • @dondacurator
    @dondacurator 5 років тому +5

    This right here is the most entertaining and intriguing statistical video Ive ever watched.. it actually made stats fun, thanks for incorporating art and creativity to this piece ,,instead of old and boring numbers presented in a monotonic go to sleep now voice

  • @alfredgustafsson4708
    @alfredgustafsson4708 4 роки тому +30

    This is great, especially the explaination of degrees of freedom. I never really understood it through five years of Economics so thank you.

  • @williamkee6578
    @williamkee6578 5 років тому +4

    This video is absolutely helpful! One single video and I understand the contents from 2 hours class.

  • @expansivegymnast1020
    @expansivegymnast1020 Рік тому

    This series is pointless... until you actually need this stuff for class and then you're thankful to God that it exists. Thanks for everything y'all do!

  • @mayankjacky
    @mayankjacky Рік тому

    It was a very comprehensive, concise and crisp presentation on a complex topic. Kudos to the entire team for an excellent effort.

  • @Maria-hd4hk
    @Maria-hd4hk 5 років тому +7

    First minute and a half and i've actually learnt so much

  • @Malik-jt8hi
    @Malik-jt8hi 5 років тому +1

    Thank god for crash course lol, godsend channel to start to learn a topic when I gotta teach my brother about a topic I’ve never learned myself

  • @HinamiMel
    @HinamiMel Рік тому

    every night brings a dream but the day, relentlessly, keeps me awakeee

  • @nikkid4890
    @nikkid4890 5 років тому +3

    Wow! You are brilliant. I'm post-grad and needed to refresh. Brilliant

  • @libbylebyane3681
    @libbylebyane3681 2 роки тому

    Linear Regression is the building block in Artificial Intelligence predictions

  • @mw79863s
    @mw79863s 6 років тому +32

    Some unnecessarily confusing parts:
    It would have been helpful to explain that our zero-coefficient line IS the line y='y hat'.
    The point referred to at 7:05 is not highlighted or pointed out (and as it sits far above its distance for SSR it isn't instantly recognizable as connected).
    Positioning of the equations at 8:50 gives strong and erroneous implication that each refers specifically to the diagram above.
    The equation given for F-statistic at 8:58 is then instantly revised as not being correct.
    The correct f-statistic equation is only on screen at 10:07 for a fraction of the time needed to read it - let alone fully digest it.

    • @BastiPROTON
      @BastiPROTON 5 років тому +2

      Exactly! I was so confused the whole time, a lot of it makes little sense if you see this stuff for the first time.

    • @jaceychang5785
      @jaceychang5785 4 роки тому

      I think the F-statistic formulas are wrong at both 8:58 and 10:07 ! At 10:07 the denominator and numerator should be reversed!

  • @seltsamerjunge3642
    @seltsamerjunge3642 6 років тому +6

    Interesting. I just factchecked the theory about the comment-to-likes ratio, and it met pretty well: At the time I've written this, there were 41 comments and 391 likes, which is just the value "4000/100" shown in the diagram... As it turned out, this time it's above the regression line, but with an increase in the y-value by less than 35%

  • @kanitoneko
    @kanitoneko 6 років тому +275

    How can she keep speaking without inhaling!?

  • @RaulPelcastreRealEstate
    @RaulPelcastreRealEstate 5 років тому +45

    She speaks a little too fast for me but clearly explained. I like it.

  • @OlleLindestad
    @OlleLindestad 6 років тому +83

    NOTE: This video uses the abbreviation "GLM" incorrectly (or at least very misleadingly) throughout.
    The general linear model is NOT usually what is meant by "GLM". Instead, GLM stands for generaLIZED linear model, which is a special kind of linear model that (among other things) allows for a response variable that is not normally distributed. (Yes, this is extremely confusing. Don't even get me started on the word "linear", which doesn't even mean "straight lines" in this context.)
    Bottom line: substitute simply "linear model" whenever Adrienne says "GLM" in this video, and you'll be fine.

  • @stankalfon2170
    @stankalfon2170 6 років тому +5

    Thank you this helped me so much! Will you do a video on multiple regression and econometrics in general? Keep up the good work you guys rock!

  • @EconomicalUnicorn
    @EconomicalUnicorn 5 років тому +9

    Did anyone notice how as the video goes on, there are less and less lollies (sweets) near the pumpkin lmao

  • @TilleTheo
    @TilleTheo 4 роки тому +13

    It was a bit too fast, but very helpfull still! Will watch it a few more times.

  • @greensteve9307
    @greensteve9307 6 років тому +2

    So much clearer than my uni stats lecture!

  • @ravindukarunarathne507
    @ravindukarunarathne507 5 років тому +1

    So nice, can keep watching for hours.. Well done

  • @TaroQuispe
    @TaroQuispe 5 років тому +2

    You guys rock the house, super clear, super helpful!

  • @Ureallydontknow
    @Ureallydontknow 6 років тому +2

    this video is top production quality and expert instruction. thank you so much.

  • @danieldelacruz7642
    @danieldelacruz7642 6 років тому +174

    Who needs a regression calculation when you have "add trendline" in Excel?

    • @Tntpker
      @Tntpker 6 років тому +30

      who still uses excel in 2018 lol. keep up and learn python noob

    • @avinoamr
      @avinoamr 6 років тому +3

      The folks that want to work at Microsoft or any of it's competitors

    • @alanle18
      @alanle18 6 років тому +96

      Tntpker excel will forever be used, it has a great balance between learning curve and power. You must feel good about yourself putting strangers down over the internet.

    • @OlleLindestad
      @OlleLindestad 6 років тому +21

      I mean, that's what "add trendline" does. It does a regression on your data. :D

    • @aNytmare
      @aNytmare 6 років тому

      But a B-spline looks sooo much nicer!!!

  • @aldorosas1136
    @aldorosas1136 6 років тому +2

    Very interesting. One comment though. "The regression line is the one straight line that minimizes the sum of the squared distances of each point to the line" (3:50) can be slightly misleading. It seems to suggest the actual distance from each point to the line, which (except for a horizontal line) would not be vertical. It should say, "...minimizes the sum of the squared vertical distances from each point to the line."

  • @breakinchico
    @breakinchico 5 років тому

    This is Incredible

  • @florentinfrank3671
    @florentinfrank3671 4 роки тому +1

    Well done! thanks so much for all the efforts! now i understand better!

  • @corinneblair8795
    @corinneblair8795 10 місяців тому

    So good! So helpful! Thank You!!

  • @dianarinker8429
    @dianarinker8429 Рік тому

    what a great explanation!! thank you so much!

  • @MasterofPlay7
    @MasterofPlay7 5 років тому

    Wow you opened my brains and I found it statistic is so fun!

  • @viktorianas
    @viktorianas 5 років тому

    One of the best episodes of the series. Mustaches - 9:22

  • @adamacosta5019
    @adamacosta5019 5 років тому

    So lost I want to cry, but seeing @AstroKatie was a nice pick me up

  • @SaraAB98
    @SaraAB98 4 роки тому

    Thank you very much ❤

  • @neilcidial-masrysandagesid7796
    @neilcidial-masrysandagesid7796 6 років тому

    Insightful. Will read watch.

  • @alexbe3136
    @alexbe3136 5 років тому

    Easter egg alert: The candies dissapear while the video goes on :)

  • @navroopgill7594
    @navroopgill7594 5 років тому

    Amazing . Thanks for the info shot!

  • @jimivie
    @jimivie 5 років тому

    100/100 - great video

  • @kanoutema
    @kanoutema 5 років тому

    Bless you guys !

  • @saivishnutulugu5014
    @saivishnutulugu5014 6 років тому +3

    Can you go over nonlinear data models(exponential, power, etc) and also Simpson's paradox in the future?

  • @michaelyoon9355
    @michaelyoon9355 5 місяців тому

    I opened the CD cart, I haven't done that since Aprilish. I've regressed.

  • @jigarpatel2792
    @jigarpatel2792 5 років тому

    Great explanation

  • @brodyreingold5992
    @brodyreingold5992 Рік тому

    great video

  • @ramanshaw8922
    @ramanshaw8922 6 років тому

    good work ..it is really helping.

  • @kowalityjesus
    @kowalityjesus 6 років тому +15

    I really appreciate this explanation, but I think you started moving too quick when discussing degrees of freedom. I can't get what you're talking about after listening to it even several times. Specifically the lines she says at 19:13 are completely non-understandable to me. Thanks, though

    • @SyedAriff
      @SyedAriff 5 років тому +2

      19:13 doesnt exist

  • @kcthewanderer
    @kcthewanderer 6 років тому

    Ooo this is starting to get good...

  • @manzurekhoda7013
    @manzurekhoda7013 4 роки тому +1

    You should have include nonlinear methods of regression in this video. Anyway, great video.

  • @jeremiahharemza1235
    @jeremiahharemza1235 5 років тому +5

    "I know Kung Fu" - Neo
    "Show me." - Morpheus

  • @Sagitarria
    @Sagitarria 6 років тому +2

    For the trick or treat example, would it be appropriate to try a logarithmic transformation?

  • @dilnoza2168
    @dilnoza2168 6 років тому

    I Love this channel:) this is very helpful channel

  • @emilydack2074
    @emilydack2074 6 років тому

    Bless this video

  • @Bruh-bv5nm
    @Bruh-bv5nm 6 років тому

    We have to write a paragraph over what we learned from your videos every day in science class. I do it in 6th period.
    Love your videos :D

  • @caioraimundo1609
    @caioraimundo1609 4 роки тому

    AMAZING

  • @tutukkunoor
    @tutukkunoor 6 років тому +2

    At 9:33, she says 'The sums of squares for regression (SSR) has one degree of freedom as one degree is consumed in calculating slope of the model line'. How is that o.O

  • @davidcampos1463
    @davidcampos1463 6 років тому

    You mean it's all of us human being random number generators against UA-cams mechanical algorithms. "Of course you realize, this means war!"

  • @circleofideas9549
    @circleofideas9549 5 років тому

    Mam you are so sweet. thankx you teaching us.

  • @treelight1707
    @treelight1707 6 років тому +5

    I finally figured out the issue with this series, why it is so hard to follow. The animations are too much, too fast for statistics. I can barely follow through with the examples, or cannot follow at all. Example: the calculations; you can't remove each line before the next. I would want to see what numbers went where, and it is not that long of a calculation that you need to have space. Other than that, I think everything else is fine. Crash course Economics was awesome btw.

  • @demonika2060
    @demonika2060 2 роки тому +7

    lmao i didn't understand anything

  • @likiee
    @likiee 4 роки тому

    Math makes me cry

  • @Flush.103
    @Flush.103 6 років тому +1

    new video yay!

  • @bharathreddy4806
    @bharathreddy4806 5 років тому

    please add content of full machine learning algorithms

  • @sapandeepsandhu4410
    @sapandeepsandhu4410 2 роки тому

    love it

  • @tatsianatati8375
    @tatsianatati8375 6 років тому +10

    Oh my , too fast for me🤯🤯🤯

  • @mpilosov
    @mpilosov 6 років тому +2

    At 9:43, do you mean “the mean”
    In the null model, we are just using the mean of the data (one independent piece of info) to predict the outcome. You say “slope,” but aren’t we not using slope, i.e. setting it to zero?

    • @mikail5682
      @mikail5682 6 років тому

      It's at 9:34
      "The sums of squares for regression (SSR) has one degree of freedom, because we are using one piece of independent information to estimate our coefficient, the slope"
      Correct me if I'm wrong, but the sentence has to be "...we are using one piece of independent information to estimate SSR, the mean".
      If this is incorrect, please explain why.

  • @medslarge
    @medslarge 6 років тому +9

    Didn’t really understand the degrees freedom part 🤔

  • @cbottube
    @cbottube 6 років тому +1

    *watches Optimus very closely throughout the video*

  • @carlosfloresventuri6452
    @carlosfloresventuri6452 6 років тому +1

    Thank you so much, this helped me a lot! :D

  • @PhysqueLab
    @PhysqueLab 6 років тому +3

    May i ask when the logistic regression video will be uploaded?

  • @berfeito
    @berfeito 6 років тому +2

    Can anyone recommend an exercise book or a site with practice questions for statistics? I feel like I need to practice it on my own. Cheers.

  • @NikitaSamourai
    @NikitaSamourai 6 років тому +3

    i don't understand why the sums of squares for regression has one degree of freedom

    • @NikitaSamourai
      @NikitaSamourai 6 років тому

      I DONT WANT TO OPEN TABACHNIK AND FIDELL

    • @iefe65
      @iefe65 6 років тому

      same, I don't get it

    • @cycla
      @cycla 6 років тому

      Because only 1 independent variable is used to generate the regression

  • @iefe65
    @iefe65 6 років тому

    I don't get why in 9:35 she says that we only need 1 degree of freedom to calculate the slop. I understand the 98 DF for SSE but I don't get why SSR has only 1 DF

  • @sunsusan2739
    @sunsusan2739 4 роки тому +1

    I'm confused by the equation at 2:24. Should "increase in likes per comment" be in blue, standing for m instead of x?

  • @technofeeliak
    @technofeeliak 6 років тому +8

    Statistics are the ultimate rationalization of life's experiences through math. Unfortunately, the government and other organizations can take this oversimplification to back up their fallacies.

    • @KitsuneSoftware
      @KitsuneSoftware 6 років тому +1

      Only when their audience doesn't understand the stats. It's like small print in contracts (who reads those?) or those disclaimers in adverts in tiny print or really fast voices. Lessons like these help us to not be fooled.

  • @jennyskene4777
    @jennyskene4777 6 років тому

    This lady is a great presenter. I wish she was my teacher!

  • @kensaville513
    @kensaville513 Рік тому

    Useful video thanls. it looks like the alpha value used was 0.5. Should this be 0.05?

  • @milesbrown1889
    @milesbrown1889 5 років тому

    Did anyone else notice the bell curve in the background and where she sits positions her as being among the average? how funny is that! I’m not showing off my observational skills at all it’s just an observation.

  • @ArjunTheCreator8
    @ArjunTheCreator8 2 роки тому

    Guess I'm the only one who noticed the gummy worms slowly disappearing...

  • @iamdrscript
    @iamdrscript 6 років тому

    best explaination ever!!!

  • @granny933
    @granny933 5 років тому +1

    If linear regression is for straight lines, how can regression be used to detect a curve? After all, how common a straight lines in science....

    • @3rl0y
      @3rl0y 5 років тому +3

      You can apply a transformation or use a different technique altogether, fully depends on what you are researching. As for straight lines in science, perfect lines, no, but approximations are enough. And those are abundant.

    • @granny933
      @granny933 5 років тому

      Baldur thank you.

  • @jaceychang5785
    @jaceychang5785 4 роки тому

    The F-statistic formulas are wrong at both 8:58 and 10:07 ! Though the calculation is correct.

  • @alikhan81
    @alikhan81 5 років тому +2

    Just to F-up the F-Test, I'm gonna leave a comment without liking the video

  • @HeineSchiller1999
    @HeineSchiller1999 5 років тому

    Hi at 3:51 is it sum of(observed value minus predicted value)^2 or is it sum of(observed value minus average of values observed)^2

  • @unleashingpotential-psycho9433
    @unleashingpotential-psycho9433 6 років тому +11

    I remember statistics class in school was very challenging T_T

    • @gardenhead92
      @gardenhead92 6 років тому +3

      Said like a true psychologist

    • @DPMixing
      @DPMixing 6 років тому +1

      Well it seems easy when you get to watch entertaining, visually-stimulating videos and not have to be assessed for your application of the concepts with homework and exams...😂😂😂

    • @gnometheory3831
      @gnometheory3831 6 років тому

      @@DPMixing Yup, I am in AP stats with a 97% and watched this for fun to see how dumbed down it is. The answer: very.

  • @siddharththomas5740
    @siddharththomas5740 6 років тому

    How many more episodes will there be?

  • @missaster1902
    @missaster1902 4 роки тому

    You can’t be like that glasses 👓 guy 🥺

  • @st0lf
    @st0lf 6 років тому +1

    This video is really helpful and the explanations are easy to understand. I think however some quiet music might be able to break the tension a bit, especially as the sound effects tend to get repetitive. Some quiet Lo-Fi instrumentals in the background could really help the videos seem even more polished.
    Keep up the good work. ^^

  • @higher_haze
    @higher_haze 5 років тому +1

    I hope Crash Course helps me in college.

  • @danyypao1824
    @danyypao1824 6 років тому +3

    Im so lost

  • @actualprogramming
    @actualprogramming 6 років тому

    Next what? Correlation?

  • @rajdubey4389
    @rajdubey4389 6 років тому

    SIR PLZ MAKE VIDEOS ON MATHS IF U WANNA CROSS 10M COZ THERES MILLION OF SAME DEMAND

  • @emopeterparker7
    @emopeterparker7 5 років тому

    hi apitong 👋

  • @Flush.103
    @Flush.103 6 років тому +5

    I have notes I took pls love this I have watch ed you for so long
    Motor Output: The response that occurs when your Nervous System activates certain parts of your body.
    Key:
    (MC)”word”: if its behind the word then it means it branches from it
    “word”(MC):means is it’s the nervous system or (NS) that it may have branches.
    Central Nervous System(CNS):
    Brain and spinal cord.
    Main control center.
    Peripheral Nervous System(PNS):
    All the nerves that branch off from the brain and spine that allow your CNS to communicate with the rest of your body.
    Works in both directions (PNS)
    Sensory Division(SD):
    Picks up sensory stimuli.
    Motor Division(MD):
    Sends directions from your Brain to Muscles and Glands.
    (MD)Sematic Nervous System(SNS): voluntary
    rules skeletal muscle movement.
    (MD)Autonomic Nervous System(ANS): involuntary
    keeps your heart beating.
    (ANS)Sympathetic Nervous System:
    Mobilizes the body into action
    (ANS)parasympathetic:
    Relaxes the body
    Astrocytes (Nervous System):
    Exchanges materials between neurons and capillaries.
    Microglial Cells(MC):
    Immune defense against invading microorganisms.
    (MC)Satellite Cells:
    Surround and support Neuron cell bodies.
    (MC)Schwan Cells:
    Produce an insulating barrier called by Myelin Sheath.
    Crazy facts about neurons:
    1.They are the longest-lived cells in the human body.
    2.They are irreplaceable.
    3.They have huge appetites

    • @Flush.103
      @Flush.103 6 років тому

      please love/pin this :)I love your vids a lot especially the heart and lungs genres.

    • @Tntpker
      @Tntpker 6 років тому +4

      wtf lol?

    • @Flush.103
      @Flush.103 6 років тому

      what?

  • @alexdetoxx2633
    @alexdetoxx2633 5 років тому

    why youtube doesn't have heart button?