Variance measures the dispersion of a set of data points around their mean value. It is a quantitative expression of the variability or spread in a dataset. It is crucial in risk management in finance, as it provides a measure of risk associated with a single asset or a portfolio. Mathematically, the variance (, or ) of a random variable is defined as:
where is the expectation operator and is the mean of . In probability theory, the expected value is a generalization of the weighted average. Informally, the expected value is the arithmetic mean of the possible values a random variable can take, weighted by the probability of those outcomes.
If is given as a set of samples , then mean (arithmetic average) is
In many practical situations, the true variance of a population is not known a priori and must be computed somehow. When dealing with extremely large populations, it is not possible to count every object in the population, so the computation must be performed on a sample of the population. This is generally referred to as sample variance or empirical variance. Sample variance can also be applied to the estimation of the variance of a continuous distribution from a sample of that distribution. Correcting for this bias yields the unbiased sample variance, denoted .
In practical terms, a higher variance indicates that the data points are more spread out from the mean.