OneWayAnovaResult Class 
Namespace: Meta.Numerics.Statistics
The OneWayAnovaResult type exposes the following members.
Name  Description  

Factor 
Gets design factor variance data.
 
Residual 
Gets residual variance data.
 
Result 
Gets the result of the F test for the influence of the factor.
 
Total 
Gets total variance data.

Name  Description  

Equals  (Inherited from Object.)  
Finalize  Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)  
GetHashCode  Serves as a hash function for a particular type. (Inherited from Object.)  
GetType  Gets the Type of the current instance. (Inherited from Object.)  
MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)  
ToString  Returns a string that represents the current object. (Inherited from Object.) 
A one way ANOVA test detects the influence of a single factor on the mean of a measured variable, which is assumed to be normally distributed.
A one way ANOVA result is returned by the static OneWayAnovaTest(ICollectionSample) method.
Fundamentally, a oneway ANOVA is a simple statistical test like any other, with a single test statistic (F) and a single associated null distribution (the FisherDistribution), but some ANOVA users like to examine and report intermediate quantities used in the computation of the test. In particular, the sum of square deviations and degrees of freedom associated with the design factor and the residual, and their sum may be of interest. Each of these appear as rows in the common tabular representation of an ANOVA. To enable this, the class makes this information available as AnovaRow objects returned by the Factor, Residual, and Total properties. This has the unfortunate sideeffect of making the AVOVA look more complicated than it really is. If you just want the test result, you can get it from the Result property.
Suppose you have sampled the heights of aliens from three planets. Heights are approximately normally distributed on each planet. You want to know whether planetoforigin affects average height. You can do a oneway ANOVA to determine if the planet factor affects mean height.
Sample group1 = new Sample(4, 5, 6); Sample group2 = new Sample(3, 4, 5); Sample group3 = new Sample(5, 6, 8, 9); OneWayAnovaResult anova = Sample.OneWayAnovaTest(group1, group2, group3); Console.WriteLine("P = {0}", anova.Result.Probability);