To find the probability density function

2.3k Views Asked by At

I have done this problem in two ways and I get two different answer.Which one is correct.

I provided the link to the image below.

https://drive.google.com/file/d/1acToL8QBVq05mTQ9t7TgHgedremJdydA/view?usp=drivesdk

enter image description here

For the probability density function $$ f(x)=\begin{cases} 20x(1-x)^3, & 0<x<1 \\ 0, & \text{elsewhere} \end{cases} $$ find $P\bigl(x<\frac{1}{2}\bigr)$.

Method A

\begin{align} P\Bigl(x<\frac{1}{2}\Bigr) &= \int_0^{1/2} 20x(1-x^3)\,dx \\ &= 20\int_0^{1/2} (1-x)x^3\,dx \\ &= \frac{13}{16} \end{align}

Method B

For continuous distribution $P\bigl(x<\frac{1}{2}\bigr)=P\bigl(x\le\frac{1}{2}\bigr)$ so \begin{align} P\Bigl(x<\frac{1}{2}\Bigr) &= f\Bigl(\frac{1}{2}\Bigr) \\ &= 20\Bigl(\frac{1}{2}\Bigr)\Bigl(1-\frac{1}{2}\Bigr)^3 \\ &= \frac{10}{8} \end{align}

1

There are 1 best solutions below

2
On BEST ANSWER

First method is the right one. In the second method you have confused the density function $f$ with the cumulative distribution function $F$. $P\{X\leq \frac 1 2\}=F(\frac 1 2)$ which is not the same as $f(\frac 1 2)$.