Probability Basics
Probability quantifies uncertainty, measuring how likely an event is on a scale from 0 (impossible) to 1 (certain).
Definition
P(A ∪ B) = P(A) + P(B) − P(A ∩ B); P(A ∩ B) = P(A) · P(B | A) for dependent events.
Bayes' theorem: , updating belief in A after observing B.
Intuition
Conditional probability is the probability of A given that B has occurred — it restricts the sample space.
The "base rate fallacy" ignores : a rare event with high false-positive rate often has low true positive predictive value.
Worked example
If 1% of people have a disease and the test is 99% accurate, but due to the low base rate.
Drawing two aces without replacement from a deck: .
The math
Random variable maps outcomes to numbers; the PMF gives probabilities for discrete , the PDF for continuous .
Expectation ; variance .
In practice
Powers Bayes' theorem for spam filtering, medical diagnosis, and A/B testing — everywhere you update beliefs with evidence.
Probability distributions model real phenomena: binomial for coin flips, Poisson for rare events per time interval, normal for measurement errors.
More in Data science
Assembled from the ReLU.chat curated knowledge base. These explanations are concise on purpose; check the sources for anything important.