# Relative Frequency – Definition and Examples

**Relative frequency is the probability of an event happening.**

Relative frequency is calculated as the number of times an event occurs divided by all possible outcomes. It can be based on observed results in a sample or theoretical outcomes.

Statistics and probability use relative frequency extensively. It is also vital in fields such as biology and engineering, which employ probability and statistics to learn about the world and test medical treatments and new technology.

Before moving forward with this topic, make sure to review statistical frequency and frequency tables.

This section covers:

**What is a Relative Frequency?****How to Find a Relative Frequency****Relative Frequency Definition****Relative Frequency Example**

## What Is a Relative Frequency?

Relative frequency is the probability that an event occurs.

Recall that *frequency* is the absolute number of times that an event occurs in a sample. Frequency is also the theoretical number of ways an event can occur.

For example, suppose a sample found that, in a survey, $10$ people said they had a pet dog. The frequency of the event “having a pet dog” is $10$.

But is $10$ a lot of people or a few?

Unfortunately, however, this frequency statistic doesn’t mean much if the population sampled isn’t known. This is why relative frequency is more helpful. It is the frequency *relative* to a given population.

## How to Find a Relative Frequency

Finding the relative frequency is equal to the frequency of an event divided by the population. It thus requires first finding the frequency and the population.

The frequency and the population can be based on two different things. They could be based on either a sample or based on known possible outcomes.

For example, asking $100$ people who enter a store whether they plan to buy milk or not is a sample. The population of this sample is therefore $100$.

Alternatively, the frequency can be based on theoretical outcomes. An example of this is Punnet squares in genetics.

This relative frequency is always expressed as a probability. Recall that a probability of $0$ means and event is impossible and $1$ means the event is certain.

### Relative Frequency Definition

Relative frequency is the probability of an event occurring based on all possible events.

Mathematically, the relative frequency is the number of favorable outcomes divided by all possible outcomes. It can be based on observed favorable and possible outcomes such as a survey. It can also be based on theoretical results, as in genetics.

## Relative Frequency Example

Suppose Beau flips a coin. What is the relative frequency of him seeing heads?

There are two possible outcomes, and each is equally likely. Therefore, the number of favorable outcomes is $1$, and the total number of outcomes is $2$. Therefore, the theoretical probability is $\frac{1}{2}$.

Alternatively, Beau could flip the coin $6$ times. Suppose he sees heads $2$ times and tails $4$ times. Then the relative frequency in his sample is $\frac{2}{6}$ or $\frac{1}{3}$.

In this case, the observed relative frequency does not match the theoretical relative frequency. A larger sample would likely have an observed relative frequency closer to the theoretical one. This also illustrates why drawing conclusions from a sample works better with larger samples.

## Examples

This section covers common examples of problems involving relative frequency and their step-by-step solutions.

**Example 1**

Consider the data set $10, 14, 82, 29, 8, 41, 41, 41, 10, 4, -1, 100$.

Calculate the relative frequency of $x=10$. Then, calculate the relative frequency of $x\geqslant10$.

### Solution

It might be helpful first to order the data. That is $-1, 4, 8, 10, 10, 14, 29, 41, 41, 41, 82, 100$. Note that there are $12$ events in the set.

Now, how many outcomes match the first event, $x=10$? There are two instances of $10$ in the data set. Therefore, the relative frequency of $x=10$ is $\frac{2}{12}=\frac{1}{6}$. That is, the probability that a randomly selected value from this data set is $10$ is $1$ in $6$.

Now, how many outcomes are greater than or equal to $10$? In this case, the values $10, 10, 14, 29, 41, 41, 41, 82, and 100$ all match. Therefore, there are $9$ such events out of $12$. Thus, the relative frequency is $\frac{9}{12}=\frac{3}{4}$.

**Example 2**

A person with blood type AB carries one allele for A and one allele for B. A person with blood type O has two O alleles. O is always recessive, so a person only has that blood type if both alleles are O. Otherwise, an AO person is type A, and a BO person is type B.

What is the probability of a child with parents who are AB and O having type AB blood? Type A? Type B? Type O?

### Solution

The easiest way to do this problem is to first create a Punnet square with all possible outcomes.

As shown in the square, there are four possible outcomes. The AB parent could give an A while the O parent gives the first O. Likewise, the AB parent could give an A while the O parent gives the second O.

