Loading…

Probability Density Integrator

Math Calculus • Applications of Integrals

View all topics
9. Probability Density Integrator
Computes normalization \(\int_a^b f(x)\,dx\), expected value \(E[X]=\int_a^b x f(x)\,dx\) (with renormalization if needed), variance, and CDF values. Supports \(\pm\infty\) bounds via numeric transforms. \(\; \mu=E[X]=\dfrac{\int_a^b x f(x)\,dx}{\int_a^b f(x)\,dx},\quad \mathrm{Var}(X)=E[X^2]-\mu^2 \;\)
Inputs
Use variable x. Constants: pi, e, inf. Supported: + − * / ^, parentheses, sin cos tan ln log sqrt abs exp. Implicit multiplication allowed: 2x, (x+1)(x-1).
Use -inf or inf if needed.
Example: \(b=1\), \(b=\pi\), or \(b=\infty\).
Adaptive is best for sharp peaks / tails.
Must be even. Used by Composite Simpson (and for CDF curve sampling).
Used only by Adaptive Simpson.
Warn if \(\big|\int f - 1\big|>\) tol.
Computes \(F(x_0)=\int_a^{x_0} f(x)\,dx\).
Click a preset to load and evaluate.
Ready
Graph
Drag to pan • wheel/pinch to zoom • PDF is centered at \(x=0\) axis; CDF uses a right-side \(0\to 1\) scale.
\(f(x)\) shade \([a,b]\) CDF \(F(x)\) \(\mu\)
Graph window center (x-axis).
Graph spans \([c-w,c+w]\).
x: 0, y: 0, zoom(px/unit): 60
Result & Steps
Enter \(f(x)\), bounds \([a,b]\), 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.

Frequently Asked Questions

What does a probability density integrator calculate?

It evaluates integrals of a PDF f(x) over [a,b], including the normalization I0 = ∫[a,b] f(x) dx, the mean μ, the variance, and the CDF value F(x0). These quantities describe total probability, average value, spread, and cumulative probability.

How is the expected value computed from a PDF?

The mean is computed as μ = (∫[a,b] x f(x) dx) / (∫[a,b] f(x) dx). If the PDF is not perfectly normalized, dividing by the normalization integral renormalizes the result.

Why does the normalization integral sometimes not equal 1?

For a valid PDF, the integral over its support should be 1, but numeric integration, sharp peaks, long tails, or an incorrect formula/bounds can produce I0 ≠ 1. The tool warns based on a tolerance and uses a renormalized density f(x)/I0 for moments and CDF values.

How does the calculator handle infinite bounds like -inf to inf?

It supports ±infinity bounds by applying numeric transforms that map infinite intervals to finite ones for integration. This is useful for distributions such as the normal distribution on (-inf, inf) or exponential tails on [0, inf).

When should I use Composite Simpson vs Adaptive Simpson?

Composite Simpson uses a fixed even number of segments N and works well for smooth functions over finite intervals. Adaptive Simpson refines intervals based on a tolerance ε and is often better for sharp peaks, discontinuities in derivatives, or heavy tails.