Re: Q:Aggregrating Weekly Production Data. How do you do it?
От
John D. Burger
Тема
Re: Q:Aggregrating Weekly Production Data. How do you do it?
Дата
Msg-id
1BF89005-FC4E-4E0A-9B1E-E342B0080EC8@mitre.org
Ответ на
Q:Aggregrating Weekly Production Data. How do you do it? (Ow Mun Heng)
Список
Дерево обсуждения
Q:Aggregrating Weekly Production Data. How do you do it? Ow Mun Heng <Ow.Mun.Heng@wdc.com>
Re: Q:Aggregrating Weekly Production Data. How do you do it? "John D. Burger" <john@mitre.org>
Re: Q:Aggregrating Weekly Production Data. How do you do
it? Ron Johnson <ron.l.johnson@cox.net>
Re: Q:Aggregrating Weekly Production Data. How do you do
it? btober@ct.metrocast.net
Re: Q:Aggregrating Weekly Production Data. How do you do it? "Scott Marlowe" <scott.marlowe@gmail.com>
Re: Q:Aggregrating Weekly Production Data. How do you do
it? Ow Mun Heng <Ow.Mun.Heng@wdc.com>
Re: Q:Aggregrating Weekly Production Data. How do you do it? "Scott Marlowe" <scott.marlowe@gmail.com>
Ow Mun Heng wrote: > The results are valid (verified with actual data) but I don't > understand > the logic. All the Statistical books I've read marked stdev as sqrt > (sum(x - ave(x))^2 / (n - 1). The formula is very different, hence the > confusion. A formula is not an algorithm. In particular, the naive way of calculating variance or standard deviation has massive numerical instability problems - anything involving sums of squares does. There are a variety of alternate algorithms for stddev/variance, I presume your other algorithm is similarly trying to avoid these same issues (but I have not looked closely at it). You can also see Wikipedia for one of the most well known, due to Knuth/Wellford: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance - John D. Burger MITRE
В списке pgsql-general по дате отправления
От: Sander Steffann
Дата: