Alternative Hypotheses: Main Ideas!!!

Поділитися
Вставка
  • Опубліковано 26 лип 2024
  • In Statistics, when we do Hypothesis Testing, we are supposed to have two hypotheses: A primary, or Null Hypothesis and an Alternative Hypothesis. This StatQuest explains why we need the Alternative Hypothesis, even though Hypothesis Testing tends to focus on the Null.
    NOTE: This StatQuest follows up on Hypothesis Testing and the Null Hypothesis: • Hypothesis Testing and...
    And if you'd like to learn about p-values, check out...
    p-values: What they are and how to interpret them: • p-values: What they ar...
    How to Calculate p-values: • How to calculate p-values
    Lastly, if you would like to learn about Statistical Tests, see: • Linear Regression and ...
    For a complete index of all the StatQuest videos, check out:
    statquest.org/video-index/
    If you'd like to support StatQuest, please consider...
    Buying my book, The StatQuest Illustrated Guide to Machine Learning:
    PDF - statquest.gumroad.com/l/wvtmc
    Paperback - www.amazon.com/dp/B09ZCKR4H6
    Kindle eBook - www.amazon.com/dp/B09ZG79HXC
    Patreon: / statquest
    ...or...
    UA-cam Membership: / @statquest
    ...a cool StatQuest t-shirt or sweatshirt:
    shop.spreadshirt.com/statques...
    ...buying one or two of my songs (or go large and get a whole album!)
    joshuastarmer.bandcamp.com/
    ...or just donating to StatQuest!
    www.paypal.me/statquest
    Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
    / joshuastarmer
    0:00 Awesome song and introduction
    1:49 The Alternative Hypothesis
    3:21 Testing the Null vs Alternative for 2 groups
    5:38 Testing the Null vs Alternative for 3 or more groups
    8:00 Summary and next steps
    #StatQuest #AlternativeHypothesis

