Module B+F · freq 14
np.mean(x)np.var(x, ddof=1) —— ddof=1 means dividing by for the sampletc = stats.t.ppf((1+conf)/2, n-1), CI = m ± tc*s/√nddof=1 → divides by n instead of n−1, everything wrong (MATLAB's std/var default to n−1, so they're actually safe)norm.ppf instead of t.ppf —— if σ is unknown you must use t