Transformations of Random Variables
Transformations of Random Variables
Discrete Random Variable. If the number of possible values of X is finite, that is, it
they can record the values of X as,x1...,xn
P(xi) 0 i
i 1
p(x i) 1
Continuous Random Variable. The continuous random variable is X, if there exists a function f
or a probability density function of X that satisfies
f(x) 0 x
f(x)dx 1
B np
indIuvital R xH(x) C}, B R x
G(y) P(Y y)
differentiate G(y) with respect to y and obtain g(y),
find the values of y in the range of Y for g(y) > 0
X is a random variable from the space S, Rxit is the path of X, H is a real function, the
random variable Y=H(X) with range in RyFor any event
C R yis defined
P(C) P( x R xH(x) C ]
Therefore, the probability of an event associated with the path of Y is the probability
of the equivalent event (as a function of X)
In the discrete case, (X,Y) has finite or countably infinite possible values.
In the continuous case, (X,Y) can have all values in a non-countable set.
of the Euclidean plane
Let (X,Y) be a two-dimensional random variable with each possible outcome (x i,yj)
we associate a number p(xij) that represents P(X=xiY=yjthat satisfies
p(x, iy) j 1
j 1I 1
The function p defined for all (xi,yjin the course of (X,Y) is the function of
probability of (X,Y) and the triplet (xi,yj,p(xi,yjIt is the probability distribution of (X,Y)
Transformation of multiple variables Ignacio López
Let (X,Y) be a continuous random variable that takes all values from the region R of
Euclidean plane, the joint probability distribution function f is the function that
satisfies
f(x, y) 0(x,y) R
f(x, y)dxdy 1
R
Cumulative Distribution Function (CDF):Fx(x)it is the probability of the event that the
random variable takes values less than or equal to x
Fx(x) P[X x] p (x)in xthe discrete case
x i
Transformation of multiple variables Ignacio López
x2
P[x 1 X x ]2 f x(x)dx
x1
x
Fx(x) P[ X ] f x(u)du
dFx(x) d x
it is known that, f x(x)dx f x(x)
dx dx
Properties:
- 0 Fx(x) 1 - Fx ( ) 0andFx( ) 1
- Fx(x ) Fx(x)for anyone >0 - Fx(x 2) Fx(x 1) P[x1 X x 2]
The FDA is a monotonically increasing function.
Fx(x) P[X x] xi x
p x(x i) Fxy(x, ) which is equal to xi x y
p xy(x aIn,di)
i
Conditional FMP: If the value of one of the random variables Y=y is known0, the
the relative probabilities of the different values of the other variable are given by
p xy(x,y) 0 there is a conditional probability mass function of X given Y
P[(X x) (Y y)]
Px / y(x, y) P[X x / Y y] , which is equivalent to
P[Y y]
p xy(x,y) p xy(x,y)
Px / y(x, y) . It also fulfills what was stated earlier.
p y(y)] x
p x
y(x i, y)
I
0 ox / y 1 y x
p x / y(x I, y) 1 .
i
x y
Fxy(x, y) P[(X x) (Y y)] P[ X x Y y ]
f xy(x 0an,d0)dy0 dx0
A Variable. It is about applying the first method without developing the acquisition first.
the distribution function. In the discrete case there is no real problem, as long as X and
Y=u(X) are biuniquely related. Therefore, the substitution must be appropriate.
Solution, If we apply the Binomial with n=4 and p=1/2 we obtain that the distribution of
the probability of X is given by,
x 0 1 2 3 4
f(x) 1/16 4/16 6/16 4/16 1/16
and then applying y=(1+x)-1to substitute the values of Y with those of X, we have
y 0 1/2 1/3 1/4 1/5
G(y) 1/16 4/16 6/16 4/16 1/16
obtaining,
4 4
1 1
g(y) f 1 1
1
for and 1,1/ 2,1/3,1/ 4,1/5
y y 2
For example, if the double arrow in the figure is made to oscillate, the random variable have the
density
1/ /2 /2
f( )
0 another
Transformation of multiple variables Ignacio López
Find the probability density of X, the abscissa on the x-axis to which it will point
arrow.
2 y 2 day 11 /2
Solution, g(y) e /2
z , then,
2 dz 2
2 z / 2
h(z) e
2
Two Variables. This is the previous method but considering two variables. Let them be the
joint distribution Y=u(X)1,X2), if the relationships between y and x1with x2and between y and x2with x1
they remain constant, then,
x1 x2
g(y,x2) f ( x 1 , x 2) g(x 1 , y) f ( x 1 , x 2)
y y
Solution, For the independence of X1y X2, the joint function is,
e 1 1ex1 2 2 x2
f ( x 1 , x 2)
x 1! x 2!
For x1=0,1,… and x2=0,1,… and since y=x1+x2, then x1=y-x2, then,
y x 2
e ( 1 )2 1 x12 x 2 e ( 1 )2 2 x 21
f ( x 1 , x 2) g(y,x2)
x 1!*x2 ! x 1!*x2 !
y
e ( 1 )2 1 x12 x2
e ( 1 )2
1 2 y
h(y)
x2 0 x 2 !*(y x 2)! y!
Theorem. The joint distribution function f(x1,x2of the random variables X1y X2,
and if it has to be
1=u(x1,x2y y2=u(x1,x2),
then it is possible to make the transformation g(y1,y2)=f(w1(y1,y2)w2(y1,y2)*│J│,
Transformation of multiple variables Ignacio López
where w1y w2they are solutions to the simultaneous equations in partial derivatives of
y1y y2.J is the Jacobian of the transformation.
x1 x1
y1 y 2
J
x2 x2
y1 y 2
t
(e i
Solution, We know thatM X(t)i e
And therefore, being y=x1+…,xn, it has
t t
i (e
M Y(t) e e( )e
1 1) i
i 1