# Variance

The variance is a measure of the extent of variation in a set of numbers. Where all the numbers are the same, the variance is 0. The greater the variation in the numbers, the greater the variance.

The variance has three roles in survey research:

• As a way of describing the variation in data. For various technical reasons, the variation is a generally a very poor way of describing the degree of variation in the data, and alternative statistics such as the Interquartile Range and the Standard Deviation are generally superior.[note 1]
• As an input into other computations, such as the R-Square.
• As a useful theoretical concept in mathematical statistics, which greatly helps in the development of new statistical tools and in testing the properties of existing tools and techniques.

## Calculation

The most widely used formula is the formula for the sample variance: $s^{2}={\frac {1}{n}}\sum _{i=1}^{n}\left(x_{i}-{\overline {x}}\right)^{2}$ where $s^{2}$ is the estimated variance in the sample, $x_{i}$ is the observed value of the $i$ of [/itex]n[/itex] values and ${\overline {x}}$ is the average value.

Where data is weighted this needs to be reflected in the calculation of the variance.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9218312,"math_prob":0.99837345,"size":1359,"snap":"2022-27-2022-33","text_gpt3_token_len":272,"char_repetition_ratio":0.18376383,"word_repetition_ratio":0.0,"special_character_ratio":0.19499633,"punctuation_ratio":0.084337346,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9998796,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,4,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-12T02:19:55Z\",\"WARC-Record-ID\":\"<urn:uuid:c64e4114-81c8-47d0-abd6-2bef4aa73729>\",\"Content-Length\":\"32772\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:43787cac-64d8-47b1-864d-045a62382abb>\",\"WARC-Concurrent-To\":\"<urn:uuid:05cbdc9b-d977-472e-842d-b792f9b5f165>\",\"WARC-IP-Address\":\"20.88.191.62\",\"WARC-Target-URI\":\"https://docs.displayr.com/wiki/Variance\",\"WARC-Payload-Digest\":\"sha1:FKGKODRR3PZ67Q2BPXJANHXIOOSVH6BZ\",\"WARC-Block-Digest\":\"sha1:7635XF6T4W46JLQZQX45ZAAKVU3ZKFRC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571538.36_warc_CC-MAIN-20220812014923-20220812044923-00199.warc.gz\"}"}