Loading…

Discrete Rv Pmf Validator

Math Probability • Discrete Probability Distributions

View all topics

Discrete RV PMF Validator – Check Validity & Normalize (Free)

Check whether a discrete PMF is valid: \(p_i \ge 0\) and \(\sum_i p_i = 1\) (within tolerance). Optionally normalize if the total isn’t 1.

Tip: Press Play after a successful calculation to animate bar filling and the “sum-to-1” meter (pan/zoom on the chart).

PMF input
Accepted expressions: 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication. Lines starting with # are ignored.
Validation settings

A PMF is valid if all probabilities are non-negative and the total sum is 1 (within \(\mathrm{tol}\)). Normalization rescales all probabilities by the same factor.

Output & view
Drag on the chart to pan. Use mouse wheel / trackpad to zoom. Tick labels stay readable and spaced.
Ready
Interactive PMF view — sum meter + bars (pan/zoom) + Play

The meter targets \(\sum p_i = 1\). Bars show probabilities by \(x\); if normalization is applied, normalized bars are overlaid.

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 conditions must a discrete PMF satisfy?

A valid PMF must have p(x_i) ≥ 0 for all i and must satisfy Σ p(x_i) = 1 (within a chosen tolerance if values are rounded).

Why do you use a tolerance instead of exact equality?

Rounded decimals often make Σp slightly different from 1. A tolerance lets you treat small rounding differences as acceptable.

What does normalization do?

Normalization rescales probabilities by p' = p / Σp so the total becomes 1. It preserves relative weights but changes absolute probabilities.

Can I normalize if some probabilities are negative?

Negative probabilities violate PMF validity. Small negatives caused by rounding may be clamped if you enable that option, but meaningful negatives indicate incorrect inputs.