superexacttestpy.tl.dmv_hyper

superexacttestpy.tl.dmv_hyper(x, nl, set_len, n, logp)

Calculate the probability density of x elements in all of the subsets

Parameters:
x : int

Number of elements x

nl : int

Number of sublists in data

set_len : list

List of length for all sublists in data

n : bool

Length of total background

logp : bool

The result should be with a log scale

Returns:

p – Probability density of x elements in all of the subsets

Return type:

float

Example

>>> dmv_hyper(20,3,[100,200,50],10000,logp=False)
...    8.785866699682634e-110
>>> dmv_hyper(20,3,[100,200,50],0.0,10000,logp=True)
...    0