playing cards showing Math Probability HighRes
Outlier Articles Home

Statistics

Understanding Math Probability - Definition, Formula & How To Find It

02.03.2022 • 17 min read

Sarah Thomas

Subject Matter Expert

This article is about what probability is, its definition, and the formula. You’ll also learn how to calculate it.

In This Article

  1. What is Probability?

  2. How is Probability Measured?

  3. How to Write Probabilities

  4. Basic Terms You Should Know

  5. The Probability Formula

  6. How to Calculate Probability Using the Probability Formula

  7. Theorems on Probability

  8. Types of Probability

  9. Solutions to Exercise Problems

What is Probability?

Probability is the study of likelihood. How likely is it to rain tomorrow? What are the chances that you’ll be dealt a pocket pair in a poker game? What is the likelihood of earning a living as a concert pianist? These are all questions that probability can help answer.

How is Probability Measured?

We measure probability on a scale from 0 to 1, where 0 and 1 both represent certainty.

A probability of 0 indicates that an event will definitely not happen, while a probability of 1 indicates that the event definitely will happen.

Very few things in life happen with certainty though. Most events and statements about the world involve some degree of uncertainty or randomness. Uncertain events have probabilities that fall somewhere between 0 and 1. The closer a probability is to 0, the less likely it is to occur. The closer a probability is to 1, the more likely it is to occur.

Probability examples with Events

How to Write Probabilities

Here are three things to know about expressing probabilities:

1. Decimals, Percentages or Fractions

We can express probabilities using decimals, percentages, or fractions.

You can easily convert a probability from a decimal to a fraction by placing the decimal over its place value (0.2 = 210=\frac{2}{10} = ⅕ or 0.02 = 2100=150)\frac{2}{100} = \frac{1}{50}).

You can convert a probability from a decimal to a percentage by multiplying the decimal by 100 (0.2 x 100 = 20%).

Examples

  • The probability of getting heads on a coin flip = 0.5 =510 \frac{5}{10} or ½ = 50%

  • The probability that Steph Curry makes a free throw = 0.9 =910\frac{9}{10} = 90%

2. Chance

You can use the word “chance” interchangeably with “probability.”

Examples

There’s a 40% chance of rain tomorrow = There’s a 40% probability of rain tomorrow.

3. Odds

You cannot use the word “odds” interchangeably with “probability.”

Odds and probability are related concepts, but they are different. We calculate odds by taking the ratio of two probabilities: the probability that an event will occur and the probability that it will not occur. Careful not to confuse probabilities with odds.

Examples

  • The probability that Steph Curry makes a free throw = 0.9

  • The odds of Steph Curry making a free throw = 0.9/0.1 or 9:1

Basic Terms You Should Know

Below are some basic terms you should know before working with probabilities.

1. Random Experiment

A random experiment is a process that you can repeat over and over again, where you cannot predict the outcome with certainty. Every repetition of the experiment should follow the exact same conditions and have an identical set of possible outcomes. When you run repeatedly a random experiment, each repetition is called a trial.

Example

Rolling a die or flipping a coin are good examples of random experiments. Rolling a die is a process that you can repeat over and over again, and so is flipping a coin. Each time you roll a die, there are six possible outcomes, and the outcomes are uncertain — you could roll a 1, 2, 3, 4, 5, or 6. Each time you flip a coin, there are two possible outcomes, and the outcomes are uncertain — you could flip heads or tails.

2. Outcomes

Outcomes are the results of a random experiment. Outcomes are mutually exclusive, meaning you can only observe one outcome at a time.

Example

There are six possible outcomes when you roll a die: 1, 2, 3, 4, 5, and 6. These outcomes are mutually exclusive because you cannot roll a 1 at the same time that you roll a 6. For every roll, you only observe one of the six outcomes.

3. Sample Space

The sample space is the set of all possible outcomes. We usually denote a sample space using set notation (i.e., curly brackets {}) or a Venn diagram.

Example

The sample space when rolling a single die is {1, 2, 3, 4, 5, 6}. Similarly, the sample space when shooting a free throw is {make it, miss it}.

4. Favorable Outcomes

Favorable outcomes are the outcomes in the sample space that you collectively want to calculate a probability for.

Example

