I have a set of benchmark data for which I compute summary statistics using Apache Math Commons. Now I want to use the package to compute confidence intervals for the arithmetic
Apache Commons Math does not have direct support for constructing confidence intervals. However, it does have everything needed to compute them.
First, use SummaryStatistics, or some other StatisticalSummary implementation to summarize your data into sample statistics.
Next, use TDistribution to compute critical values for your desired confidence level. The degrees of freedom can be inferred from the summary statistics' n
property.
Last, use the mean
, variance
, and n
property values from the summary statistics and the t critical value from the distribution to compute your lower and upper confidence limits.