Тёмный

Introduction to Bayesian Statistics - A Beginner's Guide 

Woody Lewenstein
Подписаться 2,1 тыс.
Просмотров 84 тыс.
50% 1

Bayesian statistics is used in many different areas, from machine learning, to data analysis, to sports betting and more. It's even been used by bounty hunters to track down shipwrecks full of gold!
This beginner's course introduces Bayesian statistics from scratch. It is appropriate both for those just beginning their adventures in Bayesian statistics as well as those with experience who want to understand it more deeply.
If you enjoyed this and want to support me make more videos, you can make a one-off small contribution here: buymeacoffee.c...

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 177   
@gregoriocuesta5551
@gregoriocuesta5551 10 дней назад
Brilliant explanation of Bayesian Basics. Best I have seen, easy to follow and understand.👍👍👍
@KazaaModo
@KazaaModo 2 года назад
What a greatly structured session. Learnt so much new stuff. Thanks.
@ASMM1981EGY
@ASMM1981EGY Год назад
Much better explanations than the famous channel of StatQuest. Thanks a lot.
@woodyrow
@woodyrow Год назад
That's very kind of you to say, though I think in general StatsQuest is really good!
@BrowningRockwell-d8x
@BrowningRockwell-d8x 27 дней назад
Thank you for presenting an informative and concise lecture. Time well spent for me.
@mikolajwojnicki2169
@mikolajwojnicki2169 8 месяцев назад
Excellent video! I needed to refresh my Bayesian statistics knowledge and this was a perfect start.
@woodyrow
@woodyrow 7 месяцев назад
Glad it helped!
@evanskip1
@evanskip1 2 года назад
Well done! Among the best of the best what I have watched so far on Bayes theorem. I suggest you delve further with this lessions into Bayes stats in future vedios
@woodyrow
@woodyrow 2 года назад
Thanks so much! Yes I'd love to do a second part where I go deeper into this.
@evanskip1
@evanskip1 2 года назад
@@woodyrow great, am looking forward to it and sharing to my colleagues students as well
@homerf5054
@homerf5054 Год назад
Great video, thank you. I feel like the pill sample calculation is not correct. If there is a very tiny change in mean like 100 -> 100.0000000001, the calc made(from the video) will yield almost 50% that the genius has taken the pill which seems incorrect. I feel like it should be [P(102)-P(100)]/P(100) - I may be wrong but the original calc seems wrong to me. Also the number of zeros for calculated probability should be 5 instead of 6 zeros. Thanks
@gregoryzoro6063
@gregoryzoro6063 Год назад
Excellent simulation with Excel functions for Bayesian estimates !!
@woodyrow
@woodyrow Год назад
Thank you! Glad you liked it.
@justinjoseph4746
@justinjoseph4746 2 года назад
Great! Really enjoyed learning this. Thank you
@woodyrow
@woodyrow 2 года назад
Thanks so much Justin!
@karannchew2534
@karannchew2534 2 года назад
34:16 "How much more likely is it that your child will be a genius if they take this pill?" Probability ( Took a Pill | Given Is a Genius ) Why is it Probability ( Pill | Genius ) and not Probability ( Genius | Pill ) Probability ( Took Red Pill when as a child | Were going to be a genius when taking pill )
@kylat5496
@kylat5496 2 года назад
Thank you for teaching us trash goblins! We are forever in your debt
@sakkariyaibrahim2650
@sakkariyaibrahim2650 Год назад
really enjoyed
@woodyrow
@woodyrow Год назад
Thanks so much! Really glad you enjoyed it!
@samherman1437
@samherman1437 7 месяцев назад
Great !!!
@lubosrehounek1039
@lubosrehounek1039 Месяц назад
Thanks for this great into. However, I got a bit confused around 1:06 when you evaluate the numerator. You even make the remark "I simplify a bit ...". A then, it seems you actually evaluate the numerator as "P(a=5, b=3).P(Bob wins)" , instead of "P(a=5, b=3| Bob wins).P(Bob wins)". What exactly was simplified here? Is indeed "P(a=5, b=3)" equal to "P(a=5, b=3| Bob wins)" ?
@woodyrow
@woodyrow Месяц назад
Great question. This is a slippery part of the argument and you're right to ask about it. Essentially you are right, "P(a=5, b=3)" does equal "P(a=5, b=3| Bob wins)", or at least, the expressions in terms of x are the same. If I ask you what's the probability of alice having 5 and bob having 3, the answer is (8C3)*x^3*(1-x)^5. If I told you that bob actually went on to win, the probability of alice having 5 and bob having 3 after 8 rounds is still (8C3)*x^3*(1-x)^5. The difference is that you might need to adjust your thinking about what x was. But this is all taken care of by the integration and division. Hope that helps clarify a bit!
@Shkib0y
@Shkib0y 2 года назад
I have a slight gripe in the disease example, false negatives are independent of false positives and that should be made explicitly clear. Even if it’s just stating the false positive probability and not inferring it without comment.
@woodyrow
@woodyrow 2 года назад
Absolutely right. False positives and false negatives are almost never equally likely. And fair point, it would have been better to just mention this, even if I kept things as they are to keep the the maths simple.
@matthewjames7513
@matthewjames7513 9 месяцев назад
I'm not sure if I agree with your solution at 20:13. This works assuming conditional probability (or Jane being late is influenced by Amira). But if these were independent events then the answer would just be 20%. If you know nothing about Jane and Amira, is it rational to assume it's conditional or independent? Lastly does causal reasoning play a part here? Thanks :)
@woodyrow
@woodyrow 9 месяцев назад
You are absolutely right that if the events were independent then the probability of Amira being late would just be 20% still. However, the information given in the question actually proves they are not independent. If we knew nothing about them then it's hard to say if it's rational to assume independence. But we DO know something about them: thr information given in the question. So this shows their lateness is not independent of each other. But this does not indicate causality. It might be that Jane's lateness causes Amira's, or the other way around. Or maybe something else causes both (eg maybe they catch the same bus and when this arrives late they are often both late).
@matthewjames7513
@matthewjames7513 9 месяцев назад
@@woodyrow Thanks for your reply! I only just discovered your channel and I really like it. I've been going through examples slowly to build intuition. What if Janes lateness was always caused by bus delays, and Amiras lateness was always caused by bad weather. In this case, they would both be independent because there's no way Janes lateness could depend on Amiras lateness and visa versa. Why does the information in question prove that they're dependant on each other? Is it because of the "70% neither of them is late" fact?
@woodyrow
@woodyrow 9 месяцев назад
@@matthewjames7513 Sorry for the slow reply! If Jane's lateness was always caused by the bus, and Amira's was caused by bad weather, and these didn't interact, then we might expect the events to be independent. However, the probabilities absolutely prove they are not! Remember, the formula P(A&B) = P(A)P(B) is the necessary and sufficient condition for events to be independent. Look at the conditional calculation for P(Amira late given Jane is late). In general, Amira is late 20% of the time. But when Jane is late, Amira is late 60% of the time! Here's what this means: If I just asked you "what is the probability that Amira is late?", you should say "20%". However, if I also tell you that Jane is late, you should say "60%". That is, if you learn that Jane is late, you change your view about the likelihood of Amira being late. This is what it means for events to be not independent. If one happens, you adjust your view on the other. These figures (20% vs 60%) emerge mathematically from the Venn diagram. And they tell us the events aren't independent. I hope that all makes sense! I'm really glad you enjoyed this video by the way. Thanks for the questions!
@acharjyaarijit
@acharjyaarijit 2 года назад
If it is possible then I will give it 100 like. Thank you very much.
@woodyrow
@woodyrow 2 года назад
Thank you so much! A hundred times!
@robwin0072
@robwin0072 2 года назад
I am only 4:30 (min/sec) into the video - I will complete the session; however, futurely, die is singular for dice. It's a little unsettling calling a die, dice. ☺️☺️☺️ I will return to this comment for my overall objective opinion- although, to date, I am a Frequentist.
@woodyrow
@woodyrow 2 года назад
I'm a modern man - "dice" can be both plural and singular (grammarist.com/usage/dice-die/) 😉 "Die" sounds unnatural and unsettling to me! Hope you enjoy the rest of the video. Let's see if I can convince you bayesianism is the way to go!
@robwin0072
@robwin0072 2 года назад
@@woodyrow Touché 😀😀😀 I made it safely through it.
@lalasalalasa2428
@lalasalalasa2428 Год назад
I got struck at pill problem
@jordymaas565
@jordymaas565 18 дней назад
so Sarah don't know her profession. when Sarah says it's a male on a scan there's little probability - bayesian is owned by Sarah. simples
@lalasalalasa2428
@lalasalalasa2428 Год назад
What is first to 6 wins in the game means
@woodyrow
@woodyrow Год назад
They keep playing this game and recording who wins each time. Once a player has won 6 times they win the whole game. Think of it like tennis! The first player to win 6 games wins the set. It's a bit like that.
@MahmutAyabakan
@MahmutAyabakan 18 дней назад
Jones Steven Rodriguez Jason Anderson Donna
@OConnorCarr-b7l
@OConnorCarr-b7l 12 дней назад
Robinson Margaret Miller Jeffrey Clark Eric
@FrancoisJ
@FrancoisJ Месяц назад
39:30 "[taking the pills] double your chance of being a genius", this feel wrong. it's the other way around isn't it
@woodyrow
@woodyrow Месяц назад
This is correct! But I agree it's actually a little different from the main point here. Your chance of being a genius without the pill is about 1 in a million. And with the pill it's about 2 in a million. So the pill really does double your chances. However, the actual probability question here wasn't P(genius|pill), it was the other way round. It was P(pill|genius), and we discover that this is about 66%. That is, about 2/3 of the geniuses were people who took the pill.
@FrancoisJ
@FrancoisJ Месяц назад
@@woodyrow thanks for the clarification!
@joedixon06
@joedixon06 5 месяцев назад
Excellent. In general I leave comments 0.5% of the time. But when I think something is really superb I always leave a comment. What is the chance I thought Woody’s tutorial was really superb?
@woodyrow
@woodyrow 4 месяца назад
Thanks! Glad my video made the cut!
@zdenkogarasevic1477
@zdenkogarasevic1477 5 месяцев назад
🎯 Key Takeaways for quick navigation: 00:00 *🎓 Introduction to Bayesian Statistics* - Exploring Bayesian statistics from scratch. - Suitable for anyone interested in probability and statistics, from students to professionals. - Starting with fundamental questions about probability and its applications. 01:10 *🎲 Objective vs. Subjective Views on Probability* - Contrasting objective (frequentist) and subjective (Bayesian) views on probability. - Highlighting limitations of frequentist approach, especially for one-off events like horse races. - Illustrating subjective Bayesian model's flexibility and rationality in handling uncertainty. 09:33 *📊 Degrees of Belief in Bayesian Probability* - Bayesian probability as degrees of belief or uncertainty measures. - Illustrating subjective probabilities through scenarios involving pregnancy and gender prediction. - Emphasizing rationality in adjusting beliefs based on available evidence. 10:01 *🧠 Conditional Probability Basics* - Introduction to conditional probability using simple visual examples. - Building intuition for conditional probability through visualizations. - Setting the stage for understanding Bayes' theorem. 13:19 *📝 Formulating Baby Bayes Theorem* - Deriving a simplified version of Bayes' theorem using visual probability representations. - Demonstrating application of the theorem in simple probability problems. - Introducing notation and terminology for hypothesis and evidence probabilities. 20:20 *🌳 Bayes Theorem Application with Tree Diagrams* - Applying Bayes' theorem to complex scenarios using tree diagrams. - Solving probability problems involving multiple events and conditional probabilities. - Demonstrating how evidence updates prior probabilities to yield posterior probabilities. 23:34 *📈 Bayesian statistics application example: Updating probability with evidence* - Bayes' theorem updates the probability of an event given new evidence. - Example: Given the probability of sunny weather and playing tennis, Bayes' theorem helps update the probability of sunny weather given that tennis was played. - Demonstrates how prior beliefs are adjusted based on new information. 24:45 *📊 Bayesian statistics application example: Probabilistic analysis in economics* - Scenario: Analyzing the probability of a recession given job loss using Bayes' theorem. - Demonstrates the use of prior probabilities and conditional probabilities in economic analysis. - Shows how Bayesian statistics can be applied to decision-making in economic forecasting. 29:22 *🏃‍♀️ Bayesian statistics application example: Probability distributions in sports* - Example: Analyzing the probability of a girl running 100 meters in a certain time frame using normal distribution. - Shows how Bayesian statistics is used to update probabilities based on additional information (e.g., being in the school running team). - Illustrates how conditional probability influences the assessment of outcomes in sports. 33:19 *🧠 Bayesian statistics application example: Counter-intuitive results* - Examines counter-intuitive outcomes using conditional probability in IQ distribution scenarios. - Demonstrates how small changes in distributions can lead to significant shifts in probabilities. - Highlights the importance of understanding conditional probability in interpreting statistical results. 41:42 *🦠 Bayesian statistics application example: Medical diagnosis* - Examines a medical diagnosis scenario using Bayes' theorem. - Illustrates how prior beliefs are updated based on diagnostic test results. - Emphasizes the significance of understanding conditional probability in medical decision-making. 48:11 *📊 Understanding Bayes Theorem through an Example* - Explains the application of Bayes Theorem using an example involving Steve, a shy individual, to illustrate how prior probabilities and evidence combine. - Demonstrates how intuition can be misleading when prior probabilities and evidence are not considered. - Breaks down the calculation process step by step, showing the application of Bayes Theorem in determining the probability of Steve being a librarian given certain traits. 51:42 *📈 Formal Naming and Components of Bayes Theorem* - Defines the formal components of Bayes Theorem: prior, posterior, likelihood, and evidence. - Illustrates the terminology used in relation to each component, such as "prior" for the initial probability, "posterior" for the updated probability, "likelihood" for the probability of evidence given a hypothesis, and "evidence" for the total probability of the observed evidence. - Provides insights into the significance of each component in Bayesian inference and decision-making processes. 56:36 *🔍 Exploring a Complex Example: Bayesian Approach vs. Frequentist Approach* - Introduces a more complex example involving a game between Alice and Bob to compare Bayesian and frequentist approaches. - Contrasts the frequentist method, which relies on straightforward calculations, with the Bayesian method, which involves applying Bayes Theorem to update probabilities based on evidence. - Demonstrates how Bayesian inference can provide more accurate predictions by considering prior probabilities and updating them with observed evidence, even in complex scenarios. 48:40 *📊 Bayesian Intuition: Steve's Occupation* - Daniel Kahneman presents a scenario about Steve, a shy and tidy individual, posing the question of whether he's more likely to be a farmer or a librarian. - Despite intuitive judgment favoring Steve being a librarian, Bayesian analysis challenges this assumption by considering the proportion of farmers and librarians meeting Steve's criteria. - Applying Bayesian theorem, the analysis shows that Steve is more likely to be a farmer, emphasizing the importance of considering the base rate in making probability assessments. 51:28 *📈 Bayesian Terminology: Understanding Bayes Theorem Components* - Prior: The probability of a hypothesis before considering any new evidence. - Posterior: The probability of a hypothesis after considering new evidence. - Likelihood: The probability of observing the evidence given that the hypothesis is true. - Evidence (Marginal Likelihood): The probability of observing the evidence, accounting for both scenarios where the hypothesis is true and where it's not. 56:36 *🎲 Bayesian Approach: Alice and Bob's Game* - Illustration of a game between Alice and Bob where a ball is randomly placed on a table, dividing it into two sections, with each player scoring points based on where the ball lands. - Contrasting frequentist and Bayesian approaches in assessing Bob's probability of winning the game. - Through simulation, Bayesian analysis consistently yields a higher probability of Bob winning compared to the frequentist approach, demonstrating the Bayesian method's reliability in probabilistic assessments. Made with HARPA AI
@ghostiekos
@ghostiekos 2 года назад
notsoErudite has sent her trash goblins. Ty sir woody
@reigak6599
@reigak6599 2 года назад
Everything was explained perfectly. This video deserves more viewers and comments. Thank you so much for sharing with us.
@hemgreen9984
@hemgreen9984 5 месяцев назад
41:28 similar to IQ distributions for men and woman
@SM-xn9bv
@SM-xn9bv Год назад
As I wrote before this is the best ever explanation of the Bayesian statistics - THANK YOU VERY MUCH!!! and I am coming back to it every time to refresh this concept and vocabualry :)! When we talk about the numerator ( P(a=5, b=3 | Bob wins)*P(Bob wins) ) of the probability equation (that Bob wins given A=5 and B=3) at 1:07:20. Basically we can not really operate with these terms separately (P(a=5, b=3 | Bob wins) * 0.057) and have to merge them together into the distribution (y=(8x3)x^6(1-x)^5). Just trying to catch a moment and a point when it pivots from the frequentist to the bayesian :). In other words the point is that when we look at this formula as a math expression then we can camcel out the y=(8x3)x^3(1-x)^5 while left only with (3/8)^3 which then would be purely frequentist estimation of the probability of Bob winning (I do understand that in fact we have the areas under the graphs for the respective distributions in numerator and denominator). If you were so patient to having read till this point :) - what is confusing is the P(a=5, b=3 | Bob wins) part of the numerator which is hard to imagine...
@MarkPerry-lr4xq
@MarkPerry-lr4xq 3 дня назад
Brilliantly taught! I thought the simulation was particularly interesting, especially as it shows that simulations can completely avoid having to perform the difficult integrals that crop up with more complex analyses. Thank you so much.
@nickdagostino1844
@nickdagostino1844 11 месяцев назад
great explanation, i like how you gradually introduced the different concepts from probability -> conditional probability -> baby bayes -> bayes
@mehulajax21
@mehulajax21 Год назад
How can I simulate the billiards example in R?
@mehulajax21
@mehulajax21 Год назад
I did it myself. Actually I was doing it correctly. I was getting the distribution of the bernoulli probability of x as 0.4 which is correct based on the solution given in BDA ie (k+1)/(n+2) which is (3+1)/8+2 = 0.4. Also the MAP estimate was 3/8. My mistake was that I was taking the point estimate and cubing it. In reality I had to play 3 bernoulli trials with the obtained value of theta and see which one is actually winning using the uniform rng like you did in excel. After doing that, I can see the mean of quantity generated to be 0.09 and SD of 0.29
@АлександрРусаков-в4с
Robinson Michael Brown George Williams Matthew
@datdao6982
@datdao6982 5 месяцев назад
Question: at 34:18 The question is if a child take the pill then how likely they will be a genius. Why at 35:25, it is that being a genius is a given? shouldn't it be P(genius | pill)?
@TimoArchutowski
@TimoArchutowski 6 месяцев назад
Do you also have videos on binomial probability? Or perhaps you know of a good introductory course or book?
@haraldurkarlsson1147
@haraldurkarlsson1147 2 года назад
This is excellent! Clear, concise and systematic. Best explanation I have seen of Bayes thus far.
@simonmasters3295
@simonmasters3295 5 месяцев назад
@ 38 minutes you say "1 in a Million" and represent it as 0.00000011. "That's 1.1 in 10 million" You are getting this from a normal distribution and I think you have misinterpreted the statistic, rather than used the wrong figure. 0.1 is "1 in 10", 0.01 "1 in 100", 0.001 "1 in 1,000" etc
@woodyrow
@woodyrow 5 месяцев назад
Good spot that there's an issue here. I'd never noticed! I just re-did the calculation, and in fact I said the correct thing but wrote down the incorrect number. The actual probabilities are 1.1 x 10^-6 and 2.1 x 10^-6. Roughly 1 in a million and 2 in a million. But I seem to have put extra zeros in my decimals. How annoying! Thanks for letting me know though!
@marianelamarino4915
@marianelamarino4915 Год назад
So clear, excelllent video! Was very helpful 👏🏼👏🏼 Thank you!
@woodyrow
@woodyrow Год назад
Thanks so much! Really glad you enjoyed it!
@unochepassa2259
@unochepassa2259 7 месяцев назад
Thanks for the interesting and clear video! I have a doubt about Amira and Jane problem: why do you assume that Jane being late has an impact on Amira being late? From what we know, one could come from the Moon and the other from Mars. Did I miss something?
@woodyrow
@woodyrow 7 месяцев назад
Good question. I don't assume that Jane being late had an impact on Amira (in the sense that one caused the other), but we have proved that the events are not independent. This means there is some relationship between one being late and the other being late. If they were truly independent of one another, we would see the property that P(A and J)=P(A)P(J). Since we don't see this, they are not independent. So this could be that Jane being late caused Amira to be late, it could be that Amira being late caused Jane to be late, or it could be some other thing caused both to be late. Eg one is coming from the moon and one is coming from Mars, and a meteor shower caused both rockets to do an extra loop before landing!
@kealebogaappolos6934
@kealebogaappolos6934 7 месяцев назад
Thank you for this video. What I missed is how you calculated the probability in your first example for normal distribution. You just said look at the area under the curve and you said calculate and get the value.
@woodyrow
@woodyrow 7 месяцев назад
Calculating probabilities with the normal distribution essentially involves using a computer or a calculator to find the area. While there is a (complicated) function for the normal distribution, there is no formula for computing the area under the curve. you have to just use a computer/calculator to find it. Before computers, it just had to be approximated by hand!
@pravinhonmute6608
@pravinhonmute6608 Год назад
Wonderful teaching, earlier i found it difficult to understand the probability but now its seems easy. thanks prof.
@mdaktaruljamanakter-b8l
@mdaktaruljamanakter-b8l 23 дня назад
Thompson Eric Lee Sarah White Dorothy
@acm...
@acm... 2 года назад
Excellent breakdown of the topic! The final parts about simulating Bayes theorem in the Excel really drove the whole idea home really well.
@JeanOfmArc
@JeanOfmArc 2 месяца назад
This was an awesome video; really appreciate it!
@PriestleyLorraine-v8l
@PriestleyLorraine-v8l 12 дней назад
Wilson Mark Clark James Lewis Frank
@nazeerahmed1509
@nazeerahmed1509 8 месяцев назад
Correction @26:49 'we therefore know that there's a 95% chance that he will NOT lose his job ' instead of 'we therefore know that there's a 95% chance that he will lose his job '
@woodyrow
@woodyrow 8 месяцев назад
Good spot! 4 years and I never noticed this!
@sandeepkarmarkar8813
@sandeepkarmarkar8813 8 месяцев назад
Great session sir! Just one que: Why did you take rand() < a particular column.. why not >?
@woodyrow
@woodyrow 7 месяцев назад
Hi. Sorry for the slow reply! It's just a handy way to get a random variable based on a specific probability. If I say rand()
@fernandojackson7207
@fernandojackson7207 7 месяцев назад
Excellent presentation. Wouldn't the Monty Hall Problem be an example of where using Bayes would be helpful? The update info would be that the host, Monty Hall will switch to a door with a goat. The setup is this: Monty Hall is the host of a TV Show, where a contestant must choose one of three doors , where there are goats behind two of the doors, and a car behind the other door. If the contestant chooses the door with the car, they get to keep it. If they choose a door with a goat behind it, they're out. The additional info is that once the contestant selects one of the doors, Monty will stop the show, open up one of the doors containing a goat, and proceed to ask the contestant if they'd prefer to switch to another door. Then the question is whether it is a good idea for the contestant to switch. Answer is yes, given by choosing at random, uniformly, the contestant will have initially chosen the car only 1/3 of the time, and one of the two goats 2/3 of the time. So, 2/3 of the time, contestant will have made the wrong choice, and will improve the odds by switching. I hope this isn't too confusing.
@woodyrow
@woodyrow 7 месяцев назад
Exactly! Yes, the Monty Hall problem is a very good example of Bayes' theorem in practice!
@fernandojackson7207
@fernandojackson7207 7 месяцев назад
@@woodyrowHi again, if I may ask a more general question in Statistics: Once a hypthesis test has been setup: Difference of Means, Proportion, Anova, etc. Is there a "Natural" way of defining the statistic to be used to determine whether we reject or don't reject the Null Hypothesis?
@woodyrow
@woodyrow 7 месяцев назад
Great question@@fernandojackson7207 . I suppose overall I'd say there is not a general natural way of doing this. In practice, you learn when and where to use each one through practice. I think the best I could do is maybe to suggest thinking through the following: 1. Type of Data: The nature of the data (e.g., categorical vs. continuous, paired vs. independent samples) significantly influences the choice of the test statistic. For example, a t-test is appropriate for comparing the means of two independent samples of continuous data, whereas a chi-square test is used for categorical data. 2. Hypothesis Being Tested: The hypothesis itself (difference of means, proportion, variance, etc.) guides the choice of the statistic. For instance: For testing differences between means, you might use a t-statistic in a t-test. For proportions, a z-statistic might be used in a z-test. For comparing variances, an F-statistic is used in ANOVA (Analysis of Variance). 3. Assumptions Underlying the Statistical Test: Each statistical test comes with its own set of assumptions (e.g., normality, homogeneity of variances, independence). The choice of statistic is contingent upon whether these assumptions are met. For example: A t-test assumes normally distributed differences, but if this assumption is violated, a non-parametric test like the Mann-Whitney U test might be more appropriate. ANOVA assumes homogeneity of variances among groups; if this is not met, you might use a Welch's ANOVA instead. 4. Design of the Study: The study design (e.g., matched pairs, blocked designs) also influences the choice. For matched pairs, a paired t-test uses the differences within each pair as the data for analysis.
@woodyrow
@woodyrow 7 месяцев назад
But beyond these sorts of observations, it's often just the case that through experience you begin to recognise what is appropriate in which situations. Hope that helps a little!
@fernandojackson7207
@fernandojackson7207 7 месяцев назад
@@woodyrow Thank you so much for the explanation, Woody.
@epilepsyawareness
@epilepsyawareness Год назад
Outstanding explanations. Thank you.
@nelsondelarosa5490
@nelsondelarosa5490 8 месяцев назад
Indeed your video is FANTASTIC and IMMENSILY helpful. Thanks!!!
@woodyrow
@woodyrow 7 месяцев назад
Thanks! Glad you liked it!
@kaskilelr3
@kaskilelr3 Год назад
Thank you so much for this tutorial. Very clear and with very interesting examples, I am so glad i found this channel
@suelook9562
@suelook9562 2 дня назад
Excellent explanation!!!
@nicolasabboud8577
@nicolasabboud8577 Год назад
The best tutorial on youtube that explains Bayesian Statistics so far! 🌷
@haraldurkarlsson1147
@haraldurkarlsson1147 2 года назад
Woody, Thanks for an outstanding high-quality video. I was quite happy until the very end when you did your simulation in Excel. That is not reproducible (even though this is pseudo-random) as it would have been in a program like R (or python). There are indeed many packages in R that do Bayes but the recent addition "bayesrules" takes the cake. It is a simple and user-friendly packes that is worth taking a look at.
@cristinamorenodelcastillo8527
The first lesson is everything! I finally understand the fundamental difference between Bayesian and frequentist statistics. 🎉 beautifully explained, thank you!
@woodyrow
@woodyrow 11 месяцев назад
Thank you so much!
@Sergei-ld1iv
@Sergei-ld1iv Год назад
This is really great class!!! Many thanks! You are a great teacher as you can put yourself into the shoes of a student and highlight the least clear connections !!! The graphics is awesome as well - very clear, down to detail not redundant!!! Really pity and weired that this channel did not attrackt too many subscribers !
@woodyrow
@woodyrow Год назад
Thanks so much!
@codewithme2day
@codewithme2day 10 месяцев назад
@woodyrow why are we using the conditional formulas instead of the Bayes formulas that I know which is P = P(A/B) × P(B) / P(A). I am new to statistics. Please explain
@krgonline
@krgonline 2 года назад
Great session. A doubt : in calculating Bayesian prob (~1:07), the prob of E/H (numerator) has not been multiplied by prior prob (presumably 0.5). Am I missing something here ?
@woodyrow
@woodyrow 2 года назад
Hi. Excellent questions. You are right to wonder about this, and to keep things simple I COMPLETELY ignored the subtle details. Firstly, the prior for this shouldn't be 0.5, since we just don't have any evidence at all before the game starts. So assuming 0.5 at the beginning artificially skews results. In technical terms, this is known as a "nuisance parameter", and we essentially get to ignore it and just integrate. Check out this article for a full explanation of why: jakevdp.github.io/blog/2014/06/06/frequentism-and-bayesianism-2-when-results-differ/
@stefenleung
@stefenleung 2 года назад
I've some doubt about the simulation. You just assume the line and ball place randomly with normal distribution. What if bob is really suck on throwing balls so his ball are always on the side of the table and therefore get to the score of 5::3?
@HuseyinOmerErgen
@HuseyinOmerErgen Год назад
Then you should use a different prior probability distribution- one in which the odds between Alice-wins-the-round vs Bob-wins-the-round is always greater than 1. And to be fair he didn't assume that, it was given as random in the question itself.
@julianmichaelis1745
@julianmichaelis1745 7 месяцев назад
But aren't you assuming that P(Bob wins) is 100%? So you start with a very strong prior. Or where I am wrong? ;-)
@woodyrow
@woodyrow 6 месяцев назад
I don't think I ever assume this, but can you let me know at which point you think I might have?
@zilyuji3143
@zilyuji3143 6 месяцев назад
I guess what u are referring to is the part where he derive the equation for P(a = 5 \land b = 3 | bob win)*P(bob win) on 1:07:49? This probability simplify to P((a = 5 \land b = 3) \land bob win), which should be equivalent to P(a = 5 \land b =6): this is the only state under which bob could win.
@barttrudeau9237
@barttrudeau9237 Год назад
I have been interested in Bayesian analysis for a few years and seen dozens of videos. This is the best video I have seen to learn the concepts. Thank you so much for producing and sharing this knowledge!
@woodyrow
@woodyrow Год назад
I'm thrilled to hear this! So glad you enjoyed it. Woody
@Hermanubis1
@Hermanubis1 7 месяцев назад
@@woodyrow Most europeans have 100IQ, East asians 105, ashkenazis 112, african americans 85, sub saharan africans 70.
@jamilkhan-dx6vo
@jamilkhan-dx6vo Год назад
I think there is a mistake in calculation at 28:58 P(E) = 0.445 and not 0.085 (In question related to recession and losing job)
@woodyrow
@woodyrow Год назад
I'm not seeing the error. P(E) = p(he loses his job). We calculate this by saying its either that there is a recession and he loses it, or there's not a recession and he loses it. The calculation for that is: 0.1x0.4 (recession and he loses his job) + 0.9x0.05 (no recession and he loses his iob) =0.085. Let me know if that makes sense of if you think there is an error with that.
@jamilkhan-dx6vo
@jamilkhan-dx6vo Год назад
@@woodyrow Understood sorry my mistake Thanks for the reply
@hmingthansangavangchhia4913
38:44 I don't understand how P(Taking pill given they are genius) = 0.66 translates to number of taking pill is double the number who don't take the pill. Please explain this part.
@sherrifmarty00
@sherrifmarty00 2 года назад
Thanks for educating us mr. Lewenstein!
@ProfessorSaadExplains
@ProfessorSaadExplains 8 месяцев назад
Great lesson! Thank you. Keep up the good work.
@onchang6020
@onchang6020 2 года назад
Thank you for the video. I started to see the real power of Bayesian statistics only after watching this video. In the final example (56:45), the problem was first solved the frequentist way, yielding an incorrect probability of 0.05. Then the problem was solved the Bayesian way, yielding a correct probability of 0.09. I think the frequentist logic is wrong because it consider Bob's chance of winning a point always 3/8. In reality, Bob's chance of winning a point follows a distribution with the mean of 3/8. It is possible to reach the evidence from many values of Bob's chance of winning. It does not have to be 3/8. Is this a valid explanation?
@subzero4579
@subzero4579 Год назад
This is the best description of Bayesian statistics I've seen
@unpatel1
@unpatel1 2 года назад
This was a great intro and I enjoyed it! Thank you.
@aniket1983
@aniket1983 2 года назад
This is not one of the but the best video on Bayesian theory....thank you so much for doing this....
@woodyrow
@woodyrow 2 года назад
Thank you so much!
@joserobertopacheco298
@joserobertopacheco298 2 года назад
I am from Brazil. Excelent explanation, very good job. Thank you and congratulations.
@woodyrow
@woodyrow 2 года назад
Thanks so much! Glad you enjoyed it.
@joserobertopacheco298
@joserobertopacheco298 2 года назад
@@woodyrow Thank you for your answer. I just subscribed to your channel.
@HuseyinOmerErgen
@HuseyinOmerErgen Год назад
32:30 minor nitpick but I would say it is higher than 45% because running faster would make someone more likely to be on the running team. Good lecture so far!
@TheRookieNerds
@TheRookieNerds 2 года назад
Wow that was very clear and engaging
@woodyrow
@woodyrow 2 года назад
Thanks!
@princedawodu4236
@princedawodu4236 Год назад
Wow, thank you.
@jayashrishobna
@jayashrishobna 2 месяца назад
Thank you for this absolute gem of a lecture. I think it might tickle you to know how I approached the problem re Tanya's tennis and sunny days (23:00 ish). As a healthcare professional, I'm much more familiar with sensitivity, specificity, positive/negative predictive values, prevalence etc, than I am with an equation for conditional probability. So for my first attempt at the problem, I basically framed the situation as "tennis" being a diagnostic test for "sunny", and drew a 2x2 table for "tennis" against "sunny"! The sensitivity of the test is 80%, ie. 80% of "sunnies" had a positive "tennis" result. The specificity of the test is 65%, ie. 65% of "not sunnies" had a negative "tennis" result. The "prevalence" of sunny is 60% and not sunny is 40%. Therefore, I just had to solve for the positive predictive value of the "tennis" test for "sunny", by using the relative prevalence to "weight" the sunnies vs not-sunnies within the "tennis" group. Et voila, it yielded the exact same process of multiplication as using the cond probability equation, which I used for my second attempt. I know this may sound like a much more complicated method, but seeing the probabilities in a table and applying concepts I already know truly helped me actually understand the multiplications within the conditional probability equation, rather than just solving for it blindly. This was a lightbulb moment for me. Thank you!
@woodyrow
@woodyrow 2 месяца назад
@@jayashrishobna really interesting! So nice to hear about how you went about solving this!
@kazisabbirahmadnahin2814
@kazisabbirahmadnahin2814 2 года назад
Great effort💗 Keep making more videos on this topic.
@woodyrow
@woodyrow 2 года назад
Thanks! I will try to do more!
@ABurns-lk5lp
@ABurns-lk5lp 2 года назад
Great post mate,keep it going.
@kunwar_divyanshu
@kunwar_divyanshu 2 года назад
Pls Make some more videos like this on stats topics . Thank You Sir for this wonderful explanation.
@JessicaVeraBermudez
@JessicaVeraBermudez 11 месяцев назад
Hi Woody, Thanks for this lesson! It is very useful. It's quite challenging to get rid of the frequentist mind after spending my entire life as so, though. I just a have a question: in the simulation, why did you calculated the last probability by using the number of rounds won by either Alice or Bob and not by the number of rounds (10000)? That's how simulations usually work. So I'll be more than grateful if you could help me out here with this doubt.
@woodyrow
@woodyrow 11 месяцев назад
Hi Jessica. We are trying to work out the probability of someone winning from a position where they are losing (by 5 points to 3). So we simulate and find all the situations where someone was losing by this score, and then see (out of these!) how many times they go on to win. If we divided by 10000 we would be working out the probability that someone plays the game, falls 5-3 behind and then goes on to win, which is a different question. Our question was: IF someone is already 5-3 behind, what is the probability that they win. To use the lingo, we want to probability they win "given" that they are 5-3 behind. Hope that makes sense!
@lpt369
@lpt369 6 месяцев назад
Thank You. So helpful!
@woodyrow
@woodyrow 5 месяцев назад
Thanks! Glad you found it helpful!
@kevingodsave8893
@kevingodsave8893 2 месяца назад
This is a top shelf explanation of an intuitively difficult concept. Introducing Incremental complexity using examples is a superb teaching method. The visualization using Excel to break out the calculation stages was for me the icing on the cake. Thank you, Woody!
@woodyrow
@woodyrow Месяц назад
Thanks so much! Really glad you enjoyed it and thanks for the cmment.
@TheColorField
@TheColorField Год назад
Wouldn't frequentist use the races THAT ALREADY OCCURRED and esimate BayesCamp chances of winning? That seems both practical and intuitive.
@woodyrow
@woodyrow Год назад
Yes, but those are different races. The strict frequentist approach is to consider the very same event occurring many times. Makes sense for a dice roll, which can essentially be the same every time. Makes no sense with a horse race, since races on previous days with different horses/weather/ground are too different. But good question. And yes, in reality this is what people do. But this is people being bayesians!
@Vanadium404
@Vanadium404 8 месяцев назад
Woah! Quality stuff and your examples added more to grasp the intuition underlying these Bayesian concepts. Regards from Pakistan
@woodyrow
@woodyrow 8 месяцев назад
Thanks so much!
@benjamindilorenzo
@benjamindilorenzo 2 года назад
Thats a great Video Bro! I am doing an Essay right know, comparing frequentist and bayesian approaches. In the example with the Genius and the Red Pill, what would be an frequentist approach? is there any?
@woodyrow
@woodyrow 2 года назад
Thanks! Glad you liked it. Frequentists would come to exactly the same conclusion for the Genius/Pill example. They agree with Bayes' theorem in all theoretical settings such as this. The disagreement is in two places: 1) a philosophical disagreement about what probability means, and 2) In situations where the parameters are not known, like the billiards example at the end. In situations where the parameters are known, like when dealing with a known normal distribution, Bayesians and Frequentists agree. These examples are there to show how to work with conditional probability in a range of cases. Thanks for the question!
@trb4847
@trb4847 2 года назад
For the running question with probabilities represented as areas how did you compute P(T < 14) as 0.106? (32.10 mark)
@woodyrow
@woodyrow 2 года назад
I used a normal distribution calculator setting the mean as 15.5, the standard deviation as 1.2 and calculating the probability or a result less than 14. I did it either using excels norm.dist function or using my calculator. Can't remember! You can also use websites like this: onlinestatbook.com/2/calculators/normal_dist.html
@joshuabrown9898
@joshuabrown9898 2 года назад
This is so good!
@benjamindilorenzo
@benjamindilorenzo 2 года назад
Also as a question regarding your simulation: thats pretty evident, but WHY is bayesians answer more precise? isnt it that the frequentist approach also argues with the law of large numbers?
@woodyrow
@woodyrow 2 года назад
Not just more precise - it's the only correct answer in this case! The frequentists approach goes wrong when the underlying parameters (e.g. the probability of Bob winning any given game) are not known. Frequentists assume that there is a fixed answer to what this is, and use the available data to determine what they think it is. In this case, they assume it is 3/8. Bayesians don't assume this is fixed, but think there is a distribution of different probabilities that could have explained the data. Depending on how technical you want to get with this, you could check out this article here: www.countbayesie.com/blog/2021/4/27/technically-wrong-when-bayesian-and-frequentist-methods-differ. There's also a good discussion here: stats.stackexchange.com/questions/22/bayesian-and-frequentist-reasoning-in-plain-english. These get quite technical though. Thanks for the question.
@TonyLMai
@TonyLMai 2 года назад
Well done Woody!
@elliehomes
@elliehomes 7 месяцев назад
Thank you!
@woodyrow
@woodyrow 7 месяцев назад
My pleasure!
@abhishekojha6382
@abhishekojha6382 Год назад
Amazing video! Such clarity & presentation! Thank you! Learned a lot!
@woodyrow
@woodyrow Год назад
Thanks so much Abhishek! So nice to hear that.
@swap_sid
@swap_sid 2 года назад
thanks for the lecture! well explained!
@harryhirsch2024
@harryhirsch2024 11 месяцев назад
This is the best explanation I ever saw.
@jomath5790
@jomath5790 3 месяца назад
This video deserves more likes.
@CanDoSo_org
@CanDoSo_org 2 года назад
Great tutorial. Thanks, man.
@kartikeyaagrawal7301
@kartikeyaagrawal7301 2 года назад
This is so under rated
@sakkariyaibrahim2650
@sakkariyaibrahim2650 Год назад
excellent lecture
@pacinosky
@pacinosky Год назад
well explained
@4767039
@4767039 Год назад
Best explanation! Finally I get it😂
@woodyrow
@woodyrow Год назад
Thanks so much! So pleased to hear this.
@widheg
@widheg 2 года назад
Excellent!
@rocknroll909
@rocknroll909 Год назад
Incredibly cool stuff. You're a great teacher, thank you so much for this
@woodyrow
@woodyrow Год назад
Thank you so much!! Glad you liked it!
@nassersaed4993
@nassersaed4993 Год назад
@woodyrow great video 👍 the only thing not clear for me is how you derived the 1/9 denominator at 1:05, how did you calculate it? Can you please refer to a resource exploring the formula in detail 🙏
@woodyrow
@woodyrow Год назад
@@nassersaed4993 glad you like it! The 1/9 is calculated using integration around 1:05. Watch that section and see if it makes sense. You'll need to know about integration though, which is a pretty big topic.
@McSwey
@McSwey 2 года назад
very cool
@jomath5790
@jomath5790 3 месяца назад
I just love the flow of the lecture.
@woodyrow
@woodyrow 3 месяца назад
Thank you so much! Lovely to hear that!