Tuesday, October 9, 2007

Transformation of Probability Distributions

Given X ~ f(x). What distribution is g(X)?

Solution:

Think in terms of F(x), the CDF, instead of f(x).
Let F_g be the CDF of g(X). Then:


F_g(x) = Prob ( g(X) x ) = Prob ( X g-1(x) )


So the RHS is just: F( g-1(x) ). Now to get PDF, it's just differentiation of this value.

Examples:

Find the CDF of X2, given X ~ f(x), with CDF F(x).

F_x2(x) = Prob (X2 ≤ x) = Prob ( -|x| ≤ X |x|) = F(x) - F(-x) , noting that domain for X2 is [0, ∞).

Taking derivatives, we have:


½ * 1/x * ( F´(√x) - F´(-√x) ) = ½ * 1/x * ( f(x ) - f(-√x ))


Find the CDF of eX, given X ~ f(x), with CDF F(x).

F_eX(x) = Prob (eX ≤ x) = Prob ( X ≤ ln (x) ) = F(ln (x))


Taking derivative of RHS to get PDF:

d/dx (F (ln(x)) = 1/x d/d(ln(x)) F (ln (x)) = 1/x f(ln (x)) (since d/dx F(x) = f(x))


No comments: