Scaling a Standard Normal: Distribution of Y = aX + b
Statistics & ExperimentsModel answerLast updated
Derive the mean, variance, and full PDF of an affine transformation of a standard normal random variable, and prove the result is still normal.
Setting Up the Problem
Let X be a standard normal random variable: X ~ N(0, 1). You define a new random variable Y by applying an affine transformation:
Y = aX + b
where a and b are real-valued constants and a ≠ 0.
Your Tasks
- Find E[Y] and Var(Y) in terms of a and b. Show your reasoning rather than just quoting results.
- Argue that Y is itself normally distributed. Knowing its mean and variance is not sufficient — give a rigorous justification for why the shape is still Gaussian.
- Write down the PDF of Y using the change-of-variables formula for continuous random variables. Pay close attention to signs.
Constraints
- X ~ N(0, 1)
- a is a nonzero real constant (it may be negative)
- b is any real constant
Worked Example
For a = 2 and b = 5, Y = 2X + 5.
- E[Y] = 2 · E[X] + 5 = 5
- Var(Y) = 2² · Var(X) = 4 · 1 = 4
- Therefore Y ~ N(5, 4)
Your answer should produce this result as a special case.
Hints
Hint 1
Start with the definition of expectation and variance — linearity of expectation handles the mean, and think carefully about what happens to a constant shift when computing spread around the mean.
Hint 2
To prove Y is normal, matching mean and variance alone is not enough; consider using the moment generating function (MGF) of X and substituting t → at to identify the distribution of Y exactly.
Hint 3
When applying the change-of-variables formula f_Y(y) = f_X(g⁻¹(y)) · |dg⁻¹/dy|, the absolute value in the Jacobian term is load-bearing — without it, the formula breaks when a is negative.
Model answer
Easy Try it yourself first — then compare your approach, complexity and edge cases.
What a Strong Answer Covers
There are three distinct things to demonstrate here: arithmetic with expectation and variance, a structural argument for why normality is preserved, and careful application of the change-of-variables formula. Each step builds on the last.
1. Mean and Variance
Mean. Expectation is linear, so:
E[Y] = E[aX + b] = a · E[X] + b = a · 0 + b = b
Variance. Work from the definition rather than quoting the scaling rule:
Var(Y) = E[(Y − E[Y])²] = E[(aX + b − b)²] = E[a²X²] = a² · E[X²]
Since X ~ N(0, 1), we have E[X] = 0 and therefore E[X²] = Var(X) = 1. So:
Var(Y) = a², with standard deviation SD(Y) = |a|
Two points worth stating explicitly:
- The constant b shifts the center but has zero effect on spread.
- The standard deviation is |a|, not a. A negative a flips the distribution on the number line but cannot produce negative dispersion.
2. Why Y Is Still Normal
This is the step most candidates skip or hand-wave. Knowing mean b and variance a² only pins down two moments — countless other distributions share the same two values. The full shape needs to be justified.
Approach A: Moment Generating Function (MGF).
The MGF of X ~ N(0, 1) is M_X(t) = exp(t²/2). Using the MGF of a linear function of a random variable:
M_Y(t) = E[e^{t(aX + b)}] = e^{bt} · E[e^{(at)X}] = e^{bt} · M_X(at) = exp(bt + a²t²/2)
This is precisely the MGF of N(b, a²). Because this MGF exists in an open interval around zero, it uniquely identifies the distribution. Therefore Y ~ N(b, a²).
Approach B: CDF Argument. Let Φ denote the standard normal CDF.
- If a > 0: P(Y ≤ y) = P(X ≤ (y − b)/a) = Φ((y − b)/a)
- If a < 0: dividing by a flips the inequality, giving P(Y ≤ y) = 1 − Φ((y − b)/a)
Differentiating either case yields a density of the normal form — which is derived explicitly below. Both approaches reach the same conclusion; the MGF route is more direct when you want to avoid handling the sign of a separately.
3. PDF via Change of Variables
Step 1: Verify the conditions. The map g(x) = ax + b is strictly monotone (a ≠ 0), smooth, and invertible everywhere on ℝ. The one-to-one change-of-variables formula applies:
f_Y(y) = f_X(g⁻¹(y)) · |d/dy g⁻¹(y)|
Step 2: Invert and differentiate.
g⁻¹(y) = (y − b)/a → dg⁻¹/dy = 1/a → |dg⁻¹/dy| = 1/|a|
Step 3: Substitute into the standard normal density f_X(x) = (1/√(2π)) exp(−x²/2):
f_Y(y) = (1/√(2π)) · exp(−((y − b)/a)² / 2) · (1/|a|)
Rearranging:
f_Y(y) = 1/(|a|√(2π)) · exp(−(y − b)² / (2a²)), for y ∈ ℝ
This matches the N(μ, σ²) template with μ = b and σ = |a|.
Sanity check with the given example. For a = 2, b = 5:
f_Y(y) = 1/(2√(2π)) · exp(−(y − 5)²/8)
That is N(5, 4), exactly as expected.
Why |a| matters. The Jacobian term 1/|a| ensures f_Y integrates to 1 regardless of the sign of a. If you write 1/a instead, the "density" goes negative when a < 0 — a nonsensical result that is a common exam mistake.
Useful Corollary: Standardization
Running the transformation in reverse tells you something important: if Y ~ N(μ, σ²), then (Y − μ)/σ ~ N(0, 1). This is the foundation of z-scores and the reason probability tables for the standard normal generalize to all normal distributions.
Common Mistakes
- Adding b to the variance. The shift b moves the mean, not the spread. Var(Y) = a², not a² + b or a²b.
- Writing SD(Y) = a. Variance is a², standard deviation is |a|. These differ when a is negative.
- Omitting |·| in the Jacobian. The formula breaks for negative a without it.
- Asserting normality from mean and variance alone. Two matched moments do not identify a distribution. Use the MGF or the full CDF argument.
- Forgetting the monotonicity requirement. The one-to-one formula requires an invertible map. This becomes a real issue in the follow-up below.
Follow-Up: What If Y = |aX + b|?
The map x ↦ |ax + b| is no longer one-to-one: both ax + b = y and ax + b = −y map to the same output y. The change-of-variables formula must sum contributions from both preimages, and the result is a folded normal. For y ≥ 0:
f_Y(y) = 1/(|a|√(2π)) · [exp(−(y − b)²/(2a²)) + exp(−(y + b)²/(2a²))]
In the special case b = 0, this simplifies to the half-normal distribution, with mean |a|√(2/π) and variance a²(1 − 2/π).