Skip site navigation (1) Skip section navigation (2)

AW: [HACKERS] Standard Deviation function.

From: Andreas Zeugswetter <andreas(dot)zeugswetter(at)telecom(dot)at>
To: "'Bruce Momjian'" <maillist(at)candle(dot)pha(dot)pa(dot)us>
Cc: "'hackers(at)postgresql(dot)org'" <hackers(at)postgresql(dot)org>
Subject: AW: [HACKERS] Standard Deviation function.
Date: 1998-06-05 08:07:40
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
>> I had asked you how to calculate this and the variance early last
>> year.  One (I think the variance) was two-pass because of the need
>> for the average, but I thought the StdDev would work with the struct.

>Variance is just square of std. dev, no?

No !   Stdev is divided by count, Variance by (count - 1)

It was some time ago, but I thing there is a running function that 
can be calculated with one pass. I might be able to dig it up somewhere.
I had it in an excel sheet for learning purposes.


pgsql-hackers by date

Next:From: David GouldDate: 1998-06-05 08:15:46
Subject: Re: [HACKERS] Standard Deviation function.
Previous:From: Michael MeskesDate: 1998-06-05 06:57:33

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group