Loading…

Continuous Expected Value and Variance Solver

Math Probability • Continuous Probability Distributions

View all topics

Compute E[X] and Var(X) for a continuous random variable from a PDF \(f(x)\) on \([a,b]\) using numerical integration.

Allowed: x, + − * / ( ) ^, commas, and functions: sin, cos, tan, exp, log, sqrt, abs, pow, min, max. Constants: pi, e. (Also accepts π, ×, ÷, and the minus sign −.)

Larger n → better accuracy but slower. Simpson’s rule uses an even number of subintervals.

Ready

PDF on [a,b] (shaded integral area)

Animation ready

The animation sweeps the shaded area from a to b. The badge shows computed E[X] and Var(X).

Enter a PDF and bounds, then click “Calculate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.