# Convolving more than two distributions

**URL:** https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787
**Category:** General Usage
**Created:** [January 30, 2017, 6:32pm UTC](https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787 "2017-01-30T18:32:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [January 30, 2017, 6:32pm UTC](https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787/1 "2017-01-30T18:32:06Z")

</div>

Hi all-

I was wondering how to convolve more than two distributions in Julia. R has the [convpow function](http://stackoverflow.com/questions/23569133/adding-two-random-variables-via-convolution-in-r) in the distr library. Does Julia have something similar?

Thanks

---

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [February 2, 2017, 9:28pm UTC](https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787/2 "2017-02-02T21:28:08Z")

</div>

If there is no way to convolve multiple distributions in Julia, can someone recommend a package where I can make a feature request. Distributions?

---

<div class="post-metadata">

### Author: ![johnmyleswhite](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/johnmyleswhite/32/31_2.png) [@johnmyleswhite](https://discourse.julialang.org/u/johnmyleswhite)
#### Post date: [February 2, 2017, 10:44pm UTC](https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787/3 "2017-02-02T22:44:16Z")

</div>

Would you be open to writing this functionality and putting it into a package for the time being? Distributions is already quite heavy with features and there’s not a huge surplus of engineering hours to implement additional features.

---

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [February 2, 2017, 11:07pm UTC](https://discourse.julialang.org/t/convolving-more-than-two-distributions/1787/4 "2017-02-02T23:07:59Z")

</div>

I would be willing to put together a package, but unfortunately I currently lack the content expertise. On the off-chance that I acquire the necessary skills, I will certainly share the code.
