计算apache commons中的t-inverse

use*_*957 5 java statistics

我需要计算java应用程序的统计数据.我正在使用Apache Commons库但无法找到我需要的实现.我可以使用TINV命令,1 - 置信度和样本数-1在Excel中获取它.例如,值为10,24和19; 和90%的置信水平,我得到2.9199的t统计量...这是我需要在java中重现的数字.

有任何想法吗?

小智 5

Excel TINV(probability, deg_freedom)类似物:

new org.apache.commons.math3.distribution.TDistribution(deg_freedom).
inverseCumulativeProbability(probability)
Run Code Online (Sandbox Code Playgroud)

干杯