Re: [Haskell-cafe] multivariate normal distribution in Haskell?

2013-04-14 Thread Clark Gaebel
Is [1] what you're looking for (see the 'multinormal' function)?

monte-carlo's pretty great... :)

  - Clark

[1]
http://hackage.haskell.org/packages/archive/monte-carlo/0.4.2/doc/html/Control-Monad-MC-Class.html#t:RNG


On Sat, Apr 13, 2013 at 9:26 AM, Bas de Haas w.b.deh...@uu.nl wrote:

 Dear List,

 I’m implementing a probabilistic model for recognising musical chords in
 Haskell. This model relies on a multivariate normal distribution. I’ve been
 searching the internet and mainly hackage for a Haskell library to do this
 for me, but so far I’ve been unsuccessful.

 What I’m looking for is a Haskell function that does exactly what the
 mvnpdf function in matlab does: http://www.mathworks.nl/help/**
 stats/multivariate-normal-**distribution.htmlhttp://www.mathworks.nl/help/stats/multivariate-normal-distribution.html

 Does anyone know a library that can help me out?

 Thanks.

 Kind regards,
 Bas de Haas

 --
 dr. W. Bas de Haas
 Department of Information and Computing Sciences
 Utrecht University

 E: w.b.deh...@uu.nl
 T: +31 30 253 5965
 I: http://www.uu.nl/staff/**WBdeHaas/ http://www.uu.nl/staff/WBdeHaas/

 __**_
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/**mailman/listinfo/haskell-cafehttp://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] multivariate normal distribution in Haskell?

2013-04-14 Thread Ben Gamari
Bas de Haas w.b.deh...@uu.nl writes:

 Dear List,

 I’m implementing a probabilistic model for recognising musical chords in
 Haskell. This model relies on a multivariate normal distribution. I’ve
 been searching the internet and mainly hackage for a Haskell library to
 do this for me, but so far I’ve been unsuccessful.

 What I’m looking for is a Haskell function that does exactly what the
 mvnpdf function in matlab does:
 http://www.mathworks.nl/help/stats/multivariate-normal-distribution.html

 Does anyone know a library that can help me out?

As you are likely aware, the trouble with the multivariate normal is the
required inversion of the covariance. If you make assumptions concerning
the nature of the covariance (e.g. force it to be diagonal or low
dimensional) the problem gets much easier. To treat the general, high
dimensional case, you pretty much need a linear algebra library
(e.g. HMatrix) to perform the inversion (and determinant for proper
normalization). Otherwise, implementing the function given the inverse
is quite straightforward.

Cheers,

- Ben

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] multivariate normal distribution in Haskell?

2013-04-13 Thread Bas de Haas

Dear List,

I’m implementing a probabilistic model for recognising musical chords in 
Haskell. This model relies on a multivariate normal distribution. I’ve 
been searching the internet and mainly hackage for a Haskell library to 
do this for me, but so far I’ve been unsuccessful.


What I’m looking for is a Haskell function that does exactly what the 
mvnpdf function in matlab does: 
http://www.mathworks.nl/help/stats/multivariate-normal-distribution.html


Does anyone know a library that can help me out?

Thanks.

Kind regards,
Bas de Haas

--
dr. W. Bas de Haas
Department of Information and Computing Sciences
Utrecht University

E: w.b.deh...@uu.nl
T: +31 30 253 5965
I: http://www.uu.nl/staff/WBdeHaas/

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe