Conditional Probability
Conditional probability is one type of probability in which the possibility of an event depends upon the existence of a previous event. As this type of event is very common in real life, conditional probability is often used to determine the probability of such cases.
Conditional probability is the likelihood of an outcome occurring based on a previous outcome in similar circumstances. In probability notation, this is denoted as A given B, expressed as P(A|B), indicating that the probability of event A is dependent on the occurrence of event B.
To know about conditional probability, we need to be familiar with independent events and dependent events. Let’s understand conditional probability, and its formula with solved examples in this article.
Table of Content
Conditional probability definition, conditional probability formula, how to find probability of one event given another, conditional probability of independent events, conditional probability vs joint probability vs marginal probability, conditional probability and bayes’ theorem, conditional probability examples, tossing a coin, drawing cards, properties of conditional probability , multiplication rule of probability, how to apply the multiplication rule, applications of conditional probability, conditional probability sample problems, unsolved practice problems, resources related to conditional probability:.
Conditional probability is the probability that depends on a previous result or event . Due to this fact, they help us understand how events are related to each other. Simply put, conditional probability tells us the likelihood of the occurrence of an event based on the occurrence of some previous outcome.
With the help of conditional probability, we can tell apart dependent and independent events . When the probability of one event happening doesn’t influence the probability of any other event, then events are called independent, otherwise dependent events.
Conditional Probability is defined as the probability of any event occurring when another event has already occurred. In other words, it calculates the probability of one event happening given that a certain condition is satisfied . It is represented as P (A | B) which means the probability of A when B has already happened.
For Example, let’s consider the case of rolling two dice, sample space of this event is as follows:
{(1, 1), (1, 2), (1, 3), (1, 4), (1, 5), (1, 6), (2, 1), (2, 2), (2, 3), (2, 4), (2, 5), (2, 6), (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6), (4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6), (5, 1), (5, 2), (5, 3), (5, 4), (5, 5), (5, 6), (6, 1), (6, 2), (6, 3), (6, 4), (6, 5), (6, 6)}
Now, consider an event A = getting 3 on the first die and B = getting a sum of 9.
Then the probability of getting 9 when on the first die it’s already 3 is P(B | A),
which can be calculated as follows:
All the cases for the first die as 3 are (3, 1), (3, 2), (3, 3), (3, 4), (3, 5), (3, 6).
In all of these cases, only one case has a sum of 9.
Thus, P (B | A) = 1/36.
In case, we have to find P (A | B),
All cases where the sum is 9 are (3, 6), (4, 5), (5, 4), and (6, 3).
In all of these cases, only one case has 3 on the first die i.e., (3, 6)
Thus, P(A | B) = 1/36.
As we can calculate the Conditional Probability of simple cases without any formula, just as we have seen in the above heading but for complex cases, we need a Conditional Probability Equation as we can’t possibly count all the cases for those. Let’s consider two events A and B, then the formula for conditional probability of A when B has already occurred is given by:
P(A|B) = P (A ∩ B) / P(B) Where, P (A ∩ B) represents the probability of both events A and B occurring simultaneously. P(B) represents the probability of event B occurring.
In other words, the conditional probability of A given B has already occurred is equal to the probability of the intersection of A and B divided by the probability of event B.
To calculate the conditional probability, we can use the following step-by-step method:
Step 1: I dentify the Events. Let’s call them Event A and Event B. Step 2: Determine the Probability of Event A i.e., P(A) Step 3: Determine the Probability of Event B i.e., P(B) Step 4: Determine the Probability of Event A and B i.e., P(A∩B). Step 5: Apply the Conditional Probability Formula and calculate the required probability.
When two events are independent, those conditional probability is the same as the probability of the event individually i.e., P (A | B) is the same as P(A) as there is no effect of event B on the probability of event A. For independent events, A and B, the conditional probability of A and B with respect to each other is given as follows:
Check, Probability Formulas
The difference between Conditional Probability, Joint Probability , and Marginal Probability is given in the following table:
Parameter | Conditional Probability | Joint Probability | Marginal Probability |
---|---|---|---|
The probability of an event occurring given. that another event has already occurred. | The probability of two or more events occurring simultaneously. | The probability of an event occurring without considering any other events. | |
P (A | B) | P (A ∩ B) | P(A) | |
Two or more events | Two or more events | Single event. |
Bayes’ Theorem is a fundamental concept in probability theory named after the Reverend Thomas Bayes . It provides a mathematical framework for updating beliefs or hypotheses in light of new evidence or information. This theorem is extensively used in various fields, including statistics, machine learning, and artificial intelligence.
At its core, Bayes’ Theorem enables us to calculate the probability of a hypothesis being true given observed evidence. The theorem is expressed mathematically as follows:
P(A∣B) = (P(B∣A) × P(A)) / P(B)
Here’s a breakdown of how Bayes’ Theorem works:
Prior Probability P(A): This represents our initial belief in the likelihood of hypothesis A being true before considering any new evidence. Likelihood P(B∣A): This indicates the probability of observing the evidence B given that hypothesis A is true. It quantifies how well the evidence supports the hypothesis. Evidence P(B): This term serves as a normalization factor and represents the total probability of observing the evidence B across all possible hypotheses. Posterior Probability P(A∣B) : This is the updated probability of hypothesis A being true after taking into account the observed evidence B . It’s what we’re ultimately interested in determining.
Bayes’ Theorem is particularly powerful because it allows us to incorporate new evidence incrementally, refining our beliefs as more data becomes available . This iterative process of updating beliefs with new evidence forms the basis of Bayesian inference, which is widely used in fields such as medical diagnosis, spam filtering, weather forecasting, and many others.
Bayes’ Theorem provides a principled approach for reasoning under uncertainty, making it a cornerstone of probabilistic reasoning and decision-making in diverse domains.
Read in Detail: Bayes’s Theorem for Conditional Probability
There are various examples of conditional probability as in real life all the events are related to each other and happening any event affects the probability of another event. For example , if it rains, the probability of road accidents increases as roads have less friction. Let’s consider some problem-based examples here:
Let’s consider two events in tossing two coins be,
Sample space for tossing two coins is:
S = {HH, HT, TH, TT}
Conditional probability of getting a head on the second coin (B) given that we got a head on the first coin (A) is = P(B|A)
Since the coins are independent (one coin’s outcome does not affect the other), P(B|A) = P(B) = 0.5 (50%), which is the probability of getting a head on a single coin toss.
In a deck of 52 cards where two cards are being drawn, then let’s consider the events be.
Conditional probability of drawing a red card on the second draw (B) given that we drew a red card on the first draw (A) is = P(B|A)
After drawing a red card on the first draw, there are 25 red cards and 51 cards remaining in the deck. So, P(B|A) = 25/51 ≈ 0.49 (approximately 49%).
Some of the common properties of conditional property are:
Property 1: Let’s consider an event A in any sample space S of an experiment.
P(S|A) = P(A|A) = 1
Property 2: For any two events A and B of a sample space S, and an event X such that P(X) ≠ 0,
P((A ∪ B)|X) = P(A|X) + P(B|X) – P((A ∩ B)|X)
Property 3: The order of set or events is important in conditional probability, i.e.,
P(A|B) ≠ P(B|A)
Property 4: The complement formula for probability only holds conditional probability if it is given in the context of the first argument in conditional probability i.e.,
P(A’|B)=1-P(A|B) P(A|B’) ≠ 1-P(A|B)
Property 5: For any two or three independent events, the intersection of events can be calculated using the following formula:
P(A ⋂ B) = P(A) P(B)
P (A ⋂ B ⋂ C) = P(A) P(B) P(C)
Multiplication Rule of Probability , when applied in the context of conditional probability, helps us calculate the probability of the intersection of two events when the probability of one event depends on the occurrence of the other event. This rule is crucial in understanding the joint probability of events under specific conditions.
In the context of conditional probability, the Multiplication Rule is often stated as follows:
P(A∩B) = P(A) × P(B∣A)
Here’s what each term represents :
To apply the Multiplication Rule in the context of conditional probability, we can use the following steps:
Various applications of conditional probability are,
Finance and Risk Management
Healthcare and Diagnostics
Marketing and Customer Relationship Management (CRM)
Machine Learning and Artificial Intelligence
Weather Forecasting
| |
---|---|
|
|
|
|
|
|
Question 1: A bag contains 5 red balls and 7 blue balls. Two balls are drawn without replacement. What is the probability that the second ball drawn is red, given that the first ball drawn was red?
Let the events be, Event A: The first ball drawn is red. Event B: The second ball drawn is red. P(A) = 5/12 and P(B) = 4/11 (as first ball drawn is already red, thus only 4 red balls remain in the bag) Therefore, probability of the second ball drawn being red given that the first ball drawn was red is 4/11.
Question 2: A box contains 5 green balls and 3 yellow balls. Two balls are drawn without replacement. What is the probability that both balls are green?
Let events be: Event A: The first ball drawn is green, and Event B: The second ball drawn is green. P(A) = 5/8 P(B) = 4/7 (as there are 4 green balls left out of 7) Thus, probability that both balls drawn are green is (5/8) × (4/7) = 20/56 = 5/14.
Question 3: In a bag, there are 8 red marbles, 4 blue marbles, and 3 green marbles. If one marble is randomly drawn, what is the probability that it is not blue?
Let the events be: Event A: The marble drawn is not blue, and Event B: The marble drawn is blue. As A and B are complementary Events, we know P(A) = 1 – P(B) ⇒ P(A) = 1 – 4/15 ⇒ P(A) = (15 – 4)/15 ⇒ P(A) = 11/15 Thus, probability of drawing a marble out of bag which is not blue is 11/15.
Question 4: In a survey among a group of students, 70% play football, 60% play basketball, and 40% play both sports. If a student is chosen at random and it is known that the student plays basketball, what is the probability that the student also plays football?
Let’s assume there are 100 students in the survey. Number of students who play football = n(A) = 70 Number of students who play basketball = n(B) = 60 Number of students who play both sports = n(A ∩ B) = 40 To find the probability that a student plays football given that they play basketball, we use the conditional probability formula : P(A|B) = n(A ∩ B) / n(B) Substituting the values, we get: P(A|B) = 40 / 60 = 2/3 Therefore, probability that a randomly chosen student who plays basketball also plays football is 2/3.
Question 5: In a deck of 52 playing cards, 4 cards are drawn without replacement. What is the probability that all 4 cards are aces, given that the first card drawn is an ace?
Let the events be, Event A: The first card drawn is an ace, Event B: The second card drawn is an ace, Event C: The third card drawn is an ace, and Event D: The fourth card drawn is an ace. P(A) = 4/52 (there are 4 ace out of 52) P(B | A) = 3/51 (one is already drawn, thus 3 ace left) P(C | A and B) = 2/50 (two is already drawn, thus 2 ace left) P(D | A and B and C) = 1/49 (three is already drawn, thus 1 ace left) To find the probability that all four cards are aces, we multiply the probabilities of the individual events. P(A and B and C and D) = P(A) × P(B|A) × P(C|A and B) × P(D|A and B and C) = (4/52) × (3/51) × (2/50) × (1/49) = 1/270725 Therefore, probability that all 4 cards drawn are aces, given that the first card drawn is an ace, is 1/270725 .
Question 6: In a certain city, it rains 30% of the days. A weather forecaster correctly predicts rain 80% of the time when it actually rains, and correctly predicts no rain 90% of the time when it doesn’t rain. If the forecast predicts rain, what is the probability that it will actually rain?
Let R be the event that it rains, and F be the event that rain is forecast. P(R|F) = P(F|R) × P(R) / P(F) P(F) = P(F|R) × P(R) + P(F|not R) × P(not R) = 0.8 × 0.3 + 0.1 × 0.7 = 0.31 P(R|F) = (0.8 × 0.3) / 0.31 = 0.7059
Question 7: A fair die is rolled twice. Given that the sum of the two rolls is even, what is the probability that the first roll was an even number?
There are 18 ways to get an even sum (out of 36 total outcomes). 12 of these 18 ways have an even number on the first roll. P(First even | Sum even) = 12/18 = 2/3
Question 8: A diagnostic test for a disease has a false positive rate of 2% and a false negative rate of 3%. The disease occurs in 1% of the population. If a person tests positive, what is the probability that they actually have the disease?
Let D be the event of having the disease, and T be the event of testing positive. P(D|T) = P(T|D) × P(D) / P(T) P(T) = P(T|D) × P(D) + P(T|not D) × P(not D) = 0.97 × 0.01 + 0.02 × 0.99 = 0.0293 P(D|T) = (0.97 × 0.01) / 0.0293 = 0.3305
Question 9: In a bag, there are 4 red balls and 6 blue balls. Two balls are drawn without replacement. What is the probability that the second ball is red, given that the first ball drawn was blue?
After drawing a blue ball, there are 3 red balls and 5 blue balls left. P(Second is red | First was blue) = 3 / (3 + 5) = 3/8 = 0.444
Question 10: A software company has two development teams: Team A and Team B. Team A completes 60% of all projects, while Team B handles the rest. Team A has a 95% success rate, while Team B has an 85% success rate. If a project is successful, what is the probability that it was handled by Team A?
Let S be the event that a project is successful, and A be the event that Team A handled the project. P(A|S) = P(S|A) × P(A) / P(S) P(S) = P(S|A) × P(A) + P(S|B) × P(B) = 0.95 × 0.6 + 0.85 × 0.4 = 0.91 P(A|S) = (0.95 × 0.6) / 0.91 = 0.6316
P1. A card is drawn at random from a standard 52-card deck. Given that the card drawn is a face card (Jack, Queen, or King), what is the probability that it’s a heart?
P2. In a class of 30 students, 18 play basketball and 12 play football. If 6 students play both sports, what is the probability that a randomly selected student plays basketball, given that they play football?
P3. A bag contains 5 red marbles, 3 blue marbles, and 2 green marbles. Two marbles are drawn without replacement. What is the probability that the second marble is blue, given that the first marble drawn was red?
P4. A manufacturing process produces 5% defective items. The quality control system detects 98% of defective items and 3% of non-defective items are incorrectly identified as defective. If an item is identified as defective by the quality control system, what is the probability that it is actually defective?
P5. A family has two children. Given that at least one of the children is a boy, what is the probability that both children are boys? Assume that the probability of having a boy or a girl is equal.
P6. In a certain population, 10% of people have a particular disease. A test for this disease correctly identifies 95% of people who have the disease (true positives) and 90% of people who don’t have the disease (true negatives). If a person tests positive, what is the probability that they actually have the disease?
P7. A software has three modules: A, B, and C. The probabilities of a bug being in these modules are 0.3, 0.4, and 0.3 respectively. If a bug is found in module A, the probability of it affecting module B is 0.2 and module C is 0.1. What is the probability that a bug affects both modules A and B?
P8. In a group of 100 people, 60 speak English, 40 speak French, and 20 speak both languages. If a person is selected at random and is known to speak French, what is the probability that they also speak English?
P9. A student has to answer 3 out of 5 questions on an exam. The student knows the answers to 3 questions for sure, has a 50% chance of answering the 4th question correctly, and doesn’t know the answer to the 5th question at all. If the student answers a question correctly, what is the probability that it was one of the questions they knew for sure?
P10. A biased coin has a 60% chance of landing heads. It is flipped twice. Given that at least one of the flips resulted in heads, what is the probability that both flips resulted in heads?
Probability Class 12 Notes Probability Class 12 NCERT Solutions
Conditional probability is a fundamental concept in probability theory that quantifies the likelihood of an event occurring given that another event has already occurred. Expressed as P(A|B), it represents the probability of event A happening under the condition that event B has occurred. This concept is crucial in various fields such as statistics, finance, and machine learning, where understanding the relationship between events and their outcomes is essential for making informed decisions. Conditional probability allows us to assess the impact of one event on the occurrence of another, providing valuable insights into probabilistic relationships and dependencies.
What is conditional probability.
Conditional probability is a measure of the probability of an event occurring given that another event has already occurred or is known to have occurred. It is denoted as P(A|B), which reads as “the probability of event A given event B” .
Conditional probability focuses on the probability of one event given that another event has already occurred while Joint probability focuses on the probability of multiple events occurring simultaneously.
The probability of a person having a specific disease given that they tested positive. The probability of it raining today given that it is cloudy. The probability of a student passing an exam given that they studied.
Conditional Probability Equation is calculated using the formula: P(A|B) = P(A ∩ B) / P(B)
Regular probability , often referred to as unconditional probability, calculates the likelihood of an event occurring without any prior information and is the basic probability of an event in isolation. Conditional probability takes into account additional information or the occurrence of another event to calculate the probability of a particular event.
No, conditional probability cannot be greater than 1 as the conditional probability is a type of probability. It can only be between 0 and 1.
Yes, conditional probability plays a crucial role in Bayesian inference, where prior beliefs are updated based on observed evidence using Bayes’ theorem.
Two events A and B are considered independent if the occurrence of one event does not affect the probability of the other event. In terms of conditional probability , if events A and B are independent, then P(A|B) = P(A), and similarly, P(B|A) = P(B). In other words, the conditional probability of A given B is equal to the unconditional probability of A, and vice versa.
No, conditional probability cannot be negative as probabilities are always non-negative values between 0 and 1.
Conditional probability measures the likelihood of one event occurring, given that another event has already occurred. It helps in updating probabilities based on new information.
Conditional probability , denoted P(A|B), assesses the likelihood of event A happening, given that event B has already occurred. For example, in a medical test scenario, it calculates the chance of having a disease when the test result is positive. It’s a key concept in probability theory, helping us understand real-world situations where one event depends on another.
Conditional probability has diverse applications across fields such as f inance, medicine, genetics, marketing, weather forecasting, manufacturing, sports analytics, criminal justice, and environmental science.
Various types of conditional probability includes: Simple Conditional Probability Joint Probability Marginal Probability Conditional Probability Distribution Posterior Probability Prior Probability Sequential Conditional Probability Time Series Analysis Markov Chains
Similar reads.
In these lessons, we will learn what is conditional probability and how to use the formula for conditional probability.
Related Pages Dependent Events More Lessons On Probability Probability Tree Diagrams
The following diagram shows the formula for conditional probability. Scroll down the page for more examples and solutions on finding the conditional probability.
The probability of an event occurring given that another event has already occurred is called a conditional probability .
Recall that when two events, A and B, are dependent , the probability of both occurring is:
P(A and B) = P(A) × P(B given A) or P(A and B) = P(A) × P(B | A)
If we divide both sides of the equation by P(A) we get the Formula for Conditional Probability
Step 1: Write out the Conditional Probability Formula in terms of the problem Step 2: Substitute in the values and solve.
Example: Susan took two tests. The probability of her passing both tests is 0.6. The probability of her passing the first test is 0.8. What is the probability of her passing the second test given that she has passed the first test?
Example: A bag contains red and blue marbles. Two marbles are drawn without replacement. The probability of selecting a red marble and then a blue marble is 0.28. The probability of selecting a red marble on the first draw is 0.5. What is the probability of selecting a blue marble on the second draw, given that the first marble drawn was red?
Solution: What is the probability that the total of two dice will be greater than 9, given that the first die is a 5?
Solution: Let A = first die is 5 Let B = total of two dice is greater than 9
Possible outcomes for A and B: (5, 5), (5, 6)
Conditional probability is about narrowing down the set of possible circumstances so that the statistics can be measured more accurately.
This video introduces the basic definition of conditional probability as it is defined in standard probability theory.
Tutorial on how to calculate conditional probability for two events P(A), P(B), P(B|A) with two examples.
We welcome your feedback, comments and questions about this site or page. Please submit your feedback or enquiries via our Feedback page.
What is a conditional statement, how to write a conditional statement, what is a biconditional statement, solved examples on conditional statements, practice problems on conditional statements, frequently asked questions about conditional statements.
A conditional statement is a statement that is written in the “If p, then q” format. Here, the statement p is called the hypothesis and q is called the conclusion. It is a fundamental concept in logic and mathematics.
Conditional statement symbol : p → q
A conditional statement consists of two parts.
Example : If you brush your teeth, then you won’t get cavities.
Hypothesis (Condition): If you brush your teeth
Conclusion (Consequence): then you won’t get cavities
A conditional statement is characterized by the presence of “if” as an antecedent and “then” as a consequent. A conditional statement, also known as an “if-then” statement consists of two parts:
More Worksheets
The conditional statement of the form ‘If p, then q” is represented as p → q.
It is pronounced as “p implies q.”
Different ways to express a conditional statement are:
There are two parts of conditional statements, hypothesis and conclusion. The hypothesis or condition will begin with the “if” part, and the conclusion or action will begin with the “then” part. A conditional statement is also called “implication.”
Conditional Statements Examples:
Example 1: If it is Sunday, then you can go to play.
Hypothesis: If it is Sunday
Conclusion: then you can go to play.
Example 2: If you eat all vegetables, then you can have the dessert.
Condition: If you eat all vegetables
Conclusion: then you can have the dessert
To form a conditional statement, follow these concise steps:
Step 1 : Identify the condition (antecedent or “if” part) and the consequence (consequent or “then” part) of the statement.
Step 2 : Use the “if… then…” structure to connect the condition and consequence.
Step 3 : Ensure the statement expresses a logical relationship where the condition leads to the consequence.
Example 1 : “If you study (condition), then you will pass the exam (consequence).”
This conditional statement asserts that studying leads to passing the exam. If you study (condition is true), then you will pass the exam (consequence is also true).
Example 2 : If you arrange the numbers from smallest to largest, then you will have an ascending order.
Hypothesis: If you arrange the numbers from smallest to largest
Conclusion: then you will have an ascending order
The truth table for a conditional statement is a table used in logic to explore the relationship between the truth values of two statements. It lists all possible combinations of truth values for “p” and “q” and determines whether the conditional statement is true or false for each combination.
The truth value of p → q is false only when p is true and q is False.
If the condition is false, the consequence doesn’t affect the truth of the conditional; it’s always true.
In all the other cases, it is true.
T | T | T |
T | F | F |
F | T | T |
F | F | T |
The truth table is helpful in the analysis of possible combinations of truth values for hypothesis or condition and conclusion or action. It is useful to understand the presence of truth or false statements.
The converse, inverse, and contrapositive are three related conditional statements that are derived from an original conditional statement “p → q.”
Conditional Statement | p q |
Converse | q p |
Inverse | ~p → ~q |
Contrapositive | ~q → ~p |
Consider a conditional statement: If I run, then I feel great.
The converse of “p → q” is “q → p.” It reverses the order of the original statement. While the original statement says “if p, then q,” the converse says “if q, then p.”
Converse: If I feel great, then I run.
The inverse of “p → q” is “~p → ~q,” where “” denotes negation (opposite). It negates both the antecedent (p) and the consequent (q). So, if the original statement says “if p, then q,” the inverse says “if not p, then not q.”
Inverse : If I don’t run, then I don’t feel great.
The contrapositive of “p → q” is “~q → ~p.” It reverses the order and also negates both the statements. So, if the original statement says “if p, then q,” the contrapositive says “if not q, then not p.”
Contrapositive: If I don’t feel great, then I don’t run.
A biconditional statement is a type of compound statement in logic that expresses a bidirectional or two-way relationship between two statements. It asserts that “p” is true if and only if “q” is true, and vice versa. In symbolic notation, a biconditional statement is represented as “p ⟺ q.”
In simpler terms, a biconditional statement means that the truth of “p” and “q” are interdependent.
If “p” is true, then “q” must also be true, and if “q” is true, then “p” must be true. Conversely, if “p” is false, then “q” must be false, and if “q” is false, then “p” must be false.
Biconditional statements are often used to express equality, equivalence, or conditions where two statements are mutually dependent for their truth values.
Examples :
In this article, we learned about the fundamentals of conditional statements in mathematical logic, including their structure, parts, truth tables, conditional logic examples, and various related concepts. Understanding conditional statements is key to logical reasoning and problem-solving. Now, let’s solve a few examples and practice MCQs for better comprehension.
Example 1: Identify the hypothesis and conclusion.
If you sing, then I will dance.
Solution :
Given statement: If you sing, then I will dance.
Here, the antecedent or the hypothesis is “if you sing.”
The conclusion is “then I will dance.”
Example 2: State the converse of the statement: “If the switch is off, then the machine won’t work.”
Here, p: The switch is off
q: The machine won’t work.
The conditional statement can be denoted as p → q.
Converse of p → q is written by reversing the order of p and q in the original statement.
Converse of p → q is q → p.
Converse of p → q: q → p: If the machine won’t work, then the switch is off.
Example 3: What is the truth value of the given conditional statement?
If 2+2=5 , then pigs can fly.
Solution:
q: Pigs can fly.
The statement p is false. Now regardless of the truth value of statement q, the overall statement will be true.
F → F = T
Hence, the truth value of the statement is true.
Attend this quiz & Test your knowledge.
A conditional statement can be expressed as, what is the converse of “a → b”, when the antecedent is true and the consequent is false, the conditional statement is.
What is the meaning of conditional statements?
Conditional statements, also known as “if-then” statements, express a cause-and-effect or logical relationship between two propositions.
When does the truth value of a conditional statement is F?
A conditional statement is considered false when the antecedent is true and the consequent is false.
What is the contrapositive of a conditional statement?
The contrapositive reverses the order of the statements and also negates both the statements. It is equivalent in truth value to the original statement.
Kids see fun., you see real learning outcomes..
Make study-time fun with 14,000+ games & activities, 450+ lesson plans, and more—free forever.
Parents, Try for Free Teachers, Use for Free
Reset password New user? Sign up
Existing user? Log in
Already have an account? Log in here.
Applied probability.
A framework for understanding the world around us, from sports to science.
Bayes' theorem is a formula that describes how to update the probabilities of hypotheses when given evidence. It follows simply from the axioms of conditional probability , but can be used to powerfully reason about a wide range of problems involving belief updates.
Given a hypothesis \(H\) and evidence \(E\), Bayes' theorem states that the relationship between the probability of the hypothesis before getting the evidence \(P(H)\) and the probability of the hypothesis after getting the evidence \(P(H \mid E)\) is
\[P(H \mid E) = \frac{P(E \mid H)} {P(E)} P(H).\]
Many modern machine learning techniques rely on Bayes' theorem. For instance, spam filters use Bayesian updating to determine whether an email is real or spam, given the words in the email. Additionally, many specific techniques in statistics, such as calculating \(p\)-values or interpreting medical results , are best described in terms of how they contribute to updating hypotheses using Bayes' theorem.
Deriving bayes' theorem, visualizing bayes’ theorem, diagnosing disease, more examples.
Probability problems are notorious for yielding surprising and counterintuitive results. One famous example--or a pair of examples--is the following:
A couple has 2 children and the older child is a boy. If the probabilities of having a boy or a girl are both 50%, what's the probability that the couple has two boys? We already know that the older child is a boy. The probability of two boys is equivalent to the probability that the younger child is a boy, which is \(50\%\). A couple has two children, of which at least one is a boy. If the probabilities of having a boy or a girl are both \(50\%\), what is the probability that the couple has two boys? At first glance, this appears to be asking the same question. We might reason as follows: “We know that one is a boy, so the only question is whether the other one is a boy, and the chances of that being the case are \(50\%\). So again, the answer is \(50\%\).” This makes perfect sense. It also happens to be incorrect.
Bayes' theorem centers on relating different conditional probabilities . A conditional probability is an expression of how probable one event is given that some other event occurred (a fixed value). For instance, "what is the probability that the sidewalk is wet?" will have a different answer than "what is the probability that the sidewalk is wet given that it rained earlier?"
For a joint probability distribution over events \(A\) and \(B\), \(P(A \cap B)\), the conditional probability of \(A\) given \(B\) is defined as
\[P(A\mid B) = \frac{P(A\cap B)}{P(B)}.\]
In the sidewalk example, where \(A\) is "the sidewalk is wet" and \(B\) is "it rained earlier," this expression reads as "the probability the sidewalk is wet given that it rained earlier is equal to the probability that the sidewalk is wet and it rains over the probability that it rains."
Note that \(P(A \cap B)\) is the probability of both \(A\) and \(B\) occurring, which is the same as the probability of \(A\) occurring times the probability that \(B\) occurs given that \(A\) occurred: \(P(B \mid A) \times P(A).\) Using the same reasoning, \(P(A \cap B)\) is also the probability that \(B\) occurs times the probability that \(A\) occurs given that \(B\) occurs: \(P(A \mid B) \times P(B)\). The fact that these two expressions are equal leads to Bayes' Theorem. Expressed mathematically, this is:
\[\begin{align} P(A \mid B) &= \frac{P(A\cap B)}{P(B)}, \text{ if } P(B) \neq 0, \\ P(B \mid A) &= \frac{P(B\cap A)}{P(A)}, \text{ if } P(A) \neq 0, \\ \Rightarrow P(A\cap B) &= P(A\mid B)\times P(B)=P(B\mid A)\times P(A), \\ \Rightarrow P(A \mid B) &= \frac{P(B \mid A) \times P(A)} {P(B)}, \text{ if } P(B) \neq 0. \end{align}\]
Notice that our result for dependent events and for Bayes’ theorem are both valid when the events are independent. In these instances, \(P(A \mid B) = P(A)\) and \(P(B \mid A) = P(B)\), so the expressions simplify.
Bayes' Theorem \[P(A \mid B) = \frac{P(B \mid A)} {P(B)} P(A)\]
While this is an equation that applies to any probability distribution over events \(A\) and \(B\), it has a particularly nice interpretation in the case where \(A\) represents a hypothesis \(H\) and \(B\) represents some observed evidence \(E\). In this case, the formula can be written as
\[P(H \mid E) = \frac{P(E \mid H)}{P(E)} P(H).\]
This relates the probability of the hypothesis before getting the evidence \(P(H)\), to the probability of the hypothesis after getting the evidence, \(P(H \mid E)\). For this reason, \(P(H)\) is called the prior probability , while \(P(H \mid E)\) is called the posterior probability . The factor that relates the two, \(\frac{P(E \mid H)}{P(E)}\), is called the likelihood ratio . Using these terms, Bayes' theorem can be rephrased as "the posterior probability equals the prior probability times the likelihood ratio."
If a single card is drawn from a standard deck of playing cards, the probability that the card is a king is 4/52, since there are 4 kings in a standard deck of 52 cards. Rewording this, if \(\text{King}\) is the event "this card is a king," the prior probability \(P(\text{King}) = \frac{4}{52} = \frac{1}{13}.\) If evidence is provided (for instance, someone looks at the card) that the single card is a face card, then the posterior probability \(P(\text{King} \mid \text{Face})\) can be calculated using Bayes' theorem: \[P(\text{King} \mid \text{Face}) = \frac{P(\text{Face} \mid \text{King})}{P(\text{Face})} P(\text{King}).\] Since every King is also a face card, \(P(\text{Face} \mid \text{King}) = 1\). Since there are 3 face cards in each suit (Jack, Queen, King) , the probability of a face card is \(P(\text{Face}) = \frac{3}{13}\). Combining these gives a likelihood ratio of \(\frac{1}{\hspace{2mm} \frac3{13}\hspace{2mm} } = \frac{13}{3}\). Using Bayes' theorem gives \(P(\text{King} \mid \text{Face}) = \frac{13}{3} \frac{1}{13} = \frac{1}{3}\). \(_\square\)
You randomly choose a treasure chest to open, and then randomly choose a coin from that treasure chest. If the coin you choose is gold, then what is the probability that you chose chest A?
Bayes' theorem clarifies the two-children problem from the first section:
1. A couple has two children, the older of which is a boy. What is the probability that they have two boys? 2. A couple has two children, one of which is a boy. What is the probability that they have two boys? \[\] Define three events, \(A\), \(B\), and \(C\), as follows: \[ \begin{align} A & = \mbox{ both children are boys}\\ B & = \mbox{ the older child is a boy}\\ C & = \mbox{ one of their children is a boy.} \end{align}\] Question 1 is asking for \(P(A \mid B)\), and Question 2 is asking for \(P(A \mid C)\). The first is computed using the simpler version of Bayes’ theorem: \[P(A \mid B) = \frac{P(A)P(B \mid A)}{P(B)} = \frac{ \frac{1}{4}\cdot 1 }{\frac{1}{2}} = \frac{1}{2}.\] To find \(P(A \mid C)\), we must determine \(P(C)\), the prior probability that the couple has at least one boy. This is equal to \(1 - P(\mbox{both children are girls}) = 1 - \frac{1}{4}=\frac{3}{4}\). Therefore the desired probability is \[P(A \mid C) = \frac{P(A)P(C \mid A)}{P(C)} = \frac{\frac{1}{4}\cdot 1}{\frac{3}{4}} = \frac{1}{3}. \ _\square \] For a similarly paradoxical problem, see the Monty Hall problem .
Venn diagrams are particularly useful for visualizing Bayes' theorem, since both the diagrams and the theorem are about looking at the intersections of different spaces of events.
A disease is present in 5 out of 100 people, and a test that is 90% accurate (meaning that the test produces the correct result in 90% of cases) is administered to 100 people. If one person in the group tests positive, what is the probability that this one person has the disease?
The intuitive answer is that the one person is 90% likely to have the disease. But we can visualize this to show that it’s not accurate. First, draw the total population and the 5 people who have the disease:
The circle A represents 5 out 100, or 5% of the larger universe of 100 people.
Next, overlay a circle to represent the people who get a positive result on the test. We know that 90% of those with the disease will get a positive result, so need to cover 90% of circle A, but we also know that 10% of the population who does not have the disease will get a positive result, so we need to cover 10% of the non-disease carrying population (the total universe of 100 less circle A).
Circle B is covering a substantial portion of the total population. It actually covers more area than the total portion of the population with the disease. This is because 14 out of the total population of 100 (90% of the 5 people with the disease + 10% of the 95 people without the disease) will receive a positive result. Even though this is a test with 90% accuracy, this visualization shows that any one patient who tests positive (Circle B) for the disease only has a 32.14% (4.5 in 14) chance of actually having the disease.
Main article: Bayesian theory in science and math
Bayes’ theorem can show the likelihood of getting false positives in scientific studies. An in-depth look at this can be found in Bayesian theory in science and math .
Many medical diagnostic tests are said to be \(X\)% accurate, for instance 99% accurate, referring specifically to the probability that the test result is correct given your condition (or lack thereof). This is not the same as the posterior probability of having the disease given the result of the test. To see this in action, consider the following problem.
The world had been harmed by a widespread Z-virus, which already turned 10% of the world's population into zombies.
The scientists then invented a test kit with the sensitivity of 90% and specificity of 70%: 90% of the infected people will be tested positive while 70% of the non-infected will be tested negative.
If the test kit showed a positive result, what would be the probability that the tested subject was truly zombie?
If the solution is in a form of \(\frac{a}{b}\), where \(a\) and \(b\) are coprime positive integers, submit your answer as \(a+b\).
A disease test is advertised as being 99% accurate: if you have the disease, you will test positive 99% of the time, and if you don't have the disease, you will test negative 99% of the time.
If 1% of all people have this disease and you test positive, what is the probability that you actually have the disease?
Balls numbered 1 through 20 are placed in a bag. Three balls are drawn out of the bag without replacement. What is the probability that all the balls have odd numbers on them? In this situation, the events are not independent. There will be a \(\frac{10}{20} = \frac{1}{2}\) chance that any particular ball is odd. However, the probability that all the balls are odd is not \(\frac{1}{8}\). We do have that the probability that the first ball is odd is \(\frac{1}{2}.\) For the second ball, given that the first ball was odd, there are only 9 odd numbered balls that could be drawn from a total of 19 balls, so the probability is \(\frac{9}{19}\). For the third ball, since the first two are both odd, there are 8 odd numbered balls that could be drawn from a total of 18 remaining balls. So the probability is \(\frac{8}{18}\). So the probability that all 3 balls are odd numbered is \(\frac{10}{20} \times \frac{9}{19} \times \frac{8}{18} = \frac{2}{19}.\) Notice that \(\frac{2}{19} \approx 0.105\), whereas \(\frac{1}{8} = 0.125.\) \(_\square\)
A family has two children. Given that one of the children is a boy, what is the probability that both children are boys? We assume that the probability of a child being a boy or girl is \(\frac{1}{2}\). We solve this using Bayes’ theorem. We let \(B\) be the event that the family has one child who is a boy. We let \(A\) be the event that both children are boys. We want to find \(P(A \mid B) = \frac{P(B \mid A) \times P(A)}{P(B)}\). We can easily see that \(P(B \mid A) = 1\). We also note that \(P(A) = \frac{1}{4}\) and \(P(B) = \frac{3}{4}\). So \(P(A \mid B) = \frac{1 \times \frac{1}{4}}{\frac{3}{4}} = \frac{1}{3} \). \(_\square\)
A family has two children. Given that one of the children is a boy, and that he was born on a Tuesday, what is the probability that both children are boys? Your first instinct to this question might be to answer \(\frac{1}{3}\), since this is obviously the same question as the previous one. Knowing the day of the week a child is born on can’t possibly give you additional information, right? Let’s assume that the probability of being born on a particular day of the week is \(\frac{1}{7}\) and is independent of whether the child is a boy or a girl. We let \(B\) be the event that the family has one child who is a boy born on Tuesday and \(A\) be the event that both children are boys, and apply Bayes’ Theorem. We notice right away that \(P(B \mid A)\) is no longer equal to one. Given that there are 7 days of the week, there are 49 possible combinations for the days of the week the two boys were born on, and 13 of these have a boy who was born on a Tuesday, so \(P( B \mid A) = \frac{13}{49}\). \(P(A)\) remains unchanged at \(\frac{1}{4}\). To calculate \(P(B)\), we note that there are \(14^2\ = 196\) possible ways to select the gender and the day of the week the child was born on. Of these, there are \(13^2 = 169\) ways which do not have a boy born on Tuesday, and \(196 - 169 = 27\) which do, so \(P(B) = \frac{27}{196}\). This gives is that \(P(A \mid B) = \frac{ \frac{13}{49} \times \frac{1}{4}} {\frac{27}{196}} = \frac{13}{27}\). \(_\square\) Note: This answer is certainly not \(\frac{1}{3}\), and is actually much closer to \(\frac{1}{2}\).
Zeb's coin box contains 8 fair, standard coins (heads and tails) and 1 coin which has heads on both sides. He selects a coin randomly and flips it 4 times, getting all heads. If he flips this coin again, what is the probability it will be heads? (The answer value will be from 0 to 1, not as a percentage.)
There are 10 boxes containing blue and red balls.
The number of blue balls in the \(n^\text{th}\) box is given by \(B(n) = 2^n\). The number of red balls in the \(n^\text{th}\) box is given by \(R(n) = 1024 - B(n)\).
A box is picked at random, and a ball is chosen randomly from that box. If the ball is blue, and the probability that the \(10^\text{th}\) box was picked can be expressed as \( \frac ab\), where \(a\) and \(b\) are coprime positive integers, find \(a+b\).
More probability questions
Photo credit: http://www.spi-global.com/
Learn more in our Applied Probability course, built by experts for you.
Problem Loading...
Note Loading...
Set Loading...
Investopedia contributors come from a range of backgrounds, and over 25 years there have been thousands of expert writers and editors who have contributed.
Thomas J Catalano is a CFP and Registered Investment Adviser with the state of South Carolina, where he launched his own financial advisory firm in 2018. Thomas' experience gives him expertise in a variety of areas including investments, retirement, insurance, and financial planning.
Investopedia / Madelyn Goodnight
Condition probability measures the likelihood of an event or outcome happening based on the occurrence of some earlier event.
Conditional probability is a principle in probability theory. It relates to the probability that a certain event will occur based on the fact that a previous event has already occurred.
It involves two or more events that are not independent, and asks, "If we know A has happened, what's the chance of B also happening?" Conditional probability is calculated by multiplying the probability of the preceding event by the updated probability of the succeeding, or conditional, event.
Conditional probability measures the likelihood of a certain outcome (A), based on the occurrence of some earlier event (B).
Two events are said to be independent if one event occurring does not affect the probability that the other event will occur. However, if one event occurring (or not occurring) does affect the likelihood that the other event will happen, the two events are said to be dependent.
An example of dependent events is a company's stock price increasing after the company reports higher-than-expected earnings.
If events are independent, then the probability of event B occurring is not contingent on what happens with event A. For example, an increase in Apple's shares has nothing to do with a drop in wheat prices.
Conditional probability is often written as the "probability of A given B" and notated as P(A|B).
Overall, while marginal and joint probabilities measure individual and paired events, conditional probability can measure precedence and dependence between events.
Conditional probability is used in a variety of fields, such as insurance , economics, politics, and different areas of mathematics.
P ( B ∣ A ) = P ( A a n d B ) / P ( A ) P(B|A) = P(A and B) / P(A) P ( B ∣ A ) = P ( A an d B ) / P ( A )
P ( B ∣ A ) = P ( A ∩ B ) / P ( A ) P(B|A) = P(A∩B) / P(A) P ( B ∣ A ) = P ( A ∩ B ) / P ( A )
Where the letters are for the following:
P = Probability
A = Event A
B = Event B
Unconditional probability, also known as marginal probability, measures the chance of something happening while ignoring any knowledge of previous or external events. Since this probability also ignores new information, it remains constant.
Example 1: marbles in a bag.
An example of conditional probability using marbles is illustrated below. The steps are as follows:
Step 1 : Understand the scenario
Initially, you're given a bag with six red marbles, three blue marbles, and one green marble. Thus, there are 10 marbles in the bag.
Step 2 : Identify the events
Two events are defined:
Step 3 : Calculate the probability of event B: P(B)
Event B is drawing a marble that is not green. There are 10 marbles altogether, nine of which are not green: the six red and three blue marbles.
P ( B ) = ( N u m b e r o f m a r b l e s t h a t a r e n o t g r e e n ) / ( T o t a l n u m b e r o f m a r b l e s ) = 9 / 10 P(B) = (Number of marbles that are not green)/(Total number of marbles) = 9/10 P ( B ) = ( N u mb ero f ma r b l es t ha t a re n o t g ree n ) / ( T o t a l n u mb ero f ma r b l es ) = 9/10
Step 4 : Identify the intersection of events A and B: P(A∩B)
The intersection of events A and B involves drawing a red marble that is also not green. Since all red marbles are not green, the intersection is simple: the event of drawing a red marble.
Step 5 : Calculate the probability of the intersection of events A and B: P(A∩B)
P ( A ∩ B ) = ( N u m b e r o f r e d m a r b l e s ) / ( T o t a l n u m b e r o f m a r b l e s ) = 6 / 10 = 3 / 5 P(A∩B) = (Number of red marbles)/(Total number of marbles) = 6/10 = 3/5 P ( A ∩ B ) = ( N u mb ero f re d ma r b l es ) / ( T o t a l n u mb ero f ma r b l es ) = 6/10 = 3/5
Step 6 : Calculate the conditional probability: P(A|B)
Using the conditional probability formula, P(A|B), that is, the probability of drawing a red marble given that the marble drawn is not green, the probability is calculated.
P ( A ∣ B ) = P ( A ∩ B ) / P ( B ) = ( 3 / 5 ) / ( 9 / 10 ) = 2 / 3 P(A|B) = P(A∩B)/P(B) = (3/5)/(9/10) = 2/3 P ( A ∣ B ) = P ( A ∩ B ) / P ( B ) = ( 3/5 ) / ( 9/10 ) = 2/3
Result: The conditional probability of drawing a red marble given that the marble drawn is not green, is 2/3.
Let's consider another example of conditional probability using a fair die. The steps are as follows:
You have a fair six-sided die. You want to determine the probability of rolling an even number, given that the number rolled is greater than four.
Step 2: Identify the events
The possible outcomes (sample space) for a six-sided die are the numbers one through six. From this list, you can define the two events:
Step 3 : Calculate the probability of each event
The probability of each event can be calculated by dividing the number of favorable outcomes (the ones you're looking for) by the total number of outcomes in the sample space.
P(A) is the probability of rolling an even number. There are three even numbers {2,4,6} out of the six possible outcomes. Thus, P(A) = 3/6 = 1/2.
P(B) is the probability of rolling a number greater than four. Two numbers are greater than four {5,6} out of the six possible outcomes. Thus, P(B) = 4/6 = 2/3.
Step 4 : Identify the intersection of events A and B
The intersection of events A and B includes the outcomes that satisfy both conditions simultaneously. In this case, that means rolling a number that is even and also greater than four. The only outcome that does both is rolling a six.
Step 5 : Calculate the probability of the intersection of events A and B
We'll spell this out, even if it's easy, given the above, because other examples might prove more difficult: P(A∩B) is the probability of rolling six since six is the only outcome that is both even and greater than six. There is one outcome out of six possibilities. So P(A∩B) = 1/6.
Step 6 : Calculate the conditional probability: P(B|A)
The formula for conditional probability is as follows:
When the values are substituted into the formula, here is the result:
P ( B ∣ A ) = ( 1 / 6 ) / ( 1 / 2 ) = 1 / 3 P(B|A) = (1/6)/(1/2) = 1/3 P ( B ∣ A ) = ( 1/6 ) / ( 1/2 ) = 1/3
Result: This means that given the die rolled is even, the probability that this number is also greater than four is 1/3.
Another scenario involves a student applying for admission to a college who hopes to get a scholarship and a stipend for books, meals, and housing. The steps to determine the conditional probability of getting a stipend and the scholarship are as follows:
First, the student wants to know the likelihood of being accepted to the university. Then, if accepted, the student would like to receive an academic scholarship. Moreover, if possible, the student would also like to receive a stipend for books, meals, and housing if they get the scholarship.
There are three events:
Step 3 : Calculate the probability of being accepted (event A)
The university accepts 100 out of every 1,000 applicants who have applications similar to the student's. Thus, the probability of a student being accepted is P(A) = 100/1000 = 0.10 or 10%.
Step 4 : Determine the probability of receiving a scholarship once accepted: P(B|A)
It's known that out of the students accepted, 10 out of every 500 receive a scholarship. Thus the probability of receiving a scholarship given acceptance is as follows:
P ( B ∣ A ) = 10 / 500 = 0.02 = 2 P(B|A) = 10/500 = 0.02 = 2% P ( B ∣ A ) = 10/500 = 0.02 = 2 %
Step 5 : Calculate the probability of being accepted and receiving a scholarship
To calculate the probability of being accepted and also receiving a scholarship, the likelihood of acceptance is multiplied by the conditional probability of receiving a scholarship given acceptance.
P ( A ∩ B ) = P ( A ) × P ( B ∣ A ) = 0.1 × 0.02 = 0.002 = 0.2 P(A∩B)=P(A)×P(B∣A)=0.1×0.02=0.002=0.2 P ( A ∩ B ) = P ( A ) × P ( B ∣ A ) = 0.1 × 0.02 = 0.002 = 0.2 %
Step 6 : Determine the probability of receiving a stipend having gotten a scholarship: P(C|B)
It's also known that among the scholarship recipients, 50% receive a stipend for books, meals, and housing. Thus, P(C|B) = 0.5 = 50%.
Step 7 : Calculate the probability of being accepted, receiving a scholarship, and receiving a stipend
To calculate the probability of a student being accepted, receiving a scholarship, and then also receiving a stipend, the probabilities of the events are multiplied.
P ( A ∩ B ∩ C ) = P ( A ) × P ( B ∣ A ) × P ( C ∣ B ) = 0.1 × 0.02 × 0.5 = 0.001 = 0.1 P(A∩B∩C)=P(A)×P(B∣A)×P(C∣B)=0.1×0.02×0.5=0.001=0.1% P ( A ∩ B ∩ C ) = P ( A ) × P ( B ∣ A ) × P ( C ∣ B ) = 0.1 × 0.02 × 0.5 = 0.001 = 0.1 %
This step-by-step breakdown illustrates how the probabilities for each scenario are calculated using basic probability formulas and conditional probability.
Let's now differentiate calculating conditional probability from other kinds of probability.
The example this time is a regular deck of cards. Two events are defined:
A standard deck has 52 cards divided into four suits (hearts, diamonds, clubs, and spades). Hearts and diamonds are red, and clubs and spades are black. Each suit has 13 cards: Ace, then two through 10, and then the face cards Jack, Queen, and King.
The deck contains 26 red cards, 13 hearts, and 13 diamonds. Thus, the probability of drawing a red card is P(B) = 26/52 = 1/2.
Within the red cards are a four of hearts and a four of diamonds. Therefore, if a red card has to be drawn, a subset of the deck that includes only these 26 red cards needs to be considered.
Given that a red card has been drawn, the probability of it being a four is calculated as follows:
P ( A ∣ B ) = ( N u m b e r o f r e d f o u r s ) / ( T o t a l n u m b e r o f r e d c a r d s ) = 2 / 26 = 1 / 13 P(A|B) = (Number of red fours)/(Total number of red cards) = 2/26 = 1/13 P ( A ∣ B ) = ( N u mb ero f re df o u rs ) / ( T o t a l n u mb ero f re d c a r d s ) = 2/26 = 1/13
The marginal probability, P(A), is the probability of an event A happening on its own. It does not consider the occurrence of any other event.
Since event A is drawing a four, P(A) is calculated by dividing the number of fours by the total number of cards in the deck.
P ( A ) = ( N u m b e r o f f o u r s i n t h e d e c k ) / ( T o t a l n u m b e r o f c a r d s i n d e c k ) = 4 / 52 = 1 / 13 P(A) = (Number of fours in the deck)/(Total number of cards in deck) = 4/52 = 1/13 P ( A ) = ( N u mb ero ff o u rs in t h e d ec k ) / ( T o t a l n u mb ero f c a r d s in d ec k ) = 4/52 = 1/13
Joint probability is the likelihood of two or more events happening at the same time. This is denoted as P(A∩B), the probability of events A and B occurring.
Assuming that the previous events are the same, that is, event A is the occurrence of drawing a card that is a four and event B is drawing a red card, we can find the joint probability of drawing a card that is both a four and red.
There are two cards that meet both criteria, the four of hearts and the four of diamonds. Thus, the joint probability of drawing a card that is both a four and red is calculated as follows:
P ( A ∩ B ) = ( N u m b e r o f r e d f o u r s ) / ( T o t a l n u m b e r o f c a r d s ) = 2 / 52 = 1 / 26 P(A∩B) = (Number of red fours)/(Total number of cards) = 2/52 = 1/26 P ( A ∩ B ) = ( N u mb ero f re df o u rs ) / ( T o t a l n u mb ero f c a r d s ) = 2/52 = 1/26
Bayes’ theorem is used to calculate conditional probabilities when dealing with uncertain events. In investing, this allows you to update your probability estimates of a market outcome when you get new relevant data.
For example, suppose you wanted to know the probability that the S&P 500 would return a positive percentage this year, given initial gross domestic product (GDP) figures. In that case, you’d start with Bayes’ theorem, considering the index’s historical return rates to get an initial estimate of projected economic expansion.
You would then revise this first probability using the latest GDP estimates. This would provide more refined probability assessments incorporating all evidence as the year progresses.
While a bit complex mathematically, Bayes’ theorem is quite logical. If an investor discovers new economic information relevant to potential market returns, it makes sense to integrate this data to get a more precise calculation.
The 18th-century English minister Thomas Bayes devised this statistical technique, which remains central in financial modeling and other fields requiring predictions under uncertain conditions.
Bayes' theorem is well suited to and widely used in machine learning.
A conditional probability calculator is an online tool that calculates conditional probability. It provides the probability of the first and second events occurring. A conditional probability calculator saves the user from doing the mathematics manually.
Probability looks at the likelihood of one event occurring. Conditional probability looks at two events occurring in relation to one another. More specifically, it looks at the probability of a second event occurring based on the probability of the first event occurring.
Prior probability is the probability of an event occurring before any data has been gathered. It is the probability as determined by a prior belief. Prior probability is a part of Bayesian statistical inference since you can revise these beliefs and arrive mathematically at a posterior probability .
Compound probability looks to determine the likelihood of two independent events occurring. Compound probability multiplies the probability of the first event by the probability of the second event. The most common example is a coin flipped twice and finding if the second result will be the same as the first.
Conditional probability examines the likelihood of an event occurring based on the likelihood of a preceding event occurring. The second event is dependent on the first event.
For example, we might want to know the probability that some stock will go up if the index for its sector is on the rise. The conditional probability calculation takes into account both, how likely the first event is (the stock rising in price), as well as how much the two events overlap.
Read the following two paragraphs. analyze the situation and choose the correct options.1. a bus runs from kolkata to guwahati. it covers a distance of 400 km in 7 hours and then a distance of 550 km in the next 7 hours.2. alisha takes part in a car race. she drives a distance of 70 km each in the first,second and third hours., which of the following is not true regarding conditional formatting, how can i improve my problem-solving skills in mathematics, needed a test for malnutrition related: malnutrition: cause and solving the problem, mam can get a live class free of maths. related: malnutrition: cause and solving the problem, top courses for class 6 view all.
Top courses for class 6.
Share your doubts
cation olution |
Join the 10M+ students on EduRev |
Create your account for free.
Unattempted tests, change country, practice & revise.
IMAGES
VIDEO
COMMENTS
With this example, you could clearly see how the probability of an event changes depending on the information we have. The Conditional Probability Formula. By definition, the conditional probability equals the probability of the intersection of events A and B over the probability of event B occurring: \[P(A|B) = \frac {P (A \cap B)}{P (B)}\]
Solution. The probability that the first card is a spade is 13 52 = 1 4 13 52 = 1 4. The probability that the second card is a spade, given the first was a spade, is 12 51 12 51, since there is one less spade in the deck, and one less total cards. Note 12 51 = 4 17 12 51 = 4 17. The probability that both cards are spades is 1 4 ⋅ 4 17 = 1 17 ...
Example 4: Traffic. Traffic engineers use conditional probability to predict the likelihood of traffic jams based on stop light failures. For example, suppose the following two probabilities are known: P (stop light failure) = 0.001. P (traffic jam∩stop light failure) = 0.0004.
We want to draw a face card and an ace so use multiplication. P(1st face card and 2nd ace) = 12 52 ⋅ 4 51 = 48 2652 ≈ 0.018 P (1st face card and 2nd ace) = 12 52 ⋅ 4 51 = 48 2652 ≈ 0.018. The probability that the first card is a face card and the second card an ace is approximately 0.018 or 1.8%. Solution c. There are two ways for this ...
Step 2: We want to start computing probabilities, starting with the first stage. The probability that the first card is a suspect is 6 21 = 2 7. The probability that the first card is a weapon is the same: 2 7. Finally, the probability that the first card is a room is 9 21 = 3 7.
Conditional Probability. The conditional probability, as its name suggests, is the probability of happening an event that is based upon a condition.For example, assume that the probability of a boy playing tennis in the evening is 95% (0.95) whereas the probability that he plays given that it is a rainy day is less which is 10% (0.1).
To have a better insight, let us practice some conditional probability examples. Conditional Probability and Bayes Theorem. Bayes' theorem defines the probability of occurrence of an event associated with any condition. It is considered for the case of conditional probability. Also, this is known as the formula for the likelihood of "causes".
This page titled 3.2: Problems on Conditional Probability is shared under a CC BY 3.0 license and was authored, remixed, and/or curated by Paul Pfeiffer via source content that was edited to the style and standards of the LibreTexts platform.
If you're seeing this message, it means we're having trouble loading external resources on our website. If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
Conditional probability occurs in everyday life, so it is beneficial to know how to solve conditional probability problems. ... This is an example of conditional probability, which is the ...
The probability of event B happening, given that event A already happened, is called the conditional probability. The conditional probability of B, given A is written as P(B|A) P (B | A), and is read as "the probability of B given A happened first.". We can use the General Multiplication Rule when two events are dependent.
The Birthday Problem. One of the most famous problems in probability theory is the Birthday Problem, which has to do with shared birthdays in a large group. To make the analysis easier, we'll ignore leap days, and assume that the probability of being born on any given date is 1 365 1 365. Now, if you have 366 people in a room, we're ...
P (B|A) is also called the "Conditional Probability" of B given A. And in our case: P (B|A) = 1/4. So the probability of getting 2 blue marbles is: And we write it as. "Probability of event A and event B equals. the probability of event A times the probability of event B given event A".
Definition 2.2.1. For events A and B, with P(B)> 0, the conditional probability of A given B, denoted P(A | B), is given by. P(A | B) = P(A ∩ B) P(B). In computing a conditional probability we assume that we know the outcome of the experiment is in event B and then, given that additional information, we calculate the probability that the ...
In the conditional probability formula, the numerator is a subset of the denominator. Together, the formula gives us the ratio of the chances of both events occurring relative to the likelihood that the given event occurs, which is the conditional probability! Therefore, if the ratio equals one, event A always occurs when event B has occurred.
1.4.5 Solved Problems: Conditional Probability. In die and coin problems, unless stated otherwise, it is assumed coins and dice are fair and repeated trials are independent. Problem. You purchase a certain product. The manual states that the lifetime T of the product, defined as the amount of time (in years) the product works properly until it ...
Conditional Probability is defined as the probability of any event occurring when another event has already occurred. In other words, it calculates the probability of one event happening given that a certain condition is satisfied. It is represented as P (A | B) which means the probability of A when B has already happened.
Step 1: Write out the Conditional Probability Formula in terms of the problem. Step 2: Substitute in the values and solve. Example: Susan took two tests. The probability of her passing both tests is 0.6. The probability of her passing the first test is 0.8.
Understanding conditional statements is key to logical reasoning and problem-solving. Now, let's solve a few examples and practice MCQs for better comprehension. Solved Examples on Conditional Statements. Example 1: Identify the hypothesis and conclusion. If you sing, then I will dance. Solution: Given statement: If you sing, then I will dance.
contributed. Bayes' theorem is a formula that describes how to update the probabilities of hypotheses when given evidence. It follows simply from the axioms of conditional probability, but can be used to powerfully reason about a wide range of problems involving belief updates. Given a hypothesis H H and evidence E E, Bayes' theorem states that ...
Conditional probability can be contrasted with unconditional probability. The latter is also called marginal probability, which measures the chance of a single event without depending on any other.
Example 17.3.1 17.3. 1. As mentioned earlier, conditional statements are commonly used in spreadsheet applications like Excel or Google Sheets. In Excel, you can enter an expression like. = IF(A1 <2000,A1 + 1,A1 × 2) = I F (A 1 <2000, A 1 + 1, A 1 × 2) Notice that after the IF, there are three parts. The first part is the condition, and the ...
Conditional Problem SolvingConditional problem solving refers to the process of finding solutions to a problem based on certain conditions or criteria. It involves analyzing the given conditions, identifying the problem, and applying logical reasoning to derive a solution. This type of problem-solving often requires critical thinking, deductive reasoning, and the ability to make informed ...