Re: Statistics with PostgreSQL

From: Brent Wood <b(dot)wood(at)niwa(dot)co(dot)nz>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: Hrishikesh Deshmukh <hdeshmuk(at)gmail(dot)com>, Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Statistics with PostgreSQL
Date: 2005-03-20 22:25:44
Message-ID: 20050321101558.R41216@storm-user.niwa.co.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> Mean is just sum(col)/count(col)

You can also just use avg(col).

Either way, be careful because nulls may not be treated as you want for
such calculations.

The stats package R can access Postgres databases, and can be used for
robust statistical analyses of the data.

See:
http://sourceforge.net/projects/rdbi/

Cheers,

Brent Wood

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2005-03-20 22:30:44 Re: 26h Query.
Previous Message Alex Adriaanse 2005-03-20 22:08:31 Tracking row updates