3.5 Transforming and Combining Random Variables
Section Overview
- Figure 3.5.1
- Example 3.5.1
- Example 3.5.2
- Gallery 3.5.1 – Prob. Dist. of Rand. Vars.
- Example 3.5.3
- Pop Quiz 3.5.1
Transforming Random Variables
In Chapter 1.4, we discussed how the measures of data – shape, center, location, and spread – could be changed when adding by a constant , multiplying by a constant , or both. Similar principles apply when we attempt to transform random variables. The outcomes for the shape, center, and spread of the probability distribution can be seen in Figure 3.5.1.
Combining Random Variables
A concept that was not covered when dealing with data was combining multiple data sets. It is possible, however, to combine random variables, namely through addition and subtraction. The mean is changed rather predictably when adding or subtracting random variables, but to find the variance of two or more random variables, we must make sure that our random variables are independent. In Chapter 3.2 we defined independence as the probability of an event occurring not depending on the probability of another event occurring.
In this section, we define independence as the values of one random variable not being affected by the values of another random variable. This also applies to Normal random variables. We can again refer to Figure 3.5.1 for how the shape, center, and spread are changed when combining random variables.
If these rules aren’t clear at first, the following example problems will hopefully clear things up:
Figure 3.5.1
| Random Variable | Shape | Center | Spread |
|---|---|---|---|
| (random variable in probability distribution) | shape of prob. distribution | ||
| same as x | same as x | ||
| same as x | |||
| same as x | |||
| formed from x + y | (if x + y independent) | ||
| formed from x + y | (if x + y independent) |
Example 3.5.1
You work for Day Tours and More, a company that recruits, employs, and trains individuals native to popular vacation spots to provide day-long tours to small groups. The tours include four local attractions, three meals, and lodging for the night at the native’s home. You offer reservations for up to 5 people at a time, and the number of people per reservation on a randomly selected day has the following probability distribution:
| # of People | 1 | 2 | 3 | 4 | 5 |
|---|---|---|---|---|---|
| Probability | 0.05 | 0.10 | 0.25 | 0.45 | 0.15 |
a) Find the mean of the probability distribution.
b) Find the standard deviation of the probability distribution.
c) Find the mean and standard deviation of the probability distribution for the total revenue you make in a day. You make $175 for every person on the tour.
d) Find the mean and standard deviation of the probability distribution for the total profit you make in a day after all costs are accounted for. It costs you a flat $150 for every tour.
Example 3.5.1 — recorded answer
a) The mean of the probability distribution of random variable can be calculated as follows:
You will get an average of 3.55 people on any given day.
b) To find the standard deviation, we will first need to find the variance. The variance of the probability distribution can be calculated as follows:
Calculating the square root of the variance, we get:
The number of people you get will differ day-by-day by an average of about 1.0235.
c) To find the mean and standard deviation for the total revenue made per day, we multiply the probability distribution of random variable by 175. Any time we add or multiply by a constant, we are linearly transforming the probability distribution.
Multiplying by a constant means that we have . Our new random variable becomes , where random variable is the revenue.
Using Figure 3.5.1 to calculate the mean:
You will make an average of $621.25 in revenue per day.
Calculating the standard deviation, we get:
The amount of revenue you make will differ day-by-day by an average of about $179.11.
d) To find the mean and standard deviation for the total profit made per day after costs, we multiply the probability distribution of random variable by 175 and add by .
With linear transformation, our new random variable becomes , where random variable is the profit.
Using Figure 3.5.1 to calculate the mean:
You will make an average of $471.25 per day after costs.
The standard deviation remains unchanged from part (c), so .
Example 3.5.2
Your friend who lives abroad has also decided to become a tour guide for Day Tours and More. Your friend decides to allow up to 4 people on their day tours and the number of people per reservation on a randomly selected day has the following probability distribution:
| # of People | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| Probability | 0.10 | 0.25 | 0.25 | 0.40 |
a) Find the mean of the probability distribution.
b) Find the standard deviation of the probability distribution.
c) Find the mean and standard deviation for the total revenue your friend makes in a day. They make $200 for every person on the tour.
d) Find the probability that you and your friend on a given day have reservations for a combined total of 7 people.
e) Find the mean for the combined total revenue you and your friend make.
f) Find the standard deviation for the difference in revenue you and your friend make.
Example 3.5.2 — recorded answer
a) The mean of the probability distribution of random variable can be calculated as follows:
Your friend will get an average of 2.95 people on any given day.
b) To find the standard deviation, we will first need to find the variance. The variance of the probability distribution can be calculated as follows:
Calculating the square root of the variance, we get:
The number of people your friend gets will differ day-by-day by an average of about 1.0235.
c) To find the mean and standard deviation for the total revenue made per day, we multiply the probability distribution of random variable by 200. Any time we add or multiply by a constant, we are linearly transforming the probability distribution. Multiplying by a constant means that we have . Our new random variable becomes , where random variable is the revenue.
Using Figure 3.5.1 to calculate the mean, we get:
Your friend will make an average of $590.00 in revenue per day.
Calculating the standard deviation, we get:
The amount of revenue your friend makes will differ day-by-day by an average of about $179.11.
d) There are three different ways for you and your friend to get a combined total 7 people: 3 people for you and 4 for your friend, 4 people for you and 3 for your friend, and 5 people for you and 2 for your friend. The event that you get a certain number of people is independent from the event that your friend gets a certain number of people, so we multiply each pair of probabilities together and add them:
25% of the time, you and your friend on a given day will have reservations for a combined total of 7 people.
e) Using Figure 3.5.1 the mean of combined total revenue you and your friend make can be calculated as follows:
Again, remember that we can do this because the revenue you make is independent from the revenue your friend makes and vice versa.
Together, you and your friend will make a combined average total of $1211.25.
f) To find the standard deviation, we will first need to find the variance. Using Figure 3.5.1, the variance of the difference in revenue you and your friend make can be calculated as follows:
Calculating the square root of the variance, we get:
The revenue you and your friend makes will differ day-by-day by an average of about $253.30.
See Gallery 3.5.1 for the probability distributions of the various parts in the preceding two examples and the table of values on the preceding page for the preceding two examples.
Gallery 3.5.1 Example 3.5.1/3.5.2 (Probability Distributions of Random Variables)
Frame 1 of 6
The probability distribution for the number of people you reserve. Open full-size image S0287Frame 2 of 6
The probability distribution for the revenue you make. Open full-size image S0288Frame 3 of 6
The probability distribution for the profit you make. Open full-size image S0289Frame 4 of 6
The probability distribution for the number of people your friend reserves. Open full-size image S0290Frame 5 of 6
The probability distribution for the revenue your friend makes. Open full-size image S0291Frame 6 of 6
The probability distribution for the total number of people both you and your friend reserve. Open full-size image S0292
Capture provenance
Filename capture times, with no recorded timezone. Frames above follow the original gallery positions.
- · S0287 · displayed frame 1
Screenshot 2026-10-05 at 3.55.49 PM.png - · S0288 · displayed frame 2
Screenshot 2026-10-05 at 3.55.54 PM.png - · S0289 · displayed frame 3
Screenshot 2026-10-05 at 3.55.58 PM.png - · S0290 · displayed frame 4
Screenshot 2026-10-05 at 3.56.02 PM.png - · S0291 · displayed frame 5
Screenshot 2026-10-05 at 3.56.07 PM.png - · S0292 · displayed frame 6
Screenshot 2026-10-05 at 3.56.12 PM.png
| Random variable or probability | Value 1 | Value 2 | Value 3 | Value 4 | Value 5 | Value 6 | Value 7 | Value 8 | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| # People (X) | 1 | 2 | 3 | 4 | 5 | — | — | — | 3.55 | 1.02347 | 1.0475 |
| Probability | 0.05 | 0.10 | 0.25 | 0.45 | 0.15 | — | — | — | — | — | — |
| Revenue (Rₓ = 175x), where b = 175 | 175 | 350 | 525 | 700 | 875 | — | — | — | 621.25 | 179.108 | 32079.7 |
| Profit (P = −150 + 175X), where a = −150, b = 175 | 25 | 200 | 375 | 550 | 725 | — | — | — | 471.25 | 163.5 | 26718 |
| # People (Y) | 1 | 2 | 3 | 4 | — | — | — | — | 2.95 | 1.02347 | 1.0475 |
| Probability | 0.10 | 0.25 | 0.25 | 0.40 | — | — | — | — | — | — | — |
| Revenue (Rᵧ = 200y), where b = 200 | 200 | 400 | 600 | 800 | — | — | — | — | 590.00 | 179.108 | 32079.7 |
| # People (X + Y) | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 6.5 | 1.44741 | 2.095 |
| Probability | 0.0050 | 0.0225 | 0.0625 | 0.1525 | 0.2300 | 0.2500 | 0.2175 | 0.0600 | — | — | — |
| Total Revenue (175X + 200Y) | — | — | — | — | — | — | — | — | 1211.25 | 253.297 | 64159.4 |
| Difference (175X − 200Y) | — | — | — | — | — | — | — | — | 31.25 | 253.297 | 64159.4 |
Example 3.5.3
In Example 3.4.1, recall that Ulysses the Unicorn, a popular plushie sold by Cuddly Critters, follows a Normal distribution with mean of 90 grams and a standard deviation of 3 grams.
If a four-pack box that the plushies are packed in can only pack contents weighing between 350 and 375 grams, find the probability that four Ulysses plushies can be packed together.
Example 3.5.3 — recorded answer
The sum of four random variables, the weights of each Ulysses plushie, is calculated as follows:
We can also assume that the weight of one plushie is independent from the weight of another plushie, so the variance can be calculated:
Taking the square root of the standard deviation, we get:
If we want to find the probability that the four plushies’ collective weight is between 350 and 375 grams, we find the corresponding z-values for 350 and 375 grams:
Using the z-table to look up the corresponding probabilities for each z-value, and subtracting the probabilities, we get:
There is a 94.63% chance that the four Ulysses plushies can be packed together.
Pop Quiz 3.5.1
Glossary and deeper reading · 5 refreshers
These editorial refreshers supplement the reading. Definitions and examples are added guidance; original source wording and recorded answers remain in their original context.
-
Probability distribution
A probability distribution describes a random variable’s possible values and their probabilities. A discrete distribution lists probability masses, while a continuous distribution describes probabilities through areas under a density. For example, a distribution can list the probabilities of 0, 1, 2, or 3 red cards in three draws.
Read more: Probability distribution in the captured Statistics reading →
-
Variance
Variance is the square of the standard deviation. It measures spread in squared units, with the precise averaging rule depending on whether it describes a sample or a probability distribution. For example, a standard deviation of 3 centimeters corresponds to a variance of 9 square centimeters.
-
Random variable
A random variable assigns a numerical value to each outcome of a chance process. Its value is uncertain before the outcome is observed, and its distribution gives the probabilities of possible values. For example, the number of red cards in three draws is a random variable.
Read more: Random variable in the captured Statistics reading →
-
Statistical independence
Statistical independence means that learning one outcome does not change the probability distribution of another. For two events, it implies that the probability of both occurring equals the product of their probabilities. For example, independent draws with replacement keep the second draw’s color probabilities unchanged by the first.
Read more: Statistical independence in the captured Statistics reading →
-
Normal distribution
A Normal distribution is a continuous, symmetric bell-shaped distribution determined by its mean and standard deviation. Many symmetric distributions are not Normal, so symmetry by itself is insufficient. For example, a Normal model centered at 50 with standard deviation 5 places most values relatively close to 50.
Read more: Normal distribution in the captured Statistics reading →