Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2008-05-05 06:19:10


>-----Original Message-----
>From: boost-bounces_at_[hidden]
>[mailto:boost-bounces_at_[hidden]] On Behalf Of Johan Råde
>Sent: 05 May 2008 07:43
>To: boost_at_[hidden]
>Subject: [boost] [Math Statistical Distributions]
>Hypergeometric distribution
>Hi John,
>Do you have any plans to add support for the hypergeometric
>That distribution is important for the Fisher exact test for
>independence in a 2x2 table.

A brief glance shows that Wikipedia lacks a formula for the cdf

but looks promising

An accurate computation of the hypergeometric distribution function
Full text pdf formatPdf (676 KB)
Source ACM Transactions on Mathematical Software (TOMS) archive
Volume 19 , Issue 1 (March 1993) table of contents
Pages: 33 - 43
Year of Publication: 1993
Trong Wu Southern Illinois Univ., Edwardsville

but I don't have immediate access to the full article pdf.


MathCAD appears to offer the density, cumulative and inverse, so this could provide some independent test values.

So I might be persuaded to tackle this (rather tedious - the formulae look a bit messy) task.


Paul A Bristow
Prizet Farmhouse, Kendal, Cumbria UK LA8 8AB
+44 1539561830 & SMS, Mobile +44 7714 330204 & SMS

Boost list run by bdawes at, gregod at, cpdaniel at, john at