- Introduction
- Basic Terminology
- Types of Events
- Probability Rules
- Conditional Probability
- Law of Total Probability
- Bayes’ Theorem
- Random Variable
- Mean, Median, Mode
- Variance & Standard Deviation
- Probability Distributions
- Bernoulli Distribution
- Binomial Distribution
- Uniform Distribution
- Normal Distribution
- Poisson Distribution
- AI/ML Applications
- Formula Cheat Sheet
1. Introduction
Probability is a branch of mathematics that measures the likelihood of an event occurring. It answers questions like:- What is the chance of getting a Head?
- What is the probability a customer buys a product?
- What is the probability an email is spam?
- Classification
- Prediction
- Decision Making
- Uncertainty Estimation
- Bayesian Learning
- 0 → Impossible event
- 1 → Certain event
2. Basic Terminology
Experiment
An action that produces outcomes. Examples:- Tossing a coin
- Rolling a die
- Picking a card
Sample Space (S)
Set of all possible outcomes. Coin DieEvent (E)
A subset of the sample space. Example Rolling an even numberProbability of an Event
Example 1: Coin Toss
Sample Space Event Getting HeadExample 2: Roll a Die
Event Even numberExample 3: Coin + Die
Event Head AND Even Number Total outcomes Favorable3. Types of Events
Simple Event
Contains one outcome. Example Getting 4 on a die.Compound Event
Contains multiple outcomes. Example Getting an even number.Certain Event
Always occurs. Example Rolling a number less than 7.Impossible Event
Never occurs. Example Rolling 8 on a standard die.Union of Events
“A or B” Example Even OR OddIntersection of Events
“A and B” Example Even AND Multiple of 3 ResultMutually Exclusive Events
Cannot occur together. Example Head and Tail in one coin toss.Independent Events
One event does not affect another. Example Two coin tosses.Dependent Events
One event affects another. Example Drawing cards without replacement.4. Probability Rules
Rule 1: Complement Rule
Probability that an event does not occur. ExampleAddition Rule
Mutually Exclusive
Example Roll a die A = 2 B = 4Non-Mutually Exclusive
Example A = Even B = Multiple of 3 IntersectionMultiplication Rule
Independent
Example Two coinsDependent
5. Conditional Probability
Probability of B given A occurred. Example A = Even B = Multiple of 36. Law of Total Probability
If partition the sample space, then Used when probability comes from multiple possible cases. Example Medical diagnosis Different age groups contribute differently to disease probability.7. Bayes’ Theorem
Used to update probabilities after observing evidence. Where- (P(A)) = Prior
- (P(B|A)) = Likelihood
- (P(B)) = Evidence
- (P(A|B)) = Posterior
- Spam filtering
- Medical diagnosis
- Recommendation systems
- Naive Bayes Classifier
8. Random Variable
A variable whose value depends on a random experiment.Discrete Random Variable
Countable values. Example Number of Heads.Continuous Random Variable
Infinite values. Example Height Weight Temperature9. Mean, Median, Mode
Mean
Average value.Median
Middle value after sorting.Mode
Most frequently occurring value.10. Variance & Standard Deviation
Variance
Measures spread. Population SampleStandard Deviation
Square root of variance. Higher SD ⇒ More spread. Lower SD ⇒ Less spread.11. Probability Distribution
Describes how probabilities are assigned to values. Two types- Discrete Distribution
- Continuous Distribution
- Bernoulli
- Binomial
- Uniform
- Normal
- Poisson
12. Bernoulli Distribution
Single trial. Only two outcomes.- Success
- Failure
- Pass/Fail
- Spam/Not Spam
- Click/No Click
13. Binomial Distribution
Extension of Bernoulli. Conditions- Fixed number of trials
- Independent trials
- Same probability
- Customer conversions
- Defect detection
14. Uniform Distribution
Every value is equally likely. PDF Example Random number between 0 and 1. Applications- Random initialization
- Simulation
15. Normal Distribution
Most important distribution in ML. Bell-shaped curve. Properties- Symmetric
- Mean = Median = Mode
- Area = 1
- 68% within 1 SD
- 95% within 2 SD
- 99.7% within 3 SD
- Gaussian Naive Bayes
- Noise Modeling
- Statistics
- Data Normalization
16. Poisson Distribution
Models the number of events occurring in a fixed interval. Formula Applications- Calls per minute
- Website hits
- Machine failures
- Customer arrivals
17. AI/ML Applications
18. Formula Cheat Sheet
Probability
Complement
Addition Rule
Multiplication Rule
Conditional Probability
Total Probability
Bayes’ Theorem
Mean
Variance
Standard Deviation
Binomial Distribution
Uniform Distribution
Normal Distribution
Poisson Distribution
Key Takeaways
- Probability measures uncertainty and ranges from 0 to 1.
- Understand sample space, events, and probability rules before advanced topics.
- Conditional Probability, Law of Total Probability, and Bayes’ Theorem are foundational for probabilistic ML.
- Random variables describe outcomes numerically.
- Mean, variance, and standard deviation summarize data.
- The most important probability distributions for AI/ML are Bernoulli, Binomial, Uniform, Normal, and Poisson.
- These concepts underpin algorithms such as Naive Bayes, Gaussian Models, Bayesian Networks, and many statistical learning methods.