The Wayback Machine - https://web.archive.org/web/20240708041105/https://www.geeksforgeeks.org/measures-of-spread-range-variance-and-standard-deviation/
Open In App

Measures of spread – Range, Variance, and Standard Deviation

Last Updated : 04 May, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

Collecting the data and representing it in form of tables, graphs, and other distributions is essential for us. But, it is also essential that we get a fair idea about how the data is distributed, how scattered it is, and what is the mean of the data. The measures of the mean are not enough to describe the data and its nature. We also need to measure the dispersion in the data with respect to different statistics of the data. For example, we need to be able to answer the questions like, How much is the dispersion of the surrounding data’s mean, or its median. These values allow us to describe the data in a better way. Let’s look at some of them, 

The dispersion, which is also called scatter is measured on the basis of the type of chosen central tendency and the observations available to us. These measures tell us how much the observations are varied or similar to each other. There are many ways of measuring the dispersion in the data, some major ways to measure the spread are given below: 

  1. Range 
  2. Variance 
  3. Standard Deviation 

Range

The range of the data is given as the difference between the maximum and the minimum values of the observations in the data. For example, let’s say we have data on the number of customers walking in the store in a week. 

10, 14, 8, 10, 15, 4, 7

Minimum value in data = 7 

Maximum Value in the data = 15

Range = Maximum Value in the data – Minimum value in the data  

           = 15 – 7 

           = 8 

Now we can say that the range of the data is 8. This gives us an idea about the spread of the data but doesn’t tell how the data is distributed. 

Variance 

The variance of the data is given by measuring the distance of the observed values from the mean of the distribution. Here we are not concerned with the sign of the distance of the point, we are more interested in the magnitude. So, we take squares of the distance from the mean. Let’s say we have x1, x2, x3 …. xn as n observations and \bar{x} be the mean. 

(x_1 - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2 .... (x_n - \bar{x})^2 = \sum^{n}_{0}(x_i - \bar{x})^2

If this sum zero, then each term has to be zero which means that there is no scattering in the data. If it is small, then it means that the data is concentrated at the mean and vice versa for large values of the variance. 

But this measure is still dependent on the number of observations in the data. That is if there are lots of observations this value will become large. So, we take the mean of the data, 

\text{Variance}  = \frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}\\ \sigma^2 = \frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}

Standard Deviation

In the calculation of variance, notice that the units of the variance and the unit of the observations are not the same. So, to remove this problem, we define standard deviation. It is denoted as \sigma

\sigma = \sqrt{\frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}}

 Let’s see how to calculate these measures in some problems, 

Sample Problems

Question 1: Find out the range of the following data: 

-4 5-1069

Solution: 

For calculating the range of a data, we need to find out the maximum and the minimum of the data: 

Max = 9 

Min = -10

Range = Max – Min 

            = 9 -(-10) 

            = 19 

Question 2: Find out the mean and the median of the same data: 

-4 5-1069

Solution: 

Mean of the data: \frac{( -4 + 5 -10 + 6 + 9 )}{5}

                           = \frac{6}{5}

                           = 1.2

Median is called the middle element of the data. 

Median = -10. 

Question 3: Let’s say we have the following data, 

-4-20-26460-64

Calculate the range, variance, and standard deviation of the data. 

Solution: 

Range

We need to find out the minimum and the maximum values of the data distribution. 

Min Value = -6 

Max Value = +6 

Range = Max Value – Min Value 

            = 6 – (-6) 

            = 12 

Variance

To find the variance, we first need to find the mean, 

Mean = \frac{( -4  + -2 + 0 + -2 + 6 + 4 + 6 + 0  - 6 + 4)}{10}

          = \frac{6}{10}

          = 0.6

We know the formula for Variance, 

Variance =  \frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}

                = \frac{(x_1 - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2 .... (x_n - \bar{x})^2}{n}

                = \frac{(-4 - 0.6)^2 + (-2 - 0.6)^2 + (0 - 0.6)^2 .... }{10}

                = 17.82 

Standard Deviation

\sigma = \sqrt{\frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}}

⇒ \sigma = \sqrt{17.82}

⇒ \sigma = 4.22

Question 4: Let’s say we have the following data, 

-3-3-3-303333

Calculate the range, variance, and standard deviation of the data. 

Solution: 

Range

We need to find out the minimum and the maximum values of the data distribution. 

Min Value = -3 

Max Value = +3 

Range = Max Value – Min Value 

            = 3 – (-3) 

            = 6 

Variance

To find the variance, we first need to find the mean, 

Mean = \frac{( -3  -3 -3 -3 + 0 + 3 + 3 + 3  +3 )}{10}

          = 0

We know the formula for Variance, 

