ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Introduction to Statistics
    STAT2115
    Progress0 / 24 topics
    Topics
    1. Scope of Statistics2. Introduction to Basic Concepts of Statistics: Descriptive and Inferential Statistics3. Population, Sample, Parameter, and Statistic4. Types of Data and Scales of Measurement5. Frequency Distribution and Graphical Representation6. Bar Chart, Pie Chart, and Histogram7. Frequency Polygon, Frequency Curve, and Cumulative Frequency Polygon8. Measures of Central Tendency9. Quantiles10. Absolute and Relative Measures of Dispersion11. Moments, Skewness and Kurtosis12. Basic Concepts of Probability13. Counting Rules: Multiplication Principle, Permutation and Combination14. Probability Spaces and Laws of Probability15. Conditional Probability and Bayes' Theorem16. Discrete and Continuous Random Variables17. Probability Distributions: Binomial, Poisson, and Hypergeometric18. Probability Distributions: Uniform, Exponential, and Normal19. Overview of Sampling: Sample Design and Sampling Frame20. Sampling and Non-Sampling Errors21. Sampling Distributions for Mean and Proportion22. Sampling Distributions for Difference of Means and Difference of Proportions23. Overview of Hypothesis Testing24. Overview of Regression Analysis
    STAT2115›Conditional Probability and Bayes' Theorem
    Introduction to StatisticsTopic 15 of 24

    Conditional Probability and Bayes' Theorem

    6 minread
    1,092words
    Intermediatelevel

    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 load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time6 min
      Word count1,092
      Code examples0
      DifficultyIntermediate