非赘生性囊肿什么意思| 什么菜好消化| 男人得了hpv有什么症状| 梦见车掉水里了什么征兆| 眼睛红痒用什么眼药水| 鼻子出血是什么原因| 肝早期硬化身体有什么症状| 勾引什么意思| 牙痛吃什么药好得快| 办理护照需要什么| 孕酮低吃什么好提高| 迁单是什么意思| 维生素b12又叫什么| 鸡拉白色稀粪吃什么药| 结婚28年是什么婚| 原汤化原食什么意思| 眉毛下方有痣代表什么| 干咳嗽喉咙痒是什么原因| 内心独白什么意思| 吗丁啉是什么药| 折耳根是什么东西| 舌头上有黑点是什么原因| 红斑狼疮复发的症状是什么| 聪明绝顶是什么意思| 佛跳墙是什么意思| 肾阳虚吃什么| 1.8是什么星座| 青提是什么| 在农村做什么生意好| fc是什么| 唇周发黑是什么原因| 很困但是睡不着是什么原因| 发烧腿疼是什么原因| 玫瑰花可以和什么一起泡水喝| 为什么有的人怎么吃都不胖| 尿酸ua偏高是什么意思| 靖康耻指的是什么历史事件| 惊悸的意思是什么| 亏空是什么意思| 开塞露的成分是什么| 捉摸不透是什么意思| 精美的什么| n代表什么| no.是什么意思| 鹅蛋脸适合什么发型| 可拉明又叫什么| 男人性功能太强是什么原因| 蜱虫是什么| 公安局跟派出所有什么区别| 丁香花长什么样| 茯苓和土茯苓有什么区别| 嘴唇干燥是什么原因| 泡脚去湿气用什么泡最好| giada是什么牌子| 牙疼吃什么药止痛快| rt是什么意思| 建兰什么时候开花| 毕业穿的衣服叫什么| 乙型肝炎核心抗体阳性是什么意思| 伏特加兑什么好喝| 胆结石吃什么水果好| 下午三点多是什么时辰| 什么的树影| 三查八对的内容是什么| 工作性质是什么意思| 伤风是什么意思| 血糖高对身体有什么危害| 孤独终老什么意思| 爬金字塔为什么会死| 36是什么码| eb病毒抗体阳性是什么意思| 机翻是什么意思| ur是什么牌子| 直肠炎吃什么药最好| 腊月初七是什么星座| 杜蕾斯是什么| 什么叫suv车| 为什么抽烟就想拉屎| 鱼油有什么功效和作用| sla是什么| 八月十三号是什么星座| 属龙的和什么属相最配| 猫咪为什么害怕黄瓜| 脑梗前有什么预兆| 海兔是什么| 玟是什么意思| 手足口不能吃什么食物| 香港脚是什么意思| 尿酸高可以吃什么| 肾结水有什么危害| 肾结石是什么原因引起的| 纳豆是什么豆子| 高血糖挂什么科室的号| 什么是三农| 七月十六号是什么星座| 不自主的摇头是什么病| 渐冻症是什么病| 肠胃炎可以吃什么水果| 工字可以加什么偏旁| 算什么男人歌词| 女性私处长痘痘是什么原因| 联字五行属什么| 死缓是什么意思| 石千读什么| 交期是什么意思| 曾是什么意思| 地奥心血康软胶囊主治什么病| 口腔溃疡吃什么食物| 腮腺炎什么症状| 大面念什么| 世界上最多笔画的字是什么字| 庄周梦蝶是什么意思| 舒肝解郁胶囊治什么病| 憋气是什么意思| 什么是健康管理| 罗非鱼长什么样| 金桔什么时候开花结果| 肺结节吃什么药最好| 医院院长是什么级别| 肝火胃火旺吃什么药| 印度尼西亚是什么人种| 猎奇什么意思| 核磁共振主要检查什么| 活泼开朗是什么意思| 脑癌是什么原因引起的| 马上是什么意思| 玄关画挂什么图最好| 教师节送什么礼物好| 肿瘤介入治疗是什么意思| 招商是什么工作| 农历六月十九是什么日子| 为什么头发老出油| 沙僧的武器叫什么名字| 心电图能查出什么| 甲胎蛋白是检查什么| 喝酒吃什么解酒| 筋是什么| 梦见自己大肚子怀孕是什么意思| 脆皮鸭什么意思| 阿尔茨海默症是什么症状| 心肌酶能查出什么病| 刘禅属什么生肖| 人老放屁是什么原因| 脸上痒是什么原因| 梦见手机丢了又找到了是什么意思| 什么是18k金| eagle是什么意思| 饷是什么意思| 最近老坏东西暗示什么| 魂牵梦绕是什么意思| 传宗接代是什么意思| 胡牌是什么意思| 上午十点到十一点是什么时辰| 生蚝补什么| 硼酸是什么| 知了猴有什么营养| 淋巴细胞绝对值偏低说明什么| 舌苔又白又厚是什么原因| 睾丸肿痛吃什么药| 血红蛋白高是什么原因| 洋红色是什么颜色| 双胞胎代表什么生肖| 孩子多动缺什么| 脸上有红血丝是什么原因| 什么穿针大眼瞪小眼| 发痧吃什么药可以断根| 肚子胀疼是什么原因| 胃疼可以吃什么食物| 阳痿有什么症状| 粉玫瑰适合送什么人| 1947年属猪的是什么命| 脾肺两虚吃什么中成药| 四爱是什么意思| 人流后能吃什么水果| 天道好轮回什么意思| 牛油果和什么不能一起吃| 想当演员考什么学校| 什么对什么| 明矾有什么作用| 腹泻吃什么好| 高血压一级是什么意思| 小米长什么样| 团五行属什么| 为什么不能在床上打坐| 红润润的什么| 女性喝什么茶比较好| 前列腺有什么症状| 琥珀酱是什么味| 胃不舒服想吐吃什么药| 论是什么意思| 女性尿检能查出什么病| 不走寻常路是什么意思| 半年抛是什么意思| 为什么叫香港脚| 12生肖为什么没有猫| castle是什么意思| 规培是什么| 乔字五行属什么| 滑石粉是什么东西| 偏食是什么意思| 送老师什么花好| 格格是什么意思| 下面老是痒是什么原因| 久坐脚肿是什么原因| 血压低压高吃什么药| 靠北是什么意思| 学区房什么意思| 中国人为什么要学英语| 呦西是什么意思| 怀孕三个月吃什么对胎儿好| 独角仙生活在什么地方| 1月28日什么星座| kap是什么意思| 榔头是什么意思| 耳石症是什么症状| 毛豆吃多了有什么坏处| 人绒毛膜促性腺激素是查什么的| 尿液发臭是什么原因| 婴儿便秘怎么办什么方法最有效| 公募基金是什么意思| 上火吃什么最快能降火| 阴虱什么症状| 龙冲什么生肖| 艾草泡脚有什么好处| 什么食物含蛋白高| 梦见小男孩是什么预兆| 洗手做羹汤是什么意思| 全蛋液是什么意思| 日月星辰下一句是什么| miu什么牌子| 鬼冢虎属于什么档次| nicu是什么意思| 免疫力差吃什么可以增强抵抗力| 叶公好龙讽刺了什么| 反复发烧挂什么科| 手麻脚麻是什么病| 沙雕是什么意思| 分心念什么| 卧底是什么意思| 低压高吃什么中成药| 生殖器疱疹吃什么药| 沙果是什么水果| 创伤性湿肺是什么意思| 阴茎进入阴道什么感觉| 打牙祭是什么意思| 顶嘴是什么意思| ria是什么意思| 灰菜有什么功效与作用| 意志力什么意思| 岁岁年年是什么意思| 妇科湿疹用什么药膏最有效| 肾积水是什么原因造成的怎么治疗| 脚底板发热是什么原因| 空调外机风扇不转是什么原因| 手抖吃什么药最好| 经期不能吃什么| 葬爱家族是什么意思| 儿童流黄鼻涕吃什么药| 当兵苦到什么程度| as是什么元素| 湿气重喝什么茶好| 女人喝咖啡有什么好处| 经常催吐有什么危害| 什么是房补| 百度
百度 有时,因为一时没有还上,就会有催债电话打到她的手机上,并对她进行威胁恐吓。

