a) We know that for f ( x ) f(x) f ( x ) to be a probability distribution
∫ − ∞ ∞ f ( x ) d x = 1 \displaystyle\int_{-\infin}^\infin f(x)dx=1 ∫ − ∞ ∞ f ( x ) d x = 1 We integrate f ( x ) f(x) f ( x ) with respect to x , x, x , set the result equal to 1 and solve for c . c. c .
∫ − ∞ ∞ f ( x ) d x = ∫ − 1 1 c x 2 d x = c [ x 3 3 ] 1 − 1 = \displaystyle\int_{-\infin}^\infin f(x)dx=\displaystyle\int_{-1}^{1} cx^2dx=c\big[{x^3 \over 3}\big]\begin{array}{c}
1 \\
-1
\end{array}= ∫ − ∞ ∞ f ( x ) d x = ∫ − 1 1 c x 2 d x = c [ 3 x 3 ] 1 − 1 =
= c ( 1 3 3 − ( − 1 ) 3 3 ) = 2 3 c = 1 =c\big({1^3 \over 3}-{(-1)^3 \over 3}\big)={2 \over 3}c=1 = c ( 3 1 3 − 3 ( − 1 ) 3 ) = 3 2 c = 1
c = 3 2 c={3 \over 2} c = 2 3 b) Cumulative distribution function (cdf):
F ( x ) = P ( X ≤ x ) = ∫ − ∞ x f ( x ) d x F(x)=P(X\leq x)=\displaystyle\int_{-\infin}^x f(x)dx F ( x ) = P ( X ≤ x ) = ∫ − ∞ x f ( x ) d x
∫ − 1 x 3 2 x 2 d x = 3 2 [ x 3 3 ] x − 1 = x 3 2 + 1 2 \displaystyle\int_{-1}^x {3 \over 2}x^2 dx ={3 \over 2}\big[{x^3 \over 3}\big]\begin{array}{c}
x \\
-1
\end{array}={x^3 \over 2}+{1 \over 2} ∫ − 1 x 2 3 x 2 d x = 2 3 [ 3 x 3 ] x − 1 = 2 x 3 + 2 1
F ( x ) = { 0 if x < − 1 x 3 2 + 1 2 if − 1 ≤ x < 1 1 if x ≥ 1 F(x) = \begin{cases}
0 &\text{if } x<-1 \\
{x^3 \over 2}+{1 \over 2} &\text{if }-1\leq x<1 \\
1 &\text{if } x\geq 1
\end{cases} F ( x ) = ⎩ ⎨ ⎧ 0 2 x 3 + 2 1 1 if x < − 1 if − 1 ≤ x < 1 if x ≥ 1
c)
P ( X ≥ 1 2 ) = 1 − P ( X < 1 2 ) = 1 − P ( X ≤ 1 2 ) = P(X\geq {1 \over 2})=1-P(X< {1 \over 2})=1-P(X\leq {1 \over 2})= P ( X ≥ 2 1 ) = 1 − P ( X < 2 1 ) = 1 − P ( X ≤ 2 1 ) =
= 1 − F ( 1 2 ) = 1 − ( ( 1 2 ) 3 2 + 1 2 ) = 7 16 =1-F({1 \over 2})=1-({({1 \over 2})^3 \over 2}+{1 \over 2})={7 \over 16} = 1 − F ( 2 1 ) = 1 − ( 2 ( 2 1 ) 3 + 2 1 ) = 16 7 d)
μ = E ( X ) = ∫ − ∞ ∞ x f ( x ) d x = ∫ − 1 1 3 2 x 3 d x = \mu=E(X)=\displaystyle\int_{-\infin}^\infin xf(x)dx=\displaystyle\int_{-1}^{1} {3 \over 2}x^3dx= μ = E ( X ) = ∫ − ∞ ∞ x f ( x ) d x = ∫ − 1 1 2 3 x 3 d x =
= 3 2 [ x 4 4 ] 1 − 1 = 0 ={3 \over 2}\big[{x^4 \over 4}\big]\begin{array}{c}
1 \\
-1
\end{array}=0 = 2 3 [ 4 x 4 ] 1 − 1 = 0
V a r ( X ) = σ 2 = E [ ( X − μ ) 2 ] = ∫ − ∞ ∞ ( x − 0 ) 2 f ( x ) d x = Var(X)=\sigma^2=E[(X-\mu)^2]=\displaystyle\int_{-\infin}^\infin (x-0)^2f(x)dx= Va r ( X ) = σ 2 = E [( X − μ ) 2 ] = ∫ − ∞ ∞ ( x − 0 ) 2 f ( x ) d x =
= ∫ − 1 1 3 2 x 4 d x = 3 2 [ x 5 5 ] 1 − 1 = 3 5 =\displaystyle\int_{-1}^{1} {3 \over 2}x^4dx={3 \over 2}\big[{x^5 \over 5}\big]\begin{array}{c}
1 \\
-1
\end{array}={3 \over 5} = ∫ − 1 1 2 3 x 4 d x = 2 3 [ 5 x 5 ] 1 − 1 = 5 3
E ( X ) = 0 E(X)=0 E ( X ) = 0 V a r ( X ) = 3 5 Var(X)={3 \over 5} Va r ( X ) = 5 3
Comments