Conditional Probability
Learning Objectives
- Define conditional probability and understand how it reduces the sample space.
- Apply the general multiplication rule to find the probability of joint events.
- Distinguish between independent and dependent events in engineering contexts.
- Calculate total probability when events occur through mutually exclusive pathways.
- Utilize Bayes' Theorem to update probabilities based on new evidence.
Overview of Conditional Probability
In engineering, we rarely evaluate risks in isolation. Our assessment of a structure's failure probability changes if we already know that a defect was present during construction. This updating of probabilities based on prior knowledge is called conditional probability. It effectively adjusts the probability of an event given that another event has already occurred.
The Concept of Conditional Probability
Adjusting Probability
Adjusting the probability of an event given that another event has already occurred.
Conditional Probability,
The probability that event occurs, given that event has already occurred. It effectively reduces the sample space from to just the outcomes in .
Conditional Probability Formula
Calculates the probability of event B occurring given that event A has already occurred.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Conditional probability of event B given event A | - | |
| Joint probability of both events A and B occurring | - | |
| Probability of event A occurring | - |
The Multiplication Rule (General)
Used to find the probability that two events and occur simultaneously (). It is a direct rearrangement of the conditional probability formula.
General Multiplication Rule
Determines the joint probability of two dependent events.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Joint probability of both events A and B occurring | - | |
| Probability of event A occurring | - | |
| Conditional probability of event B given event A | - |
Symmetric Multiplication Rule
The general multiplication rule can also be symmetrically expressed as .
Independent Events
Independent Events in Engineering
When the occurrence of one event has absolutely no effect on the probability of another, the events are considered independent. In structural engineering, deciding whether the failure of one column affects the failure probability of an adjacent column is a critical assessment of independence.
Independence
Two events and are independent if and only if the knowledge that occurred does not change the probability of occurring. Mathematically, this is expressed as and .
Special Multiplication Rule for Independent Events
Determines the joint probability of two independent events.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Joint probability of both independent events A and B occurring | - | |
| Probability of event A occurring | - | |
| Probability of event B occurring | - |
Independence of Multiple Events
For three events , , and to be mutually independent, they must be pairwise independent (, etc.), AND their joint probability must equal the product of their individual probabilities: .
The Theorem of Total Probability and Bayes' Theorem
Advanced Probability Concepts
Advanced tools like the Theorem of Total Probability and Bayes' Theorem are necessary for calculating probabilities when an event can occur through multiple, distinct pathways.
The Theorem of Total Probability
If a sample space is partitioned into mutually exclusive and collectively exhaustive events (), then the probability of any event occurring is the sum of the probabilities of occurring in conjunction with each partition.
Engineering Application of Total Probability
If a concrete batch can fail due to poor mixing (), improper curing (), or bad aggregates (), the total probability of failure is the sum of the probabilities of failure given each specific cause, weighted by how frequently each cause occurs. This allows engineers to assess overall risk across a supply chain or construction sequence.
Theorem of Total Probability
Calculates the overall probability of an event based on a partition of the sample space.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Total probability of event A | - | |
| Number of mutually exclusive and collectively exhaustive events | - | |
| Probability of the i-th partition event | - | |
| Conditional probability of event A given the i-th partition event | - | |
| Joint probability of the i-th partition event and event A | - |
Bayes' Theorem
A powerful mathematical formula used to update the probabilities of hypotheses when given new evidence. It essentially reverses the conditional probability. For example, if an engineer observes cracking in a foundation (the effect) and knows the probability of such cracks under various soil conditions (the causes), Bayes' Theorem lets them calculate the likelihood that a specific soil condition caused the observed cracking.
Bayes' Theorem
Calculates the posterior probability of a cause given an observed effect.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Posterior probability (updated probability of cause given evidence A) | - | |
| Prior probability (initial estimate of cause before evidence) | - | |
| Likelihood (probability of observing evidence A given cause B_i) | - | |
| Prior probability of any given partition event | - | |
| Likelihood of evidence A given partition event B_j | - | |
| Number of mutually exclusive causes/partitions | - |
Interactive Simulation
Interact with the simulation below to explore conditional probability and Bayes' Theorem.
Engineering Data Analysis
Bayes' Theorem & Diagnostic Testing
Visualize conditional probability and Bayes' theorem using a probability tree. Adjust the prior probability and test accuracy to see how they impact the posterior probability.
Probability of a random component being defective.
Sensitivity: Test is positive when defect is present.
False Alarm: Test is positive when NO defect is present.
Probability Tree Diagram
Total Positives
Sum of True Positives and False Positives
Posterior
Prob. it is defective GIVEN a positive test
Bayes' Theorem Calculation
Interactive Simulation
Explore the application of Bayes' Theorem to diagnostic testing by adjusting prevalence, sensitivity, and specificity in the simulation below.
Engineering Data Analysis β’ Topic 4
Bayes' Theorem in Diagnostic Testing
- Conditional Probability (): The probability of given that has occurred; shrinks the sample space to .
- Multiplication Rule: Used for "A AND B" scenarios ().
- Independence: If and are independent, .
- Theorem of Total Probability: Useful for finding the total probability of an event that can occur across multiple mutually exclusive pathways.
- Bayes' Theorem: Allows engineers to "work backward" from an observed effect (e.g., structural failure) to determine the most likely cause, updating prior beliefs with new evidence.