Confidence Intervals, Clearly Explained!!!

Поделиться
HTML-код
  • Опубликовано: 2 фев 2025

Комментарии • 345

  • @statquest
    @statquest  2 года назад +4

    Support StatQuest by buying my books The StatQuest Illustrated Guide to Machine Learning, The StatQuest Illustrated Guide to Neural Networks and AI, or a Study Guide or Merch!!! statquest.org/statquest-store/

  • @joarvat
    @joarvat 5 лет назад +187

    Guys, I can't believe you are doing all this. I am trying to break into the field of data science, and your videos are really great because you are doing it in such an entertaining way. Big thank you!

    • @statquest
      @statquest  5 лет назад +15

      Thanks and good luck with Data Science! :)

    • @Dupamine
      @Dupamine 4 года назад +3

      how is it going man

    • @joarvat
      @joarvat 4 года назад +2

      @@Dupamine I am still just in the beginning, but I have just started in my first analyst job

    • @applepeel1662
      @applepeel1662 4 года назад

      @@joarvat hey I'm 20 rn and learning all bout statistics for data science. Is it worth it?

    • @joarvat
      @joarvat 4 года назад

      @@applepeel1662 I have got my first analyst job, and then I decided to go through the Data Science track with dataquest.io It's a great program.

  • @Coffee_with_code_01
    @Coffee_with_code_01 Месяц назад +3

    Why can't others explain things as clearly and easily as you do? Simply amazing

  • @kurosakishusuke1748
    @kurosakishusuke1748 3 года назад +8

    Months ago, I found an idea to know how machine learning may make varied prediction given different sample orders in both train and test set under influence of bootstrapping for my thesis. But, knowing that I had spent too much time thinking on how to clearly communicate the CI results to supervisor, promptly I jumped to watch this video and this is exactly what I have been searching for. You have my deep gratitude.!

  • @yonatansegal1615
    @yonatansegal1615 2 года назад +16

    I am medical student with an Bachelors in Science and this is possibly the only Stats tutorial, I have EVER been able to understand!!! Thank you

  • @annel5546
    @annel5546 4 года назад +18

    I'm currently writing my bachelor thesis and this video helped me a lot, thank you! What I like most is, that it's not too long and on point. Moreover, I'm not a native English speaker, but the video was very clear and easily understandable.

  • @Небокекисвета
    @Небокекисвета 3 года назад +20

    You know, I am a Data scientist and work in the banking sphere for 3 years. I noticed your videos in my RUclips recomendation section and was like: "easily explained? Ye ye haha just another video for those who hope to easily learn ML and statistics, well let me watch it during my breakfast". And I was shocked. I realized that the use of Python made me completely blind about some connections between measurements. Sometimes I run tests without any true understanding. For example, those last 10 seconds about "when we should run t-test" were completely new for me! And that can be told about a lot of your videos. There is always a tiny detail that makes me say "oh, wow, that was something I've never noticed".
    You should definetely run a course on Coursera...

    • @statquest
      @statquest  3 года назад

      Wow!!! Thank you very much!!! :)

  • @kylebecker5083
    @kylebecker5083 3 года назад +189

    Josh, when I finish the StatQuest Statistics Fundamentals playlist, will you send me a BAM certificate? I want to be BAM certified.

    • @statquest
      @statquest  3 года назад +61

      BAM!!! One day I will make certificates. :)

    • @reetanshukumar1865
      @reetanshukumar1865 Год назад +4

      @@statquest can I make one for you 👻

    • @Wahkyascene
      @Wahkyascene 9 месяцев назад

      Oh! He will get your BAM certified

  • @siyuguo3300
    @siyuguo3300 4 года назад +8

    I learned stat for 6 years, and this is the best tutorial about CI. Thank you very much.

  • @vincentlin9926
    @vincentlin9926 3 года назад +2

    You are a true life saver for person like myself who needs such knowledge but never had a chance to get educated in school…thank you.

    • @statquest
      @statquest  3 года назад

      I'm glad I can help!

  • @06Amruta
    @06Amruta 4 года назад +24

    Respect and gratitude to you!! Your videos are in my interview prep playlist! Thanks so much for making math understandable!!

    • @statquest
      @statquest  4 года назад +2

      Good luck with your interviews! Let me know how they go.

  • @healingmyselfalone
    @healingmyselfalone Год назад +1

    I usually don't comment on YT videos, but I'm eternally grateful that you are posting such incredibly useful videos. Thank you very much!!! God Bless!!!!

  • @marshalljordan2416
    @marshalljordan2416 4 года назад +5

    Thanks for such a clear explanation of bootstrapping and confidence intervals. The two concepts do go together so that understanding bootstrapping makes confidence intervals and their interpretation easy to understand.

    • @statquest
      @statquest  4 года назад

      Thank you very much! :)

  • @CE-wg5gn
    @CE-wg5gn 3 года назад +7

    If I ever finish my PhD, I propably need to credit you for every knowledge I have about statistics. And I actually learned this stuff beforehand.

    • @statquest
      @statquest  3 года назад +4

      Good luck finishing your PhD! You can do it!!! :)

    • @zayaanwho
      @zayaanwho 2 месяца назад

      hey, did you finish it? how's life

  • @SergeySenigov
    @SergeySenigov Год назад +1

    Josh, you are genius. Finally i got the idea how t-test are made and confidence intervals and p-value relate to each other! And why one can simply check if "0" statistics belongs to conf int!

  • @leonardogoes683
    @leonardogoes683 5 лет назад +12

    This video helped me to better understand the p-value besides the confidence intervals.

    • @6789uiop
      @6789uiop 3 года назад

      That _was_ good, very clearly related. The introduction of the term 't-test' threw me however.

  • @jorgevalero4819
    @jorgevalero4819 Год назад +2

    Thanks so much. I have been working on hydrology for many years and finally I understood this valuable concept.

  • @z8709
    @z8709 4 года назад +4

    I am also a fan and I highly recommend the videos from StatQuest to student in my class.

    • @statquest
      @statquest  4 года назад

      Awesome! Thank you very much! :)

  • @kuanjuchiu9450
    @kuanjuchiu9450 6 лет назад +16

    This saves the world, thank you so much

    • @statquest
      @statquest  6 лет назад +4

      Thank you! I'm glad I could save the world! I thought only Spider-Man could do that. ;)

  • @DreamCodeLove
    @DreamCodeLove 4 года назад +4

    One of best tutorials I watched on net paid or otherwise...

  • @siddhft3001
    @siddhft3001 4 года назад +2

    This is by far one of the best videos I've seen. Thank you so much!

  • @rrrprogram8667
    @rrrprogram8667 6 лет назад +115

    I am trying to complete all ur videos

    • @statquest
      @statquest  6 лет назад +18

      Nice! You're making great progress! :)

    • @samuelkellerhals5942
      @samuelkellerhals5942 5 лет назад +10

      me too! this stuff is gold

    • @cvic7143
      @cvic7143 4 года назад

      @@samuelkellerhals5942 agree, it is good!

    • @dunjianxiao4105
      @dunjianxiao4105 3 года назад +2

      @@statquest double BAM!!

  • @nicolethm2002
    @nicolethm2002 Год назад +1

    This was great. I’m taking and finding stats complicated but this broke down the basics of what it was supposed to. Thanks 🙏🏾

  • @Majso11
    @Majso11 3 года назад +4

    Im gonna pass my stat exam thanks to you, you explain it so well :'))))))

  • @baay81
    @baay81 Год назад +1

    thanks for sharing. will use this example on my students for sure. will link to the video, of course

  • @vahidnajafzadeh4137
    @vahidnajafzadeh4137 3 года назад +1

    I consider myself one of the most stupidest people on earth in learning stats. and yet here I understood the CI concept very well. a big fat thank you to you 😊.

  • @DriveInPsychopath
    @DriveInPsychopath 3 года назад

    Thank you for explaining this like a normal person and not like you're teaching people who already know how to do it.

  • @greatvedas
    @greatvedas 5 месяцев назад +1

    very good explanation. I liked your examples very much. Thanks you sir!

  • @manuelargos
    @manuelargos 3 года назад +1

    YOU ARE THE BEST OUT THERE!

  • @redcat7467
    @redcat7467 3 года назад +2

    Mr. Josh Starmer's singing abilities has significantly advanced since year 2015.

  • @marioestrada2233
    @marioestrada2233 3 года назад +1

    Thanks, confidence intervals seemed so tricky! Till now!!!

  • @luchan1638
    @luchan1638 2 года назад +1

    your videos are god sent

  • @apnp6787
    @apnp6787 3 года назад +1

    Dude, beautifully and simply explained!

  • @dewinmoonl
    @dewinmoonl 3 года назад +1

    another exciting quest complete!

  • @Hersh0828
    @Hersh0828 2 года назад +1

    You are a godsend Josh!

  • @xnoreq
    @xnoreq 5 лет назад +2

    Your example also shows how backwards confidence intervals and p-values are.
    You already assume a mean of ~26. But you end up calculating a p-value to make a probabilistic statement about the mean being lower than ~21 ... given samples from a distribution with a fixed mean of ~26.

  • @brienwashington4019
    @brienwashington4019 3 года назад +1

    This is so simple and eloquent.

  • @henriqueazank5254
    @henriqueazank5254 4 года назад +1

    I'm curently speedrunnig all your videos

  • @Artersa
    @Artersa 4 месяца назад +1

    Insanely useful

    • @statquest
      @statquest  4 месяца назад

      Glad you think so!

  • @foedeer
    @foedeer Год назад +1

    You mean the world to me man.

  • @destinnguon4877
    @destinnguon4877 Год назад +1

    Excellent, thank you so much!

  • @Birdsneverfly
    @Birdsneverfly 5 лет назад +1

    Wonderful series.
    Thankyou for sharing your knowledge.

  • @saudzaman1243
    @saudzaman1243 3 года назад +1

    So if p value for a sample is < 0.05, does that imply that the sample is not a good representative of the population?

    • @statquest
      @statquest  3 года назад +2

      It suggests that the sample may come from a different population than the one you think you are collecting it from.

  • @pupface
    @pupface Год назад +1

    Thank you. It's crazy how nobody else seems able to explain this clearly

  • @bnv8514
    @bnv8514 4 года назад +6

    "A 95% confidence interval is just an interval that covers 95% of the means." 😁

  • @visionarynjy5491
    @visionarynjy5491 Год назад

    In 5:02 , shouldn't the p-value be 0.025? Given the Confidence Interval is both direction.

    • @statquest
      @statquest  Год назад

      Sure. The point, however, is that 0.05 is the usual threshold for making a decision about the hypothesis. So as long as we are < 0.05, we will reject the hypothesis.

  • @rajkamalingle9144
    @rajkamalingle9144 2 года назад

    Total types of samples that we can take : 23C12 = 1352078, out of this we are asked to find sample mean of around 10,000 samples. Now, we can define confidence interval as : 95% confidence interval is just an interval that covers 95% of the above calculated sample means.

  • @emelyannett
    @emelyannett 5 лет назад +2

    This is so helpful. Thank you

  • @Denise_lili
    @Denise_lili 3 года назад +4

    Hi Josh, thank you for the nice video! One quick question, I learnt the interpretation of 95% confidence interval is 95% of confidence intervals will contain the true mean (i.e. if we have n=100 random samples of size 5, there are 95 confidence intervals will contain the true mean). It seems different from your explanation here?

    • @statquest
      @statquest  3 года назад +3

      It's the same. However, we are arriving at the confidence interval differently and we need to make sure we don't confuse a bootstrapped mean for a population mean. The interval that contains 95% of the bootstrapped means is a 95% CI, and thus, if we repeated the process a bunch of times, 95% of the intervals calculated that way will contain the population mean.

  • @nikolenarepousi8189
    @nikolenarepousi8189 Год назад +1

    Amazing! Thank youuuu

  • @mycotina6438
    @mycotina6438 Год назад

    I'm wondering if there's a correlation between this method and central limit theorem? Because if my understanding is correct, we can also construct a confidence interval using the latter.

    • @statquest
      @statquest  Год назад

      The central limit theorem makes it possible to create confidence intervals for the estimate of the mean, but only the mean. In contrast, bootstrapping allows us to create confidence intervals for any statistic we want.

    • @mycotina6438
      @mycotina6438 Год назад +1

      @@statquest Thanks! It makes so much sense

  • @isaacbarbozavilchez6773
    @isaacbarbozavilchez6773 3 года назад +1

    If all teachers could explain like Josh, more people loving statistics would be

  • @LittleMonsterswiftie
    @LittleMonsterswiftie 3 года назад +1

    Very clear! thank you

    • @statquest
      @statquest  3 года назад

      Glad it was helpful!

  • @AcademiaDados
    @AcademiaDados 3 года назад +1

    Beautiful.

  • @BibleSamurai
    @BibleSamurai 2 года назад +1

    the humor is great

  • @shilupangrak1593
    @shilupangrak1593 4 года назад +1

    great!! statquest apps will be a good platform

  • @ashimay4722
    @ashimay4722 4 года назад +1

    Amazing explanation..!!

  • @matthewdong9368
    @matthewdong9368 6 лет назад +2

    In the example where you want to get the p-value for true mean less than 20, and the result is less than 0.05. Does that mean it's very unlikely that the true mean is less than 20? Thanks!

  • @liaoweien
    @liaoweien 2 месяца назад

    Hi, thanks a lot for the video. for step, how large is the original sample size? much much much bigger than 12? thanks in advance.

    • @statquest
      @statquest  2 месяца назад

      I think it needs to be 8 or more for bootstrapping to work.

  • @stevequan7306
    @stevequan7306 4 года назад

    At 3:22 -- should the confidence interval bar has some constraints? (eg, should be the shortest bar to cover 95% means, otherwise I can shift and prolong it to cover 95% )

    • @statquest
      @statquest  4 года назад

      Surprisingly, it can be any bar that covers 95% of the means.

    • @stevequan7306
      @stevequan7306 4 года назад +1

      @@statquest ah I see, here we are talking about CI itself, not the CI we using in N-distribution calculated by "std". (even in distributions CI can shift and change) Thank you!

    • @statquest
      @statquest  4 года назад +1

      @@stevequan7306 That's exactly right. There are different ways to calculate the confidence interval, and you end up with different intervals, but as long as you are covering 95% of the means (or at least doing that in theory), then you have a 95% CI.

    • @karannchew2534
      @karannchew2534 3 года назад

      @@statquest
      Hi Josh, Hi Steve, I had the same question as Steve. But I don't understand the answer/explanation. Why can CI be any range? Shouldn't it be the shortest range that cover 95% of the mean values?

    • @statquest
      @statquest  3 года назад

      @@karannchew2534 Why should it be the shortest?

  • @venkilfc
    @venkilfc 3 года назад +1

    Thank you so much Josh, I just watched your videos of standard error and confidence interval. Could you please verify if I understood it correctly?
    95% confidence interval = mean of means ± 2 Standard Error

    • @statquest
      @statquest  3 года назад +2

      It depends on how you calculate it. If you are using bootstrapping, then your method is correct. If you are using a formula to approximate bootstrapping (so you are not using bootstrapping), then you have to appeal to the t-distribution (instead of the standard error). This is because for small sample sizes, the t-distribution is a little wider than a normal distribution, and that compensates for the fact that a small sample size means we have very limited knowledge of what is going on.

    • @venkilfc
      @venkilfc 3 года назад +2

      @@statquest you're a god sent Josh. Thank you 😄

  • @response2u
    @response2u 2 года назад +1

    Thank you sir!

  • @viktorsemenov7208
    @viktorsemenov7208 10 месяцев назад +1

    it is brilliant. thanks!

  • @Reonsi
    @Reonsi Год назад

    Why does the 95% CI select some means/values and not others? Does it need to be in the center? If so, how? I would suppose that if you force the mean of the interval to be the mean of all means, it would give you a CI similar to the ones you showed in the video.

    • @statquest
      @statquest  Год назад

      Traditionally, we center the 95% CI over 95% of the means, but you don't have to do it that way. You just need to cover 95% of the means.

  • @jjbotha6242
    @jjbotha6242 2 года назад +1

    Excellent!!

  • @ananyaagarwal7108
    @ananyaagarwal7108 2 года назад

    You are simply Awesome !! I have a doubt here though, Let's say the point estimate is the sample mean. We can repeatedly keep taking the sample means and then plot all these sample means in a histogram and we would observe a normal distribution called the sampling distribution of the sample means. The mean of this distribution would be a better estimate of the population mean and its standard deviation, called standard error would be the population standard deviation/sqrt (number of points in a sample). Won't the confidence interval(say 95%) range be (sampling distribution mean - 2 SE,sampling distribution mean + 2 SE) instead of (point estimate - 2 SE,point estimate + 2 SE)?
    Why would we use the sample mean(point estimate) in calculating the confidence interval range? What if that particular sample mean was like an outlier in the sampling distribution of the mean? In that case, doing +/- 2*SE wouldn't be a good judge to measure population mean right?

    • @statquest
      @statquest  2 года назад +1

      The technical definition of a 95% confidence interval is that if we repeat the process a lot of times, calculating 95% CIs each time, 95% of the CIs we calculate will cover the true (population) mean. So, sure, sometimes we get outliers, and our CI is bad, but that is expected about 5% of the time we calculate a 95% CI.

    • @ananyaagarwal7108
      @ananyaagarwal7108 2 года назад

      @@statquest Thanks for responding, Josh ! Does this mean that while calculating the 95% CI, we are assuming that our point estimate (sample mean) is always 1.96 SD away from the population mean(mean of the sampling distribution) ?

    • @statquest
      @statquest  2 года назад

      no

    • @ananyaagarwal7108
      @ananyaagarwal7108 2 года назад

      @@statquest Thanks for responding again :). I'm having a lil bit of tough time connecting all the dots, sorry for the long questions !
      If we are given the pop SD and use z stats to calculate 95% CI for mu, we say z=xbar-mu/(sigma/sqrt(n)) where z=1.96, xbar is the sample mean or point estimate and sample SD can also be computed. Based on the definition of z score, does this not mean that xbar is 1.96sd away from mu ? In any case, What is the intuition behind using this formula.
      Thanks in advance !

  • @ritika.upadhyay
    @ritika.upadhyay 6 лет назад +6

    Hi Josh! Great videos (I'm currently on a StatQuest marathon and it has been incredibly helpful!)
    I have a question though. Could you explain the bit about p-value being less than 0.05 in case of the weights of female and male mice? Instinctively I understand that there's a statistical difference between the true means of these two but I'm struggling to relate it to the idea of p-value.
    Thank you!

    • @funny__bean
      @funny__bean 4 года назад

      Same thing occurred to me!! If in a 95% confidence interval, the remaining 5% do not cover means right? If so, then how come its p-value is significantly different?

    • @busyshah
      @busyshah 4 года назад +1

      By definition p-value denotes a probability of (something other which is equally rare + something rarer than null hypothesis) happening. Here the null hypothesis is that the means for both male and female mice are from same population. But we already know that 95% confidence intervals of both male and female means don't coincide. So there is only one possibility left that less than 5% cases will have the possibility of their means coinciding. Which is why p-value is

  • @viktormaximiliandistaturus7660
    @viktormaximiliandistaturus7660 Год назад +1

    you deserve a like

  • @globalshooky5030
    @globalshooky5030 9 месяцев назад +1

    youre a life saver

  • @adirozeri7162
    @adirozeri7162 2 года назад

    Thank you so much for the explanation! i have one question tho - could there be more that a single 95 interval for the example above and does it matter? how do you construct it? thanks!

    • @statquest
      @statquest  2 года назад

      Any interval that covers 95% of the bootstrapped means qualifies, but usually you select the one that is centered on the original mean.

  • @koustubhmuktibodh4901
    @koustubhmuktibodh4901 7 месяцев назад

    Sir, I am looking for a Calculus series. Because I'm going for M.S. in Business Analytics.

    • @statquest
      @statquest  7 месяцев назад

      3Blue1Brown has an excellent series on calculus. I also believe Khan academy has some good stuff.

  • @SabrinaXe
    @SabrinaXe Год назад

    3:11
    Less the confidence level/interval i.e 80% rather than 90, the more meaningful our inference about the population?

    • @statquest
      @statquest  Год назад

      It depends on the data and what you want from it. There's no one specific set of rules that fits all datasets.

  • @theforester_
    @theforester_ 3 года назад +1

    i lost it when u said u didnt weight every single female mouse on the planet, just twelve... hahaha thanks anyway

  • @shubhamtalks9718
    @shubhamtalks9718 4 года назад

    95% C.I. is the area where 95% of the means are present but from where should I start drawing the line of C.I.( from 1st mean or 2nd or what)?

    • @statquest
      @statquest  4 года назад

      When you use bootstrapping, the 95% CI is any line that covers 95% of the bootstrapped means. So, take your pick! However, usually people center it over the estimated mean.

  • @rahulmukherjee8060
    @rahulmukherjee8060 Год назад

    How do I check hypothesis for individual distribution sampling?

    • @statquest
      @statquest  Год назад

      I'm not sure I understand your question. Are you asking about the distribution of the samples? (like, are you asking about the whether or not the data come from a normal distribution?)

  • @TheTessatje123
    @TheTessatje123 2 года назад

    Thanks for the video! Are confidence intervals always defined for distributions of the sample means (i.e. means obtained by boodstrapping)? Or can you also calculate them for one single experiment? Or the means of multiple experiments without bootstrapping?

    • @statquest
      @statquest  2 года назад +1

      Because of the central limit theorem, all means are normally distributed, so there is a closed form equation for all confidence intervals based on that and you don't need bootstrapping. In other words, you can calculate the CI with a single set of measurements. However, I believe the concept is easier to understand with bootstrapping.

    • @TheTessatje123
      @TheTessatje123 2 года назад +1

      @@statquest I see, thanks!

  • @liamhoward2208
    @liamhoward2208 2 года назад

    Hello Josh, @ 3:22 is it correct to say that 95% of all confidence intervals will contain the population mean? I am having a hard time understanding if this interpretation is the same as yours. Also, I am a bit confused about the bootstrapping. How do we construct the interval? How do we adjust the interval for different levels of alpha? Thanks again bro!

    • @statquest
      @statquest  2 года назад +1

      At 3:22 I say that when using bootstrapping a 95% CI is an interval that covers 95% of the (bootstrapped) means. Now, if we made a lot of 95% CIs using this method, then 95% of them would contain the population mean. For more details on bootstrapping, see: ruclips.net/video/Xz0x-8-cgaQ/видео.html

    • @liamhoward2208
      @liamhoward2208 2 года назад +1

      @@statquest Thank you for the quick reply. It really separates you from the rest.

  • @minhaoling3056
    @minhaoling3056 3 года назад

    Hi Sir, can you make series of videos for Bayesian inference & Bayesian credible interval ?

    • @statquest
      @statquest  3 года назад

      I hope to do that in the spring.

  • @ryan_chew97
    @ryan_chew97 4 года назад +1

    this is the best LOL too simple and easy to understand

  • @jasonsj
    @jasonsj 3 года назад

    Can someone please help me understand 5:23 why p-value

    • @statquest
      @statquest  2 года назад +3

      First, if p-value < 0.025, then it is also < 0.05. Now, the reason I used 0.05 is because that is the most commonly used cut off for significance. In other words, we know that the p-value will be at least as small as it needs to be in order to obtain statistical significance.

    • @jasonsj
      @jasonsj 2 года назад +1

      @@statquest thank you Josh for replying! Love your videos, currently I’m preparing for Data Scientist interview, your videos help a lot!!

    • @statquest
      @statquest  2 года назад

      @@jasonsj BAM! Good luck!

  • @chucknor9708
    @chucknor9708 4 года назад

    Does the number of random selections to calculate the bootstrap mean, from the sample need to equal the sample size as it does in your example? i.e. could you have chosen 8 random samples from selection and calculated the mean and bootstrapped mean and repeated this 10000 times?

    • @statquest
      @statquest  4 года назад +1

      The bootstrap sample is always the same size as the original sample.

  • @harithagayathri7185
    @harithagayathri7185 5 лет назад

    Hi Josh, a little confused about the p-value here as, if less than 0.05 is considered as less likely to reoccur then why are we considering variables with less than 0.05 as highly significant variables in the regression models?

    • @statquest
      @statquest  5 лет назад +1

      A p-value < 0.05, means, in general terms, that the result is probably not due to random chance. Thus, when we do linear regression, a small p-value tells us the the relationship between the independent and dependent variable is probably not due to random chance.

    • @harithagayathri7185
      @harithagayathri7185 5 лет назад +1

      @@statquest Thanks Josh 😊😊

  • @alaknandaagarwal8431
    @alaknandaagarwal8431 4 года назад

    A 95% confidence interval is just an interval that covers 95% of the means. This has cleared confidence intervals for me, without talking about the standard error and all other statistical jargon that's so confusing.
    Quick question: What is the difference between confidence intervals and confidence levels?
    Thank you !

    • @statquest
      @statquest  4 года назад +1

      Keep in mind that the 95% confidence interval is just the interval that covers 95% of the means created with bootstrapping. And I believe that confidence levels just refers to the "95%" or "99%" - 95 and 99 are the levels that can then be converted into intervals.

    • @alaknandaagarwal8431
      @alaknandaagarwal8431 4 года назад +1

      @@statquest yes that's it. Thank you.

  • @renatamirra5294
    @renatamirra5294 Год назад

    Any chance you could do a video on frequentist confidence intervals, based on the central limit theorem? Also, with the bootstrap method, is the interpretation that you're 95% confidence that the population mean is contained in the interval still valid? Thank you.

    • @statquest
      @statquest  Год назад +1

      Confidence intervals always have the same interpretation. If we repeated the procedure to calculate the CI a bunch of times, 95% of them would overlap the population mean.

  • @culturismoproculturismo8251
    @culturismoproculturismo8251 3 года назад

    But I don't understand, maybe I'm wrong. Perhaps you are giving a Bayesian approach? The frequentist approach would tell us that it is the frequency with which 95% confidence intervals calculated from many studies, would contain the true effect. The true value would be in the 95% confidence intervals.
    Thank you in advance

    • @statquest
      @statquest  3 года назад +1

      This is the bootstrap approach to the frequentist CI. Since we are using bootstrapping, the interval covers 95% of the bootstrapped means and is equivalent to an interval that, if we repeated the experiment a lot of times and calculated the CI the same way, 95% of those CIs would cover the true mean.

    • @culturismoproculturismo8251
      @culturismoproculturismo8251 3 года назад +1

      @@statquest ❤️❤️❤️❤️❤️❤️. Thank you very much

  • @amnont8724
    @amnont8724 Год назад

    Hey Josh, so if I build a confidence interval to the mean in a 95% confidence level, 95% of the bootstrapped means will be in the confidence interval, and there's a 95% chance the mean will be in that confidence interval?

    • @statquest
      @statquest  Год назад +1

      95% of the bootstrapped means will be in the interval, but that doesn't mean there's a 95% chance that the interval covers the true mean.

    • @amnont8724
      @amnont8724 Год назад

      @@statquest Ok, thanks!

  • @deuteros
    @deuteros 3 года назад

    Thank you, Josh. Great video. However, I don't know how to calculate the confidence interval. Is it calculated through 2 times the standard deviation of the mean of the sample means?

    • @statquest
      @statquest  3 года назад

      There are lots of formulas for calculating confidence intervals. Conceptually, the easiest one to remember is bootstrapping, however there are lots of other formulas you can use. For details, see: www.statisticshowto.com/probability-and-statistics/confidence-interval/

    • @deuteros
      @deuteros 3 года назад +1

      @@statquest Thanks! I will check that out. Cheers

  • @dharam8060
    @dharam8060 5 лет назад +1

    How do we calculate 95% cover from the Bootstrap means?

  • @Sofyee_Official_
    @Sofyee_Official_ 3 года назад

    02:12 I can not understand why keep on taking samples from original samples and calculated the mean, Shouldn't it to take samples from the original data, Not the Sample Data? Any one can reply me please

    • @statquest
      @statquest  3 года назад +1

      Here's another way to look at it: ruclips.net/video/Xz0x-8-cgaQ/видео.html

    • @SergeySenigov
      @SergeySenigov 2 года назад

      In real world you almost never know the exact population mean. You can sample the original data say 100 times more than Josh, but I can always oppose - why not 1000 times more - that would be more precise. And so on.
      So there is no solution until you sample the whole population - but this is impossible.
      That why the goal is - not getting the most precise assessment of population mean (it's impossible) but getting to know the boundaries where it lies with some % of confidence. And this is _possible_.

  • @chrishayward7969
    @chrishayward7969 4 года назад +1

    Fantastic video :)

    • @statquest
      @statquest  4 года назад

      Thank you very much!

  • @lilyha2470
    @lilyha2470 5 лет назад +2

    Why is it that nobody ever explained the CI to me like this before? I bet people who taught us statistic in med school knew this or they did not?

  • @edydev6775
    @edydev6775 3 года назад

    Josh, although you're crystal clear, i still don't get the following point: according to my interval i have a range of weights that can be considered an estimate of the true mean. But, now I get this 20 weight, and I know that it is out of my interval, so it's very unlikely that it represents a significative diference (it happened by chance). So what I do next? Discard this sample, and run another? What needs to occur so I say that yes, this value of 20 really show something that I need to pay attention?
    And, you're saving my as...s with all these simple explained knowledge. I cannnot thank you enough. greetings from brazil ;)

    • @statquest
      @statquest  3 года назад

      You might need to learn about hypothesis testing to understand the value of the confidence interval. Here's the link: ruclips.net/video/0oc49DyA3hU/видео.html

  • @mmk34
    @mmk34 3 года назад

    Josh, I love the line diagrams you use in your illustrations, how do you put these together?

    • @statquest
      @statquest  3 года назад

      For details on how I create my videos, see: ruclips.net/video/crLXJG-EAhk/видео.html

  • @mandeepbaluja5401
    @mandeepbaluja5401 4 года назад +1

    Very nice man

  • @88skewer
    @88skewer 3 года назад

    these bootstrap means themselves are normally distributed, right ?

    • @statquest
      @statquest  3 года назад

      Means are always normally distributed.

    • @88skewer
      @88skewer 3 года назад +1

      @@statquest thanks for the reply, figured this out myself right after watched another video from you after 5 mins yesterday. 😃. You helped me to review my lifetime learned statistic courses in 50 mins and cleared many cloudy concepts in the past. Love you!

    • @statquest
      @statquest  3 года назад

      @@88skewer bam!

  • @1tsvaishnav
    @1tsvaishnav 4 года назад

    Can you give some intuition of prediction interval? What is the difference between confidence interval and prediction interval?

    • @SergeySenigov
      @SergeySenigov Год назад

      PI estimates range of RVs or some statistics of RVs. Its limits are not random (are not drawn from samples). For example for standard norm distribution ~99% PI for RV = mu+-3*sigma. And we must _know_ mu and sigma. On the opposite CI estimates range of not random but exact value - the population parameter (mu for example) though we don't know it's exact value. Its limits are drawn every time from different samples so they are random.

  • @alexandergarcia6479
    @alexandergarcia6479 3 года назад

    Hi joshua, thanks for the video, can you tell me what do you use to make those sample plots? I don't find that tool in python, thank you so much

    • @statquest
      @statquest  3 года назад

      For details on how I create the images, see: ruclips.net/video/crLXJG-EAhk/видео.html

  • @sdsa007
    @sdsa007 3 года назад +3

    my brain is exploding with knowledge, but i don’t have a brain tumour. I am happy that you are explaining core concepts. i especially liked the one on entropy. entropy has lots of narratives associated with it, like Maxwell demon, and code breakers during ww2, and this wacky idea of replacing energy with entropy to unify Einsteins general relativity with quantum physics. These were wonderful embellishments. But I didn’t get the core concept mathematically until you explained it very well! Thank you! I should post this on the entropy video but i need to get some Zzzzz. goodnight!

    • @statquest
      @statquest  3 года назад +1

      Thank you very much! I'm glad the videos are helpful. :)

  • @sushilchauhan2586
    @sushilchauhan2586 5 лет назад +1

    don't you think bootstrap is similar to central limit theorem?

    • @statquest
      @statquest  5 лет назад +1

      Any time you are calculating a lot of means, then you are doing something related to the central limit theorem.

    • @sushilchauhan2586
      @sushilchauhan2586 5 лет назад

      @@statquest i forgot to ask you a simple question in it. How did u take 95%? Is it by using thumb rule of 68-95-99.7.
      Hey Josh did you have any video related to column standardization and can you make video spearson correlation. Tq

    • @statquest
      @statquest  5 лет назад

      @@sushilchauhan2586 95% is just the most commonly used threshold. However, different fields of study have different thresholds. For example, in highly controlled physics experiments, they sometimes use 99% as the threshold. In contrast, other fields might use 90% as the threshold.
      I also have videos on quantile normalization and Pearson's correlation. This link will take you to a complete index of all of my videos: statquest.org/video-index/

  • @熊飞-b5k
    @熊飞-b5k 4 года назад

    Thank you for your wonderful video, here I have a question. When 95% CI do not overlap, we could say there is a significant difference between the two sample sets. I want to ask is we can conclude if the significant difference when the SD of two sets do not overlap, and how about SEM? Hope for your reply. :)

    • @statquest
      @statquest  4 года назад

      95% confidence intervals reflect the SEM, rather than the standard deviation of the raw data. For more details, see: ruclips.net/video/A82brFpdr9g/видео.html