Skip to content
Prev 35368 / 63424 Next

apparently incorrect p-values from 2-sided Kolmogorov-Smirnov test (PR#14145)

I've fixed this by adding 0.5/mn to q.  The problem (at least in principle) with multiplying them all up is integer overflow.

By the time 0.5/mn underflows to zero, missing one value in the distribution won't matter.

      -thomas
On Fri, 18 Dec 2009, David John Allwright wrote:

            
Thomas Lumley			Assoc. Professor, Biostatistics
tlumley at u.washington.edu	University of Washington, Seattle
Message-ID: <alpine.LRH.2.01.0912180826140.16373@hymn13.u.washington.edu>
In-Reply-To: <alpine.DEB.1.00.0912181231170.20366@swamp-thing.maths.ox.ac.uk>