In probability theory and statistics, variance is the expected value of the squared deviation from the mean of a random variable. The standard deviation (SD) is obtained as the square root of the variance. Variance is a measure of dispersion, meaning it is a measure of how far a set of numbers is spread out from their average value. It is the second central moment of a distribution, and the covariance of the random variable with itself, and it is often represented by , , , , or .[1]

Example of samples from two populations with the same mean but different variances. The red population has mean 100 and variance 100 (SD=10) while the blue population has mean 100 and variance 2500 (SD=50) where SD stands for Standard Deviation.

An advantage of variance as a measure of dispersion is that it is more amenable to algebraic manipulation than other measures of dispersion such as the expected absolute deviation; for example, the variance of a sum of uncorrelated random variables is equal to the sum of their variances. A disadvantage of the variance for practical applications is that, unlike the standard deviation, its units differ from the random variable, which is why the standard deviation is more commonly reported as a measure of dispersion once the calculation is finished. Another disadvantage is that the variance is not finite for many distributions.

There are two distinct concepts that are both called "variance". One, as discussed above, is part of a theoretical probability distribution and is defined by an equation. The other variance is a characteristic of a set of observations. When variance is calculated from observations, those observations are typically measured from a real-world system. If all possible observations of the system are present, then the calculated variance is called the population variance. Normally, however, only a subset is available, and the variance calculated from this is called the sample variance. The variance calculated from a sample is considered an estimate of the full population variance. There are multiple ways to calculate an estimate of the population variance, as discussed in the section below.

