Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/e/denigma-HEAD/denigma/apps/stats/ttest.py   denigma(Download)
from scipy.special import stdtr
from utils import unbiased_var as var
from utils import unbiased_std as std
 
def one_sample_t(A,mu):
    n = len(A)
    df = n-1
    z = (np.mean(A) - mu) / std(A)

src/d/e/denigma-HEAD/denigma/apps/stats/t-test.py   denigma(Download)
from scipy.special import stdtr
 
from utils import unbiased_std
 
def one_sample_t(A,mu):
    n = len(A)
    df = n - 1
    z = np.mean(A) - mu 
    z /= unbiased_std(A)