Computing the Probability of an Event: Fresh Take

  • Describe events in a sample space
  • Calculate the probability of different types of events
  • Find the conditional probability of an event

Sample Space and Events

A sample space is a set of all possible outcomes of a random experiment. For example, if we were rolling a [latex]6[/latex]-sided die, the sample space would be the set [latex]{1, 2, 3, 4, 5, 6}[/latex].

Simple events are single outcomes within a sample space. For example, rolling a [latex]4[/latex] on a [latex]6[/latex]-sided die would be a simple event. We can represent simple events using standard notation, which in the example given would look like [latex]{4}[/latex].

Compound events are combinations of two or more simple events. For example, rolling an even number on a [latex]6[/latex]-sided die would be a compound event, as it is the combination of the simple events [latex]{2}[/latex], [latex]{4}[/latex], and [latex]{6}[/latex]. We can represent compound events using standard notation, which in the example given would look like [latex]{2, 4, 6}[/latex]

It’s important to note that compound events can also be represented using logical operators such as “and” and “or”. For example, the event “rolling a [latex]4[/latex] or a [latex]5[/latex]” on a fair die would be represented as [latex]{4,5}[/latex].

It’s also important to understand that sample space is the set of all possible outcomes, while events are the subset of outcomes that we are interested in.

Basic Probability

It can be confusing to distinguish between probability, likelihood, and chance. Probability is a measure of the likelihood of an event occurring, and it is calculated as the number of favorable outcomes divided by the total number of possible outcomes. In standard notation, probability is denoted as [latex]P(A)[/latex], where [latex]A[/latex] is an event. For example, if we were flipping a coin, the probability of getting heads would be [latex]1/2[/latex]. Likelihood is a measure of how well a particular hypothesis or model fits the data. It is used in statistical inference to determine the probability of a certain set of data given a certain hypothesis. For example, the likelihood of observing data [latex]X[/latex] given a hypothesis [latex]H[/latex] is denoted as [latex]L(X|H)[/latex]. Unlike probability, likelihood is not necessarily between [latex]0[/latex] and [latex]1[/latex]. Chance refers to the notion of randomness or uncertainty in an outcome. It is often used to describe the likelihood of an event occurring without any specific information about the event or the sample space. For example, “there’s a chance it will rain tomorrow” implies that the outcome of rain or no rain is uncertain, but it doesn’t specify the probability of either outcome. For this lesson, we will be working with only probability.
If we roll a [latex]6[/latex]-sided die, calculate

  1. [latex]P(\text{rolling a }1)[/latex]
  2. [latex]P(\text{rolling a number bigger than }4)[/latex]

Let’s say you have a bag with [latex]20[/latex] cherries, [latex]14[/latex] sweet and [latex]6[/latex] sour. If you pick a cherry at random, what is the probability that it will be sweet?

Complementary Events

Now let us examine the probability that an event does not happen. As in the previous section, consider the situation of rolling a six-sided die and first compute the probability of rolling a six: the answer is [latex]P(\text{six}) =1/6[/latex]. Now consider the probability that we do not roll a six: there are [latex]5[/latex] outcomes that are not a six, so the answer is [latex]P(\text{not a six}) = \frac{5}{6}[/latex]. Notice that

[latex]P(\text{six})+P(\text{not a six})=\frac{1}{6}+\frac{5}{6}=\frac{6}{6}=1[/latex]

This is not a coincidence.  Consider a generic situation with [latex]n[/latex] possible outcomes and an event [latex]E[/latex] that corresponds to [latex]m[/latex] of these outcomes. Then the remaining [latex]n - m[/latex] outcomes correspond to [latex]E[/latex] not happening, thus

[latex]P(\text{not}E)=\frac{n-m}{n}=\frac{n}{n}-\frac{m}{n}=1-\frac{m}{n}=1-P(E)[/latex]

Probability of Two Independent Events

