Sub topic 10
Shifting and Scaling a Variable
Assume you know how to calculate a mean and standard deviation and how to work with linear expressions. In this chapter, \(X\) represents a random variable, such as a test score or waiting time. We will study what happens when \(X\) is changed by adding a constant or multiplying by a constant.
The transformation rule
Suppose
\[ Y=aX+b. \]
Here, \(b\) shifts every value, and \(a\) scales every value.
If \(X\) has mean \(\mu\), standard deviation \(\sigma\), and variance \(\sigma^2\), then:
\[ \operatorname{mean}(Y)=a\mu+b \]
\[ \operatorname{SD}(Y)=|a|\sigma \]
\[ \operatorname{Var}(Y)=a^2\sigma^2. \]
The absolute value in the standard deviation formula matters. Standard deviation measures distance, so it cannot be negative.
Adding a constant: shifting
If \(Y=X+b\), every value increases by \(b\). The entire distribution moves right when \(b>0\) and left when \(b<0\).
The mean changes, but the spread does not:
\[ \operatorname{mean}(Y)=\mu+b \]
\[ \operatorname{SD}(Y)=\sigma. \]
For example, if every GRE score receives a 5-point bonus, the mean rises by 5 points. The standard deviation stays the same because the distances between scores have not changed.
Multiplying by a constant: scaling
If \(Y=aX\), every distance from the mean is multiplied by \(|a|\):
\[ \operatorname{mean}(Y)=a\mu \]
\[ \operatorname{SD}(Y)=|a|\sigma. \]
If \(a>1\), the distribution spreads out. If \(0<a<1\), it becomes narrower. If \(a<0\), the distribution is also reflected across zero, but its standard deviation remains positive.
For example, let \(X\) have mean 50 and standard deviation 8. Define
\[ Y=2X+10. \]
Then
\[ \operatorname{mean}(Y)=2(50)+10=110 \]
and
\[ \operatorname{SD}(Y)=|2|(8)=16. \]
The added 10 affects only the mean. The multiplier 2 affects both the mean and the standard deviation.
mean_x = 50
sd_x = 8
# Y = 2X + 10
mean_y = 2 * mean_x + 10
sd_y = abs(2) * sd_x
print(mean_y, sd_y) # 110 16Why z-scores are unchanged
A z-score measures how many standard deviations a value lies from its mean:
\[ z=\frac{x-\mu}{\sigma}. \]
If \(Y=aX+b\) with \(a>0\), then
\[ zY=\frac{(ax+b)-(a\mu+b)}{a\sigma} =\frac{a(x-\mu)}{a\sigma} =zX. \]
Thus, shifting and positively scaling a distribution do not change relative positions. A value at the 90th percentile remains at the 90th percentile.
If \(a<0\), the order reverses. A high value becomes a low value, so the z-score changes sign:
\[ zY=-zX. \]
The percentile also reverses around the center. For a continuous symmetric distribution, a value at the 90th percentile becomes the corresponding value near the 10th percentile.
GRE problem-solving checklist
- Rewrite the transformation as \(Y=aX+b\).
- Apply \(a\) and \(b\) to the mean: \(a\mu+b\).
- Apply only \(|a|\) to the standard deviation.
- For variance, use \(a^2\sigma^2\).
- Check whether a negative multiplier reverses rankings.
Exercise
A random variable X has mean 40 and standard deviation 6. Let Y = -3X + 7. What are the mean and standard deviation of Y?
Show answer
The mean is -3(40) + 7 = -113. The standard deviation is |-3|(6) = 18.