If you want to calculate the probability of rolling a 2 when you roll a die, there is only one favorable outcome, 2. If you want to calculate the probability of rolling an even number, there are three favorable outcomes: 2, 4, and 6. If you want to calculate the probability of rolling a number less than 6, there are five favorable outcomes: 1, 2, 3, 4, and 5.

5. Event

An event is a subset of the sample space to which you can assign a probability. As is the case for sample spaces, we often denote events using set notation (i.e., curly brackets {}) or a Venn diagram.

Examples

In an experiment where you roll a die, “rolling a 5” is an event, “rolling an even number” is an event, “rolling an odd number” is an event, and so on.

When drawing a card from a deck of playing cards, an event is:

  • Drawing a face card

  • Drawing a red card

  • Drawing a seven of diamonds or a seven of hearts

Rolling a die graphic showing a random experiment, outcomes, sample space and favorable outcomes

The Probability Formula

In math, the probabilities that are easiest to calculate involve experiments where there are a number of distinct and equally likely outcomes.

In such cases, calculating the probability of events is easy! You simply count the number of favorable outcomes and divide it by the total number of possible outcomes.

Probability Formula for Equally Likely Outcomes

Probability of an Event = Number of Favorable OutcomesTotal Number of Possible Outcomes\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}}

As it turns out, many probabilistic situations involve equally likely outcomes, so this formula is incredibly useful for calculating probabilities.

How to Calculate Probability Using the Probability Formula

Coin flips, rolling dice, and drawing cards are examples of random experiments where the possible outcomes are equally likely. This means we can apply the probability formula.

Below are some examples and practice problems of how you can apply the probability equation to flipping a coin, rolling a die, and drawing cards from a deck.

Flipping a Coin

When flipping a coin, there are two equally likely outcomes, so the sample space (the set of all possible outcomes) is:

S= {Heads, Tails} or {H, T}

Using the probability formula, we can find the probability of the event “getting tails”. The number of favorable outcomes associated with this event is 1, and the total number of possible outcomes is 2.

P(T) = Probability coin lands on tails = Number of Favorable OutcomesTotal Number of Possible Outcomes\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = ½ or 0.5

The same goes for finding the probability of getting heads.

P(H) = Probability coin lands on heads =Number of Favorable OutcomesTotal Number of Possible Outcomes\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = ½ or 0.5

Using the probability formula, see if you can find the probability of getting heads or tails on a coin flip. Scroll to the bottom of this article to see the correct answer.

Rolling Dice

When rolling a die, there are six equally likely outcomes, so the sample space is:

S = {1, 2, 3, 4, 5, 6}

Using the probability formula, let’s find the probability of rolling a number that is less than 3. The only numbers on a die that are less than 3 are 1 and 2, so the probability of rolling a number that is less than 3 is the same thing as the probability of rolling a 1 or a 2.

P(1 or 2) = Probability of rolling a number less than 3 = Number of Favorable OutcomesTotal Number of Possible Outcomes=26\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{2}{6} = or 0.3333

Using the probability formula, see if you can find the probability of rolling an odd number. Scroll to the bottom of this article to see the correct answer

Playing Cards

Now let’s think about drawing a single card from a deck of playing cards. You are equally likely to draw any one of the cards in the deck; all possible outcomes are equally likely. There are 52 cards in the deck, so there are 52 possible outcomes in the sample space.

sample space with playing cards

Drawing 2 of Hearts

Given the sample space, what is the probability of drawing the 2 of hearts? Since there is only one 2 of hearts in the entire deck, the number of favorable outcomes is 1.

As we determined already, the total number of possible outcomes is 52.

P(2♥) =Number of Favorable OutcomesTotal Number of Possible Outcomes=152\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{1}{52} = 0.019

Drawing 2 of Any Suit

How about the probability of drawing a 2 regardless of the suit? In this case, there are four 2s in the deck, so there are 4 favorable outcomes.

P(2) =Number of Favorable OutcomesTotal Number of Possible Outcomes=452\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{4}{52} = 0.019

Drawing a Diamond

What is the probability of drawing a diamond? If you count the diamonds in the sample space, you’ll see that there are 13 cards in the deck that are diamonds.

P(♦) = Number of Favorable OutcomesTotal Number of Possible Outcomes=1352\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}}= \frac{13}{52} = ¼ = 0.25

