Home
Products
Support
Blog
Resources
Company
NMath Stats User's Guide
TOC |  Previous |  Next |  Index

3.7 Spread

Measures of spread are measures of the degree values in the data set differ from each other. For example, the static SumOfSquaredErrors() method on class StatsFunctions calculates the sum of squared errors (SSE) of the elements in the data set. SSE is the sum of the squared differences between each element and the mean.

StandardDeviation() computes the biased standard deviation of the elements in a data set.

For instance:

double stdev = StatsFunctions.StandardDeviation( data );

Alternatively, you can specify the unbiased standard deviation

using a value from the BiasType enumeration:

double stdev =
  StatsFunctions.StandardDeviation( data, BiasType.Unbiased );

NOTE- StatsSettings.Bias specifies the default BiasType.

Variance() calculates the variance of the elements in a data set. Variance is the square of the standard deviation. Again, you can specify a biased or unbiased estimator using values from the BiasType enumeration.

MeanDeviation() calculates the mean deviation of the elements in a data set. The mean deviation is the mean of the absolute deviations about the mean. The mean deviation is defined by

Similarly, MedianDeviationFromMean() calculates the median of the absolute deviations from the mean. MedianDeviationFromMedian() calculates the median of the absolute deviations from the median.

Lastly, InterquartileRange() returns the difference between the median of the highest half and the median of the lowest half of the elements in a data set:

double iqr = StatsFunctions.InterQuartileRange( data );

TOC |  Previous |  Next |  Index

Copyright © 2008 CenterSpace Software, LLC. All rights reserved.
All trademarks and registered trademarks mentioned on this web site are the property of their respective owners.
Contact Webmaster