Variance =  \frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}

                = \frac{(x_1 - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2 .... (x_n - \bar{x})^2}{n}

                = \frac{(-3 - 0)^2 + (-3 - 0)^2 + (-3 - 0)^2 + .... }{9}

                = 9

Standard Deviation

\sigma = \sqrt{\frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}}

⇒ \sigma = \sqrt{9}

⇒ \sigma = 3

Question 5: Let’s say we have the following data of the number of TVs sold by a consumer electronics shop over the week, 

Monday 4
Tuesday5
Wednesday3
Thursday4
Friday5
Saturday5
Sunday3

Calculate the range, variance, and standard deviation of the data. 

Solution: 

Range

We need to find out the minimum and the maximum values of the data distribution. 

Min Value = 3 

Max Value = +5 

Range = Max Value – Min Value 

            = 5 – (3) 

            = 2 

Variance

To find the variance, we first need to find the mean, 

Mean = \frac{( 4 + 5 + 3 + 4 + 5 + 5 +3 )}{10}

          = \frac{29}{10}

          = 2.9

We know the formula for Variance, 

Variance =  \frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}

                = \frac{(x_1 - \bar{x})^2 + (x_2 - \bar{x})^2 + (x_3 - \bar{x})^2 .... (x_n - \bar{x})^2}{n}

                = 0.809

Standard Deviation

\sigma = \sqrt{\frac{\sum^{n}_{0}(x_i - \bar{x})^2}{n}}

⇒ \sigma = \sqrt{0.809}

⇒ \sigma = 0.899



Previous Article
Next Article

Similar Reads

Difference Between Variance and Standard Deviation
Variance and Standard deviation both formulas are widely used in mathematics to solve statistics problems. They provide various ways to extract information from the group of data. They are also used in probability theory and other branches of mathematics. So it is important to distinguish between them. Let's learn about Standard Deviation, Variance
6 min read
Variance and Standard Deviation
Variance and Standard Deviation are the important measures used in Mathematics and Statics to find the meaning from a large set of data. The different formulas for Variance and Standard Deviation are highly used in mathematics to determine the trends of various values in mathematics. Variance is the measure of how the data points vary according to
7 min read
Mean, Variance and Standard Deviation
Mean, Variance and Standard Deviation are fundamental concepts in statistics and engineering mathematics, essential for analyzing and interpreting data. These measures provide insights into data's central tendency, dispersion, and spread, which are crucial for making informed decisions in various engineering fields. This article explores the defini
4 min read
Differences between Range and Standard Deviation
In statistics, Range and standard deviation provide insight into the spread or dispersion of data points within the data set. Range and standard deviation are both measures of variability in a dataset, but they differ in their calculation and interpretation. The purpose of this article is to know the difference between range and standard deviation
5 min read
How to Find Probability with Mean and Standard Deviation?
Answer: To find probability using the mean (Ξ) and standard deviation (σ) in a normal distribution, use the z-score formula:[Tex]P(X \leq x) = \Phi\left(\frac{x - \mu}{\sigma}\right) [/Tex]Mean and Standard Deviation:In a normal distribution, the mean (Ξ) represents the central tendency of the distribution, indicating the average value around which
2 min read
What is Difference Between Z-Score and Standard Deviation?
The standard deviation measures the dispersion of data in a distribution, while the Z-score indicates how many standard deviations a particular data point is from the mean of that distribution.Let's look at the difference between Z-score and standard deviations. AspectStandard DeviationZ-ScoreDefinitionMeasures the dispersion or spread of a data se
1 min read
Binomial Mean and Standard Deviation - Probability | Class 12 Maths
Binomial distribution is the probability distribution of no. of Bernoulli trials i.e. if a Bernoulli trial is performed n times the probability of its success is given by binomial distribution. Keep in mind that each trial is independent of another trial with only two possible outcomes satisfying the same conditions of Bernoulli trials. Consider th
7 min read
How to find the Standard deviation in Statistics?
Statistics is the study of data gathering, organization, interpretation, analysis, and presentation in mathematics. The primary goal of statistics is to plan the obtained data in terms of experimental designs and statistical surveys. Statistics is regarded as a mathematical science that deals with numerical data. In brief, statistics is a critical
4 min read
How to Find Sum of Squares from Standard Deviation?
Answer: The sum of squares can be found by squaring the standard deviation and then multiplying it by the number of observations.The sum of squares (SS) is a measure of the spread or variability of a set of values. It can be calculated from the standard deviation (SD), which is another measure of the dispersion of data points. Here's the detailed e
2 min read
How to Calculate Standard Deviation?
Standard Deviation is a measure of how data is spread out around the mean. It is a statistical tool used to determine the amount of variation or dispersion of a set of values from the mean. A low standard deviation indicates that the data points are clustered closely around the mean, while a high standard deviation means that the data points are sp
7 min read