Let X be a random variable with PDF given by
\begin{equation}
\nonumber f_X(x) = \left{
\begin{array}{l l}
cx^2& \quad |x| \leq 1\
0 & \quad \text{otherwise}
\end{array} \right.
\end{equation}
Find the constant c.
Find EX and Var(X).
Find P(X≥21).
Solution
To find c, we can use ∫−∞∞fX(u)du=1:
$1$
=∫−∞∞fX(u)du
=∫−11cu2du
=32c.
Thus, we must have c=23.
To find EX, we can write
EX
=∫−11ufX(u)du
=23∫−11u3du
=0.
In fact, we could have guessed EX=0 because the PDF is symmetric around x=0.
To find Var(X), we have
Var(X)
=EX2−(EX)2=EX2
=∫−11u2fX(u)du
=23∫−11u4du
=53.
To find P(X≥21), we can write
P(X≥21)=23∫211x2dx=167.
Problem
Let X be a continuous random variable with PDF given by
fX(x)=21e−∣x∣,for all x∈R.
If Y=X2, find the CDF of Y.
Solution
First, we note that RY=[0,∞). For y∈[0,∞), we have
Let X be a continuous random variable with PDF
\begin{equation}
\nonumber f_X(x) = \left{
\begin{array}{l l}
4x^3 & \quad 0 < x \leq 1\
0 & \quad \text{otherwise}
\end{array} \right.
\end{equation}
Find P(X≤32∣X>31).
Solution
We have
P(X≤32∣X>31)
=P(X>31)P(31<X≤32)
=∫3114x3dx∫31324x3dx
=163.
Problem
Let X be a continuous random variable with PDF
\begin{equation}
\nonumber f_X(x) = \left{
\begin{array}{l l}
x^2\left(2x+\frac{3}{2}\right) & \quad 0 < x \leq 1\
0 & \quad \text{otherwise}
\end{array} \right.
\end{equation}
If Y=X2+3, find Var(Y).
Solution
First, note that
Var(Y)=Var(X2+3)=4Var(X1),using Equation 4.4
Thus, it suffices to find Var(X1)=E[X21]−(E[X1])2. Using LOTUS, we have
E[X1]=∫01x(2x+23)dx=1217
E[X21]=∫01(2x+23)dx=25.
Thus, Var(X1)=E[X21]−(E[X1])2=14471. So, we obtain
Var(Y)=4Var(X1)=3671.
Problem
Let X be a positive continuous random variable. Prove that EX=∫0∞P(X≥x)dx.
Solution
We have
P(X≥x)=∫x∞fX(t)dt.
Thus, we need to show that
∫0∞∫x∞fX(t)dtdx=EX.
The left hand side is a double integral. In particular, it is the integral of fX(t) over
the shaded region in Figure 4.4.
Fig.4.4 - The shaded area shows the region of the double integral of Problem 5.
We can take the integral with respect to x or t. Thus, we can write
∫0∞∫x∞fX(t)dtdx
=∫0∞∫0tfX(t)dxdt
=∫0∞fX(t)(∫0t1dx)dt
$=\int_{0}^{\infty} tf_X(t) dt=EX \hspace{20pt} \textrm{since X is a positive random variable}.$
Problem
Let X∼Uniform(−2π,π) and Y=sin(X). Find fY(y).
Solution
Here Y=g(X), where g is a differentiable function. Although g is not monotone, it can
be divided to a finite number of regions in which it is monotone. Thus, we can use
Equation 4.6. We note that since RX=[−2π,π], RY=[−1,1]. By looking at
the plot of g(x)=sin(x) over [−2π,π], we notice that for y∈(0,1)
there are two solutions to y=g(x), while for y∈(−1,0), there is only one solution.
In particular, if y∈(0,1), we have two solutions: x1=arcsin(y), and x2=π−arcsin(y).
If y∈(−1,0) we have one solution, x1=arcsin(y). Thus, for y∈(−1,0), we have