← Back to Interactive Labs JOHN EXPLAINS

Linear Transformations Playground

Apply Y = aX + b to a distribution and watch E[Y] and Var(Y) update — computed two independent ways: the linearity shortcut, and a full direct recomputation from Y's own values. They always agree. Use the presets to isolate what a shift alone does versus what a scale alone does — the shaded ±1 SD band is the tell.

—
—

Original: X

Transformed: Y = aX + b

E[X] / E[Y] (fulcrum) X's ±1 SD band Y's ±1 SD band

E[Y] and Var(Y), two independent ways

Click "Isolate shift only" and watch the SD band keep exactly the same width while it slides — a constant never changes spread. Then click "Isolate scale only" and watch the band stretch or shrink around a fixed center — that's a²·Var(X) made visible.