Dundas Chart for Windows Forms
Variance Formula
See Also Send comments on this topic.
Formula Reference > Statistical Formulas > Variance Formula



Glossary Item Box

Overview

Enterprise Edition Only Feature.

This formula returns the variance within a group of data.

Applying the Formula

All statistical formulas are calculated using the Statistics class, and the following table describes how to use its Variance method.

 

Value/Description Example
Formula Name: Statistics.Variance ("Series1", false);.
Parameters:
  1. inputSeriesName: The name of the Series object that stores the group of data.
  2. sampleVariance: true if the data is a sample of a population, false if it is the entire population.
Statistics.Variance("Series1", false);
Return: A double that represents the variance within the group of data.

-

 

Note
Make sure that all data points have their XValue property set, and that their series'  XValueIndexed property has been set to false.

Statistical Interpretation

Variance is the square of the standard deviation for the given data.

 

Example

This sample gets the variance of the data points in a series named "Series1". Note that the Y1 value of the data points is used. We also assume that a sample from the entire population is not being used.

Visual Basic Copy Code
Imports Dundas.Charting.WinControl
  ...
  
Dim result As Double = Chart1.DataManipulator.Statistics.Variance("Series1", false)

C# Copy Code
using Dundas.Charting.WinControl;
  ...
  
double result = Chart1.DataManipulator.Statistics.Variance("Series1", false);

See Also

©2009. All Rights Reserved.