Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 4:16 PM, Fernando Perez fperez@gmail.com wrote: Hi all, in recent work with a colleague, the need came up for a multivariate hypergeometric sampler; I had a look in the numpy code and saw we have the bivariate version, but not the multivariate one. I had a look at

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 8:08 PM, josef.p...@gmail.com wrote: On Mon, Jul 2, 2012 at 4:16 PM, Fernando Perez fperez@gmail.com wrote: Hi all, in recent work with a colleague, the need came up for a multivariate hypergeometric sampler; I had a look in the numpy code and saw we have the

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread Skipper Seabold
On Mon, Jul 2, 2012 at 9:35 PM, josef.p...@gmail.com wrote: On Mon, Jul 2, 2012 at 8:08 PM, josef.p...@gmail.com wrote: On Mon, Jul 2, 2012 at 4:16 PM, Fernando Perez fperez@gmail.com wrote: Hi all, in recent work with a colleague, the need came up for a multivariate

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread Fernando Perez
On Mon, Jul 2, 2012 at 7:31 PM, Skipper Seabold jsseab...@gmail.com wrote: I could be wrong, but I think PyMC has sampling and likelihood. It appears you're right! http://pymc-devs.github.com/pymc/distributions.html?highlight=hypergeometric#pymc.distributions.multivariate_hypergeometric_like

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread Fernando Perez
On Mon, Jul 2, 2012 at 7:49 PM, Fernando Perez fperez@gmail.com wrote: It appears you're right! http://pymc-devs.github.com/pymc/distributions.html?highlight=hypergeometric#pymc.distributions.multivariate_hypergeometric_like Furthermore, the code actually calls a sampler implemented in

Re: [Numpy-discussion] Multivariate hypergeometric distribution?

2012-07-02 Thread josef . pktd
On Mon, Jul 2, 2012 at 10:53 PM, Fernando Perez fperez@gmail.com wrote: On Mon, Jul 2, 2012 at 7:49 PM, Fernando Perez fperez@gmail.com wrote: It appears you're right! nice idea: https://github.com/pymc-devs/pymc/blob/master/pymc/distributions.py#L1670