This only works for continuous functions right? Are there real world scenarios where we need to integrate discrete functions? Would we just use sum in that case ?
I think for discrete functions sum makes sense. Since the CDF of discrete random variables is just the sum of the probability for any x' less than x.