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
    🧩
    Probability and Statistics
    MS-251
    Progress0 / 36 topics
    Topics
    1. Introduction: Statistics and Data Analysis2. Statistical Inference3. Samples, Populations, and the Role of Probability4. Sampling Procedures5. Discrete and Continuous Data6. Statistical Modeling7. Types of Statistical Studies8. Probability: Sample Space, Events, Counting Sample Points9. Probability of an Event10. Additive Rules11. Conditional Probability12. Independence and the Product Rule13. Bayes’ Rule14. Random Variables and Probability Distributions15. Mathematical Expectation: Mean of a Random Variable16. Variance and Covariance of Random Variables17. Means and Variances of Linear Combinations of Random Variables18. Chebyshev’s Theorem19. Discrete Probability Distributions20. Continuous Probability Distributions21. Fundamental Sampling Distributions22. Sampling Distributions and Data Descriptions23. Random Sampling24. Sampling Distributions25. Sampling Distribution of Means and the Central Limit Theorem26. Sampling Distribution of S227. t-Distribution28. F-Quantile and Probability Plots29. Single Sample & One- and Two-Sample Estimation Problems30. Single Sample & One- and Two-Sample Tests of Hypotheses31. The Use of P-Values for Decision Making in Testing Hypotheses32. Regression: Linear Regression and Correlation33. Least Squares and the Fitted Model34. Multiple Linear Regression and Certain Nonlinear Regression Models35. Linear Regression Model Using Matrices36. Properties of the Least Squares Estimators
    MS-251›Conditional Probability
    Probability and StatisticsTopic 11 of 36

    Conditional Probability

    10 minread
    1,744words
    Intermediatelevel

    Conditional Probability

    Conditional probability is the probability of an event occurring given that another event has already occurred. It helps us to refine the probability of an event when we know some additional information about the situation.

    In formal terms, the conditional probability of an event AAA given that another event BBB has occurred is denoted as P(A∣B)P(A \mid B)P(A∣B), and is defined as:

    P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​

    Where:

    • P(A∣B)P(A \mid B)P(A∣B) is the probability of event AAA occurring given that event BBB has occurred.
    • P(A∩B)P(A \cap B)P(A∩B) is the probability of both events AAA and BBB occurring (i.e., the intersection of AAA and BBB).
    • P(B)P(B)P(B) is the probability of event BBB occurring. It must be greater than zero (P(B)>0P(B) > 0P(B)>0), since we're conditioning on the occurrence of BBB.

    Key Points:

    1. Conditional Probability refines the probability of an event by considering the restriction imposed by the occurrence of another event.
    2. The denominator P(B)P(B)P(B) is the probability of event BBB occurring, and the numerator P(A∩B)P(A \cap B)P(A∩B) reflects the probability of both events occurring together.

    Example 1: Drawing a Card from a Deck

    Let's use a standard deck of 52 cards to demonstrate conditional probability.

    • Event AAA: Drawing a face card (Jack, Queen, King).
    • Event BBB: Drawing a red card (Hearts or Diamonds).

    We are interested in finding the probability of drawing a face card (event AAA) given that a red card (event BBB) has already been drawn.

    1. Calculate P(B)P(B)P(B): The deck has 26 red cards (13 Hearts and 13 Diamonds). Therefore, the probability of drawing a red card is:

      P(B)=2652=12P(B) = \frac{26}{52} = \frac{1}{2}P(B)=5226​=21​
    2. Calculate P(A∩B)P(A \cap B)P(A∩B): The red face cards are the Jack, Queen, and King of Hearts and Diamonds, so there are 6 red face cards in total. Therefore, the probability of drawing a red face card is:

      P(A∩B)=652=326P(A \cap B) = \frac{6}{52} = \frac{3}{26}P(A∩B)=526​=263​
    3. Apply the formula for conditional probability:

      P(A∣B)=P(A∩B)P(B)=32612=313P(A \mid B) = \frac{P(A \cap B)}{P(B)} = \frac{\frac{3}{26}}{\frac{1}{2}} = \frac{3}{13}P(A∣B)=P(B)P(A∩B)​=21​263​​=133​

    Thus, the probability of drawing a face card given that a red card has been drawn is 313\frac{3}{13}133​.


    General Formula for Conditional Probability with Multiple Events

    When there are more than two events, the concept of conditional probability can be extended. For instance, the conditional probability of event AAA given events BBB and CCC is:

    P(A∣B∩C)=P(A∩B∩C)P(B∩C)P(A \mid B \cap C) = \frac{P(A \cap B \cap C)}{P(B \cap C)}P(A∣B∩C)=P(B∩C)P(A∩B∩C)​

    Here, you are conditioning on the occurrence of both BBB and CCC, and you need to adjust for the intersection of all three events.


    Conditional Probability in Terms of Bayes' Theorem

    One of the most important applications of conditional probability is Bayes' Theorem, which relates conditional probabilities in the reverse direction (i.e., given AAA, we calculate BBB).

    Bayes' Theorem states that:

    P(B∣A)=P(A∣B)P(B)P(A)P(B \mid A) = \frac{P(A \mid B) P(B)}{P(A)}P(B∣A)=P(A)P(A∣B)P(B)​

    Where:

    • P(B∣A)P(B \mid A)P(B∣A) is the conditional probability of event BBB given event AAA.
    • P(A∣B)P(A \mid B)P(A∣B) is the conditional probability of event AAA given event BBB.
    • P(B)P(B)P(B) is the prior probability of event BBB.
    • P(A)P(A)P(A) is the total probability of event AAA, which can be computed using the law of total probability.

    Bayes' Theorem is especially useful in fields like medical diagnostics, spam filtering, and machine learning, where you need to update your beliefs about the probability of an event (e.g., having a disease, being a spam message) based on new evidence.


    Example 2: Disease Testing (Bayes' Theorem)

    Suppose a test is conducted for a disease, and we know the following:

    • P(Disease)=0.01P(\text{Disease}) = 0.01P(Disease)=0.01: The prior probability of having the disease is 1%.
    • P(No Disease)=0.99P(\text{No Disease}) = 0.99P(No Disease)=0.99: The probability of not having the disease is 99%.
    • P(Positive Test∣Disease)=0.95P(\text{Positive Test} \mid \text{Disease}) = 0.95P(Positive Test∣Disease)=0.95: The probability of testing positive given that the person has the disease (True Positive Rate).
    • P(Positive Test∣No Disease)=0.05P(\text{Positive Test} \mid \text{No Disease}) = 0.05P(Positive Test∣No Disease)=0.05: The probability of testing positive given that the person does not have the disease (False Positive Rate).

    We want to know the probability that a person actually has the disease, given that they tested positive. This is P(Disease∣Positive Test)P(\text{Disease} \mid \text{Positive Test})P(Disease∣Positive Test).

    Using Bayes' Theorem:

    P(Disease∣Positive Test)=P(Positive Test∣Disease)P(Disease)P(Positive Test)P(\text{Disease} \mid \text{Positive Test}) = \frac{P(\text{Positive Test} \mid \text{Disease}) P(\text{Disease})}{P(\text{Positive Test})}P(Disease∣Positive Test)=P(Positive Test)P(Positive Test∣Disease)P(Disease)​

    We first need to calculate P(Positive Test)P(\text{Positive Test})P(Positive Test), the total probability of testing positive. This is the sum of the probabilities of testing positive for both disease and no disease:

    P(Positive Test)=P(Positive Test∣Disease)P(Disease)+P(Positive Test∣No Disease)P(No Disease)P(\text{Positive Test}) = P(\text{Positive Test} \mid \text{Disease}) P(\text{Disease}) + P(\text{Positive Test} \mid \text{No Disease}) P(\text{No Disease})P(Positive Test)=P(Positive Test∣Disease)P(Disease)+P(Positive Test∣No Disease)P(No Disease) P(Positive Test)=(0.95×0.01)+(0.05×0.99)=0.0095+0.0495=0.059P(\text{Positive Test}) = (0.95 \times 0.01) + (0.05 \times 0.99) = 0.0095 + 0.0495 = 0.059P(Positive Test)=(0.95×0.01)+(0.05×0.99)=0.0095+0.0495=0.059

    Now, applying Bayes' Theorem:

    P(Disease∣Positive Test)=0.95×0.010.059=0.00950.059≈0.161P(\text{Disease} \mid \text{Positive Test}) = \frac{0.95 \times 0.01}{0.059} = \frac{0.0095}{0.059} \approx 0.161P(Disease∣Positive Test)=0.0590.95×0.01​=0.0590.0095​≈0.161

    Thus, even if a person tests positive, there is only about a 16.1% chance that they actually have the disease, which is a relatively low probability due to the low prior probability of the disease and the false positive rate.


    Summary of Key Concepts

    • Conditional Probability (P(A∣B)P(A \mid B)P(A∣B)) is the probability of event AAA occurring given that event BBB has already occurred. It is calculated using: P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}P(A∣B)=P(B)P(A∩B)​
    • Bayes' Theorem allows us to reverse the condition, updating the probability of an event BBB given evidence AAA, using: P(B∣A)=P(A∣B)P(B)P(A)P(B \mid A) = \frac{P(A \mid B) P(B)}{P(A)}P(B∣A)=P(A)P(A∣B)P(B)​
    • Conditional probability is fundamental in real-world applications like medical diagnosis, risk analysis, and decision-making under uncertainty.

    Understanding conditional probability is crucial because it allows us to refine our predictions and decisions based on additional information, making it a powerful tool in both theoretical and applied statistics.

    Previous topic 10
    Additive Rules
    Next topic 12
    Independence and the Product Rule

    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 time10 min
      Word count1,744
      Code examples0
      DifficultyIntermediate