Compute t-inverse in apache commons

I need to calculate t-statistics for a java application. I use the Apache Commons library, but cannot find the implementation I need. I can get it in Excel using the TINV command, 1 - confidence level and number of samples-1. For example, with values ​​of 10, 24, and 19; and the confidence level is 90%, I get a t-statistic of 2.9199 ... This is the number I need to reproduce in java.

Any ideas?

+5
source share
2 answers

Excel TINV(probability, deg_freedom)analogue:

new org.apache.commons.math3.distribution.TDistribution(deg_freedom).
inverseCumulativeProbability(probability)

Greetings

+5
source

All Articles