The two kinds of variance are closely related. To see how, consider that a theoretical probability distribution can be used as a generator of hypothetical observations. If an infinite number of observations are generated using a distribution, then the sample variance calculated from that infinite set will match the value calculated using the distribution's equation for variance. Variance has a central role in statistics, where some ideas that use it include descriptive statistics, statistical inference, hypothesis testing, goodness of fit, and Monte Carlo sampling.

Geometric visualisation of the variance of an arbitrary distribution (2, 4, 4, 4, 5, 5, 7, 9):
  1. A frequency distribution is constructed.
  2. The centroid of the distribution gives its mean.
  3. A square with sides equal to the difference of each value from the mean is formed for each value.
  4. Arranging the squares into a rectangle with one side equal to the number of values, n, results in the other side being the distribution's variance, σ2.

Definition

edit

The variance of a random variable ? is the expected value of the squared deviation from the mean of ?, ?: ? This definition encompasses random variables that are generated by processes that are discrete, continuous, neither, or mixed. The variance can also be thought of as the covariance of a random variable with itself:

? The variance is also equivalent to the second cumulant of a probability distribution that generates ?. The variance is typically designated as ?, or sometimes as ? or ?, or symbolically as ? or simply ? (pronounced "sigma squared"). The expression for the variance can be expanded as follows: ?

In other words, the variance of X is equal to the mean of the square of X minus the square of the mean of X. This equation should not be used for computations using floating-point arithmetic, because it suffers from catastrophic cancellation if the two components of the equation are similar in magnitude. For other numerically stable alternatives, see algorithms for calculating variance.

Discrete random variable

edit

If the generator of random variable ? is discrete with probability mass function ?, then

?

where ? is the expected value. That is,

?

(When such a discrete weighted variance is specified by weights whose sum is not?1, then one divides by the sum of the weights.)

The variance of a collection of ? equally likely values can be written as

?

where ? is the average value. That is,

?

The variance of a set of ? equally likely values can be equivalently expressed, without directly referring to the mean, in terms of squared deviations of all pairwise squared distances of points from each other:[2]

?

Absolutely continuous random variable

edit

If the random variable ? has a probability density function ?, and ? is the corresponding cumulative distribution function, then

?

or equivalently,

?

where ? is the expected value of ? given by

?

In these formulas, the integrals with respect to ? and ? are Lebesgue and Lebesgue–Stieltjes integrals, respectively.

If the function ? is Riemann-integrable on every finite interval ? then

?

where the integral is an improper Riemann integral.

Examples

edit

Exponential distribution

edit

The exponential distribution with parameter λ > 0 is a continuous distribution whose probability density function is given by ? on the interval [0, ∞). Its mean can be shown to be ?

Using integration by parts and making use of the expected value already calculated, we have: ?

Thus, the variance of X is given by ?

Fair die

edit

A fair six-sided die can be modeled as a discrete random variable, X, with outcomes 1 through 6, each with equal probability 1/6. The expected value of X is ? Therefore, the variance of X is ?

The general formula for the variance of the outcome, X, of an n-sided die is ?

Commonly used probability distributions

edit

The following table lists the variance for some commonly used probability distributions.

Name of the probability distribution Probability distribution function Mean Variance
Binomial distribution ? ? ?
Geometric distribution ? ? ?
Normal distribution ? ? ?
Uniform distribution (continuous) ? ? ?
Exponential distribution ? ? ?
Poisson distribution ? ? ?

Properties

edit

Basic properties

edit

Variance is non-negative because the squares are positive or zero: ?

The variance of a constant is zero. ?

Conversely, if the variance of a random variable is 0, then it is almost surely a constant. That is, it always has the same value: ?

Issues of finiteness

edit

If a distribution does not have a finite expected value, as is the case for the Cauchy distribution, then the variance cannot be finite either. However, some distributions may not have a finite variance, despite their expected value being finite. An example is a Pareto distribution whose index ? satisfies ?

Decomposition

edit

The general formula for variance decomposition or the law of total variance is: If ? and ? are two random variables, and the variance of ? exists, then

?

The conditional expectation ? of ? given ?, and the conditional variance ? may be understood as follows. Given any particular value y of?the random variable?Y, there is a conditional expectation ? given the event?Y?=?y. This quantity depends on the particular value?y; it is a function ?. That same function evaluated at the random variable Y is the conditional expectation ?

In particular, if ? is a discrete random variable assuming possible values ? with corresponding probabilities ?, then in the formula for total variance, the first term on the right-hand side becomes

?

where ?. Similarly, the second term on the right-hand side becomes

?

where ? and ?. Thus the total variance is given by

?

A similar formula is applied in analysis of variance, where the corresponding formula is

?

here ? refers to the Mean of the Squares. In linear regression analysis the corresponding formula is

?

This can also be derived from the additivity of variances, since the total (observed) score is the sum of the predicted score and the error score, where the latter two are uncorrelated.

