Use a probability density function which may be defined piecewise Use the general result E(g(x)) =∫f(x)g(x) dx where f(x) is the probability density function of the continuous random variable X and ...
If we plot the probability (density) function (PDF) on a graph with vertical axis as probability and horizontal axis as value of X, then that plot is called a "distribution." The PDF is aptly named ...