studentTQuantile
The inverse cumulative distribution function (quantile) of Student’s t-distribution: the t value below which a proportion p of the distribution lies.
Basic example
Section titled “Basic example”The t value below which a proportion p of Student’s t-distribution lies, for df degrees of freedom. 0.975 gives the critical value for a two-sided 95% interval: large with one degree of freedom, and converging on the normal distribution’s 1.96 as df grows. linearConfidence uses it to size its band.
import {studentTQuantile} from "@d3plus/math";
studentTQuantile(0.975, 1);
studentTQuantile(0.975, 5);
studentTQuantile(0.975, 30);
studentTQuantile(0.975, 1000);
studentTQuantile(0.95, 10);
studentTQuantile(0.5, 10);
Parameters
import {studentTQuantile} from "@d3plus/math";