4.9.14 · D4Probability Theory & Statistics

Exercises — Transformations of random variables — change-of-variable technique

1,638 words7 min readBack to topic

Recall the pieces you will reuse constantly:

  • is the inverse map — it answers "which produced this ?"
  • is the Jacobian, the local stretch factor (see Jacobian Determinant).
  • Every answer must (a) name its support (where can live) and (b) integrate to 1.

L1 · Recognition

Recall Solution 1.1

What: an affine map with . Why the formula applies: is strictly increasing, so it is one-to-one — a single branch. Invert: . Jacobian: , magnitude . The dilutes the density because stretching the axis by a factor spreads the same mass over three times the length.

Recall Solution 1.2

Here . Using with the normal density collapses to the standard normal : . See Normal Distribution. This is exactly standardisation: subtract the mean, divide by the standard deviation.


L2 · Application

Recall Solution 2.1

Monotonic? is strictly increasing → one branch. Range: , so support is . Invert: . Jacobian: (positive for ). This is the standard log-normal. The extra is the Jacobian, not optional.

Recall Solution 2.2

increasing on ; range . Invert: . Jacobian . Since on : Check: ✓ Density grows toward — square-rooting spreads small apart and packs large near .


L3 · Analysis

Recall Solution 3.1

The figure below plots the fold over the support . Read it like this: pick a height on the vertical axis, draw a horizontal line, and count how many times it hits the blue parabola within the dashed lines at and . The yellow line at hits it twice (at and , both inside the support), while the red line at hits the curve once inside the support (green dot at ) because the other root has fallen to the left of (red ✗, outside). This is the whole reason the density has two different pieces.

Figure — Transformations of random variables — change-of-variable technique
is decreasing on and increasing on . Range: . Roots of : , but only roots inside count.

  • For : both and lie in (yellow line). Two branches.
  • For : falls outside the support (red ✗), so only survives. One branch.

Jacobian per branch: , and wherever defined. Check total mass:

Recall Solution 3.2

Two roots , both in the full support . is even, so both contribute equally: This is the chi-square with 1 degree of freedom.


L4 · Synthesis

Recall Solution 4.1

Use the CDF directly (cleaner than densities here): The middle step applies to both sides — legal because is increasing so it preserves "." Since is uniform on , for . With : So has exactly CDF . This is why a computer with only a uniform generator can produce any distribution.

Recall Solution 4.2

Invert the CDF: set . So . Because is also Uniform, the tidy form works too. Density check via change-of-variable (, , ): Exactly .


L5 · Mastery

Recall Solution 5.1

Invert the linear map: . Build the Jacobian matrix of the inverse: The determinant is the area-scaling factor of the map — this rotate-and-scale halves areas. Support: the map is a linear bijection of the whole plane, so ranges over all of (wherever the transported is nonzero); for supported on this is the full .

Recall Solution 5.2

Joint density . Substitute the inverse. First expand the exponent, watching the cross-terms: The cross-terms cancel exactly — that is what lets and separate cleanly. Now integrate out : Why : use the standard Gaussian integral with , giving . Hence That is (variance ). MGF cross-check: each has ; independence multiplies MGFs, giving , the MGF of . ✓ (See Expectation and LOTUS for why MGFs multiply.)