Similar decompositions are possible for the sum of squared deviations (sum of squares, ?): ? ?

Calculation from the CDF

edit

The population variance for a non-negative random variable can be expressed in terms of the cumulative distribution function F using

?

This expression can be used to calculate the variance in situations where the CDF, but not the density, can be conveniently expressed.

Characteristic property

edit

The second moment of a random variable attains the minimum value when taken around the first moment (i.e., mean) of the random variable, i.e. ?. Conversely, if a continuous function ? satisfies ? for all random variables X, then it is necessarily of the form ?, where a > 0. This also holds in the multidimensional case.[3]

Units of measurement

edit

Unlike the expected absolute deviation, the variance of a variable has units that are the square of the units of the variable itself. For example, a variable measured in meters will have a variance measured in meters squared. For this reason, describing data sets via their standard deviation or root mean square deviation is often preferred over using the variance. In the dice example the standard deviation is 2.9 ≈ 1.7, slightly larger than the expected absolute deviation of?1.5.

The standard deviation and the expected absolute deviation can both be used as an indicator of the "spread" of a distribution. The standard deviation is more amenable to algebraic manipulation than the expected absolute deviation, and, together with variance and its generalization covariance, is used frequently in theoretical statistics; however the expected absolute deviation tends to be more robust as it is less sensitive to outliers arising from measurement anomalies or an unduly heavy-tailed distribution.

Propagation

edit

Addition and multiplication by a constant

edit

Variance is invariant with respect to changes in a location parameter. That is, if a constant is added to all values of the variable, the variance is unchanged: ?

If all values are scaled by a constant, the variance is scaled by the square of that constant: ?

The variance of a sum of two random variables is given by ?

where ? is the covariance.

Linear combinations

edit

In general, for the sum of ? random variables ?, the variance becomes: ? see also general Bienaymé's identity.

These results lead to the variance of a linear combination as:

?

If the random variables ? are such that ? then they are said to be uncorrelated. It follows immediately from the expression given earlier that if the random variables ? are uncorrelated, then the variance of their sum is equal to the sum of their variances, or, expressed symbolically:

?

Since independent random variables are always uncorrelated (see Covariance §?Uncorrelatedness and independence), the equation above holds in particular when the random variables ? are independent. Thus, independence is sufficient but not necessary for the variance of the sum to equal the sum of the variances.

Matrix notation for the variance of a linear combination

edit

Define ? as a column vector of ? random variables ?, and ? as a column vector of ? scalars ?. Therefore, ? is a linear combination of these random variables, where ? denotes the transpose of ?. Also let ? be the covariance matrix of ?. The variance of ? is then given by:[4]

?

This implies that the variance of the mean can be written as (with a column vector of ones)

?

Sum of variables

edit

Sum of uncorrelated variables

edit

One reason for the use of the variance in preference to other measures of dispersion is that the variance of the sum (or the difference) of uncorrelated random variables is the sum of their variances:

?

This statement is called the Bienaymé formula[5] and was discovered in 1853.[6][7] It is often made with the stronger condition that the variables are independent, but being uncorrelated suffices. So if all the variables have the same variance σ2, then, since division by n is a linear transformation, this formula immediately implies that the variance of their mean is

?

That is, the variance of the mean decreases when n increases. This formula for the variance of the mean is used in the definition of the standard error of the sample mean, which is used in the central limit theorem.

To prove the initial statement, it suffices to show that

?

The general result then follows by induction. Starting with the definition,

?

Using the linearity of the expectation operator and the assumption of independence (or uncorrelatedness) of X and Y, this further simplifies as follows:

?

Sum of correlated variables

edit
Sum of correlated variables with fixed sample size
edit

In general, the variance of the sum of n variables is the sum of their covariances:

?

(Note: The second equality comes from the fact that Cov(Xi,Xi) = Var(Xi).)

Here, ? is the covariance, which is zero for independent random variables (if it exists). The formula states that the variance of a sum is equal to the sum of all elements in the covariance matrix of the components. The next expression states equivalently that the variance of the sum is the sum of the diagonal of covariance matrix plus two times the sum of its upper triangular elements (or its lower triangular elements); this emphasizes that the covariance matrix is symmetric. This formula is used in the theory of Cronbach's alpha in classical test theory.

So, if the variables have equal variance σ2 and the average correlation of distinct variables is ρ, then the variance of their mean is

?

This implies that the variance of the mean increases with the average of the correlations. In other words, additional correlated observations are not as effective as additional independent observations at reducing the uncertainty of the mean. Moreover, if the variables have unit variance, for example if they are standardized, then this simplifies to

?

This formula is used in the Spearman–Brown prediction formula of classical test theory. This converges to ρ if n goes to infinity, provided that the average correlation remains constant or converges too. So for the variance of the mean of standardized variables with equal correlations or converging average correlation we have

?

