Let X ∼ N ( 0 , 1 ) and W ∼ B e r n o u l l i ( 2 1 ) be an independent random variables.Define the random variable Y as a function of X and W .
Y = h ( X , W ) = { -X,if W=1 X, if W=0
Find the PDF of Z = X + Y .
In the options, δ ( ⋅ ) denotes the Dirac Delta function.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Note that by symmetry of N ( 0 , 1 ) around zero, − X is also N ( 0 , 1 ) . In particular, we can write
F Y ( y ) = P ( Y ≤ y )
= P ( Y ≤ y ∣ W = 0 ) P ( W = 0 ) + P ( Y ≤ y ∣ W = 1 ) P ( W = 1 )
= 2 1 P ( X ≤ y ∣ W = 0 ) + 2 1 P ( − X ≤ y ∣ W = 1 )
= 2 1 P ( X ≤ y ) + 2 1 P ( − X ≤ y ) since X and W are independent.
= 2 1 Φ ( y ) + 2 1 Φ ( y )
= Φ ( y )
Thus Y ∼ N ( 0 , 1 ) . Now note that,
Z = X + Y = { 0, with probability 0.5 2X, with probability 0.5
Thus Z is a mixed random variable and its PDF is given by
f Z ( z ) = 2 1 δ 0 ( z ) + 2 1 (PDF of 2X at z)
f Z ( z ) = 2 1 δ 0 ( z ) + 2 1 (PDF of a N(0,4) at z)
f Z ( z ) = 2 1 δ ( z ) + 4 2 π 1 e − 8 z 2
Problem Loading...
Note Loading...
Set Loading...
Y = X 1 W = 0 − X 1 W = 1 , so Z = X + Y = X + X 1 W = 0 − X 1 W = 1 = X ( 1 + 1 W = 0 − 1 W = 1 ) . Since W ∼ B e r n o u l l i ( 2 1 ) , 1 = 1 W = 0 + 1 W = 1 , hence Z = X ( 1 W = 0 + 1 W = 1 + 1 W = 0 − 1 W = 1 ) = 2 X 1 W = 0 = Φ ( X , W ) , where Φ ( x , w ) = 2 x 1 w = 0 . Now, let Ψ : R → R be a suitably general (ie positive or bounded) measurable function. E [ Ψ ( Z ) ] = E [ Ψ ∘ Φ ( X , W ) ] . Using the joint density of ( X , W ) , given that X and W are independent, we compute this as E [ Ψ ( Z ) ] = ∬ R 2 Ψ ∘ Φ ( x , w ) 2 π 1 e − 2 x 2 2 1 ( δ 0 ( w ) + δ 1 ( w ) ) d x d w , where δ a is the Dirac suppported at a . So, E [ Ψ ( Z ) ] = ∬ R 2 Ψ ( 2 x 1 w = 0 ) 2 π 1 e − 2 x 2 2 1 ( δ 0 ( w ) + δ 1 ( w ) ) d x d w = 2 1 ( ∫ R Ψ ( 2 x ) 2 π 1 e − 2 x 2 d x + ∫ R Ψ ( 0 ) 2 π 1 e − 2 x 2 d x ) = 2 1 ( ∫ R Ψ ( 2 x ) 2 π 1 e − 2 x 2 d x + Ψ ( 0 ) ) , by integrating with respect to w . Now we write Ψ ( 0 ) = ∫ R Ψ ( x ) δ 0 ( x ) d x and ∫ R Ψ ( 2 x ) 2 π 1 e − 2 x 2 d x = ∫ R Ψ ( x ) 2 2 π 1 e − 8 x 2 d x by the change of variables 2 x ↔ x . Finally, summing these up, we obtain that E [ Ψ ( Z ) ] = 2 1 ( ∫ R Ψ ( x ) ( 2 2 π 1 e − 8 x 2 + δ 0 ( x ) ) d x ) = ∫ R Ψ ( x ) ( 4 2 π 1 e − 8 x 2 + 2 1 δ 0 ( x ) ) d x . Since Ψ was arbitrary, this shows that the PDF of Z , f Z , is given by the expression f Z ( z ) = 4 2 π 1 e − 8 z 2 + 2 1 δ 0 ( z ) which was one of the choices, by reconciling the notations δ 0 ( z ) = δ z
Note: since there is Dirac gymnastics involved, strictly speaking, f Z is not a PDF.