Module B+F · freq 15
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, giving the wrong answer throughout (MATLAB's std/var default to n−1, so they're actually safe here)norm.ppf instead of t.ppf — with σ unknown you must use t