Similarly, the AB parent could give a B while the O parent gives the first O or the second O.

The result is that in the first two scenarios, the offspring has blood type AO. In the second, the child has a BO blood type. These result in A and B blood, respectively.

Therefore, there are $2$ ways of out $4$ that the child has A and $2$ ways out of $4$ that the child has B. Therefore, the relative frequency of both A and B is $\frac{1}{2}$.

There are no ways for the child to have O or AB blood. Therefore, the probability of each of those events is $0$.

This example illustrates an important point. The relative frequency of all events must add up to $1$. In this example, $\frac{1}{2} + \frac{1}{2} + 0 + 0 = 1$.

**Example 3**

A group of students participates in sports. There are $90$ students total. $35$ play football, $67$ play soccer, and $15$ play neither.

Calculate the relative frequency of a student playing at least one sport and the relative frequency of a student playing both football and soccer.

### Solution

It may initially seem like the best way to calculate the relative frequency of a student playing at least one sport is first to add together the number of students who play football and then the number of students who play soccer.

But, in this case, some students play both. They would be double-counted using this method!

The better method is to recall that the probability of all events is $1$. Since students either play no sports or play at least one sport, the relative frequency (probability) of a student playing at least one sport is equal to $1-$(probability of playing no sports). In this case, that is $1-\frac{15}{90}=1-\frac{1}{6}=\frac{5}{6}$.

Next, to find the number who play both football and soccer, find the difference between the total number of football players plus the total number of soccer players minus the number of students who play at least one sport.

$35+67=102$. That means there are $102$ total teammates. If $90-15=75$ students play at least one sport, then $102-75=27$ people play both sports.

The relative frequency of playing both sports then is $\frac{27}{90}=\frac{3}{10}$.

**Example 4**

A group of people is about whether they have a laptop, a tablet, or both. In the sample, $10$ people had a tablet but no laptop and $65$ had a laptop but no tablet. Another $20$ people had both, and $5$ had neither.

Ali says that the probability that a person had both a laptop and a tablet is $\frac{20}{85}$. What is his mistake? What is the actual probability?

### Solution

The numerator of Ali’s fraction is indeed the number of people who had both a laptop and a tablet. The denominator, however, is the number of people who had a laptop (whether they also had a tablet or not).

His calculation is the number of people with a laptop and tablet, given that the person had a laptop. This is not the same as the general probability that a person has both. This statistic is actually called the marginal frequency. It is the probability of an event given that another event occurs. It is the probability within a subset of an event.

The relative frequency should instead be $20$ divided by the total number of people sampled. Since everyone either had a laptop, a tablet, both, or neither, the total number of people samples is $65+10+20+5=100$.

Thus, the actual relative frequency is $\frac{20}{100}={1}{5}$.

**Example 5**

The table shows the number of first-year students at a local community college who are taking a math class, a history class, both, or neither. Use the table to calculate the relative frequency of a first-year student taking math.

### Solution

The relative frequency of a first-year student taking math is equal to the number of first-year students taking math divided by the total number of first-year students.

Since each student who takes math either takes history or doesn’t, the total number of first-year students taking math is equal to $800+300=1100$.

Likewise, each first-year student either takes math, history, both, or neither. Therefore, the total number of first-year students is equal to $800+300+200+500=1800$.

Thus, the relative frequency of a first-year student taking math is $\frac{1100}{1800}=\frac{11}{18}$.

### Practice Problems

- A bag contains $3$ green balls, $4$ red balls, and $7$ yellow balls. What is the theoretical relative frequency of randomly selecting a green ball?
- A person pulls a ball out of a bag 10 times. She gets a green ball $9$ times and a yellow ball once. What is the experimental relative frequency of getting a green ball?
- What is the theoretical probability of randomly rolling two dice and each displaying one?
- A game board spinner has eight colored slices on it. Each color has an equal amount of space. There are two red slices, two green, and four blue. What is the relative frequency of not spinning blue?
- What is the relative frequency of getting all heads when flipping three coins?

### Answer Key

- $\frac{3}{14}$
- $\frac{9}{10}$
- There are $36$ different combinations, but only one has two ones. Thus, the relative frequency is $\frac{1}{36}$.
- $\frac{1}{2}$
- $\frac{1}{8}$