Drawing a Diamond or Spade

What is the probability of drawing a diamond or a spade? There are 13 diamonds in the deck and 13 spades in the deck. So there are a total of 26 favorable outcomes for this event.

P(♦ or ♠ ) =Number of Favorable OutcomesTotal Number of Possible Outcomes=2652\frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{26}{52} = ½ = 0.5

Practice Problems

To test yourself, see if you can find the following probabilities and scroll down to the bottom of this article to see if you are correct.

  • What is the probability of drawing a black card?

  • What is the probability of drawing a face card (a jack, queen, or king)?

  • What is the probability of drawing a spade, heart, or diamond?

Theorems on Probability

You can apply the probability formula with greater ease and to a wider range of problems if you learn the following theorems.

The Addition Rule

The formula for the addition rule is:

P(A or B)=P(A) + P(B) - P(A and B)\text{P(A or B)} = \text{P(A) + P(B) - P(A and B)}

The addition rule says that the probability of Event A or Event B happening is equal to the probability of Event A plus the probability of Event B minus the probability of the intersection of A and B.

One way to describe the relationship between events is to use the term intersection, one of four common set operation examples.

The intersection of A and B consists of the outcomes that are included in both Event A and Event B. The intersection of two events is denoted by the word “and” or with the symbol ⋂.

An easy way to demonstrate the addition rule is to return to our deck of cards.

Deck of Cards Example

Recall that the sample space is:

sample space with playing cards

Let’s use the addition rule to find the probability of drawing a 2 or a diamond. The addition rule says:

P(2 or♦)=P(2) + P()P(2 and♦)\text{P(2 or} ♦) = \text{P(2) + P}(♦) - \text{P(2 and} ♦)

We already found P(2) and P(♦) above. P(2) was 4/52, and P(♦) was 1352\frac{13}{52}. To apply the addition rule, all we need to do is to find the intersection of the two events P(2⋂♦).

If you look at the sample space, you’ll see that there is one outcome that is both a 2 and a diamond (the 2 of diamonds), so P(2⋂♦)=152\frac{1}{52}. Now that we have P(2), P(♦), and the intersection P(2⋂♦), we can plug each probability into the addition rule formula.

P(2 or ♦)=452+1352152=1652=0.308\text{P(2 or }♦) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = 0.308

Why do we need to subtract the intersection when using the addition rule?

Well, if we think back to our probability equation, the general rule still applies. To find the probability of a 2 or a♦, we need to count all of the favorable outcomes (the outcomes that are a 2 or a ♦) and divide that by the total number of outcomes.

The problem is, if we count all of the 2s (there are four 2s in the deck), and count all of the ♦s (there are thirteen diamonds in the deck), and if we add these two numbers together (4+13), we are double-counting the 2 of diamonds! Subtracting the intersection ensures that we do not double count any of the favorable outcomes.

You might have noticed that we already calculated similar probabilities above without using the addition rule. We calculated the probability of rolling a 1 or 2, P(1 or 2), and we calculated the probability of drawing a diamond or a spade, P(♦ or ♠). In both of these cases, the intersection of the two events was equal to zero.

When rolling a die, there are no outcomes that involve rolling a 1 and a 2. Similarly, there is no way to draw a card from the deck that is both a diamond and a spade. Because the intersection is empty, we didn’t have to worry about double counting any outcomes.

