Leo Liu said:
I would like to know if this explains why PDF is the derivative of the CDF because if ##\Delta P = f_X(x) \Delta x##, then it can be shown that ##\lim_{\Delta x \to 0} \frac {\Delta P(x)} {\Delta x}##.
The CDF of a c.r.v. which takes values in the interval ##[a,b]## is defined as $$F_X(x) = \int_a^x f_X(x') dx'$$ If we take the derivative of this function w.r.t. ##x##, the fundamental theorem of calculus gives us
$$\frac{dF_X(x)}{dx} = \frac{d}{dx} \int_a^x f_X(x') dx' = f_X(x)$$ which is the desired result. Your intuition is correct, since the PDF is really just the rate of change of the cumulative probability w.r.t ##x##.
Leo Liu said:
Also, if we already knew the CDF, why would one want to find its PDF since we can calculate the probability by subtracting ##y_1## from ##y_2##?
For finding probabilities, yes, it's sufficient to have the CDF. But there is a lot more you can do with c.r.v.'s, a lot of which is formulated in terms of the PDF. For instance, to find the expectation or variance, you need to use the PDF in the various integrals.
Being able to switch between them is also important. If you have a c.r.v. e.g. ##X##, and want to find the distribution of ##Z = X^2##, a common approach is to go via the CDF. In this case, (for simplicity, let's suppose ##X## takes only positive values): $$F_Z(z) = P(Z<z) = P(X^2 < z) = P(X < \sqrt{z}) = F_X(\sqrt{z})$$ and then you can differentiate w.r.t. ##z## to find the PDF of ##Z##.
Leo Liu said:
I see - it is just expectation. Would you minding telling me why mathematicians don't just use expectation in this case?
I'm not sure what you mean by this. The easiest way to think about it is that for a given set of
numerical data (i.e. you have already taken a
sample from the distribution) you can calculate a mean. Whilst if you haven't got any actual measurements yet you are instead calculating the
expectation of the c.r.v. The two concepts are similar, but quite distinct. For a probability distribution, it is the expectation that we usually talk about in this context.