Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: hypogeometric sum
Replies: 11   Last Post: Mar 31, 2008 3:25 PM

 Messages: [ Previous | Next ]
 Dann Corbit Posts: 1,424 Registered: 12/8/04
Re: hypogeometric sum
Posted: Mar 28, 2008 4:38 PM

On Mar 28, 1:31 pm, user923005 <dcor...@connx.com> wrote:
> On Mar 28, 4:06 am, gsgs <ster...@aol.com> wrote:
>

> > how do I efficiently calculate or approximate
>
> > SUM [i=0..k] hypergeometrical(i;r,n,w)
>
> > ?
>
> > hypergeometrical(i;r,n,w)=binomia(w,i)*binomial(n-w,r-i)/binomial(n,r)
>
> > this is for testing large gene-databases for recombinations
>
> I am assuming that all values are integral and that you have a
> mathematics system that can compute the answers without overflow (not
> always an easy task if the inputs are large).
>
> Precompute the binomail coefficients and store them in a table.
> Then you will have this:
> binomial[w][i] * binomial[n-w][r-i]/binomial[n][r]
> which is O(1).

I have a very large Pascal's triangle precomputed, if you would like a
copy.
I can also generate one for whatever size you need (I have a program
that generates the programs).

Date Subject Author
3/28/08 Sterten
3/28/08 Dann Corbit
3/28/08 Dann Corbit
3/28/08 Sterten
3/28/08 Dann Corbit
3/29/08 Sterten
3/29/08 nic@temme.net
3/29/08 David W. Cantrell
3/29/08 Olli Lehtonen
3/30/08 Sterten
3/30/08 Ian Smith
3/31/08 Sterten