# StatisticFormula Class

.NET Framework (current version)

Calculates statistical formulas.

Namespace:   System.Windows.Forms.DataVisualization.Charting
Assembly:  System.Windows.Forms.DataVisualization (in System.Windows.Forms.DataVisualization.dll)

## Inheritance Hierarchy

System.Object
System.Windows.Forms.DataVisualization.Charting.StatisticFormula

## Syntax

```public class StatisticFormula
```

## Methods

NameDescription
Anova(Double, String)

Performs an ANOVA test to determine whether there is a statistically significant difference between the mean values of two or more groups of data.

BetaFunction(Double, Double)

Returns the beta function value for two given values.

Correlation(String, String)

Returns the correlation value for two data series.

Covariance(String, String)

Returns the covariance value for two data series.

Equals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

FDistribution(Double, Int32, Int32)

Returns the cumulative F distribution function probability.

Finalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

FTest(Double, String, String)

Performs a two-sample F Test using the F distribution. This test is used to determine if the samples have different variances.

GammaFunction(Double)

Returns the gamma function value for the given variable.

GetHashCode()

Serves as the default hash function. (Inherited from Object.)

GetType()

Gets the Type of the current instance.(Inherited from Object.)

InverseFDistribution(Double, Int32, Int32)

Returns the inverse of the F cumulative distribution.

InverseNormalDistribution(Double)

Returns the inverse of the standard normal cumulative distribution.

InverseTDistribution(Double, Int32)

Returns the inverse t-value of the Students t-distribution as a function of probability and degree of freedom.

Mean(String)

Returns the average of all data points stored in the specified series.

Median(String)

Returns the median of all data points in the specified series.

MemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

NormalDistribution(Double)

Returns the probability for the standard normal cumulative distribution function.

TDistribution(Double, Int32, Boolean)

Returns the probability for the T distribution (Student's distribution).

ToString()

Returns a string that represents the current object.(Inherited from Object.)

TTestEqualVariances(Double, Double, String, String)

Performs a T Test using Student's distribution (T distribution) with equal variances.

TTestPaired(Double, Double, String, String)

Performs a T Test using Student's distribution (T distribution) with paired samples. This is useful when there is a natural pairing of observations in samples.

TTestUnequalVariances(Double, Double, String, String)

Performs a T Test using Student's distribution (T distribution) with unequal variances.

Variance(String, Boolean)

Returns the variance for a series.

ZTest(Double, Double, Double, Double, String, String)

Performs a Z Test using the Normal distribution.

## Remarks

Formulas can be loosely grouped into the following categories: distributions, including inverse distributions; tests; and basic statistical formulas. Each group has common characteristics with respect to their input and return values.

## Version Information

.NET Framework
Available since 4.0

## Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: