Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Possible Duplicate:
Probability Density Function.

Just need some answers checking:

(iii) im not sure what needs doing but i've shown my attempt

A continuous random variable $X$ has cumulative distribution function

$$F(x) = \begin{cases} 0 & x<1,\\ x^2(3-2x) & 0\le x \le 1,\\ 1 & x>1. \end{cases} $$

$(i)$ Calculate $\Pr(\frac13\ <\ X\ <\ \frac23)$

$(ii)$ Find the probability density function of $X$

$(iii)$ The symmetry of the probability density function on the interval $[0,1]$ implies that $E(X) = \frac12$. Find $\operatorname{var}(X)$


(i) $\Pr(a < X < b) = \Pr(X \le b)-\Pr(x \le a) = F_x(b)-F_x(a)$

Given this,

$\Pr(\frac13\ <\ X\ <\ \frac23) = F(\frac23)-F(\frac13) = ((\frac23)^2(3-2(\frac23))) - ((\frac13)^2(3-2(\frac13))) = \cdots = \frac{13}{27}$

So $\Pr(\frac13\ <\ X\ <\ \frac23) = \frac{13}{27}$

(ii) Given $Pr(a\ \leq\ X\ \leq\ b)\ =\ \int_a^b f(x) \, dx$ for finding density function

$\int_a^b x^2(3-2x)\,dx$

$\int_a^b 3x^2-2x^3\,dx$

$= x^3-\frac12x^4$

(iii) Given $E(x) = \frac12,\ (E(x)^2)=\frac14$

To get $E(x^2)$ you do $PDF \cdot x^2:= (x^3 - \frac12x^4) \cdot x^2 = x^6 - \frac12x^8$

$\int_{a}^{b}x^6 - \frac12x^8 = [\frac{x^7}{7} - \frac{x^9}{18}]^1_0$

$Var(x) = [(\frac{x^7}{7} - \frac{x^9}{18})-\frac14]^1_0$

$= \frac{11}{126}-\frac14 = -\frac{41}{252}$

share|improve this question

marked as duplicate by Dilip Sarwate, Quixotic, Austin Mohr, Davide Giraudo, martini Dec 11 '12 at 9:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

up vote 2 down vote accepted

The set-up in (i) is right. I have not checked the arithmetic.

For (ii), the density function is the derivative of the cdf. You calculated an integral.

In (iii), to calculate $E(X^2)$, you need $\int_0^1 x^2f(x)\,dx$, where $f(x)$ is the density function. The numerical answer cannot be right, since variance is always $\ge 0$.

share|improve this answer
So for (ii) i differentiate $x^2(3-2x)$ and for (iii) i use the answer from (ii) and do the same method as done before? –  Matt Dec 11 '12 at 3:09
Density is $6x-6x^2$ on $[0,1]$, and $0$ elsewhere. Now multiply by $x^2$. We get $6x^3-6x^4$. Integrate. Finally, subtract $1/4$. If I am doing arithmetic right in my head, should get $1/20$. –  André Nicolas Dec 11 '12 at 3:13
Yeah that makes sense, i got $\frac1{20}$ too. just doing the intergral instead of the derivative got me confused. Thanks –  Matt Dec 11 '12 at 3:18
In your solution to (iii), beside not having right density, you substituted $x^2$ in what you thought was the density, instead of multiplying the density by $x^2$. –  André Nicolas Dec 11 '12 at 3:20
@AndréNicolas In an exact duplicate question posted nearly 7 hours ago, the OP made an heart-felt appeal to you for help! –  Dilip Sarwate Dec 11 '12 at 3:23
show 3 more comments

Not the answer you're looking for? Browse other questions tagged or ask your own question.