ScholarQuill logoScholarQuillUniversity Notes
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
Study Tools
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
Contact
ScholarQuill logo
My Semester
Explore Notes
Past Papers12 New
Video CoursesNew
Search
Settings
GPA/CGPA Calculator
Schedule & To-Do
Student Portal
Contact
ScholarQuill logoScholarQuillUniversity Notes
Study PortalSTAT2115Conditional Probabilit…
Ctrl + K
Login
Explore
Search
Semester
Papers
CGPA
    STAT2115

    Introduction to Statistics

    Progress0 / 24 done
    Topics24
    1Scope of Statistics
    2Descriptive and Inferential Statistics3Population, Sample, Parameter, and Statistic4Types of Data and Scales of Measurement5Frequency Distribution and Graphical Representation6Bar Chart, Pie Chart, and Histogram7Frequency Polygon, Frequency Curve, and Cumulative Frequency Polygon8Measures of Central Tendency9Quantiles10Absolute and Relative Measures of Dispersion11Moments, Skewness and Kurtosis12Basic Concepts of Probability
    13Multiplication Principle, Permutation and Combination14Probability Spaces and Laws of Probability15Conditional Probability and Bayes' Theorem16Discrete and Continuous Random Variables
    17Binomial, Poisson, and Hypergeometric18Uniform, Exponential, and Normal
    19Sample Design and Sampling Frame20Sampling and Non-Sampling Errors21Sampling Distributions for Mean and Proportion22Sampling Distributions for Difference of Means and Difference of Proportions23Overview of Hypothesis Testing24Overview of Regression Analysis
    6 min read
    Topic 15 of 24
    Topic Study Note Illustration
    15

    Conditional Probability and Bayes' Theorem

    Conditional probability measures the probability of an event A occurring given that another event B has already occurred.

    1. Conditional Probability

    Conditional probability measures the probability of an event A occurring given that another event B has already occurred.

    P(A∣B)=P(A∩B)P(B),if P(B)>0P(A|B) = \frac{P(A \cap B)}{P(B)}, \quad \text{if } P(B) > 0P(A∣B)=P(B)P(A∩B)​,if P(B)>0
    • P(A∣B)P(A|B)P(A∣B) = probability of A given B
    • P(A∩B)P(A \cap B)P(A∩B) = probability that both A and B occur
    • P(B)P(B)P(B) = probability of B

    Key Points

    • Conditional probability changes the sample space to B.
    • If A and B are independent, then P(A∣B)=P(A)P(A|B) = P(A)P(A∣B)=P(A)

    Example:

    • A card is drawn from a deck of 52 cards.
    • Let AAA = "card is a King" (4/524/524/52)
    • Let BBB = "card is a face card" (12/5212/5212/52)
    P(A∣B)=P(A∩B)P(B)=4/5212/52=13P(A|B) = \frac{P(A \cap B)}{P(B)} = \frac{4/52}{12/52} = \frac{1}{3}P(A∣B)=P(B)P(A∩B)​=12/524/52​=31​

    2. Multiplication Rule

    Conditional probability leads to the general multiplication rule:

    P(A∩B)=P(B)⋅P(A∣B)=P(A)⋅P(B∣A)P(A \cap B) = P(B) \cdot P(A|B) = P(A) \cdot P(B|A)P(A∩B)=P(B)⋅P(A∣B)=P(A)⋅P(B∣A)
    • Useful for dependent events.
    • If A and B are independent, P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B)P(A∩B)=P(A)⋅P(B).

    3. Bayes’ Theorem

    Bayes’ Theorem allows us to update the probability of an event based on new information.

    Suppose E1,E2,...,EnE_1, E_2, ..., E_nE1​,E2​,...,En​ are mutually exclusive and exhaustive events (partition of sample space) and A is an event. Then:

    P(Ei∣A)=P(A∣Ei)⋅P(Ei)∑j=1nP(A∣Ej)⋅P(Ej)P(E_i | A) = \frac{P(A|E_i) \cdot P(E_i)}{\sum_{j=1}^{n} P(A|E_j) \cdot P(E_j)}P(Ei​∣A)=∑j=1n​P(A∣Ej​)⋅P(Ej​)P(A∣Ei​)⋅P(Ei​)​
    • P(Ei)P(E_i)P(Ei​) = prior probability of EiE_iEi​
    • P(A∣Ei)P(A|E_i)P(A∣Ei​) = probability of observing A given EiE_iEi​
    • P(Ei∣A)P(E_i|A)P(Ei​∣A) = posterior probability of EiE_iEi​ after observing A

    Steps to Use Bayes’ Theorem

    1. Identify the partition events E1,E2,...,EnE_1, E_2, ..., E_nE1​,E2​,...,En​.
    2. Determine the prior probabilities P(Ei)P(E_i)P(Ei​).
    3. Determine likelihoods P(A∣Ei)P(A|E_i)P(A∣Ei​).
    4. Apply formula to find posterior probability P(Ei∣A)P(E_i|A)P(Ei​∣A).

    Example: Medical Test

    • Disease prevalence: P(D)=0.01P(D) = 0.01P(D)=0.01
    • Test positive if diseased: P(T+∣D)=0.99P(T+|D) = 0.99P(T+∣D)=0.99
    • Test positive if healthy: P(T+∣D′)=0.05P(T+|D') = 0.05P(T+∣D′)=0.05

    Probability that a person has the disease given a positive test:

    P(D∣T+)=P(T+∣D)P(D)P(T+∣D)P(D)+P(T+∣D′)P(D′)P(D|T+) = \frac{P(T+|D)P(D)}{P(T+|D)P(D) + P(T+|D')P(D')}P(D∣T+)=P(T+∣D)P(D)+P(T+∣D′)P(D′)P(T+∣D)P(D)​ P(D∣T+)=0.99⋅0.010.99⋅0.01+0.05⋅0.99≈0.166P(D|T+) = \frac{0.99 \cdot 0.01}{0.99 \cdot 0.01 + 0.05 \cdot 0.99} \approx 0.166P(D∣T+)=0.99⋅0.01+0.05⋅0.990.99⋅0.01​≈0.166
    • Even with a positive test, probability of disease ≈ 16.6%
    • Shows importance of prior probability (prevalence).

    4. Summary Table

    Concept Formula Notes
    Conditional Probability $$ P(A B) = \frac{P(A \cap B)}{P(B)} $$ Changes sample space to B
    Multiplication Rule $P(A \cap B) = P(A) P(B A) = P(B) P(A B)$ For dependent events
    Bayes' Theorem $P(E_i A) = \frac{P(A E_i)P(E_i)}{\sum P(A E_j)P(E_j)}$ Updates probability based on new info

    Key Points to Remember

    1. Conditional probability adjusts probabilities based on known events.
    2. Multiplication rule links joint probability to conditional probability.
    3. Bayes’ theorem is widely used in diagnostics, risk analysis, and machine learning.
    ← Previous topic 14
    Probability Spaces and Laws of Probability
    Next topic 16 →
    Discrete and Continuous Random Variables

    Past Papers

    Open this section to view and download past papers

    Click on Show Past Papers to load available exam papers.

    Reading Progress
    0%
    6mremaining
    1.1kwords
    Intermediatelevel
    On This Page

    No headings found

    Study Toolkit

    Subject Portal

    Introduction to Statistics