Are these events independent?

  1. A fair coin is tossed two times. The two events are [latex](1)[/latex] first toss is a head and [latex](2)[/latex] second toss is a head.
  2. The two events [latex](1)[/latex] “It will rain tomorrow in Houston” and [latex](2)[/latex] “It will rain tomorrow in Galveston” (a city near Houston).
  3. You draw a card from a deck, then draw a second card without replacing the first.

[latex]P(A \text{ and } B)[/latex] for Independent Events

When dealing with two independent events, the probability of both events occurring together can be calculated using the formula [latex]P(A \text{ and } B)= P(A) * P(B)[/latex]. Remember, independent events are events that don’t affect each other, meaning the outcome of one event doesn’t change the outcome of the other.

In your drawer you have [latex]10[/latex] pairs of socks, [latex]6[/latex] of which are white, and [latex]7[/latex] tee shirts, [latex]3[/latex] of which are white. If you randomly reach in and pull out a pair of socks and a tee shirt, what is the probability both are white?

[latex]P(A \text{ or } B)[/latex] for Independent Events

Two events that are not mutually exclusive can happen at the same time. The probability of two events happening together can be calculated using the formula [latex]P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B)[/latex].

Suppose we draw one card from a standard deck. What is the probability that we get a Queen or a King?

In your drawer, you have [latex]10[/latex] pairs of socks, [latex]6[/latex] of which are white, and [latex]7[/latex] tee shirts, [latex]3[/latex] of which are white. If you reach in and randomly grab a pair of socks and a tee shirt, what is the probability at least one is white?

The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car. Find the probability that a randomly chosen person:

  1. Has a red car and got a speeding ticket
  2. Has a red car or got a speeding ticket.
  Speeding ticket No speeding ticket Total
Red car [latex]15[/latex] [latex]135[/latex] [latex]150[/latex]
Not red car [latex]45[/latex] [latex]470[/latex] [latex]515[/latex]
Total [latex]60[/latex] [latex]605[/latex] [latex]665[/latex]

Remember to work through each example in the text and in the EXAMPLE boxes with a pencil on paper, pausing as frequently as needed to digest the process. Watch the videos by working them out on paper, pausing the video as frequently as you need to make sense of the demonstration. Don’t be afraid to ask for help — hard work and willingness to learn translate into success!

A conditional probability is the probability of an event occurring given that another event has already occurred. It is denoted using standard notation as [latex]P(A|B)[/latex], which is read as “the probability of [latex]A[/latex] given [latex]B[/latex].” For example, if we were flipping a coin and rolling a die, the probability of getting heads and rolling a [latex]4[/latex] is [latex]P(\text{heads and } 4) = 1/12[/latex], since there is only [latex]1[/latex] favorable outcome (getting heads and rolling a [latex]4[/latex]) out of a total of [latex]12[/latex] possible outcomes (getting heads or tails and rolling any number from [latex]1[/latex] to [latex]6[/latex]).

To calculate a conditional probability, we use the formula [latex]P(A \text{ and } B) = P(A) · P(B | A)[/latex]. Using the example above, we can find the conditional probability of getting heads given that we rolled a [latex]4[/latex] as:

[latex]P(\text{ heads }|4) = P(\text{heads and }4) / P(4) = 1/12 / 1/6 = 1/2[/latex]
If you pull [latex]2[/latex] cards out of a deck, what is the probability that both are spades?

The table below shows the number of survey subjects who have received and not received a speeding ticket in the last year, and the color of their car. Find the probability that a randomly chosen person:

  1. has a speeding ticket given they have a red car
  2. has a red car given they have a speeding ticket
Speeding ticket No speeding ticket Total
Red car [latex]15[/latex] [latex]135[/latex] [latex]150[/latex]
Not red car [latex]45[/latex] [latex]470[/latex] [latex]515[/latex]
Total [latex]60[/latex] [latex]605[/latex] [latex]665[/latex]

These kinds of conditional probabilities are what insurance companies use to determine your insurance rates. They look at the conditional probability of you having accident, given your age, your car, your car color, your driving history, etc., and price your policy based on that likelihood.

View more about conditional probability in the following video.

You can view the transcript for “Basic conditional probability” here (opens in new window).