import mir.test: shouldApprox; studentsTCDF(-3.0, 5).shouldApprox == 0.01504962; studentsTCDF(-2.0, 5).shouldApprox == 0.05096974; studentsTCDF(-1.0, 5).shouldApprox == 0.1816087; studentsTCDF(0.0, 5).shouldApprox == 0.5; studentsTCDF(1.0, 5).shouldApprox == 0.8183913; studentsTCDF(2.0, 5).shouldApprox == 0.9490303; studentsTCDF(3.0, 5).shouldApprox == 0.9849504; // Can include location/scale studentsTCDF(-3.0, 5, 1, 2).shouldApprox == 0.05096974; studentsTCDF(-2.0, 5, 1, 2).shouldApprox == 0.09695184; studentsTCDF(-1.0, 5, 1, 2).shouldApprox == 0.1816087; studentsTCDF(0.0, 5, 1, 2).shouldApprox == 0.3191494; studentsTCDF(1.0, 5, 1, 2).shouldApprox == 0.5; studentsTCDF(2.0, 5, 1, 2).shouldApprox == 0.6808506; studentsTCDF(3.0, 5, 1, 2).shouldApprox == 0.8183913;
Ditto, with location and scale parameters (by standardizing x).