Therefore, the variance of the mean of a large number of standardized variables is approximately equal to their average correlation. This makes clear that the sample mean of correlated variables does not generally converge to the population mean, even though the law of large numbers states that the sample mean will converge for independent variables.

Sum of uncorrelated variables with random sample size
edit

There are cases when a sample is taken without knowing, in advance, how many observations will be acceptable according to some criterion. In such cases, the sample size N is a random variable whose variation adds to the variation of X, such that,[8] ? which follows from the law of total variance.

If N has a Poisson distribution, then ? with estimator n = N. So, the estimator of ? becomes ?, giving ? (see standard error of the sample mean).

Weighted sum of variables

edit

The scaling property and the Bienaymé formula, along with the property of the covariance Cov(aX,?bY) = ab Cov(X,?Y) jointly imply that

?

This implies that in a weighted sum of variables, the variable with the largest weight will have a disproportionally large weight in the variance of the total. For example, if X and Y are uncorrelated and the weight of X is two times the weight of Y, then the weight of the variance of X will be four times the weight of the variance of Y.

The expression above can be extended to a weighted sum of multiple variables:

?

Product of variables

edit

Product of independent variables

edit

If two variables X and Y are independent, the variance of their product is given by[9] ?

Equivalently, using the basic properties of expectation, it is given by

?

Product of statistically dependent variables

edit

In general, if two variables are statistically dependent, then the variance of their product is given by: ?

Arbitrary functions

edit

The delta method uses second-order Taylor expansions to approximate the variance of a function of one or more random variables: see Taylor expansions for the moments of functions of random variables. For example, the approximate variance of a function of one variable is given by

?

provided that f is twice differentiable and that the mean and variance of X are finite.

Population variance and sample variance

edit

Real-world observations such as the measurements of yesterday's rain throughout the day typically cannot be complete sets of all possible observations that could be made. As such, the variance calculated from the finite set will in general not match the variance that would have been calculated from the full population of possible observations. This means that one estimates the mean and variance from a limited set of observations by using an estimator equation. The estimator is a function of the sample of n observations drawn without observational bias from the whole population of potential observations. In this example, the sample would be the set of actual measurements of yesterday's rainfall from available rain gauges within the geography of interest.

The simplest estimators for population mean and population variance are simply the mean and variance of the sample, the sample mean and (uncorrected) sample variance – these are consistent estimators (they converge to the value of the whole population as the number of samples increases) but can be improved. Most simply, the sample variance is computed as the sum of squared deviations about the (sample) mean, divided by n as the number of samples. However, using values other than n improves the estimator in various ways. Four common values for the denominator are n, n???1, n?+?1, and n???1.5: n is the simplest (the variance of the sample), n???1 eliminates bias,[10] n?+?1 minimizes mean squared error for the normal distribution,[11] and n???1.5 mostly eliminates bias in unbiased estimation of standard deviation for the normal distribution.[12]

Firstly, if the true population mean is unknown, then the sample variance (which uses the sample mean in place of the true mean) is a biased estimator: it underestimates the variance by a factor of (n???1) / n; correcting this factor, resulting in the sum of squared deviations about the sample mean divided by n -1 instead of n, is called Bessel's correction.[10] The resulting estimator is unbiased and is called the (corrected) sample variance or unbiased sample variance. If the mean is determined in some other way than from the same samples used to estimate the variance, then this bias does not arise, and the variance can safely be estimated as that of the samples about the (independently known) mean.

Secondly, the sample variance does not generally minimize mean squared error between sample variance and population variance. Correcting for bias often makes this worse: one can always choose a scale factor that performs better than the corrected sample variance, though the optimal scale factor depends on the excess kurtosis of the population (see mean squared error: variance) and introduces bias. This always consists of scaling down the unbiased estimator (dividing by a number larger than n???1) and is a simple example of a shrinkage estimator: one "shrinks" the unbiased estimator towards zero. For the normal distribution, dividing by n?+?1 (instead of n???1 or n) minimizes mean squared error.[11] The resulting estimator is biased, however, and is known as the biased sample variation.

Population variance

edit

In general, the population variance of a finite population of size N with values xi is given by ?

where the population mean is ? and ?, where ? is the expectation value operator.

The population variance can also be computed using[13]

?

(The right side has duplicate terms in the sum while the middle side has only unique terms to sum.) This is true because ?

The population variance matches the variance of the generating probability distribution. In this sense, the concept of population can be extended to continuous random variables with infinite populations.

Sample variance

edit

Biased sample variance

edit

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.[14] 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.

We take a sample with replacement of n values Y1, ..., Yn from the population of size N, where n < N, and estimate the variance on the basis of this sample.[15] Directly taking the variance of the sample data gives the average of the squared deviations:[16]

?

(See the section Population variance for the derivation of this formula.) Here, ? denotes the sample mean: ?

Since the Yi are selected randomly, both ? and ? are random variables. Their expected values can be evaluated by averaging over the ensemble of all possible samples {Yi} of size n from the population. For ? this gives: ?

