<< Hide Menu
Kanya Shah
Jed Quiaoit
Kanya Shah
Jed Quiaoit
It's very useful to transform a random variable by adding or subtracting a constant or multiplying or dividing by a constant. This can help to simplify calculations or to make the results easier to interpret. 🪄
This section is about transforming random variables by adding/subtracting or multiplying/dividing by a constant. At the end of this section, you'll know how to combine random variables to calculate and interpret the mean and standard deviation.
When you transform a random variable by adding or subtracting a constant, the mean and standard deviation of the transformed variable are also shifted by the same constant. For example, if you have a random variable, X, with mean E(X) and standard deviation SD(X), and you transform it to a new random variable, Y, by adding a constant, c, to each value of X, then the mean and standard deviation of Y are given by: ➕➖
E(Y) = E(X) + c
SD(Y) = SD(X)
Similarly, if you transform a random variable by multiplying or dividing it by a constant, the mean and standard deviation of the transformed variable are also multiplied or divided by the same constant. For example, if you have a random variable, X, with mean E(X) and standard deviation SD(X), and you transform it to a new random variable, Y, by multiplying each value of X by a constant, c, then the mean and standard deviation of Y are given by: ✖️➗
E(Y) = E(X) * c
SD(Y) = SD(X) * c
Y = a + BX
When you transform a random variable by adding or subtracting a constant, it affects the measures of center and location, but it does not affect the variability or the shape of the distribution.
When you transform a random variable by multiplying or dividing it by a constant, it affects the measures of center, location, and variability, but it does not change the shape of the distribution.
It is also possible to combine two or more random variables to create a new random variable. To calculate the mean and standard deviation of the combined random variable, you would need to use the formulas for the expected value and standard deviation of a linear combination of random variables.
For example, if you have two random variables, X and Y, with means E(X) and E(Y) and standard deviations SD(X) and SD(Y), respectively, and you want to create a new random variable, Z, by adding them together, then the mean of Z is given by:
E(Z) = E(X) + E(Y)
Sum: For any two random variables X and Y, if S = X + Y, the mean of S is mean S = mean X + mean Y. Put simply, the mean of the sum of two random variables is equal to the sum of their means.
Difference: For any two random variables X and Y, if D = X - Y, the mean of D is meanD = meanX - meanY. The mean of the difference of two random variables is equal to the difference of their means. The order of subtraction is important.
Independent Random Variables: If knowing the value of X does not help us predict the value of X, then X and Y are independent random variables.
For example, if you have two random variables, X and Y, with means E(X) and E(Y) and standard deviations SD(X) and SD(Y), respectively, and you want to create a new random variable, Z, by adding them together, then the standard deviation of Z is given by:
SD(Z) = √(SD(X)^2 + SD(Y)^2)
Sum: For any two independent random variables X and Y, if S = X + Y, the variance of S is SD^2= (X+Y)^2 . To find the standard deviation, take the square root of the variance formula: SD = sqrt(SDX^2 + SDY^2). Standard deviations do not add; use the formula or your calculator.
Difference: For any two independent random variables X and Y, if D = X - Y, the variance of D is D^2= (X-Y)^2=x2+Y2. To find the standard deviation, take the square root of the variance formula: D=sqrt(x2+Y2). Notice that you are NOT subtracting the variances (or the standard deviation in the latter formula).
🎥 Watch: AP Stats - Combining Random Variables
Try this one on your own! 😉
Two random variables, X and Y, represent the number of hours a student spends studying for a math test and the number of hours a student spends studying for a science test, respectively. The probability distributions of X and Y are shown in the tables below:
(a) Calculate the mean or expected value of Z.
(b) Calculate the standard deviation of Z.
(d) Interpret the results in the context of the problem.
© 2024 Fiveable Inc. All rights reserved.