trapezoid inequality, mappings of bounded variation, random variable, r-moments, expectation, beta function