Here ? derived in the section is population variance and ? due to independency of ? and ?.

Hence ? gives an estimate of the population variance ? that is biased by a factor of ? because the expectation value of ? is smaller than the population variance (true variance) by that factor. For this reason, ? is referred to as the biased sample variance.

Unbiased sample variance

edit

Correcting for this bias yields the unbiased sample variance, denoted ?:

?

Either estimator may be simply referred to as the sample variance when the version can be determined by context. The same proof is also applicable for samples taken from a continuous probability distribution.

The use of the term n ? 1 is called Bessel's correction, and it is also used in sample covariance and the sample standard deviation (the square root of variance). The square root is a concave function and thus introduces negative bias (by Jensen's inequality), which depends on the distribution, and thus the corrected sample standard deviation (using Bessel's correction) is biased. The unbiased estimation of standard deviation is a technically involved problem, though for the normal distribution using the term n ? 1.5 yields an almost unbiased estimator.

The unbiased sample variance is a U-statistic for the function f(y1, y2) = (y1 ? y2)2/2, meaning that it is obtained by averaging a 2-sample statistic over 2-element subsets of the population.

Example
edit

For a set of numbers {10, 15, 30, 45, 57, 52, 63, 72, 81, 93, 102, 105}, if this set is the whole data population for some measurement, then variance is the population variance 932.743 as the sum of the squared deviations about the mean of this set, divided by 12 as the number of the set members. If the set is a sample from the whole population, then the unbiased sample variance can be calculated as 1017.538 that is the sum of the squared deviations about the mean of the sample, divided by 11 instead of 12. A function VAR.S in Microsoft Excel gives the unbiased sample variance while VAR.P is for population variance.

Distribution of the sample variance

edit
Distribution and cumulative distribution of S22, for various values of ν = n ? 1, when the yi are independent normally distributed.

Being a function of random variables, the sample variance is itself a random variable, and it is natural to study its distribution. In the case that Yi are independent observations from a normal distribution, Cochran's theorem shows that the unbiased sample variance S2 follows a scaled chi-squared distribution (see also: asymptotic properties and an elementary proof):[17] ?

where σ2 is the population variance. As a direct consequence, it follows that ?

and[18]

?

If Yi are independent and identically distributed, but not necessarily normally distributed, then[19]

?

where κ is the kurtosis of the distribution and μ4 is the fourth central moment.

If the conditions of the law of large numbers hold for the squared observations, S2 is a consistent estimator of?σ2. One can see indeed that the variance of the estimator tends asymptotically to zero. An asymptotically equivalent formula was given in Kenney and Keeping (1951:164), Rose and Smith (2002:264), and Weisstein (n.d.).[20][21][22]

Samuelson's inequality

edit

Samuelson's inequality is a result that states bounds on the values that individual observations in a sample can take, given that the sample mean and (biased) variance have been calculated.[23] Values must lie within the limits ?

Relations with the harmonic and arithmetic means

edit

It has been shown[24] that for a sample {yi} of positive real numbers,

?

where ymax is the maximum of the sample, A is the arithmetic mean, H is the harmonic mean of the sample and ? is the (biased) variance of the sample.

This bound has been improved, and it is known that variance is bounded by

?

where ymin is the minimum of the sample.[25]

Tests of equality of variances

edit

The F-test of equality of variances and the chi square tests are adequate when the sample is normally distributed. Non-normality makes testing for the equality of two or more variances more difficult.

Several non parametric tests have been proposed: these include the Barton–David–Ansari–Freund–Siegel–Tukey test, the Capon test, Mood test, the Klotz test and the Sukhatme test. The Sukhatme test applies to two variances and requires that both medians be known and equal to zero. The Mood, Klotz, Capon and Barton–David–Ansari–Freund–Siegel–Tukey tests also apply to two variances. They allow the median to be unknown but do require that the two medians are equal.

The Lehmann test is a parametric test of two variances. Of this test there are several variants known. Other tests of the equality of variances include the Box test, the Box–Anderson test and the Moses test.

Resampling methods, which include the bootstrap and the jackknife, may be used to test the equality of variances.

Moment of inertia

edit

The variance of a probability distribution is analogous to the moment of inertia in classical mechanics of a corresponding mass distribution along a line, with respect to rotation about its center of mass.[26] It is because of this analogy that such things as the variance are called moments of probability distributions.[26] The covariance matrix is related to the moment of inertia tensor for multivariate distributions. The moment of inertia of a cloud of n points with a covariance matrix of ? is given by[citation needed] ?

This difference between moment of inertia in physics and in statistics is clear for points that are gathered along a line. Suppose many points are close to the x axis and distributed along it. The covariance matrix might look like ?

That is, there is the most variance in the x direction. Physicists would consider this to have a low moment about the x axis so the moment-of-inertia tensor is ?

Semivariance

edit

The semivariance is calculated in the same manner as the variance but only those observations that fall below the mean are included in the calculation: ? It is also described as a specific measure in different fields of application. For skewed distributions, the semivariance can provide additional information that a variance does not.[27]

For inequalities associated with the semivariance, see Chebyshev's inequality §?Semivariances.

Etymology

edit

The term variance was first introduced by Ronald Fisher in his 1918 paper The Correlation Between Relatives on the Supposition of Mendelian Inheritance:[28]

The great body of available statistics show us that the deviations of a human measurement from its mean follow very closely the Normal Law of Errors, and, therefore, that the variability may be uniformly measured by the standard deviation corresponding to the square root of the mean square error. When there are two independent causes of variability capable of producing in an otherwise uniform population distributions with standard deviations ? and ?, it is found that the distribution, when both causes act together, has a standard deviation ?. It is therefore desirable in analysing the causes of variability to deal with the square of the standard deviation as the measure of variability. We shall term this quantity the Variance...

Generalizations

edit

For complex variables

edit

If ? is a scalar complex-valued random variable, with values in ? then its variance is ? where ? is the complex conjugate of ? This variance is a real scalar.

For vector-valued random variables

edit

As a matrix

edit

If ? is a vector-valued random variable, with values in ? and thought of as a column vector, then a natural generalization of variance is ? where ? and ? is the transpose of X, and so is a row vector. The result is a positive semi-definite square matrix, commonly referred to as the variance-covariance matrix (or simply as the covariance matrix).

If ? is a vector- and complex-valued random variable, with values in ? then the covariance matrix is ? where ? is the conjugate transpose of ?[citation needed] This matrix is also positive semi-definite and square.

As a scalar

edit

Another generalization of variance for vector-valued random variables ?, which results in a scalar value rather than in a matrix, is the generalized variance ?, the determinant of the covariance matrix. The generalized variance can be shown to be related to the multidimensional scatter of points around their mean.[29]

A different generalization is obtained by considering the equation for the scalar variance, ?, and reinterpreting ? as the squared Euclidean distance between the random variable and its mean, or, simply as the scalar product of the vector ? with itself. This results in ? which is the trace of the covariance matrix.

See also

edit

Types of variance

edit

References

edit
  1. ^ Wasserman, Larry (2005). All of Statistics: a concise course in statistical inference. Springer texts in statistics. p.?51. ISBN?978-1-4419-2322-6.
  2. ^ Yuli Zhang; Huaiyu Wu; Lei Cheng (June 2012). Some new deformation formulas about variance and covariance. Proceedings of 4th International Conference on Modelling, Identification and Control(ICMIC2012). pp.?987–992.
  3. ^ Kagan, A.; Shepp, L. A. (1998). "Why the variance?". Statistics & Probability Letters. 38 (4): 329–333. doi:10.1016/S0167-7152(98)00041-8.
  4. ^ Johnson, Richard; Wichern, Dean (2001). Applied Multivariate Statistical Analysis. Prentice Hall. p.?76. ISBN?0-13-187715-1.
  5. ^ Loève, M. (1977) "Probability Theory", Graduate Texts in Mathematics, Volume 45, 4th edition, Springer-Verlag, p.?12.
  6. ^ Bienaymé, I.-J. (1853) "Considérations à l'appui de la découverte de Laplace sur la loi de probabilité dans la méthode des moindres carrés", Comptes rendus de l'Académie des sciences Paris, 37, p.?309–317; digital copy available [1] Archived 2025-08-14 at the Wayback Machine
  7. ^ Bienaymé, I.-J. (1867) "Considérations à l'appui de la découverte de Laplace sur la loi de probabilité dans la méthode des moindres carrés", Journal de Mathématiques Pures et Appliquées, Série 2, Tome 12, p.?158–167; digital copy available [2][3]
  8. ^ Cornell, J R, and Benjamin, C A, Probability, Statistics, and Decisions for Civil Engineers, McGraw-Hill, NY, 1970, pp.178-9.
  9. ^ Goodman, Leo A. (December 1960). "On the Exact Variance of Products". Journal of the American Statistical Association. 55 (292): 708–713. doi:10.2307/2281592. JSTOR?2281592.
  10. ^ a b Reichmann, W. J. (1961). "Appendix 8". Use and Abuse of Statistics (Reprinted 1964–1970 by Pelican?ed.). London: Methuen.
  11. ^ a b Kourouklis, Stavros (2012). "A New Estimator of the Variance Based on Minimizing Mean Squared Error". The American Statistician. 66 (4): 234–236. doi:10.1080/00031305.2012.735209. ISSN?0003-1305. JSTOR?23339501.
  12. ^ Brugger, R. M. (1969). "A Note on Unbiased Estimation of the Standard Deviation". The American Statistician. 23 (4): 32. doi:10.1080/00031305.1969.10481865.
  13. ^ Yuli Zhang; Huaiyu Wu; Lei Cheng (June 2012). Some new deformation formulas about variance and covariance. Proceedings of 4th International Conference on Modelling, Identification and Control(ICMIC2012). pp.?987–992.
  14. ^ Navidi, William (2006). Statistics for Engineers and Scientists. McGraw-Hill. p.?14.
  15. ^ Montgomery, D. C. and Runger, G. C. (1994) Applied statistics and probability for engineers, page 201. John Wiley & Sons New York
  16. ^ Yuli Zhang; Huaiyu Wu; Lei Cheng (June 2012). Some new deformation formulas about variance and covariance. Proceedings of 4th International Conference on Modelling, Identification and Control(ICMIC2012). pp.?987–992.
  17. ^ Knight, K. (2000). Mathematical Statistics. New York: Chapman and Hall. proposition 2.11.
  18. ^ Casella, George; Berger, Roger L. (2002). Statistical Inference (2nd?ed.). Example 7.3.3, p.?331. ISBN?0-534-24312-6.
  19. ^ Mood, A. M., Graybill, F. A., and Boes, D.C. (1974) Introduction to the Theory of Statistics, 3rd Edition, McGraw-Hill, New York, p. 229
  20. ^ Kenney, John F.; Keeping, E.S. (1951). Mathematics of Statistics. Part Two (PDF) (2nd?ed.). Princeton, New Jersey: D. Van Nostrand Company, Inc. Archived from the original (PDF) on Nov 17, 2018 – via KrishiKosh.
  21. ^ Rose, Colin; Smith, Murray D. (2002). "Mathematical Statistics with Mathematica". Springer-Verlag, New York.
  22. ^ Weisstein, Eric W. "Sample Variance Distribution". MathWorld Wolfram.
  23. ^ Samuelson, Paul (1968). "How Deviant Can You Be?". Journal of the American Statistical Association. 63 (324): 1522–1525. doi:10.1080/01621459.1968.10480944. JSTOR?2285901.
  24. ^ Mercer, A. McD. (2000). "Bounds for A–G, A–H, G–H, and a family of inequalities of Ky Fan's type, using a general method". J. Math. Anal. Appl. 243 (1): 163–173. doi:10.1006/jmaa.1999.6688.
  25. ^ Sharma, R. (2008). "Some more inequalities for arithmetic mean, harmonic mean and variance". Journal of Mathematical Inequalities. 2 (1): 109–114. CiteSeerX?10.1.1.551.9397. doi:10.7153/jmi-02-11.
  26. ^ a b Magnello, M. Eileen. "Karl Pearson and the Origins of Modern Statistics: An Elastician becomes a Statistician". The Rutherford Journal.
  27. ^ Fama, Eugene F.; French, Kenneth R. (2025-08-14). "Q&A: Semi-Variance: A Better Risk Measure?". Fama/French Forum.
  28. ^ Ronald Fisher (1918) The correlation between relatives on the supposition of Mendelian Inheritance
  29. ^ Kocherlakota, S.; Kocherlakota, K. (2004). "Generalized Variance". Encyclopedia of Statistical Sciences. Wiley Online Library. doi:10.1002/0471667196.ess0869. ISBN?0-471-66719-6.
蜂蜜什么时候喝最佳 白龙马叫什么名字 什么东西止血最快最好 南京立秋吃什么 男人喝劲酒有什么好处
逍遥丸适合什么人吃 木辛读什么 什么是易经 葡萄糖输液有什么作用 特发性震颤是什么病
依非韦伦片治什么病的 9.4号是什么星座 姜薯是什么 gps是什么意思 病理科是干什么的
观音成道日是什么意思 发烧喝什么药 世界上最多的动物是什么 中产阶级的标准是什么 鼻子上的痣有什么寓意
眼睛疲劳干涩用什么眼药水hcv8jop5ns7r.cn 拜观音菩萨有什么讲究hcv7jop5ns5r.cn 铁蛋白高挂什么科hcv9jop0ns9r.cn 尿血吃什么药最好hcv8jop1ns6r.cn 眉尾上方有痣代表什么hcv9jop8ns3r.cn
kitchen什么意思hcv9jop3ns1r.cn 备孕男性吃什么精子强hcv8jop8ns7r.cn 化学阉割什么意思hcv8jop9ns0r.cn 郡肝是什么hcv8jop7ns5r.cn 电梯房什么楼层最好hcv8jop0ns4r.cn
sdeer是什么牌子hcv8jop9ns5r.cn 经常感冒吃什么增强抵抗力hcv9jop6ns9r.cn 焚香是什么意思hcv8jop1ns4r.cn 副师级是什么军衔0735v.com 老人双脚浮肿是什么原因hcv8jop2ns2r.cn
血小板上升是什么原因hcv8jop7ns1r.cn 氯雷他定不能和什么药一起吃hcv8jop8ns8r.cn 肺气肿是什么原因引起的hcv9jop1ns4r.cn 索条影是什么意思hcv8jop0ns7r.cn 头晕想吐吃什么药hcv8jop2ns8r.cn
百度