mcframework.stats_engine.ci_mean#
- mcframework.stats_engine.ci_mean(x: ndarray, ctx) dict[str, float | str][source]#
Parametric CI for \(\mathbb{E}[X]\) using z/t critical values.
Let \(\bar X\) be the sample mean and \(SE = s/\sqrt{n_\text{eff}}\). The interval is
\[\bar X \pm c \cdot SE,\]where \(c\) is selected by
mcframework.utils.autocrit()according toci_methodand \(n_\text{eff}\).- Parameters:
- x
ndarray Input sample.
- ctx
StatsContextorMapping Configuration supplying at least
n. Additional fields such asconfidence,ddof, andci_methodrefine the interval.
- x
- Returns: