Dundas Chart for Windows Forms
Anova Method
See Also  Example Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > Statistics Class : Anova Method


probability
The alpha value (probability that the hypothesis is rejected). Allowable range is 0-1.
Probability
inputSeriesNames

A comma-delimited listing of the names of the series to perform the Anova test for.

At least two series must be specified, with each series representing a group of data. Each series must have the same number of data points, otherwise an exception will be thrown.


Input Series Names

Enterprise Edition Only Feature. This method performs an Anova test for two or more series of data.


This analysis tool performs simple analysis of variance (anova) to test the hypothesis that means from two or more samples are equal (drawn from populations with the same mean). This technique expands on the tests for two means, such as the t-test.

Syntax

Visual Basic (Declaration)  
Public Function Anova( _
   ByVal probability As Double, _
   ByVal inputSeriesNames As String _
) As AnovaResult
Visual Basic (Usage) Copy Code
Dim instance As Statistics
Dim probability As Double
Dim inputSeriesNames As String
Dim value As AnovaResult
 
value = instance.Anova(probability, inputSeriesNames)
C#  
public AnovaResult Anova( 
   double probability,
   string inputSeriesNames
)

Parameters

probability
The alpha value (probability that the hypothesis is rejected). Allowable range is 0-1.
Probability
inputSeriesNames

A comma-delimited listing of the names of the series to perform the Anova test for.

At least two series must be specified, with each series representing a group of data. Each series must have the same number of data points, otherwise an exception will be thrown.


Input Series Names

Return Value

Returns Result class from Anova Test

Example

The following sample performs an Anova Test, using Series1, Series2 and Series3 for the input series. The results are returned in an AnovaResult object.
Visual Basic Copy Code
Imports Dundas.Charting.WinControl
...

Dim result As AnovaResult = Chart1.DataManipulator.Statistics.Anova(.05, "Series1,Series2,Series3")
C# Copy Code
using Dundas.Charting.WinControl;
...

AnovaResult result = Chart1.DataManipulator.Statistics.Anova(.05,
"Series1,Series2,Series3");

Remarks

An ANOVA test is used to test the difference between the means of two or more groups of data.

Two or more groups of data (series) must be specified, and each series must have the same number of data points otherwise an exception will be raised.

If a specified input series does not exist in the series collection at the time of the method call than an exception will be thrown.

The results of the test are returned using an AnovaTestResult object, and the following is a brief description of the properties of this class:

Member Description
SumOfSquaresBetweenGroups Sum of squares between groups.
SumOfSquaresWithinGroups Sum of squares within groups.
SumOfSquaresTotal  Total sum of squares.
DegreeOfFreedomBetweenGroups Degree of freedom between groups. 
DegreeOfFreedomWithinGroups Degree of freedom within groups.
DegreeOfFreedomTotal Total degree of freedom.
MeanSquareVarianceBetweenGroups The mean square of variance between the groups.
FRatio The F ratio.
FCriticalValue The F critical value.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.