I need to calculate a t statistic for a java app. I'm using the Apache Commons library but can't find the implementation I need. I can get it in Excel with the TINV command, 1-the confidence level, and the sample count-1. For example, with the values 10, 24, and 19; and a 90% confidence level, I get a t-statistic of 2.9199... That's the number I need to reproduce in java.
Any ideas?
Excel TINV(probability, deg_freedom)
analogue:
new org.apache.commons.math3.distribution.TDistribution(deg_freedom).
inverseCumulativeProbability(probability)
Cheers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With