Suppose I have a vector of probability densities (for risk of disease): c(0.01, 0.002, 0.03, 0.05)
for ages 1, 2, 3, and 4. How do I obtain the cumulative density? Do I (1) simply add them up, i.e. the cumulative density at ages 1-4 are: c(0.01, 0.012, 0.042, 0.092)
? Or should I (2) find the area under the curve?
Does this depend on whether my random variable is discrete or continuous? I.e. if my random variable is discrete, then (1) is appropriate. Otherwise (2) is appropriate because $P(X = 1) = 0$ if $X$ is continuous?