Re: Odd statistics behaviour in 7.2 - Mailing list pgsql-hackers

From Bruno Wolff III
Subject Re: Odd statistics behaviour in 7.2
Date
Msg-id 20020216202028.GA7882@wolff.to
Whole thread Raw
In response to Re: Odd statistics behaviour in 7.2  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Odd statistics behaviour in 7.2  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, Feb 15, 2002 at 07:09:42PM -0500, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> 3. The equation is numerically stable even when n is much smaller than
> N, because the only cancellation is in the term (n - f1) which we can
> compute exactly.  A lot of the other equations I looked at depend on
> series like (1 - n/N)**i which are going to be really nasty when n/N
> is tiny.

You can work with the above for n << N by using power series. For n << N,
(1 - n/N)**i ~= 1 - in/N.


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.2 and current timestamp bug?
Next
From: Tom Lane
Date:
Subject: Re: Odd statistics behaviour in 7.2