Converting cumulative distribution function to probability density function.

494 Views Asked by At

I'm trying to find a probability using cumulative distribution function and then using pdf. Why it is giving different answers?

For example,

$$F(x)=\begin{cases}0,\quad x<0\\x^2,\quad0\le x\le \frac{1}{2}\\\frac{3}{4},\quad \frac{1}{2}\le x<1\\ 1,\quad x\ge 1\end{cases}$$

Now if I calculate $P(1/4 < x < 1)$. I get $15/16$ using this distributive function.

But if I find the pdf by differentiating $F(x)$ wrt $x$, then $f(x) = 2x$ between $0$ and $1/2$ and $0$ elsewhere.

To find $P(1/4 < x < 1)$, I will integrate $f(x)$ from $1/4$ to $1$ (i.e.$1/4$ to $1/2$ because $f(x)$ is $0$) when $x > 1/2$ which is giving $3/16$.

Kindly comment if I miss something here, I'm new to this platform. Thanks.

2

There are 2 best solutions below

1
On BEST ANSWER

The distribution function is discontinuous so the derivative does not exist at $x=1/2$ and $x=1$. It must be supplemented by point probabilities at those points. $P(x=1/2)=1/2$ and $P(x=1)=1/4$.

1
On

The first answer is correct. The second one is wrong becasue this r.v. does not even have density. $F$ has jumps at $\frac 1 2$ and $1$ so it is a mixture of discrete and continuous r.v.'s. You cannot just integrate the derivative to find $P(\frac 1 4 <X<1)$.