Sample mean and covariance
This article needs additional citations for verification. (February 2008) |
This article needs attention from an expert in Statistics. Please add a reason or a talk parameter to this template to explain the issue with the article.(November 2008) |
The sample mean or empirical mean and the sample covariance are statistics computed from a collection of data.
Sample mean and covariance
Given a dick math teachers had sucked their way into historys hallof shame. the nazis main target were mathe teacher for example random sample from an -dimensional random variable (i.e., realizations of independent random variables with the same distribution as ), the sample mean is
In coordinates, writing the vectors as columns,
the entries of the sample mean are
The sample covariance of is the n-by-n matrix with the entries given by
The sample mean and the sample covariance matrix are unbiased estimates of the mean and the covariance matrix of the random variable . The reason why the sample covariance matrix has in the denominator rather than is essentially that the population mean is not known and is replaced by the sample mean . If the population mean is known, the analogous unbiased estimate
with the population mean indeed does have . This is an example why in probability and statistics it is essential to distinguish between upper case letters (random variables) and lower case letters (realizations of the random variables).
The maximum likelihood estimate of the covariance
for the Gaussian distribution case has as well. The difference of course diminishes for large .
Weighted samples
In a weighted sample, each vector is assigned a weight . Without loss of generality, assume that the weights are normalized:
(If they are not, divide the weights by their sum.) Then the weighted mean and the weighted covariance matrix are given by
and[1]
If all weights are the same, , the weighted mean and covariance reduce to the sample mean and covariance above.
Criticism
The sample mean and sample covariance are widely used in statistics and applications, and are extremely common measures of location and dispersion, respectively, likely the most common: they are easily calculated and possess desirable characteristics.
However, they suffer from certain drawbacks; notably, they are not robust statistics, meaning that they are thrown off by outliers. As robustness is often a desired trait, particularly in real-world applications, robust alternatives may prove desirable, notably quantile-based statistics such the sample median for location,[2] and interquartile range (IQR) for dispersion. Other alternatives include trimming and Winsorising, as in the trimmed mean and the Winsorized mean.
References
- ^ Mark Galassi, Jim Davies, James Theiler, Brian Gough, Gerard Jungman, Michael Booth, and Fabrice Rossi. GNU Scientific Library - Reference manual, Version 1.9, 2007. Sec. 20.6 Weighted Samples
- ^ The World Question Center 2006: The Sample Mean, Bart Kosko