Loading…

Discrete Convolution Tool

Math Probability • Discrete Probability Distributions

View all topics

Discrete Convolution Tool – Sum of Independent Discrete Random Variables (Free)

Compute the distribution of \(Z=X+Y\) for independent discrete random variables using \(\;P(Z=z)=\sum_x P(X=x)\,P(Y=z-x)\;\).

Tip: Click Fill example, then Calculate. Press Play to animate how each \(z\) value is built from matching pairs.

Inputs (PMFs)
PMF of \(X\)
Accepted expressions: 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(), exp(). Use * for multiplication.
PMF of \(Y\)
Presets

Note: Poisson is infinite-support; the preset uses a truncated tail and the tool can auto-normalize.

Settings

The convolution assumes independence. If your variables are dependent, \(P(X=x,Y=y)\neq P(X=x)P(Y=y)\).

Output & animation
Drag on the bottom chart to pan. Use mouse wheel / trackpad to zoom. Tick labels stay inside the frame.
Ready
Interactive convolution view — PMFs + result \(Z=X+Y\)

Top: PMF of \(X\). Middle: PMF of \(Y\). Bottom: PMF of \(Z=X+Y\) (pan/zoom) + Play scan over \(z\).

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 is discrete convolution?

For independent discrete X and Y, it is the rule that gives the PMF of Z=X+Y: P(Z=z)=Σx P(X=x)P(Y=z−x).

Why do we need independence?

Independence lets us factor joint probabilities as products: P(X=x, Y=y)=P(X=x)P(Y=y). Without independence, convolution using products is not valid.

What does auto-normalize do?

It rescales probabilities so the PMF sums to 1. This is helpful for truncated distributions, but it slightly changes the model.

Can I use non-integer values?

This tool is designed for discrete RVs with integer support. If you need non-integer or continuous distributions, a different method is required.