КОМЕНТАРІ • 164

  • @statquest
    @statquest  2 роки тому +3

    Support StatQuest by buying my book The StatQuest Illustrated Guide to Machine Learning or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @Video_Hamster
    @Video_Hamster Рік тому +43

    You guys have accompanied me all throughout my degree so I just wanted to thank you.

    • @statquest
      @statquest  Рік тому +21

      Hooray!!! Thank you so much for supporting StatQuest!!! TRIPLE BAM! :)

  • @AndrewCJXing
    @AndrewCJXing 3 роки тому +63

    I've taken statistical methods at a master's level but only knew how to get to the answer as I was told to and had never understood the small concepts' subtle and intrinsic meanings. Thanks for the video!

  • @HazardousAbacus
    @HazardousAbacus 3 роки тому +17

    I'm a data science grad student brushing up on the basics. I found your entire playlist to be the perfect thing. I even went to your store and bought some study guides. Thank you so much for what you do!

    • @statquest
      @statquest  3 роки тому +1

      Wow! Thank you for your support!!! :)

  • @avgspacelover
    @avgspacelover 3 роки тому +32

    I passed this subject with flying colors in undergrad but my true foundations are getting built through these videos, thank you so much!

  • @interoffice5402
    @interoffice5402 3 роки тому +17

    Not only are you teaching me much needed Stat concepts, your data examples from the last few sessions are also motivating me to get back into exercising..

  • @thearunrams
    @thearunrams 2 роки тому +4

    you're way better at explaining this than some profs at one of the most prestigious universities in the world. can personally confirm.

  • @shanggao9970
    @shanggao9970 2 роки тому +3

    The explanation of why we don’t accept alternative hypotheses instead just fail to reject the null is GREAT!

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

      Thank you! :)

    • @anishmaharjan74
      @anishmaharjan74 7 місяців тому +1

      yeah my teacher failed to explain. this video is great

  • @edwardmordrake9436
    @edwardmordrake9436 3 роки тому +9

    Your teaching method is amazing, you break down complex concepts into simple bite-sized chunks. Super Teacher, Triple BAM!

  • @sanajafarkhani5807
    @sanajafarkhani5807 3 роки тому +3

    StatQuest is the best everrrr! Thanks a million Josh :) ♡

  • @Anthony-zp3ii
    @Anthony-zp3ii 2 роки тому +3

    I really appreciate this tutorial. It’s like a saving grace for my introduction to AI course
    Thank you so much Josh

  • @bextuychiyev7435
    @bextuychiyev7435 3 роки тому +5

    LOL! You have the weirdest best teaching method ever! So unique and helpful

  • @priyasharmax
    @priyasharmax 2 роки тому +1

    Understood it finally!! Thankyou Josh.

  • @akshaygs4048
    @akshaygs4048 3 роки тому +1

    Thank you very much for the brilliant videos. All concepts are explained in a very fun way.

  • @SS-ve1jm
    @SS-ve1jm 2 роки тому +1

    Your channel is truly amazing! Triple BAM!

  • @umutbadak
    @umutbadak 3 роки тому +2

    Thanks Josh, I have learned a lot from you. You definetely deserve at least triple BAM.

  • @alecvan7143
    @alecvan7143 4 роки тому +10

    Wow! Thank you for clarifying the idea of why we can't "accept" the alternative hypothesis-a concept that was always murky for me.... until now :P
    You're the best Josh, thank you :)

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

      Hooray!!!!

    • @statquest
      @statquest  4 роки тому +2

      My favorite part was realizing that failing to reject is the same thing as realizing that you've over fit the data.

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

      @@statquest I agree !

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

      @@statquest Hi Josh, I'm still not sure I get why failing to reject = overfitting. I get that a "sample" in stats is analogous to "training data" in machine learning, and how failing to reject means you cannot generalize your results to the population. But how is it similar to the statistical model "fitting" the sample dataset too well?

  • @tmorid3
    @tmorid3 3 роки тому +2

    Clicked on the Like button only because of the song in the beginning. StatQuest!!!

  • @raccoonduck5406
    @raccoonduck5406 2 роки тому +1

    Thanks Josh you are saving my stats grade. Can't wait to go triple BAM when I have exam this Monday!

  • @kstudy6187
    @kstudy6187 4 роки тому +7

    Sir , I really appreciate your effort. It is the best channel for study+ for fun + for easy understanding + for learning new things....Thanks a lot for making it easier .😊 I have tried to make these type of videos in past and it requires lots of time in that software and with that you are delivering best quality content and examples...So thank you soooooo much sir....

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

      Thank you very much! :)

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

      @@statquest No sir thank to you sir...Really you are doing great work...😇

  • @jagan1957
    @jagan1957 3 роки тому +2

    I am a fan of your videos. Amazing explanation. I pledge to contribute to patreon for a long time..

    • @statquest
      @statquest  3 роки тому +1

      Thank you very much! :)

  • @user-ix8mo6ui5g
    @user-ix8mo6ui5g 9 місяців тому +1

    your videos are enjoying and helpful. thank you very much

    • @statquest
      @statquest  9 місяців тому

      Glad you like them!

  • @bharathsf
    @bharathsf 3 роки тому +1

    Your song is exactly what I am doing. Definitely a lot better than watching netflix and wasting our lives!

  • @pranay619
    @pranay619 4 роки тому +2

    Great fan of your channel .Thank you so much for these wonderful videos. Can we have a video on degrees of freedom too ?

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

      I hope to do that one day.

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

    So Loves Statquest!! Bam Bam Bam! Trifecta.

  • @viduradias4646
    @viduradias4646 2 роки тому +1

    Thank you!!

  • @lorysherd1155
    @lorysherd1155 2 роки тому +1

    Josh,one of the best on earth.

  • @himeshkoli8607
    @himeshkoli8607 2 роки тому +1

    Bam this was good explanation on hypothesis, if you dont mind will you cover A/B testing please, like its used cases and all, that will really help and strengthen this video more

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

      Thanks! I'll keep that in mind.

  • @DataInsightsNepal
    @DataInsightsNepal 2 роки тому +1

    Its winter and its raining, too cold to go outside and watching StatQuest
    Fortunate

  • @clarencewong18
    @clarencewong18 3 роки тому +1

    Bam 3000! Amazing Channel

  • @spacetoxicology123
    @spacetoxicology123 4 роки тому +2

    good job!

  • @hemanthchavva
    @hemanthchavva 3 роки тому +1

    #### learning with statquest in rainy morning day

  • @user-uq7ri1pz2c
    @user-uq7ri1pz2c 2 роки тому +1

    your music is amazing :)

  • @advaitathreya5558
    @advaitathreya5558 3 роки тому +2

    Hey Josh, thanks for the great explanation!
    I have a doubt at 5:14 - I'm not quite sure how alternate hypothesis results in overfitting the data. Is it because we are doing a drug-specific mean calculation, as opposed to calculating a single mean in null hypothesis? Or is it for some other reason?

    • @statquest
      @statquest  3 роки тому +6

      If we insist on using two separate means to fit the data, we are over fitting the data because, statistically, there is no difference between the two means.

  • @youssefdirani
    @youssefdirani 3 роки тому +1

    Thanks. May I suggest you make a video that shows in a tree like structure the sequence of each video, like the one before and the one after ?

    • @statquest
      @statquest  3 роки тому

      That's not a bad idea. For the time being, I have the videos organized by topic and from simple to complex here: statquest.org/video-index/

  • @akhilteja2674
    @akhilteja2674 2 роки тому +1

    Now it's time for SHAMELESS SELF PROMOTION! LoL! You got me here! ;D

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

    You deserve a Medal of Freedom

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

      That would be a triple bam! :)

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

    thank you you really simplify and help me learn these difficult concepts! I want to buy a T-shirt but it looks like they’re only extra large. How do I get a medium? Or small?

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

      Huh. I just tried it out and was able to select 'S' for small and 'M' for medium. Maybe try it again? If you continue to have trouble, contact me through my website: statquest.org/contact/

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

    So alternatibe hypothesis is some artificial thing in case of two groups and it has more sense in case of > 2 groups, correct?

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

      With two groups, the alternative hypothesis is always the opposite of the null, or primary hypothesis. With 3 or more groups, the alternative hypothesis can take on different meanings.

  • @SergeySenigov
    @SergeySenigov Рік тому +1

    Josh, could you elaborate on the idea on 8:35 - you said «And depending on which one (of alternative hypotheses) we use in the statistical test we can end up making a different decision about the Null». I didn’t get how varying alternative hypothesis can affect rejecting/not rejecting the Null hypothesis.

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

      If you look, you'll see that I have illustrated two different alternative hypotheses. Since we compare the null to one of the two alternatives, we can get different results since the alternatives are different.

  • @ggoogi3046
    @ggoogi3046 3 роки тому +1

    Hi, I'm obscure what means failing to reject null hypothesis is the same thing that using two averages means "overfitting" in ML. Is that means we don't need to using two averages when estimate the whole of the average?
    As I know, the "overfitting" means that the model doesn't represent the population(not whole but only training set).
    Could you explain more clearly?

    • @statquest
      @statquest  3 роки тому +1

      Failing to reject the null hypothesis can mean one of two things: 1) we are over fitting the model to the data by assuming that there are two separate groups when, in reality, there is only one or 2) we were not able to collect enough data to determine a difference. Those are two very different statements. However, we can rule out the second one by doing something called a "power analysis" before we collect the data. I explain power analyses here: ua-cam.com/video/VX_M3tIyiYk/v-deo.html

  • @SergeySenigov
    @SergeySenigov 8 місяців тому

    Hi Josh! Suppose I want to check if the real (population) mean recover time of people taking (new improved) drug D is 10 hours less compared to people taking (old) drug C. How would I formulate the H0 and H1?

    • @statquest
      @statquest  8 місяців тому

      That's not usually done (to learn why, see my video on the null hypothesis): ua-cam.com/video/0oc49DyA3hU/v-deo.html

  • @nishtha-wagh-1041
    @nishtha-wagh-1041 4 місяці тому

    Can you explain how is failing to reject null hypothesis related to overfitting in machine learning?

    • @statquest
      @statquest  4 місяці тому

      In machine learning, the more variables and parameters in your model, the easier it is to overfit the training data. So, in the example here, where we compare a simple model to one with more parameters and fail to see a difference, then the model with more parameters is probably over fitting the data. If, in contrast, we had rejected the null hypothesis, then we would have justification in using more parameters in our model and confidence that we had not overfit the data.

  • @Alfa1M
    @Alfa1M 2 роки тому +1

    I wish you were my instructor.

  • @mahman543
    @mahman543 3 роки тому

    If the hypothesis was to prove that there are no difference between two variables, is it to prove the null hypothesis or is the null hypothesis change to be the opposite depending on our hypothesis?

    • @statquest
      @statquest  3 роки тому +1

      We can't make a strong argument that there is no difference between two things. The best we can do is "fail to reject the idea that they are the same". I explain why this is, in detail, in my video on the null hypothesis here: ua-cam.com/video/0oc49DyA3hU/v-deo.html

  • @wtrx
    @wtrx 3 роки тому +1

    If there are only 2 groups of data (A & B) and we reject the null hypothesis does that mean we accept the alternative hypothesis?

    • @statquest
      @statquest  3 роки тому

      No. To understand why, see my video on the null hypothesis: ua-cam.com/video/0oc49DyA3hU/v-deo.html

    • @Marcelofer94
      @Marcelofer94 3 роки тому

      @@statquest Sorry if I'm stupid but in the video on the null hypothesis at 13:21 you say " Then we could reject the null hypothesis. And then we know that there is a difference between drug C and D" Isn't it accept the alternative hypothesis ?

    • @statquest
      @statquest  3 роки тому +1

      ​@@Marcelofer94 I'm sorry I was sloppy with my wording. Even when we reject the null hypothesis, we are still not 100% certain that we are correct. It's possible that the small p-value is the result of a false positive. So we only say that we reject the null hypothesis.

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

    Can you please explain why is rejecting a null hypothesis the same thing as realising that using two averages means that you overfit the data?

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

      At 5:03 I say that "failing to reject the null...is the same thing as realizing that we overfit the data". The "failing to reject" part is key. When we fail to reject, we are not confident that the means are different. Thus, it would be better to use a single mean value to model all of the data. (p.s. if you're not familiar with overfitting data in machine learning, see: ua-cam.com/video/EuBBz3bI-aA/v-deo.html

  • @88NA
    @88NA 11 місяців тому +1

    00:02 it's actually raining here

  • @anindyachatterjee6634
    @anindyachatterjee6634 29 днів тому

    Viral Load is also a very important parameter for the infection which should not be named.

  • @tawiwutcharuwat8999
    @tawiwutcharuwat8999 3 роки тому +2

    I love you BAM

  • @trolltoll440
    @trolltoll440 6 місяців тому

    does rejecting the null hypothesis mean an automatic acceptance of the alternative hypothesis?

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

    5:09 Maybe I am feeling slow mentally today but I could not quite grasp the overfitting part. Can someone explain this?

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

      In machine learning, the more variables and parameters in your model, the easier it is to overfit the training data. So, in the example here, where we compare a simple model to one with more parameters and fail to see a difference, then the model with more parameters is probably over fitting the data. If, in contrast, we had rejected the null hypothesis, then we would have justification in using more parameters in our model and confidence that we had not overfit the data.

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

    Come back from machine learning statquest, I still cannot understand "Fail to reject the null hypothesis is the same thing as realizing that using two averages means that you have overfit the data." Can you elaborate it? Thank you very much.

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

      It just means that the simpler model, with just one mean, is probably better.

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

      Overfitting means that the predictive model is too rigid - works well on training data but fails on new data. This is the case - your model will try to split data into two _different_ test distributions (according to their averages) but in reality there is only one distribution with one mean.
      So if you fail to reject the null hypothesis, you realise that your model should predict only one distribution.

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

    Can you explain why failing to reject the Null Hypothesis means that we have overfit the data?
    I am familiar with Machine Learning lingo, but I guess not enough to connect the dots 😆

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

      In machine learning, the more variables and parameters in your model, the easier it is to overfit the training data. So, in the example here, where we compare a simple model to one with more parameters and fail to see a difference, then the model with more parameters is probably over fitting the data. If, in contrast, we had rejected the null hypothesis, then we would have justification in using more parameters in our model and confidence that we had not overfit the data.

  • @mohammadbasheer6192
    @mohammadbasheer6192 3 роки тому

    what is single mean.....? how did you calculate that using data of different drugs.....?

    • @statquest
      @statquest  3 роки тому +1

      "A single mean" is the average value from all of the measurements collected, regardless of which group or category they originally came from.

  • @nievsbest
    @nievsbest 3 роки тому

    So is there a way of proving the Alternative hypothesis to be definitely true?

    • @statquest
      @statquest  3 роки тому +1

      In statistics (as in life) we can never prove that something is 100% true. However we can be reasonably confident when we reject the null hypothesis. Unfortunately, accepting the alternative hypothesis is a much weaker proposition.

    • @nievsbest
      @nievsbest 3 роки тому +1

      @@statquest Neat. Thanks!

  • @bhang96
    @bhang96 3 роки тому

    BAM
    - There are too many possibilities to test to know if we have accepted the correct one. And this is why we only **reject** or **fail to reject** the **null** or **primary hypothesis**.
    Double BAM
    - When we only have two groups of data, the **Alternative Hypothesis** is super obvious because it is just the opposite of the **Null Hypothesis**. But when we have 3 or more groups we have options for the Alternative Hypothesis, and depending on which one we use on the statistical test, we can end up making a different decision about the **Null Hypothesis**

  • @odainanna
    @odainanna 3 роки тому +1

    And then we said Triple Bam!

  • @lokeshmadiga6215
    @lokeshmadiga6215 5 місяців тому +1

    BAM BAM BAM

  • @vnsousa11
    @vnsousa11 3 роки тому

    i don't understand the meaning of the statistical test and it's correlation with the p-value, if there's any at all.

    • @statquest
      @statquest  3 роки тому +1

      To understand more about what's going on here, see: ua-cam.com/video/0oc49DyA3hU/v-deo.html ua-cam.com/video/vemZtEM63GY/v-deo.html ua-cam.com/video/JQc3yx0-Q9E/v-deo.html

  • @mpn6362
    @mpn6362 Місяць тому

    Josh check 4:03 it seems twisted to me, maybe it should be much longer not shorter, thanks good videos

    • @statquest
      @statquest  Місяць тому

      The video is correct. If the distances around the 2 means are significantly shorter than the distances around a single mean, than we should reject the null hypothesis.

    • @mpn6362
      @mpn6362 Місяць тому

      @@statquest thanks for the reply, I'm still confused about the "distance around a single mean", do u mean the distance between each data and a single mean?

    • @statquest
      @statquest  Місяць тому

      @@mpn6362 At 4:03 we have 2 graphs of the same sets of data, one on the left and one on the right. In the graph on the left we have drawn the mean of all 6 data points (the mean of both the green and pink data points) at a little less than 30. Also in the graph on the right we have blue dotted-lines that illustrate the distances from the data points to the line that represents the mean line. In contrast, in the graph on the right we drew two means, one for just the green data points and one for just the pink data points. We also drew the distances from the green points to the mean for the green points with blue dotted-lines and we drew the distances from the pink points to the mean for pink points with blue dotted-lines. Those blue dotted lines in the graph on the right tend to be shorter than the blue dotted lines in the graph on the right. Does that make sense?

  • @RabbitK-rf6we
    @RabbitK-rf6we 2 місяці тому

    If there are only two groups of data and we reject the null hypothesis, then we ACCEPT THE ALTERNATIVE HYPOTHESIS?

    • @statquest
      @statquest  2 місяці тому +1

      Technically, we only reject the null.

    • @RabbitK-rf6we
      @RabbitK-rf6we 2 місяці тому +1

      @@statquest Thank you!

  • @jackyhuang6034
    @jackyhuang6034 3 роки тому

    Failing to reject the null hypothesis is the same thing as realizing that using two averages means that you have overfit the data ===> Josh, I know some machine learning but I don't get this point....

    • @statquest
      @statquest  3 роки тому

      For more details on what it means to over fit data in machine learning see: ua-cam.com/video/EuBBz3bI-aA/v-deo.html

  • @zehramarziyacengiz6011
    @zehramarziyacengiz6011 7 місяців тому +1

    BAAM !!

  • @kowalski1111
    @kowalski1111 2 роки тому +1

    Quadruple BAM

  • @svensalvatore8702
    @svensalvatore8702 Місяць тому

    I am Abhishek,
    BAM!

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

    I disagree with referring to lifestyle as "random" things. We can try to assign treatments randomly, but it would be better to use the wording "other factors" or something like that.

    • @statquest
      @statquest  4 роки тому +2

      Noted!

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

      I guess you're objecting on the word "chaotic" rather than "random". I might be wrong though.

  • @s.e.7268
    @s.e.7268 3 роки тому +1

  • @kal5211
    @kal5211 2 роки тому +1

    My man.👞

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

    Hypothesis*

    • @statquest
      @statquest  4 роки тому +2

      Since we talking about multiple hypotheses, I use the plural.

    • @Sanchitgoel10
      @Sanchitgoel10 4 роки тому +2

      @@statquest Why is it that you are never wrong? The best

  • @koustubhmuktibodh4901
    @koustubhmuktibodh4901 Місяць тому +1

    Everything is temporary except 'BAM' 😀😀😀

  • @yashlakdawala7232
    @yashlakdawala7232 4 роки тому +4

    Dare someone dislike it.

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

      Nice! :)

    • @ocamlmail
      @ocamlmail 4 роки тому +4

      It's alternative hypothesis after all!

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

    Kind of monotonous :S

  • @pillarliang
    @pillarliang 11 місяців тому

    i think this part is so boring... the youtuber was so verbose.