P(1 or 2)=P(1) + (P(2) + P(1 and 2)=P(1) + P(2)+0\text{P(1 or }2) = \text{P(1) + (P(2) + P(1 and 2)} = \text{P(1) + P(2)} + 0

Practice Problems

See if you can use the addition rule to calculate the following probabilities. Scroll down to the bottom of this article to see if you are correct.

What is the probability of drawing a king or a red card from the deck? Hint: you’re looking for P(King or Red).

What is the probability of drawing a red card or a spade?

The Complement Rule

The complement of an event A is the event that A does not occur. Let’s say that we are rolling a die again, and we are looking at the event of “rolling a 2.” The complement of this event is “not rolling a 2.” In other words, the complement of rolling a 2 is the event of rolling a 1, 3, 4, 5, or 6. Complements are often denoted with the symbol ‘ or c. So the complement of A is A’ or AcA^c.

The complement rule says the probability of an event A and the probability of its complement event A’ will sum to 1.

P(A) + P(A’)=1\text{P(A) + P(A’)} = 1

We can check this with our die. The probability of rolling a 2 plus the probability of not rolling a 2 equals:

P(2) + P(2’) = P(2) + P(1, 3, 4, 5, 6) = 16+56\frac{1}{6} + \frac{5}{6} = 1

Intuitively, this should make sense. The complement of an event contains all of the outcomes that are not in the original event. Therefore, the probability of P(A) + P(A’) is really the probability of selecting an outcome from the entire sample space. It is the probability of rolling any one of the six numbers on the die. The chance of doing that is 1 or certainty.

The Conditional Rule

The conditional rule can be applied when you want to find the probability of some event occurring conditional (or given that) another event has also occurred. The notation for a conditional probability is P(A|B). This is the probability that event A occurs, given that B has occurred.

The conditional rule states that P(A|B) is equal to the probability of the intersection of A and B, divided by the probability of B.

P(A|B) = P(A and B)P(B)\text{P(A|B) = }\frac{P(\text{A and B)}}{P(B)}

Similarly, if we are looking for the probability of B given A, the conditional rule would look like this. Notice that the numerator is the same, but the denominator of the equation is P(A) instead of P(B).

P(B|A) = P(A and B)P(A)\text{P(B|A) = }\frac{P(\text{A and B)}}{P(A)}

Cards Example

Back to our cards. What is the probability of getting an ace, given that you have drawn a club? This is P(Ace|♣).

P(Ace|♣)=P(Ace and ♣)P(♣)=1521352=113=0.077\text{P(Ace|♣)}=\frac{\text{P(Ace and ♣)}}{\text{P(♣)}}=\frac{\frac{1}{52}}{\frac{13}{52}}=\frac{1}{13}= 0.077

If we take a look back at our sample space, we can see that the event of “Ace and ♣” only has one favorable outcome (the ace of clubs, A♣). Therefore, the probability of the intersection, P(Ace and ♣), is 152\frac{1}{52}. The probability P(♣) = 1352\frac{13}{52}, and the conditional probability P(Ace|♣) is then 152\frac{1}{52} divided by 1352\frac{13}{52} or 113\frac{1}{13}.

sample space with playing cards

Another way of thinking about this is as follows. If you know you drew a club, the sample space, in effect, has shrunk from 52 cards to 13. You know you didn’t select any of the other suits. There are now thirteen possible cards you drew instead of the original 52. Of these thirteen cards, there is only one favorable outcome, the Ace. Hence, P(Ace|♣) is 113\frac{1}{13}.

Use the conditional rule to see if you can find the probability of drawing a club given that you have drawn an ace, P(♣|Ace). Careful! This is not the same thing as P(Ace|♣). Scroll down to the bottom of this article to check your answer.

The Multiplication Rule

The multiplication rule is a rearrangement of the conditional rule. The rule says that the probability of the intersection of A and B, P(A and B), is equal to the conditional probability of A given B, P(A|B), multiplied by the probability of B, P(B). This is just a rearrangement of the conditional rule for P(A|B).

P(A and B)=P(A|B) x P(B)\text{P(A and B)} = \text{P(A|B) x P(B)}

Because P(B|A) = P(A and B)P(A)\text{P(B|A) = }\frac{P(\text{A and B)}}{P(A)}, we can also write the multiplication rule as:

P(A and B)=P(B|A) x P(A)\text{P(A and B)} = \text{P(B|A) x P(A)}

You can also view more on many of these essential rules below.

Types of Probability

The last thing you need to know to get a basic grasp of probability is that there are different approaches to studying probabilities. When we were applying the probability formula, we were actually using theoretical or classical probability. There are times, however, when the sample space or the likelihood of outcomes is unknown. If this is the case, we can approach probability a bit differently.

Theoretical Probability

Theoretical (or classical) probability deals with experiments with multiple possible outcomes that are all equally likely. Theoretical probability can be applied to a wide range of problems. Still, it can not be used as general probability theory because it cannot be applied in cases where we lack sufficient information about the sample space and the likelihood of outcomes. It cannot be used in cases where the outcomes are not all equally likely to occur.

Frequency Interpretation of Probability

The frequency (or empirical) interpretation of probability uses actual trials and observations to estimate probabilities. In experimental probability, a person starts with no prior beliefs about the likelihood of outcomes. Rather, to estimate probabilities, they repeat experiments over and over again, assigning probabilities to events based on the relative frequencies with which they observe particular outcomes.

As a simplified example, say a person shoots one hundred free throws, and they make 75. In this case, a frequentist would estimate that the probability of that person making a free throw is 75/100 or 0.75. The more trials that are run, the better the estimates are thought to be.

Bayesians Interpretation of Probability

Bayesians (or subjective) interpretations of probability involve individual beliefs about probability. From the Bayesian perspective, probability is the reasonable expectation that a person has about the likelihood of an event.

This may sound like an entirely unscientific approach to probability. It’s essentially saying probabilities are whatever people believe them to be. However, Bayesians argue that subjective beliefs about probability can be put to the test and that if people build their beliefs rationally, subjective probability falls in line with the basic rules of probability and can be updated as new information and evidence about events emerges.

Solutions to Exercise Problems

Flipping a Coin

Probability of getting heads or tails on a coin flip:

= P(H or T)=Number of Favorable OutcomesTotal Number of Possible Outcomes=22\text{P(H or T)} = \frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}}= \frac{2}{2} = 1

