Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/n/i/nipy-0.3.0/nipy/algorithms/statistics/tests/test_empirical_pvalue.py   nipy(Download)
 
 
from ..empirical_pvalue import (
    NormalEmpiricalNull, smoothed_histogram_from_samples, fdr, fdr_threshold, 
    gaussian_fdr_threshold, gaussian_fdr)
    q = fdr(x)
    assert_true((q[:10] < .05).all())
    pc = fdr_threshold(x)
    assert_true((pc > .0025) & (pc < .1))
 
    q =fdr(x)
    assert_true((q > .05).all())
    pc = fdr_threshold(x)
    assert_true(pc == .05 / 100)