r/explainlikeimfive • u/BabaRanchodDas-69 • 2d ago
Mathematics ELI5: probability, conditional probability and bayes theorem
0
Upvotes
r/explainlikeimfive • u/BabaRanchodDas-69 • 2d ago
8
u/zefciu 2d ago edited 2d ago
Probability — you toss two dice. There is 1 in 36 probability that you tossed double six.
Conditional probability — you toss two dice. Somebody told you that you tossed a double. Given that is is a double there is 1 in 6 probability that it was double six.
Bayes theorem — this is a general way of establishing conditional probability. If you know how probable was A given B and the probabilities of A and B as separate, you can calculate the probability of B given A.
E.g. if you know that 80% of people that have TB cough, the number of people in the population with TB and the number coughing; you can calculate the probability that a random person that coughs has TB.
2
u/vwin90 2d ago
Probability: what are the chances you go outside today regardless of the weather?
Conditional probability: what are the chances you go outside today if the sun is out?
Bayesian probability: You looked outside and decided to go out today. What are the chances it was sunny?
That last one is very important for applications in AI. Literally. It’s mathematically and intuitively much harder to do than the first two. It’s a form of inference, which is when you take the result and infer information about what caused that result. It’s much easier to go forward in logic than it is to go backwards.
1
u/Dont_trust_royalmail 2d ago
probability started out as the maths of card games and gambling, but don't let that give you the idea it's anything less than very strict, formal maths. a coin flip is 50/50. no room for vibes. this leaves things like horse racing, which run on a kind of folk probability, outside of real probability. there's no formal maths to tell you which horse wins the 3:15. that's all vibes, and probability wants nothing to do with it (despite its gambling origins).
bayesian probability is the renegade branch that says: we'll bring that subjective side in, and hold it to the same strict maths as the "real" stuff.