# Multivariate noncentral hypergeometric distributions

**URL:** https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450
**Category:** Statistics
**Tags:** question, distributions
**Created:** [April 2, 2021, 3:05pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450 "2021-04-02T15:05:44Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [April 2, 2021, 3:05pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/1 "2021-04-02T15:05:44Z")

</div>

Hi there

Just wondering if there are plans for the inclusion of  
multivariate noncentral hypergeometric distributions in Distributions.jl? In particular, I need to make use of Wallenius’ version. If it’s not on the cards anytime soon and those in the know (not me) think it would be a relatively straightforward modification of the univariate case, then I’ll happily have a crack at it and open a pr.

Cheers  
Arthur

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [April 3, 2021, 1:17pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/2 "2021-04-03T13:17:05Z")

</div>

It think it would be best to ask in an issue at

> **[GitHub - JuliaStats/Distributions.jl: A Julia package for probability...](https://github.com/JuliaStats/Distributions.jl/)**
>
> A Julia package for probability distributions and associated functions. - GitHub - JuliaStats/Distributions.jl: A Julia package for probability distributions and associated functions.

That said, if you make a PR I don’t see why anyone would object to merging it; but even if it does not end up being merged you can just put it in its own package.

---

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [April 3, 2021, 3:45pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/3 "2021-04-03T15:45:22Z")

</div>

Thanks Tamas.  
I wasn’t sure of the etiquette around filing a feature request as an issue before making any attempt to contribute.

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [May 20, 2021, 3:03pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/4 "2021-05-20T15:03:51Z")

</div>

Hello, did you end up with your own implementation or did you make a PR on Distributions.jl ?

---

<div class="post-metadata">

### Author: ![EvoArt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evoart/32/25357_2.png) [@EvoArt](https://discourse.julialang.org/u/EvoArt)
#### Post date: [May 20, 2021, 9:34pm UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/5 "2021-05-20T21:34:41Z")

</div>

Neither! This fell by the wayside for now, as other projects took priority. In the next week or two, I will most likely whip up a quick and dirty function to directly update the log likelihood in Turing. Then hopefully refine it (and add sampling function etc) and make a PR.

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [May 21, 2021, 9:59am UTC](https://discourse.julialang.org/t/multivariate-noncentral-hypergeometric-distributions/58450/6 "2021-05-21T09:59:49Z")

</div>

Thanks. For info, it has been added on SciPy in the latest version (1.6)…
