Module B+F · freq 7
np.mean(x)np.std(x, ddof=1) — ddof=1 gives the sample version dividing by tc = stats.t.ppf((1+conf)/2, n-1), CI = m ± tc*s/√nddof=1 → dividing by n instead of n−1, all wrong (MATLAB's std/var default to n−1, so they are actually safe)norm.ppf instead of t.ppf — with σ unknown you must use t