HomeHow ToHow to : How to Calculate Variance

How to : How to Calculate Variance

[ad_1]

Method 1
Method 1 of 2:

Calculating Sample Variance

  1. Image titled Calculate Variance Step 1


    1
    Use the sample variance formula if you’re working with a partial data set. In most cases, statisticians only have access to a sample, or a subset of the population they’re studying. For example, instead of analyzing the population “cost of every car in Germany,” a statistician could find the cost of a random sample of a few thousand cars. He can use this sample to get a good estimate of German car costs, but it will likely not match the actual numbers exactly.[2]
  2. Image titled Calculate Variance Step 2

    2
    Write down the sample variance formula. The variance of a data set tells you how spread out the data points are. The closer the variance is to zero, the more closely the data points are clustered together. When working with sample data sets, use the following formula to calculate variance:[3]

  3. Image titled Calculate Variance Step 3

    3
    Calculate the mean of the sample. The symbol xÌ… or “x-bar” refers to the mean of a sample.[4]
  4. Image titled Calculate Variance Step 4

    4
    Subtract the mean from each data point. Now it’s time to calculate – xÌ…, where is each number in your data set. Each answer tells you that number’s deviation from the mean, or in plain language, how far away it is from the mean.[7]
  5. Image titled Calculate Variance Step 5

    5
    Square each result. As noted above, your current list of deviations ( – xÌ…) sum up to zero. This means the “average deviation” will always be zero as well, so that doesn’t tell use anything about how spread out the data is. To solve this problem, find the square of each deviation.[8]
  6. Image titled Calculate Variance Step 6

    6
    Find the sum of the squared values. Now it’s time to calculate the entire numerator of the formula: ∑[( – xÌ…)]. The upper-case sigma, ∑, tells you to sum the value of the following term for each value of . You’ve already calculated ( – xÌ…) for each value of in your sample, so all you need to do is add the results of all of the squared deviations together.[10]
  7. Image titled Calculate Variance Step 7

    7
    Divide by n – 1, where n is the number of data points. A long time ago, statisticians just divided by n when calculating the variance of the sample. This gives you the average value of the squared deviation, which is a perfect match for the variance of that sample. But remember, a sample is just an estimate of a larger population. If you took another random sample and made the same calculation, you would get a different result. As it turns out, dividing by n – 1 instead of n gives you a better estimate of variance of the larger population, which is what you’re really interested in. This correction is so common that it is now the accepted definition of a sample’s variance.[12]
  8. Image titled Calculate Variance Step 8

    8
    Understand variance and standard deviation. Note that, since there was an exponent in the formula, variance is measured in the squared unit of the original data. This can make it difficult to understand intuitively. Instead, it’s often useful to use the standard deviation. You didn’t waste your effort, though, as the standard deviation is defined as the square root of the variance. This is why the variance of a sample is written , and the standard deviation of a sample is .

    • For example, the standard deviation of the sample above = s = √33.2 = 5.76.

Method 2
Method 2 of 2:

Calculating Population Variance

  1. Image titled Calculate Variance Step 9

    1
    Use the population variance formula if you’ve collected data from every point in the population. The term “population” refers to the total set of relevant observations. For example, if you’re studying the age of Texas residents, your population would include the age of every single Texas resident. You would normally create a spreadsheet for a large data set like that, but here’s a smaller example data set:[13]
  2. Image titled Calculate Variance Step 10

    2
    Write down the population variance formula. Since a population contains all the data you need, this formula gives you the exact variance of the population. In order to distinguish it from sample variance (which is only an estimate), statisticians use different variables:[14]
  3. Image titled Calculate Variance Step 11

    3
    Find the mean of the population. When analyzing a population, the symbol μ (“mu”) represents the arithmetic mean. To find the mean, add all the data points together, then divide by the number of data points.[15]
  4. Image titled Calculate Variance Step 12

    4
    Subtract the mean from each data point. Data points close to the mean will result in a difference closer to zero. Repeat the subtraction problem for each data point, and you might start to get a sense of how spread out the data is.[16]
  5. Image titled Calculate Variance Step 13

    5
    Square each answer. Right now, some of your numbers from the last step will be negative, and some will be positive. If you picture your data on a number line, these two categories represent numbers to the left of the mean, and numbers to the right of the mean. This is no good for calculating variance, since these two groups will cancel each other out. Square each number so they are all positive instead.[17]
  6. Image titled Calculate Variance Step 14

    6
    Find the mean of your results. Now you have a value for each data point, related (indirectly) to how far that data point is from the mean. Take the mean of these values by adding them all together, then dividing by the number of values.[18]
  7. Image titled Calculate Variance Step 15

    7
    Relate this back to the formula. If you’re not sure how this matches the formula at the beginning of this method, try writing out the whole problem in longhand:

    • After finding the difference from the mean and squaring, you have the value ( – μ), ( – μ), and so on up to ( – μ), where is the last data point in the set.
    • To find the mean of these values, you sum them up and divide by n: ( ( – μ) + ( – μ) + … + ( – μ) ) / n
    • After rewriting the numerator in sigma notation, you have (∑( – μ))/n, the formula for variance.

Video

By using this service, some information may be shared with YouTube.

Read Video Transcript



Tips

  • Using “n-1” instead of “n” in the denominator when analyzing samples is a technique called Bessel’s correction. The sample is only an estimate of the full population, and the mean of the sample is biased to fit that estimate. This correction removes this bias.[19]
    â§¼thumbs_responseâ§½

  • Since it is difficult to interpret the variance, this value is usually calculated as a starting point for calculating the standard deviation.

    â§¼thumbs_responseâ§½


You Might Also Like

Calculate Covariance

Calculate Covariance

Calculate the Geometric Mean

Calculate the Geometric Mean


Calculate Probability

Calculate Probability

Calculate Standard Deviation

Calculate Standard Deviation

Calculate Weighted Average

Calculate Weighted Average

Find Standard Deviation on the TI–84

Find Standard Deviation on the TI–84

Calculate Cumulative Frequency

Calculate Cumulative Frequency

Calculate Lotto Odds

Calculate Lotto Odds

Calculate Uncertainty

Calculate Uncertainty

Calculate Sample Size

Calculate Sample Size

Calculate Range

Calculate Range

Read Odds

Read Odds

Calculate Odds

Calculate Odds

Calculate Z Scores

Calculate Z Scores



[ad_2]

Source link : https://www.wikihow.com/Calculate-Variance

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments