Live data from Hacker News

Understanding Convolutions in Probability

countbayesie.com

21–24 of 24 posts

Re: Understanding Convolutions in Probability

#21

As the author mentions, convolutions for signal processing and convolutions for probability are essentially equivalent things in two different contexts. It is interesting that the same concept is behind the multiplication of polynomials. In the discrete case we have the parallel of the vectors representing ... the (discretized) probability density the (discrete) signal intensity the coefficients of the polynomial ...…

Discrete convolution is O(n^2).

That's the whole magic of FFT, it can be done in O(n*log(n)). And this is a practical algorithm, unlike the many fascinating algorithms for multiplying matrices. GMP will switch to FFT for multiplying very large numbers, for example, as numbers laid out in digits (whether binary or decimal) are polynomials if you look at them from the right angle. For processing audio and video it very quickly becomes economical to do the convolution in the frequency domain.

EDIT: never mind, I just figured out that you pointed a typo in the parent comment. Straightforward implementation is indeed O(n^2)

Re: Understanding Convolutions in Probability

#22

Earlier quoted context omitted.

"Central Limit Theorem" says that "adding (bounded variance) stuff together makes it converge to a Gaussian" (roughly). On the other hand, when you are adding random variable together, you are actually convolving their densities. Thus, what the CLT says is that a gaussian is some sort of attractor/fixed point of the "dynamic process" of convolving (finite energy/bounded variance) distributions.

Thanks! Besides bounded variance they should also generally be independent. Or at least I'm not aware of a dependent variable version.

There are (several) central limit theorems for dependent variables, but you often have to assume other things as well (e.g., stationarity, bounded third moment, and/or limited-range correlations) for it to work.

Example: https://link.springer.com/chapter/10.1007/978-1-4612-0865-5_...

Re: Understanding Convolutions in Probability

#23
> a convolution is the way to determine the distribution of the sum of two random variables

Crucially, independent (i.e., uncorrelated) random variables.

(At the other extreme, the sum of maximally correlated random variables is computed as a "comonotonic sum" instead).

Re: Understanding Convolutions in Probability

#24

As the author mentions, convolutions for signal processing and convolutions for probability are essentially equivalent things in two different contexts. It is interesting that the same concept is behind the multiplication of polynomials. In the discrete case we have the parallel of the vectors representing ... the (discretized) probability density the (discrete) signal intensity the coefficients of the polynomial ...…

Discrete convolution is O(n^2).

Yes, you're right.
Post reply on HN