8. Validating Total Area under a Probability Density Function. Another property of a probability density function (pdf) is that its total area (or integral) over its entire support must be equal to 1. In this exercise, we will validate this property for the function \( f = \frac{x}{60} \) over its support [0, 10].
To approximate the integral of the function over its support in R
, you can use the integrate()
function. Specifically, you can use integrate(f, lower, upper)
where f
is the function to be integrated, and lower
and upper
specify the interval of integration.