Navigation
  • Home
  • Recent
  • Most Active
  • Popular
  • Blog
  • Credits
  • RSS
  •   Interaction
  • Register
  • Statistics
  •   Help
  • Suggestions
  • Contact Us
  • How to Edit
  • Help



  • [Edit]



    In probability theory and statistics, the variance of a random variable (or equivalently, of a probability distribution) is a measure of its statistical dispersion, indicating how its possible values are spread around the expected value. Where the expected value shows the location of the distribution, the variance indicates the scale of the values. A more understandable measure is the square root of the variance, called the standard deviation. As its name implies it gives in a standard form an indication of the possible deviations from the mean.

    The variance of a real-valued random variable is its second central moment, and it also happens to be its second cumulant.


        Variance
            Definition
            Properties
            Approximating the variance of a function
            Population variance and sample variance
                Distribution of the sample variance
                An unbiased estimator
        operatorname{E} left( rac{1}{n-1} sum_{i1}^n left( x_i - overline{x}
        rac{1}{n-1} sum_{i1}^n operatorname{E} left( left( x_i - overline{x}
        rac{1}{n-1} sum_{i1}^n operatorname{E} left( left( (x_i - mu) - (overline{x} - mu)
        rac{1}{n-1} sum_{i1}^n left{ operatorname{E} left( (x_i - mu)^2
        rac{1}{n-1} sum_{i1}^n left[ sigma^2
        rac{1}{n-1} sum_{i1}^n left( sigma^2
        rac{1}{n-1} sum_{i1}^n rac{(n-1)sigma^2}{n}
        rac{(n-1)sigma^2}{n-1} sigma^2
                    Alternative proof
        operatorname{E}left( sum_{i1}^n {X_i^2}
        noperatorname{E}left(X_i^2
        n(operatorname{var}left(X_i
        nsigma^2 + rac{1}{n}left( noperatorname{E}left(X_i
        nsigma^2 - rac{1}{n}left[ operatorname{E}left(left(sum_{i1}^n X_i
        nsigma^2 - rac{1}{n}operatorname{var}left(sum_{i1}^n X_i
        (n-1)sigma^2.
            Generalizations
            History
            Moment of inertia
            See also

    top

    Definition

    If mu = operatorname(X) is the expected value (mean) of the random variable X, then the variance is

    operatorname(X) = operatorname( ( X - mu ) ^ 2 ).


    That is, it is the expected value of the square of the deviation of X from its own mean. In plain language, it can be expressed as "The average of the square of the distance of each data point from the mean". It is thus the mean squared deviation. The variance of random variable X is typically designated as operatorname(X), sigma_X^2, or simply sigma^2.

    Note that the above definition can be used for both discrete and continuous random variables.

    Many distributions, such as the Cauchy distribution, do not have a variance because the relevant integral diverges. In particular, if a distribution does not have an expected value, it does not have a variance either. The converse is not true: there are distributions for which the expected value exists, but the variance does not.

    top

    Properties
    If the variance is defined, we can conclude that it is never negative because the squares are positive or zero. The unit of variance is the square of the unit of observation. For example, the variance of a set of heights measured in centimeters will be given in square centimeters. This fact is inconvenient and has motivated many statisticians to instead use the square root of the variance, known as the standard deviation, as a summary of dispersion.

    It can be proven easily from the definition that the variance does not depend on the mean value mu. That is, if the variable is "displaced" an amount b by taking X + b, the variance of the resulting random variable is left untouched. By contrast, if the variable is multiplied by a scaling factor a, the variance is multiplied by a2. More formally, if a and b are real constants and X is a random variable whose variance is defined, then

    operatorname(aX+b)=a^2operatorname(X).


    Another formula for the variance that follows in a straightforward manner from the linearity of expected values and the above definition is:

    operatorname(X)= operatorname(X^2 - 2,X,operatorname(X) + (operatorname(X))^2)


    =operatorname(X^2) - 2(operatorname(X))^2 + (operatorname(X))^2


    =operatorname(X^2) - (operatorname(X))^2


    This is often used to calculate the variance in practice.

    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 independent random variables is the sum of their variances. A weaker condition than independence, called uncorrelatedness also suffices. In general,

    operatorname(aX+bY) =a^2 operatorname(X) + b^2 operatorname(Y) + 2ab, operatorname(X, Y).


    Here operatorname is the covariance, which is zero for independent random variables (if it exists).

    top

    Approximating the variance of a function
    The Delta method uses second-order Taylor expansions to approximate the variance of a function of one or more random variables. For example, the approximate variance of a function of one variable is given by

    operatornameleftf(X) ightapprox left(f'(operatornameleftX ight)

    ight)^2operatornameleftX ight

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

    top

    Population variance and sample variance

    In general, the population variance of a finite population of size N is given by

    sigma^2 = rac 1N sum_^N

    left(x_i - overline
    ight)^ 2 ,

    or if the population is an abstract population with probability distribution Pr:

    sigma^2 = sum_^N

    left(x_i - overline
    ight)^ 2 , Pr(x_i),

    where overline is the population mean. This is merely a special case of the general definition of variance introduced above, but restricted to finite populations.

    In many practical situations, the true variance of a population is not known a priori and must be computed somehow. When dealing with large finite populations, it is almost never possible to find the exact value of the population variance, due to time, cost, and other resource constraints. When dealing with infinite populations, this is generally impossible.

    A common method is estimating the variance of large (finite or infinite) populations from a sample. We take a sample (y_1,dots,y_n) of n values from the population, and estimate the variance on the basis of this sample. There are several good estimators. Two of them are well known:

    s_n^2 = rac 1n sum_^n left(y_i - overline

    ight)^ 2 = rac sum_^y_i^2 - overline^2,
    and
    s^2 = rac sum_^nleft(y_i - overline

    ight)^ 2 = racsum_^n y_i^2 - rac overline^2,

    Both are referred to as sample variance. Most advanced electronic calculators can calculate both s_n^2 and s^2at the press of a button, in which case that button is usually labelled sigma^2 or sigma_n^2 for s_n^2 and sigma_^2 for s^2.

    The two estimators only differ slightly as we see, and for larger values of the sample size n the difference is negligible. The second one is an unbiased estimator of the population variance, meaning that in a large number of repetitions its average value tends to the right value of the population variance. The first one may be seen as the variance of the sample considered as a population.

    One common source of confusion is that the term sample variance may refer to either the unbiased estimator s^2 of the population variance, or to the variance sigma^2 of the sample viewed as a finite population. Both can be used to estimate the true population variance. Apart from theoretical considerations, it doesn't really matter which one is used, as for small sample sizes both are inaccurate and for large values of n they are practically the same. Intuitively, computing the variance by dividing by n instead of n-1 seems to underestimate the population variance. This is however not the case because we are using the sample mean overline as an estimate of the unknown population mean mu, and the raw counts of repeated elements in the sample instead of the unknown true probabilities.

    In practice, for large n, the distinction is often a minor one. In the course of statistical measurements, sample sizes so small as to warrant the use of the unbiased variance
    virtually never occur. In this context Press et al. commented that if the difference between n and n−1 ever matters to you, then you are probably up to no good anyway - e.g., trying to substantiate a questionable hypothesis with marginal data.

    top

    Distribution of the sample variance
    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 y_i are independent Gaussian realizations, Cochran's theorem shows that s^2 follows a scaled chi-square distribution:


    (n-1) racsimchi^2_


    As a direct consequence, it follows that operatorname(s^2)=sigma^2.

    However, even in the absence of the Gaussian assumption, it is still possible to prove that s^2 is unbiased for sigma^2:

    top

    An unbiased estimator

    We will demonstrate why s^2 is an unbiased estimator of the population variance. An estimator hat for a parameter heta is unbiased if operatorname( hat) = heta. Therefore, to prove that s^2 is unbiased, we will show that operatorname( s^2) = sigma^2. As an assumption, the population which the x_i are drawn from has mean mu and variance sigma^2.

    operatorname ( s^2 )


    top

    operatorname{E} left( rac{1}{n-1} sum_{i1}^n left( x_i - overline{x}
    ight) ^ 2
    ight)





    top

    rac{1}{n-1} sum_{i1}^n operatorname{E} left( left( x_i - overline{x}
    ight) ^ 2
    ight)





    top

    rac{1}{n-1} sum_{i1}^n operatorname{E} left( left( (x_i - mu) - (overline{x} - mu)
    ight) ^ 2
    ight)





    top

    rac{1}{n-1} sum_{i1}^n left{ operatorname{E} left( (x_i - mu)^2
    ight)

    - 2 operatorname left( (x_i - mu) (overline - mu)
    ight)

    + operatorname left( (overline - mu) ^ 2
    ight)
    ight}





    top

    rac{1}{n-1} sum_{i1}^n left[ sigma^2

    - 2 left( rac sum_^n operatorname left( (x_i - mu) (x_j - mu)
    ight)
    ight)

    + rac sum_^n sum_^n operatorname left( (x_j - mu) (x_k - mu)
    ight)
    ight]





    top

    rac{1}{n-1} sum_{i1}^n left( sigma^2

    - rac

    + rac
    ight)




    top

    rac{1}{n-1} sum_{i1}^n rac{(n-1)sigma^2}{n}




    top

    rac{(n-1)sigma^2}{n-1} sigma^2



    See also algorithms for calculating variance.

    top

    Alternative proof

    operatornameleft( sum_^n

    ight)

    top

    operatorname{E}left( sum_{i1}^n {X_i^2}
    ight) - noperatornameleft( overline^2
    ight)



    top

    noperatorname{E}left(X_i^2
    ight) - rac operatornameleft(left(sum_^n X_i
    ight)^2
    ight)



    top

    n(operatorname{var}left(X_i
    ight) + (operatornameleft(X_i
    ight))^2) - rac operatornameleft(left(sum_^n X_i
    ight)^2
    ight)



    top

    nsigma^2 + rac{1}{n}left( noperatorname{E}left(X_i
    ight)
    ight)^2 - racoperatornameleft(left(sum_^n X_i
    ight)^2
    ight)



    top

    nsigma^2 - rac{1}{n}left[ operatorname{E}left(left(sum_{i1}^n X_i
    ight)^2
    ight) - left(operatornameleft(sum_^n X_i
    ight)
    ight)^2
    ight]



    top

    nsigma^2 - rac{1}{n}operatorname{var}left(sum_{i1}^n X_i
    ight)

    top

    (n-1)sigma^2.


    top

    Generalizations

    If X is a vector-valued random variable, with values in mathbb^n, and thought of as a column vector, then the natural generalization of variance is operatorname((X - mu)(X - mu)^operatorname), where mu = operatorname(X) and X^operatorname is the transpose of X, and so is a row vector. This variance is a positive semi-definite square matrix, commonly referred to as the covariance matrix.

    If X is a complex-valued random variable, with values in mathbb^n, then its variance is operatorname((X - mu)(X - mu)^

    top

    History

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

    top

    Moment of inertia

    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. It is because of this analogy that such things as the variance are called moments of probability distributions. (The covariance matrix is analogous to the moment of inertia tensor for 2- and 3-D mass distributions.)

    top

    See also

     
    Search more:
     

       
    Source Privacy License Download Contact Us Atlas
    Scientus.org Dictionary (Yet Another Wiki) RC : 1.39
    MIT OpenCourseWare
    This article is licensed under the GNU Free Documentation License [copyleft]. It uses material from the Wikipedia article "Variance". link