Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id E154447719A for ; Mon, 24 Jun 2002 13:13:56 -0400 (EDT) Mailbox-Line: From tgl@sss.pgh.pa.us Mon Jun 24 13:13:56 2002 Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9C75E47702B for ; Mon, 24 Jun 2002 11:39:25 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g5OFdP118528; Mon, 24 Jun 2002 11:39:25 -0400 (EDT) To: Joseph Syjuco Cc: postgres Subject: Re: variance aggregate function incorrect? Reference Materials reg create aggregate In-reply-to: <1024956806.2590.22.camel@Askr> References: <1024956806.2590.22.camel@Askr> Comments: In-reply-to Joseph Syjuco message dated "24 Jun 2002 18:13:25 -0400" Date: Mon, 24 Jun 2002 11:39:25 -0400 Message-ID: <18525.1024933165@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-4.6 required=5.0 tests=IN_REP_TO,X_NOT_PRESENT,SUBJ_HAS_Q_MARK version=2.30 X-Spam-Level: X-Archive-Number: 200206/323 X-Sequence-Number: 8288 Joseph Syjuco 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