[Haskell-cafe] Re: Math.Statistics

2007-09-26 Thread apfelmus
ok wrote: I believe the author may have misunderstood numerically stable. The obvious (sum xs)/(fromIntegral $ length $ xs) is fine for the mean, That's probably my fault, out of ignorance. Do you know a good online resource about numeric stability? (I don't have the Knuth at

Re: [Haskell-cafe] Re: Math.Statistics

2007-09-26 Thread Henning Thielemann
On Wed, 26 Sep 2007, apfelmus wrote: ok wrote: I believe the author may have misunderstood numerically stable. The obvious (sum xs)/(fromIntegral $ length $ xs) is fine for the mean, That's probably my fault, out of ignorance. Do you know a good online resource about numeric

Re: [Haskell-cafe] Re: Math.Statistics

2007-09-26 Thread Henning Thielemann
On Wed, 26 Sep 2007, ChrisK wrote: ok wrote: There are a number of interesting issues raised by mbeddoe's Math.Statistics. data (Floating a, Ord a) = Simple_Continuous_Variate a = SCV [a] Int a a (Array Int a) list_to_variate xs = SCV xs n m s o where n = length

[Haskell-cafe] Re: Math.Statistics

2007-09-25 Thread ok
There are a number of interesting issues raised by mbeddoe's Math.Statistics. 0. Coding issues. Why use foldr1 (*) instead of product? covm xs = split' (length xs) cs where cs = [ cov a b | a - xs, b - xs] split' n = unfoldr (\y - if null y then Nothing