Send
Close Add comments:
(status displays here)
Got it! This site "creationpie.com" uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website. Note: This appears on each machine/browser from which this site is accessed.
Conditional probability
1. Conditional probability
A
conditional probability is expressed as
P(A | B)
and read as the "
probability of (event) A (will happen) given (that event) B (has happened).".
In short form, the "
probability of A given B".The vertical bar "
|" is read as "
given that".
2. Examples
What is the probability it rains today given that it rained yesterday?
What is the probability you get an "A" on this exam given that you got an "A" on the last exam?
Notice the time element of probability. We are assuming that event B has happened and want to know about the probability of event A happening.
3. Conditional probability
One way to deceive people is to use
conditional probabilities as if they go both ways equally.
The probability that one speaks Spanish given that one lives in Spain is very high.
The probability that one lives in Spain given that one speaks Spanish is very low.
4. Spanish and Spain
The probability that someone speaks Spanish given that they live in Spain is very high.
The probability that someone lives in Spain given that they speak Spanish is very low.
This idea can be expressed as a decision tree and can be interpreted as the converse fallacy.
5. Time element
To make the concepts easier to understand, the time element is used.
Strictly speaking, one can do without the time element, but the concepts can become more difficult to understand and/or visualize.
6. Event A
Event
A is some event.
There is a probability,
P(
A) that event
A has happened.
7. Event B
Event
B is another event.
There is a probability,
P(
B) that event
B has happened.
8. Mutually exclusive
If the events
A and
B are mutually exclusive, then they cannot happen together.
P(A ∩ B) =
0.0
P(A & B) =
0.0
9. Collectively exhaustive
If the events
A and
B are mutually exclusive, then they cannot happen together.
P(A
∪ B) =
1.0
P(A
| B) =
1.0
That is, together they cover every possible event in the universe of possible events.
10. Non-empty intersection
The intersection of events
A and
B is the joint probability.
Conditional probability is concerned with events that can happen together.
Otherwise, the conditional probability is
0.0 (zero).
11. Probability of A given B
Assume that event
B has happened. What is the probability that event
A has happened? From the diagram, one can see that it is the following.
P(A | B) =
P(A & B) /
P(B)
That is, we ignore the part of
A that does not intersect with
B.
Rearrange to get the following.
P(A & B) =
P(A | B) *
P(B)
12. Probability of B given A
Assume that event
A has happened. What is the probability that event
B has happened? From the diagram, one can see that it is the following.
P(B | A) =
P(A & B) /
P(A)
That is, we ignore the part of
B that does not intersect with
A.
Rearrange to get the following.
P(B & A) =
P(B | A) *
P(A)
13. Two equations, four unknowns
To use these rules for problem solving, remember that there are
4 unknowns, so that given
3 of the unknowns, you can solve for the remaining unknown.
P(A & B) =
P(A | B) *
P(B)
P(B & A) =
P(B | A) *
P(A)
Since
P(A & B) =
P(B & A)
it follows that
P(A | B) *
P(B) =
P(B | A) *
P(A)
which is Bayes Rule usually written as follows.
P(A | B) =
P(B | A) *
P(A) /
P(B)
14. Independence
Two events are said to be
independent if the outcome of each does not depend on the other. Otherwise, the events are said to be
dependent.
We know from the
multiplication rule (a variant of the conditional probability rule) that
P(A | B) =
P(A & B) /
P(B)
P(B | A) =
P(A & B) /
P(A)
15. Independent events
If two events are independent, then the following hold.
P(A | B) =
P(A)
P(B | A) =
P(B)
That is:
The probability of A occurring is not dependent on B occurring.
The probability of B occurring is not dependent on A occurring.
The next question is: What is the nature of the dependence?
16. Multiplication rule
From the development of the conditional probabilities, the following hold.
P(B & A)
=
P(A & B)
=
P(B | A) *
P(A)
=
P(A | B) *
P(B)
From the last two expressions, one gets Bayes Rule. Because of this simple development, it has been rediscovered and used often in the past few hundred years.
The property of independence goes the other way, in that if the multiplication law holds, then the events must be independent.
Independence is often determined by intuition and not by solving equations and doing number crunching. One application is in experimental testing.
If
random samples are taken, then the dependence of one event on another event is minimized (effectively nil) and so the shortened form of the multiplication rule applies.
17. Employee performance
Consider employee performance. If the probability that a customer complains about an employee is
0.02 (
1 of every
50 customers) then what is the probability that a customer complains about an employee given that another customer has complained about that same employee? That is
P(complaint | previous complaint)
If the probability is still
0.02, then the events are independent. If the probability is greater (or smaller), then the events are not independent.
Remember that two events A and B are said to be mutually exclusive if they have no sample points in common. That is, the following holds.
P(A ∩ B) =
0.0
If one of two possible mutually exclusive events is known to occur, the other is then known not to occur (since, by definition, one of the two events must occur).
If the two events were independent, then there is no connection between the two events.
So, two events with nonzero probabilities cannot be both mutually exclusive and independent.
18. End of page