mcframework.utils.t_crit#
- mcframework.utils.t_crit(confidence: float, df: int) float[source]#
Two-sided Student t critical value \(t_{\alpha/2,\;\mathrm{df}}\).
- Parameters:
- Returns:
float\(t_{\alpha/2,\;\mathrm{df}}\ \)- the upper \(1-\alpha/2\) quantile of \(t_{\mathrm{df}}\).
- Raises:
ValueErrorIf
confidenceis not in(0, 1)ordf < 1.
Examples
>>> round(t_crit(0.95, df=9), 3) 2.262