Probability theory is the branch of mathematics concerned with the analysis of random events. It provides a framework for quantifying uncertainty, predicting outcomes, and understanding random phenomena. In probability theory, an event is any outcome or set of outcomes from a random experiment, and the probability of an event is a number that represents the likelihood of that event occurring.
The Law of Total Probability is a fundamental theorem in probability theory that relates the probability of an event to the probabilities of a set of mutually exclusive and exhaustive events. The idea is that if an event can occur in several ways, the total probability of the event is the sum of the probabilities of the different ways in which it can occur.
Understanding the Law of Total Probability
The Law of Total Probability states that if B1, B2, …, Bn are mutually exclusive and exhaustive events ( meaning they cover all possible outcomes and do not overlap ), and A is an event of interest, then the probability of A can be calculated as:
P(A) = (i=1∑n P(A∣Bi)P(Bi))
The law of total probability is important to find the probability of an event happening. If the probability of an event is going to happen is known to be 1, then for an impossible event it is likely to be 0. A fundamental rule in the theory of probability that is interconnected to marginal probability and conditional probability is called the law of total probability, or the total probability theorem.
After several events, it is known that the probability of all the possibilities should be known. The theorem of total probability is the core foundation of Baye’s theorem. In this article, we have discussed important concepts related to total probability, including the law of total probability, statements, proofs, and some examples.
Law of Total Probability
Given n mutually exclusive events A1, A2, …Ak such that their probabilities sum is unity and their union is the event space E, then Ai ∩ Aj= NULL, for all I not equal to j, and
A1 U A2 U … U Ak = E
Then the Total Probability Theorem, or Law of Total Probability, is:
where B is an arbitrary event, and P(B/Ai) is the conditional probability of B assuming A already occurred.
Total Probability Theorem Proof
Let A1, A2, …, Ak be disjoint events that form a partition of the sample space and assume that P(Ai) > 0, for i = 1, 2, 3….k, such that:
A1 U A2 U A3 U ….U AK = E(Total)
Then, for any event B, we have,
B = B ∩ E B = B ∩ (A1 U A2 U A3 U ….U AK)
As intersection and Union are Distributive. Therefore,
B = (B ∩ A1) U (B ∩ A2)U … U(B ∩ AK)
Since all these partitions are disjoint. So, we have,
P(B ∩ A1) = P(B ∩ A1) U P(B ∩ A2)U … U P(B ∩ AK)
That is the addition theorem of probabilities for a union of disjoint events. Using Conditional Probability
P(B / A) = P(B ∩ A) / P(A)
Or by the multiplication rule,
P(B ∩ A) = P(B / A) x P(A)
Here events A and B are said to be independent events if P(B|A) = P(B), where P(A) not equal to Zero(0),
P(A ∩ B) = P(A) * P(B)
where P(B|A) is the conditional probability which gives the probability of occurrence of event B when event A has already occurred. Hence,
P(B ∩ Ai) = P(B | Ai).P(Ai) ; i = 1, 2, 3….k
Applying this rule above we get,
This is the law of total probability. The law of total probability is also referred to as the total probability theorem or law of alternatives.
Note:
The law of total probability is used when you don’t know the probability of an event, but you know its occurrence under several disjoint scenarios and the probability of each scenario.
Application of Theorem of Total Probability
It is used for the evaluation of the denominator in Bayes’ theorem. Bayes’ Theorem for n set of events is defined as,
Let E1, E2,…, En be a set of events associated with the sample space S, in which all the events E1, E2,…, En have a non-zero probability of occurrence. All the events E1, E2,…, E form a partition of S. Let A be an event from space S for which we have to find probability, then according to Bayes’ theorem,
P(Ei|A) = P(Ei)P(A|Ei) / ∑ P(Ek)P(A|Ek)
for k = 1, 2, 3, …., n
Related Articles:
Applications of the Law of Total Probability:
The Law of Total Probability is useful in various fields such as:
- Finance: Calculating the likelihood of different financial outcomes based on market conditions.
- Risk Analysis: Evaluating the risk of system failures by considering different failure modes.
- Medical Diagnosis: Determining the probability of having a disease given various test outcomes.
- Reliability Engineering: Estimating the probability of equipment functioning or failing.
- Machine Learning: Computing probabilities in classification problems where multiple scenarios are considered.
Visualization of the Law of Total Probability
Visualization can help understand how the Law of Total Probability distributes the overall probability across different events:
- Venn Diagrams: Display the event A intersecting with each event Bi, highlighting the contributions of different Bi to the probability of A.
- Tree Diagrams: Show sequences of conditional events, illustrating how probabilities branch out from each event.
Examples on Law of Total Probability
1. We draw two cards from a deck of shuffled cards with replacements. Find the probability of getting the second card a king.
Solution:
Let, A – represent the event of getting the first card a king. B – represent the event that the first card is not a king. E – represents the event that the second card is a king. Then the probability that the second card will be a king or not will be represented by the law of total probability as:
P(E)= P(A)P(E|A) + P(B)P(E|B)
Where, P(E) is the probability that the second card is a king, P(A) is the probability that the first card is a king, P(E|A) is the probability that the second card is a king given that first card is a king, P(B) is the probability that the first card is not a king, P(E|B) is the probability that the second card is a king but the first card drawn is not a king. According to the question:
P(A) = 4 / 52 P(E|A) = 4 / 52 P(B) = 48 / 52 P(E|B) = 4 / 52
Therefore,
P(E) = P(A)P(E|A) + P(B)P(E|B) =(4 / 52) * (4 / 52) + (48 / 52) * (4 / 52) = 0.0769230
2. A factory produces three types of products: P1, P2, and P3. The production of P1, P2, and P3 is 30%, 20%, and 50% of the total production, respectively. The probability that a product is defective is 1% for P1, 2% for P2, and 3% for P3. If a product is selected at random, what is the probability that it is defective?
Solution:
Let A1, A2, and A3 represent the events of producing P1, P2, and P3, respectively. Let D represent the event that the product is defective.
P(A1) = 0.30 P(A2) = 0.20 P(A3) = 0.50 P(D∣A1) = 0.01 P(D∣A2) = 0.02 P(D∣A3) = 0.03
Using the Law of Total Probability:
P(D) = P(D∣A1)P(A1) + P(D∣A2)P(A2) + P(D∣A3)P(A3) P(D) = (0.01×0.30) + (0.02×0.20) + (0.03×0.50) P(D) = 0.003 + 0.004 + 0.015 = 0.022
3. A driver passes through two traffic lights on his way to work. The probability that the first light is green is 0.3, and the probability that the second light is green given that the first light is green is 0.6. The probability that the second light is green given that the first light is not green is 0.2. What is the probability that the driver sees a green light at the second intersection?
Solution:
Let G1 represent the event that the first light is green and G2 represent the event that the second light is green.
P(G1) = 0.3 P(G1′) = 0.7 P(G2∣G1) = 0.6 P(G2∣G1′) = 0.2
Using the Law of Total Probability:
P(G2) = P(G2∣G1)P(G1) + P(G2∣G1′)P(G1′) P(G2) = (0.6×0.3) + (0.2×0.7) P(G2) = 0.18+0.14 = 0.32
4. In a town, 60% of the population supports Candidate X, while 40% supports Candidate Y. A survey is conducted where 70% of Candidate X’s supporters and 20% of Candidate Y’s supporters favor a particular policy. What is the probability that a randomly selected person from the town favors this policy?
Solution:
Let X represent the event that a person supports Candidate X and Y represent the event that a person supports Candidate Y. Let P represent the event that a person favors the policy.
P(X) = 0.6 P(Y) = 0.4 P(P∣X) = 0.7 P(P∣Y) = 0.2
Using the Law of Total Probability:
P(P) = P(P∣X)P(X) + P(P∣Y)P(Y) P(P) = (0.7×0.6) + (0.2×0.4) P(P) = 0.42 + 0.08 = 0.50
5. A meteorologist predicts that there is a 30% chance of rain tomorrow. If it rains, there is a 60% chance that it will be a storm. If it doesn’t rain, there is a 5% chance of a storm due to other factors. What is the probability that there will be a storm tomorrow?
Solution:
Let R represent the event of rain, and S represent the event of a storm.
P(R) = 0.3 P(R’) = 0.7 P(S∣R) = 0.6 P(S∣R’) = 0.05
Using the Law of Total Probability:
P(S) = P(S∣R)P(R) + P(S∣R’)P(R’) P(S) = (0.6 × 0.3) + (0.05 × 0.7) P(S) = 0.18 + 0.035 = 0.215
Also Read:
Conclusion
The Law of Total Probability is a fundamental principle in probability theory used for determining the probability of an event by considering all possible scenarios in which it might occur. This theorem is related to marginal and conditional probabilities, and provides foundation for Bayes’ Theorem. It is useful when the direct probability of an event is unknown, but its probability under various conditions is known. The theorem is essential for various applications.
Practice Problems on Law of Total Probability
1. A certain disease affects 0.1% of the population. A medical test for this disease is 99% accurate. What is the probability that a randomly selected person who tests positive actually has the disease?
2. A shipment contains three different components: A, B, and C. The probabilities of selecting a A, B, and C component are 0.4, 0.35, and 0.25, respectively. The probabilities that a selected component is defective are 0.02 for A, 0.03 for B, and 0.05 for C. What is the probability that a randomly selected component from the shipment is defective?
3. In a certain population, 1% of people have Disease A. A test for Disease A is 95% accurate. What is the probability that a person has Disease A given that they tested positive?
4. In a certain town, it is known that 40% of the population prefer tea, 30% prefer coffee, and the 30% prefer juice. If a person is chosen at random, the probability that they are satisfied with their choice of beverage is 0.7 for tea drinkers, 0.8 for coffee drinkers, and 0.6 for juice drinkers. What is the probability that a randomly chosen person is satisfied with their choice of beverage?
5. In a school, 70% of the students are in the science stream, and 30% are in the arts stream. The pass rate is 85% for science students and 75% for arts students. If a randomly selected student passes, what is the probability that they are in the science stream?
6. You are given three boxes. The first box contains 2 red and 1 white ball, the second contains 1 red and 2 white balls, and the third contains 3 red and 1 white ball. A box is chosen at random and a ball is drawn. If the ball is red, what is the probability that it was drawn from the third box?
7. A traffic light is green 50% of the time, yellow 10% of the time, and red 40% of the time. If you approach the light and it is not red, what is the probability that it is green?
8. There are three factories producing the same product. Factory A produces 40% of the products, Factory B produces 35%, and Factory C produces 25%. The probability of a defective product from these factories is 2%, 3%, and 5% respectively. If a product is found to be defective, what is the probability it was produced by Factory B?
9. A disease test has a false positive rate of 5% and a false negative rate of 2%. In a population where 2% of people have the disease, what is the probability that a person who tests positive actually has the disease?
10. A factory has two suppliers A and B. A supplies 60% of the components and B supplies 40%. The defect rates for these suppliers are 1% and 2% respectively. If a component is found to be defective, what is the probability that it was supplied by B?
FAQs on the Law of Total Probability
What is the Law of Total Probability?
It is a rule that provides a way to calculate the probability of an event by considering several different scenarios.
When do we use the Law of Total Probability?
It is used when an event can occur under multiple mutually exclusive and exhaustive conditions.
How does it differ from the Law of Conditional Probability?
The Law of Conditional Probability gives the probability of an event given another event has occurred, while the Law of Total Probability uses these conditional probabilities to compute the total probability.
Can it be applied to continuous distributions?
Yes, the concept can extend to continuous probability distributions using integrals instead of summations.
What is the relationship between the Law of Total Probability and Bayes’ Theorem?
The Law of Total Probability is often used as a step in deriving Bayes’ Theorem, which calculates the probability of an event based on prior knowledge.
What is the use of total probability?
Law of total probability is used to calculate the probability of an event given any number of related events. Using Baye’s Theorem to update the probability of a hypothesis given new evidence.
Is total probability always 1?
The sum of the probabilities of all the events is always 1.
Can the total probability be greater than 1 ?
No, the total probability can not be greater than 1.
Similar Reads
Engineering Mathematics Tutorials
Engineering mathematics is a vital component of the engineering discipline, offering the analytical tools and techniques necessary for solving complex problems across various fields. Whether you're designing a bridge, optimizing a manufacturing process, or developing algorithms for computer systems,
3 min read
Matrix and Determinants
Matrices
Matrix is a rectangular array of numbers, symbols, points, or characters each belonging to a specific row and column. A matrix is identified by its order which is given in the form of rows ⨯ and columns. The numbers, symbols, points, or characters present inside a matrix are called the elements of a
15+ min read
Different Operations on Matrices
For an introduction to matrices, you can refer to the following article: Matrix Introduction In this article, we will discuss the following operations on matrices and their properties: Matrices AdditionMatrices SubtractionMatrices MultiplicationMatrices Addition: The addition of two matrices A m*n a
11 min read
Representation of Relation in Graphs and Matrices
Understanding how to represent relations in graphs and matrices is fundamental in engineering mathematics. These representations are not only crucial for theoretical understanding but also have significant practical applications in various fields of engineering, computer science, and data analysis.
8 min read
Determinant of Matrix with Solved Examples
Determinant of a matrix is a special number that can be calculated for a square matrix (a matrix with the same number of rows and columns). It is a function that gives the unique output (real number) for every input value of the square matrix. The determinant of the matrix is considered the scaling
15+ min read
Properties of Determinants
Properties of Determinants are the properties that are required to solve various problems in Matrices. There are various properties of the determinant that are based on the elements, rows, and columns of the determinant. These properties help us to easily find the value of the determinant. Suppose w
11 min read
Row Echelon Form
A matrix is in Row Echelon form if it has the following properties: Any row consisting entirely of zeros occurs at the bottom of the matrix.For each row that does not contain entirely zeros, the first non-zero entry is 1 (called a leading 1).For two successive (non-zero) rows, the leading 1 in the h
4 min read
Eigenvalues and Eigenvectors
Eigenvectors are the directions that remain unchanged during a transformation, even if they get longer or shorter. Eigenvalues are the numbers that indicate how much something stretches or shrinks during that transformation. These ideas are important in many areas of math and engineering, including
15+ min read
System of Linear Equations
In mathematics, a system of linear equations consists of two or more linear equations that share the same variables. These systems often arise in real-world applications, such as engineering, physics, economics, and more, where relationships between variables need to be analyzed. Understanding how t
9 min read
Matrix Diagonalization
Prerequisite: Eigenvalues and eigenvectors Let A and B be two matrices of order n. B can be considered similar to A if there exists an invertible matrix P such that B=P^{-1} A P This is known as Matrix Similarity Transformation. Diagonalization of a matrix is defined as the process of reducing any
5 min read
LU Decomposition
LU decomposition of a matrix is the factorization of a given square matrix into two triangular matrices, one upper triangular matrix and one lower triangular matrix, such that the product of these two matrices gives the original matrix. It was introduced by Alan Turing in 1948, who also created the
7 min read
Finding Inverse of a Square Matrix using Cayley Hamilton Theorem in MATLAB
Matrix is the set of numbers arranged in rows & columns in order to form a Rectangular array. Here, those numbers are called the entries or elements of that matrix. A Rectangular array of (m*n) numbers in the form of 'm' horizontal lines (rows) & 'n' vertical lines (called columns), is calle
4 min read
Sequence and Series
Binomial Theorem
Binomial Theorem is a theorem that is used to find the expansion of algebraic identity (ax + by)n. We can easily find the expansion of (x + y)2, (x + y)3, and others but finding the expansion of (x + y)21 is a tedious task and this task can easily be achieved using the Binomial Theorem or Binomial E
15+ min read
Sequences and Series
A sequence is an ordered list of numbers following a specific rule. Each number in a sequence is called a "term." The order in which terms are arranged is crucial, as each term has a specific position, often denoted as an, where n indicates the position in the sequence. For example: 2, 5, 8, 11, 14
7 min read
Finding nth term of any Polynomial Sequence
Given a few terms of a sequence, we are often asked to find the expression for the nth term of this sequence. While there is a multitude of ways to do this, In this article, we discuss an algorithmic approach which will give the correct answer for any polynomial expression. Note that this method fai
4 min read
Mathematics | Sequence, Series and Summations
Sequences, series, and summations are fundamental concepts of mathematical analysis and it has practical applications in science, engineering, and finance. Table of Content What is Sequence?Theorems on SequencesProperties of SequencesWhat is Series?Properties of SeriesTheorems on SeriesSummation Def
8 min read
Calculus
Limits in Calculus
Limits are used in calculus to define differential, continuity, and integrals, and they are defined as the approaching value of the function with the input approaching to ascertain value. Let's say we have a function f(x) = x2. In the graph given below, notice that as x⇢0, f(x) also tends to become
11 min read
Indeterminate Forms
Assume a function [Tex]F(x)=\frac{f(x)}{g(x)}[/Tex] which is undefined at x=a but it may approach a limit as x approaches a. The process of determining such a limit is known as evaluation of indeterminate forms. The L' Hospital Rule helps in the evaluation of indeterminate forms. According to this r
3 min read
Limits, Continuity and Differentiability
Limits, Continuity, and Differentiability are fundamental concepts in calculus, essential for analyzing and understanding the behavior of functions. These concepts are crucial for solving real-world problems in physics, engineering, and economics. Table of Content LimitsKey Characteristics of Limits
10 min read
Cauchy's Mean Value Theorem
Cauchy's Mean Value theorem provides a relation between the change of two functions over a fixed interval with their derivative. Cauchy Mean Value Theorem is a special case of Lagrange Mean Value Theorem. Cauchy's Mean Value theorem is also called the Extended Mean Value Theorem or the Second Mean V
8 min read
Lagrange's Mean Value Theorem
Lagrange's Mean Value Theorem (LMVT) is a fundamental result in differential calculus, providing a formalized way to understand the behavior of differentiable functions. This theorem generalizes Rolle's Theorem and has significant applications in various fields of engineering, physics, and applied m
9 min read
Rolle's Mean Value Theorem
Rolle's theorem one of the core theorem of calculus states that, for a differentiable function that attains equal values at two distinct points then it must have at least one fixed point somewhere between them where the first derivative of the function is zero. Rolle's Theorem and the Mean Value The
8 min read
Taylor Series
Taylor Series is the series which is used to find the value of a function. It is the series of polynomials or any function and it contains the sum of infinite terms. Each successive term in the Taylor series expansion has a larger exponent or a higher degree term than the preceding term. We take the
10 min read
Maclaurin series
Prerequisite - Taylor theorem and Taylor series We know that formula for expansion of Taylor series is written as: [Tex]f(x)=f(a)+\sum_{n=1}^{\infty}\frac{f^n(a)}{n!}(x-a)^n[/Tex] Now if we put a=0 in this formula we will get the formula for expansion of Maclaurin series. T hus Maclaurin series expa
2 min read
Euler's Formula
Euler's formula holds a prominent place in the field of mathematics. It aids in establishing the essential link between trigonometric functions and complex exponential functions. It is a crucial formula used for solving complicated exponential functions. It is also known as Euler's identity. It has
5 min read
Chain Rule: Theorem, Formula and Solved Examples
Chain Rule is a way to find the derivative of composite functions. It is one of the basic rules used in mathematics for solving differential problems. It helps us to find the derivative of composite functions such as (3x2 + 1)4, (sin 4x), e3x, (ln x)2, and others. Only the derivatives of composite f
9 min read
Inverse functions and composition of functions
Inverse Functions - In mathematics a function, a, is said to be an inverse of another, b, if given the output of b a returns the input value given to b. Additionally, this must hold true for every element in the domain co-domain(range) of b. In other words, assuming x and y are constants, if b(x) =
3 min read
Definite Integral | Definition, Formula & How to Calculate
A definite integral is an integral that calculates a fixed value for the area under a curve between two specified limits. The resulting value represents the sum of all infinitesimal quantities within these boundaries. i.e. if we integrate any function within a fixed interval it is called a Definite
9 min read
Mathematics | Indefinite Integrals
Antiderivative - Definition :A function ∅(x) is called the antiderivative (or an integral) of a function f(x) of ∅(x)' = f(x). Example : x4/4 is an antiderivative of x3 because (x4/4)' = x3. In general, if ∅(x) is antiderivative of a function f(x) and C is a constant.Then, {∅
4 min read
Application of Derivative - Maxima and Minima | Mathematics
The Concept of derivative can be used to find the maximum and minimum value of the given function. We know that information about and gradient or slope can be derived from the derivative of a function. We try to find a point which has zero gradients then locate maximum and minimum value near it. It
3 min read
Summation Formula
In mathematics, the summation is the basic addition of a sequence of any numbers, called addends or summands; the result is their sum or total. In Mathematics numbers, functions, vectors, matrices, polynomials, and, in general, elements of any mathematical object can be associated with an operation
6 min read
Statistics and Numerical Methods
Mean, Variance and Standard Deviation
Mean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data's central tendency, dispersion, and spread, which are crucial for making informed decisions in various en
8 min read
Mathematics - Law of Total Probability
Probability theory is the branch of mathematics concerned with the analysis of random events. It provides a framework for quantifying uncertainty, predicting outcomes, and understanding random phenomena. In probability theory, an event is any outcome or set of outcomes from a random experiment, and
13 min read
Probability Distribution - Function, Formula, Table
A probability distribution describes how the probabilities of different outcomes are assigned to the possible values of a random variable. It provides a way of modeling the likelihood of each outcome in a random experiment. While a frequency distribution shows how often outcomes occur in a sample or
15+ min read
Bayes' Theorem
Bayes' Theorem is used to determine the conditional probability of an event. It is used to find the probability of an event, based on prior knowledge of conditions that might be related to that event. Bayes' Theorem and Conditional ProbabilityBayes theorem (also known as the Bayes Rule or Bayes Law)
11 min read
Conditional Probability
Conditional probability is one type of probability in which the possibility of an event depends upon the existence of a previous event. Conditional probability is the likelihood of an outcome occurring based on a previous outcome in similar circumstances. In probability notation, this is denoted as
15+ min read
Probability Distribution
Mathematics | Probability Distributions Set 1 (Uniform Distribution)
Prerequisite - Random Variable In probability theory and statistics, a probability distribution is a mathematical function that can be thought of as providing the probabilities of occurrence of different possible outcomes in an experiment. For instance, if the random variable X is used to denote the
4 min read
Mathematics | Probability Distributions Set 2 (Exponential Distribution)
The previous article covered the basics of Probability Distributions and talked about the Uniform Probability Distribution. This article covers the Exponential Probability Distribution which is also a Continuous distribution just like Uniform Distribution. Introduction - Suppose we are posed with th
5 min read
Mathematics | Probability Distributions Set 3 (Normal Distribution)
The previous two articles introduced two Continuous Distributions: Uniform and Exponential. This article covers the Normal Probability Distribution, also a Continuous distribution, which is by far the most widely used model for continuous measurement. Introduction - Whenever a random experiment is r
5 min read
Mathematics | Probability Distributions Set 4 (Binomial Distribution)
The previous articles talked about some of the Continuous Probability Distributions. This article covers one of the distributions which are not continuous but discrete, namely the Binomial Distribution. Introduction - To understand the Binomial distribution, we must first understand what a Bernoulli
5 min read
Mathematics | Probability Distributions Set 5 (Poisson Distribution)
The previous article covered the Binomial Distribution. This article talks about another Discrete Probability Distribution, the Poisson Distribution. Introduction -Suppose an event can occur several times within a given unit of time. When the total number of occurrences of the event is unknown, we c
4 min read
Covariance and Correlation
Covariance and correlation are the two key concepts in Statistics that help us analyze the relationship between two variables. Covariance measures how two variables change together, indicating whether they move in the same or opposite directions. In this article, we will learn about the differences
6 min read
Engineering Math Practice Problems