From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joseph Syjuco <joseph@asti.dost.gov.ph>
Cc: postgres <pgsql-sql@postgresql.org>
Subject: Re: variance aggregate function incorrect? Reference Materials reg create aggregate
Date: Mon, 24 Jun 2002 11:39:25 -0400
Message-ID: <18525.1024933165@sss.pgh.pa.us> (raw)
In-Reply-To: <1024956806.2590.22.camel@Askr>
References: <1024956806.2590.22.camel@Askr>
Joseph Syjuco <joseph@asti.dost.gov.ph> writes:
> i needed the variance function ... i dont know if i introduced the wrong
> parameters or maybe this variance is not the variance that im looking
> for but it doesnt provide the right results
> variance=(nEx^2 - (Ex)^2)/(n(n-1))
That's what I'd expect it to do, all right. Please define "doesnt
provide the right results".
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, joseph@asti.dost.gov.ph
Subject: Re: variance aggregate function incorrect? Reference Materials reg create aggregate
In-Reply-To: <18525.1024933165@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox