One-to-One Transformations of Discrete Random Variables

How to find the PMF of Y=g(X)Y = g(X) when gg is one-to-one, and how to compute probabilities of events involving the transformed variable.

Step 1 of 119%

Tutorial

PMF of a One-to-One Transformation

When we apply a function to a random variable, we get a new random variable. If the function is one-to-one (distinct inputs give distinct outputs), then the probabilities transfer directly through the inverse.

Let XX be a discrete random variable with PMF pX(x)=P(X=x),p_X(x) = P(X = x), and let gg be a one-to-one function defined on the support of X.X. Then Y=g(X)Y = g(X) is a discrete random variable with PMF

pY(y)=pX ⁣(g1(y))p_Y(y) = p_X\!\left(g^{-1}(y)\right)

for yy in the range of g,g, and pY(y)=0p_Y(y) = 0 otherwise.

This follows because gg is one-to-one: each value yy of YY comes from exactly one value xx of X,X, namely x=g1(y).x = g^{-1}(y). So the event {Y=y}\{Y = y\} is the same as the event {X=g1(y)},\{X = g^{-1}(y)\}, and they have the same probability.

For example, suppose XX has PMF

x012pX(x)0.20.50.3\begin{array}{c|ccc} x & 0 & 1 & 2 \\ \hline p_X(x) & 0.2 & 0.5 & 0.3 \end{array}

and let Y=3X+1.Y = 3X + 1. The function g(x)=3x+1g(x) = 3x+1 is one-to-one with inverse g1(y)=(y1)/3.g^{-1}(y) = (y-1)/3. The possible values of YY are 1,4,7,1, 4, 7, and

pY(1)=pX(0)=0.2,pY(4)=pX(1)=0.5,pY(7)=pX(2)=0.3.p_Y(1) = p_X(0) = 0.2, \qquad p_Y(4) = p_X(1) = 0.5, \qquad p_Y(7) = p_X(2) = 0.3.

The probabilities are unchanged — they have just been relabeled.

navigate · Enter open · Esc close · ⌘K/Ctrl K toggle