What is the mathematical formula for the variance of a continuous random variable?
The formula is the same whether it is a discrete random variable or a continuous random variable.
irrespective of the type of random variable, the formula for variance is
However, if the random variable is discrete, we use the process of summation.
In the case of a continuous random variable, we use the integral.
#X^2#) = #int_-infty^infty x^2 f(x)dx#.
#int_-infty^infty x f(x)dx#.
From this, we get