Introduction to Probability
Events and
are independent events if the probability of Event
occurring is the same whether or not Event
occurs. Let's take a simple example. A fair coin is tossed two times. The probability that a head comes up on the second toss is 1/2 regardless of whether or not a head came up on the first toss. The two events are (1) first toss is a head and (2) second toss is a head. So these events are independent. Consider the two events (1) "It will rain tomorrow in Houston" and (2) "It will rain tomorrow in Galveston" (a city near Houston). These events are not independent because it is more likely that it will rain in Galveston on days it rains in Houston than on days it does not.
Probability of A and B
When two events are independent, the probability of both occurring is the product of the probabilities of the individual events. More formally, if events and
are independent, then the probability of both
and
occurring is:
where is the probability of events
and
both occurring, P(A) is the probability of event
occurring, and
is the probability of event
occurring.
If you flip a coin twice, what is the probability that it will come up heads both times? Event is that the coin comes up heads on the first flip and Event
is that the coin comes up heads on the second flip. Since both
and
equal 1/2, the probability that both events occur is
Let's take another example. If you flip a coin and roll a six-sided die, what is the probability that the coin comes up heads and the die comes up 1? Since the two events are independent, the probability is simply the probability of a head (which is 1/2) times the probability of the die coming up 1 (which is 1/6). Therefore, the probability of both events occurring is 1/2 x 1/6 = 1/12.
One final example: You draw a card from a deck of cards, put it back, and then draw another card. What is the probability that the first card is a heart and the second card is black? Since there are 52 cards in a deck and 13 of them are hearts, the probability that the first card is a heart is 13/52 = 1/4. Since there are 26 black cards in the deck, the probability that the second card is black is 26/52 = 1/2. The probability of both events occurring is therefore 1/4 x 1/2 = 1/8.
See the section on conditional probabilities on this page to see how to compute when A and B are not independent.
Probability of
or ![B B](https://learn.saylor.org/filter/tex/pix.php/9d5ed678fe57bcca610140957afab571.svg)
If Events A and B are independent, the probability that either Event A or Event B occurs is:
In this discussion, when we say " or
occurs" we include three possibilities:
This use of the word "or" is technically called inclusive or because it includes the case in which both and
occur. If we included only the first two cases, then we would be using an exclusive or.
(Optional) We can derive the law for from our law about
. The event "
" can happen in any of the following ways::
The simple event can happen if either
-and-
happens or
-and-not-
happens. Similarly, the simple event
happens if either
-and-
happens or not-
-and-
happens.
is therefore
-and-
-and-not-
-and-
not-
-and-
, whereas
-or-
is
-and-
-and-not
)
not-
-and-
. We can make these two sums equal by subtracting one occurrence of
-and-
from the first. Hence,
or-
and-
).
If you throw a six-sided die and then flip a coin, what is the probability that you will get either a 6 on the die or a head on the coin flip (or both)? Using the formula,
An alternate approach to computing this value is to start by computing the probability of not getting either a 6 or a head. Then subtract this value from 1 to compute the probability of getting a 6 or a head. Although this is a complicated method, it has the advantage of being applicable to problems with more than two events. Here is the calculation in the present case. The probability of not getting either a 6 or a head can be recast as the probability of
(not getting a 6) AND (not getting a head).
This follows because if you did not get a 6 and you did not get a head, then you did not get a 6 or a head. The probability of not getting a six is 1 - 1/6 = 5/6. The probability of not getting a head is 1 - 1/2 = 1/2. The probability of not getting a six and not getting a head is 5/6 x 1/2 = 5/12. This is therefore the probability of not getting a 6 or a head. The probability of getting a six or a head is therefore (once again) 1 - 5/12 = 7/12.
If you throw a die three times, what is the probability that one or more of your throws will come up with a 1? That is, what is the probability of getting a 1 on the first throw OR a 1 on the second throw OR a 1 on the third throw? The easiest way to approach this problem is to compute the probability of
NOT getting a 1 on the first throw
AND not getting a 1 on the second throw
AND not getting a 1 on the third throw.
The answer will be 1 minus this probability. The probability of not getting a 1 on any of the three throws is 5/6 x 5/6 x 5/6 = 125/216. Therefore, the probability of getting a 1 on at least one of the throws is 1 - 125/216 = 91/216.