Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a .Net Statistics library with T-Tests and p-values? [closed]

Does anybody know of any good and free statistics libraries for .Net?

I am working on calculating T-Tests, which I have written a formula to calculate, although now I need a formula for the p-value, which is a little more complex, and not being a statistician, has me a little lost.

like image 630
Darren Young Avatar asked Mar 09 '11 13:03

Darren Young


People also ask

What statistical test uses p-value?

The p-value is a number, calculated from a statistical test, that describes how likely you are to have found a particular set of observations if the null hypothesis were true. P-values are used in hypothesis testing to help decide whether to reject the null hypothesis.

Why p-values are not a useful measure?

1. P-values can indicate how incompatible the data are with a specified statistical model. 2. P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.

Is power the same as p-value?

Significance (p-value) is the probability that we reject the null hypothesis while it is true. Power is the probability of rejecting the null hypothesis while it is false.


3 Answers

I suggest you look at the Math.NET project. It supports various distributions, but I don't know if it has t-tests and p-values.

like image 90
John Alexiou Avatar answered Nov 15 '22 13:11

John Alexiou


Meta.Numerics has a lot of statistical functionality. It supports t-tests (one sample, two sample, paired), as well as Mann-Whitney and sign tests (non-parameteric alternatives to t-tests), and ANOVA (a t-test extended to more than two samples) and Kruskal-Wallis (a non-parameteric alternative to the ANOVA). And yes, it reports back a P-value with all tests.

like image 42
David Wright Avatar answered Nov 15 '22 13:11

David Wright


Since version 4 the .NET libraries include the StatisticFormula class which provides T-Tests. This class is available in the namespaces System.Web.UI.DataVisualization.Charting and System.Windows.Forms.DataVisualization.Charting

Link to documentation and usage:

TTestResult result = Chart1.DataManipulator.Statistics.TTestUnEqualVariances(0.2, 0.05, "Series1", "Series2");
like image 37
Neil Avatar answered Nov 15 '22 13:11

Neil