StudySmarter - The all-in-one study app.
4.8 • +11k Ratings
More than 3 Million Downloads
Free
Americas
Europe
Random variables are everywhere! Think of a groceries store. Whenever a client comes in, you cannot know in advance how much money they will spend on groceries. The manager of the store, however, needs to have a picture in mind of how much an average client spends in his store.
To address this issue, the money spent by a single client is treated as a random variable. However, big stores typically have hundreds or thousands of clients a day! It might also be possible that the whole store goes on sale. What happens to random variables under these circumstances? They are transformed. Here you will learn about transforming random variables and what scenarios can be modeled by these transformations.
Let's use the groceries store example to talk about the transformation of random variables. Rather than being the manager, you will now be a customer.
Suppose you go to the groceries store once a week. You usually buy the same stuff, with only slight variations, so you know more or less how much will be spent on your groceries. How can you give an estimate of how much will you spend on groceries in the month?
Now suppose the entire store goes on a \( 10 \% \) sale, but you will limit yourself to buying the usual stuff. How can you give an estimate of how much will you spend on groceries while the store is on sale?
The above scenarios describe two types of transformations that can be done to random variables. In your monthly groceries shopping example, you are adding random variables. In the store-on-sale example, you are multiplying a random variable by a constant.
Transforming random variables refers to doing operations on random variables and analyzing how these operations affect the possible outcomes.
Multiplication and addition are not the only transformations available, as typically, you can:
Since there are numbers and operations involved, it is assumed that you are working with quantitative data.
The addition/subtraction of two or more random variables is usually referred to as combining random variables.
Keep reading this article to see how to address each scenario!
You have seen that there are four types of transformations that can be done to random variables. Here you will see how data is transformed accordingly.
You can use the groceries store example to have an idea of how to transform random variables. Suppose you spent \( \$ 14.25\) on groceries in one go, so the value of the random variable has been now determined. This value will be used to illustrate each case of the transformation of random variables.
Adding a constant to a random variable is pretty straightforward. You just need to add that value to the value of the random variable! If you are working with a data set, then the variable is added to each value of the data set. If \( X\) is a random variable and \(k\) is a constant, this is just \[ X+k.\]
What if just before paying for your groceries, you get a phone call from your friend who is craving a chocolate bar?
You decide to pick one for \( \$ 1.25\) so you anticipate that the sales total will be \( \$ 1.25\) more than expected. Suppose \(X\) is the random variable that represents how much will you spend on groceries under normal circumstances, then you need to find
\[X+1.25.\]
In this hypothetical scenario, you previously determined that \(X=14.25\), so if you now include the chocolate bar this would be
\[ \begin{align} X+1.25 &= 14.25+1.25 \\ &= 15.50 \end{align}\]
The idea of adding a constant to a random variable in this scenario is that, no matter how much you spend on groceries, in the end, you will have to add \( \$1.25\) to the total to satisfy your friend's cravings!
Like with the addition of a constant to a random variable, to subtract a constant from a random variable you just need to subtract the constant from the value of the random variable, that is
\[X - k.\]
Data sets are worked similarly, so you have to subtract the constant from every value of the data set.
What if, just before paying for your groceries, you remember that you have a coupon for \(2\) dollars off in your next buy?
Suppose \(X\) is the random variable that represents how much will you spend on groceries under normal circumstances, then you need to find
\[X-2.\]
In this hypothetical scenario, you previously determined that \(X=14.25\), so if you now include the discount coupon this would be
\[ \begin{align} X-2 &= 14.25-2 \\ &= 12.25 \end{align}\]
This time, you will need to subtract \( \$ 2\) from the total. Thank you, coupon!
This time rather than adding or subtracting from a random variable, the constant multiplies the value of the random variable, so
\[kX.\]
For a data set, you multiply each value of the data set by the same constant \(k\).
What if just before paying for your groceries, you remember that you have a coupon for \(10 \%\) off in your next buy?
In this example, you have a \(10 \%\) off coupon, so you end up paying only \(90 \%\) of the price. Let \(X\) be the random variable that represents how much will you spend on groceries under normal circumstances, then you need to find
\[0.9X.\]
In this hypothetical scenario, you previously determined that \(X=14.25\), so if you now include the discount coupon this would be
\[ \begin{align} 0.9X &= 0.9(14.25) \\ &= 12.83 \end{align}\]
This coupon discounts by a percentage, so you will have to multiply the total by the percentage written in decimal form.
Sometimes, you will need to operate with more than one random variable, essentially you will have a combination of random variables! As usual, it is assumed that both random variables represent quantitative data.
For this one, you have to be careful. The notation can be deceiving because, even if you are using the plus sign, you are dealing with random variables and not numbers. This means that the usual algebraic conventions, like saying that \(X+X=2X\) do not always apply! The plus sign is used as a means of notation.
What if you have to consider your next buy at the groceries store? You cannot know how much are you going to spend next week, but you know that you will have to add both values. Let \(Y\) be the random variable that represents how much will you pay next week, then
\[ X+Y\]
will represent the money spent in two weeks.
The notation \(X+Y\) is used to represent combined random variables, but to work with actual numbers you have to use values like the mean and the standard deviation, as you will see below.
You can have a clearer grasp on the transformation of random variables by taking a look at how the mean and the standard deviation are affected.
Whenever you do a transformation of a random variable, you are essentially transforming data. Because of this transformation, you can expect that the mean is transformed as well!
Adding a constant to a random variable essentially translates to adding the same constant to the mean. Likewise, if you subtract a constant from a random variable, then the mean will be modified by subtracting the same constant from the original mean.
For the multiplication of a random variable by a constant, you can see the operation as a rescaling of the data, so the mean will be rescaled by the same factor.
Let \(X\) be a random variable and \(k\) a constant. Then the mean \(\mu\) of the random variable has the following properties:
\[ \mu (X+k) = \mu (X) + k,\]
\[ \mu (X-k) = \mu (X) - k,\]
and
\[ \mu (kX) = k \cdot \mu(X).\]
And what if you need to combine random variables?
If \(X\) and \(Y\) are two independent random variables, then
\[ \mu (X+Y) = \mu(X)+\mu(Y).\]
The above expression gives you a method for operating combined random variables by adding their means.
Variance and standard deviation are ways of measuring how spread the possible values of a random variable are. If the random variable is modified, you can expect these measures of spread to be modified as well.
Since adding (or subtracting) a constant to a random variable essentially translates its possible values by the same amount, then the spread will be the same! It is like if you moved a bunch of things together, their relative position will stay the same, so the measures of spread will not be modified.
If you were to multiply the random variable by a constant \(k\), then its values will be rescaled. You can expect the spread of the data to be modified as well, so the data will spread more if \(k>1\), or less if \(k<1\).
Let \(X\) be a random variable and \(k\) a constant. Then the standard deviation \(\sigma\) of the random variable has the following properties:
\[ \sigma(X+k) = \sigma(X),\]
\[ \sigma(X-k) = \sigma(X),\]
and
\[ \sigma(kX) = k \, \sigma(X).\]
Since the variance is the square of the standard deviation, you can also conclude that
\[ \sigma^2(X+k) = \sigma^2(X),\]
\[ \sigma^2(X-k) = \sigma^2(X),\]
and
\[ \sigma^2(kX) = k^2 \, \sigma^2 (X).\]
Here is something to spice things up. When combining random variables, the standard deviation is not as straightforward as the mean. What is straightforward is the variance, that is:
\[ \sigma^2(X+Y) = \sigma^2(X)+\sigma^2(Y).\]
This, of course, is assuming that the variables are independent.
To find the standard deviation of the sum of two random variables, first add the variances, and then take the square root.
If \(X\) and \(Y\) are two independent random variables, then:
\[ \sigma(X+Y) = \sqrt{ \sigma^2(X)+\sigma^2(Y)}\]
When working with higher-level statistics, you might come across more elaborated transformations involving several random variables. These transformations will not only involve sums and multiplications but will involve functions and derivatives as well!
These types of transformations are usually analyzed using methods from calculus and more advanced statistics, so this will remain out of the scope of this article.
Typically, you will be asked to find means and standard deviations when transforming random variables. Here are some examples.
The average height of the members of the theater club is \( 67 \) inches.
Solution:
Statistics are often used in stores for administrative purposes.
The average customer of a store spends \( \$ 20\) on groceries in each visit, with a standard deviation of \( \$ 7.25\).
Solution:
Each client is different! Do not make the mistake of using the same label for everyone.
\[ \mu (X+k) = \mu (X) + k,\]
\[ \mu (X-k) = \mu (X) - k,\]
\[ \mu (kX) = k \cdot \mu(X),\]and\[ \mu (X+Y) = \mu(X) + \mu(Y).\]
Let \(X\) be a random variable and \(k\) a constant. Then the standard deviation \(\sigma\) of the random variable has the following properties:
\[ \sigma(X+k) = \sigma(X),\]
\[ \sigma(X-k) = \sigma(X),\]
and
\[ \sigma(kX) = k \, \sigma(X).\]
The variance of two independent random variables is given instead by\[ \sigma^2(X+Y) = \sigma^2(X)+\sigma^2(Y),\]so the standard deviation is\[ \sigma(X+Y) = \sqrt{\sigma^2(X) + \sigma^2(Y)}.\]
Transforming random variables refers to doing operations on random variables and analyzing how these operations affect the possible outcomes.
The usual transformation of random variables are the following:
Transforming random variables also transform the mean and the standard deviation. The formulas all depend on what type of transformation you are doing.
An example of transformation of random variables is adding a constant to a random variable. This can happen whenever you need to consider adding a value to a whole data set, for example, adding tips to the bills in a restaurant.
Random variables are transformed in order to take more factors into account when studying a data set. For example, the revenue obtained from certain sales can be transformed by taking discounts into account.
of the users don't pass the Transforming Random Variables quiz! Will you pass the quiz?
Start QuizBe perfectly prepared on time with an individual plan.
Test your knowledge with gamified quizzes.
Create and find flashcards in record time.
Create beautiful notes faster than ever before.
Have all your study materials in one place.
Upload unlimited documents and save them online.
Identify your study strength and weaknesses.
Set individual study goals and earn points reaching them.
Stop procrastinating with our study reminders.
Earn points, unlock badges and level up while studying.
Create flashcards in notes completely automatically.
Create the most beautiful study materials using our templates.
Sign up to highlight and take notes. It’s 100% free.
Over 10 million students from across the world are already learning smarter.
Get Started for Free