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.
The Concept of Conditional Probability
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 .
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.
Or, symmetrically:
Independent Events
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:
Substituting this into the general multiplication rule yields the Special Multiplication Rule for Independent Events:
Independence of Multiple Events
For three events 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
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: 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.
Bayes' Theorem
A powerful mathematical formula used to update the probabilities of hypotheses when given new evidence. It essentially reverses the conditional probability. If we know the probability of an effect given a cause (), Bayes' Theorem lets us find the probability of a specific cause given that the effect occurred ().
- Prior Probability (): Our initial estimate of the probability of cause before observing the evidence .
- Likelihood (): The probability of observing evidence if cause is true.
- Posterior Probability (): The updated probability of cause after observing the evidence .
Interact with the simulation below to explore conditional probability and Bayes' Theorem.
Engineering Data Analysis
Bayes' Theorem & Diagnostic Testing Explorer
The prior probability of a random component being defective.
The probability that the test is positive given that a defect is present.
The probability that the test flag is positive when NO defect is present.
Posterior Probability Calculation
— Probability that a component is actually defective given a positive test flag.
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.