Package obitools :: Package statistics :: Module noncentralhypergeo
[hide private]
[frames] | no frames]

Module noncentralhypergeo

source code

Classes [hide private]
  Interval
  Product
Functions [hide private]
 
dec_log(self, base=10) source code
 
cmpb(i1, i2) source code
 
fact(n) source code
 
cnp(n, p) source code
 
hypergeometic(x, n, M, N) source code
 
nchypergeometique(x, n, M, N, r) source code
Variables [hide private]
  __package__ = 'obitools.statistics'

Imports: BasicContext, Underflow, DecimalException, DivisionByZero, localcontext, InvalidOperation, ROUND_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UP, Inexact, getcontext, ROUND_FLOOR, Overflow, ROUND_HALF_DOWN, Decimal, DefaultContext, Context, ROUND_05UP, ROUND_CEILING, Subnormal, Rounded, ExtendedContext, setcontext, Clamped, log


Function Details [hide private]

hypergeometic(x, n, M, N)

source code 
Parameters:
  • x (int) - Variable aleatoire
  • n (int) - taille du tirage
  • M (int) - boule gagnante
  • N (int

    p(x)= cnp(M,x) * cnp(N-M,n-x) / cnp(N,n)

    ) - nombre total dans l'urne

nchypergeometique(x, n, M, N, r)

source code 
Parameters:
  • x (int) - Variable aleatoire
  • n (int) - taille du tirage
  • M (int) - boule gagnante
  • N (int) - nombre total dans l'urne
  • r (float

    p(x)= cnp(M,x) * cnp(N-M,n-x) / cnp(N,n)

    ) - odd ratio