Rolling a Die

Probability of rolling an odd number:

= P(ODD)=Number of Favorable OutcomesTotal Number of Possible Outcomes=36\text{P(ODD)} = \frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}}= \frac{3}{6}= 0.5

Drawing a Card

Problem 1

Probability of drawing a black card:

= P(Black)=Number of Favorable OutcomesTotal Number of Possible Outcomes=2652\text{P(Black)}= \frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{26}{52} = 0.5

Problem 2

Probability of drawing a face card (a jack, queen, or king):

= P(Face Card)=Number of Favorable OutcomesTotal Number of Possible Outcomes=1252\text{P(Face Card)}= \frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{12}{52} = 0.231

Problem 3

Probability of drawing a spade, heart, or diamond :

= P(♠ or ♥ or ♦)=Number of Favorable OutcomesTotal Number of Possible Outcomes=3952\text{P(♠ or ♥ or ♦)}= \frac{\text{Number of Favorable Outcomes}}{\text{Total Number of Possible Outcomes}} = \frac{39}{52} = ¾ =0.75

Applying the Addition Rule to Drawing a Card

Problem 1

Probability of drawing a king or a red card:

=P(King or Red)=\text{P(King or Red)}

=P(King)+P(Red)P(KingRed)=\text{P(King)} + \text{P(Red)} - \text{P(King} ⋂ \text{Red)}

=452+2652252=\frac{4}{52} + \frac{26}{52} - \frac{2}{52}

=2852=\frac{28}{52}

= 0.538

Problem 2

Probability of drawing a red card or a spade:

=P(Red or )=\text{P(Red or }♠)

=P(Red) + P()P(Red)= \text{P(Red) + P}(♠) - \text{P(Red} ⋂ ♠)

=2652+13520= \frac{26}{52} + \frac{13}{52} - 0

=3952= \frac{39}{52}

Notice that the probability of the intersection P(Red ⋂ ♠) is equal to 0 here. This is because there are no red cards that are also ♠s. It is impossible to draw a red spade!

Applying the Conditional Rule to Drawing a Card

P(Ace|♣)=P(Ace and ♣)P(♣)=152452=14=0.25\text{P(Ace|♣)}=\frac{\text{P(Ace and ♣)}}{\text{P(♣)}}=\frac{\frac{1}{52}}{\frac{4}{52}}=\frac{1}{4}= 0.25

Explore Outlier's Award-Winning For-Credit Courses

Outlier (from the co-founder of MasterClass) has brought together some of the world's best instructors, game designers, and filmmakers to create the future of online college.

Check out these related courses:

Intro to Statistics

Intro to Statistics

How data describes our world.

Explore course
Intro to Microeconomics

Intro to Microeconomics

Why small choices have big impact.

Explore course
Intro to Macroeconomics

Intro to Macroeconomics

How money moves our world.

Explore course
Intro to Psychology

Intro to Psychology

The science of the mind.

Explore course

Share