- Standard deviation is a key concept in statistics. It shows how spread out or close the data values are from the average (mean).
- The standard deviation formula helps us find how much the values in a dataset differ from the mean. In other words, it tells us how scattered the data is.
- There are different formulas for standard deviation depending on whether you’re using sample data or the entire population.
In this article, we will learn about what is standard deviation, the standard deviation formulas, how to calculate standard deviation, and examples of standard deviation in detail.
Standard Deviation in Statistics
Standard Deviation is defined as the degree of dispersion of the data point from the mean value of the data point. It tells us how the value of the data points varies from the mean value of the data point and it tells us about the variation of the data point in the sample of the data.
Standard Deviation of a given sample of data set is also defined as the square root of the variance of the data set. The Mean Deviation of the n values (say x1, x2, x3, …, xn) is calculated by taking the sum of the squares of the difference of each value from the mean, i.e.
Mean Deviation = 1/nâin (xi – xĖ)2

Standard Deviation Definition
Standard deviation is a measure used in statistics to understand how the data points in a set are spread out from the mean value. It indicates the extent of the data’s variation and shows how far individual data points deviate from the average.
Mean Deviation is used to tell us about the scatter of the data. The lower degree of deviation tells us that the observations xi are close to the mean value and the depression is low. In contrast, the higher degree of deviation tells us that the observations xi are far from the mean value and the dispersion is high.
Standard deviation is used to measure the spread of the statistical data. It tells us about how the statistical data is spread out. The their to Calculate Standard Deviation is used to find the deviation of all the data sets from standard deviation formulas are mean position. You may have questions that standard deviation how to calculate or how to calculate a standard deviation. Two standard deviation formulas are used to find the Standard Deviation of any given data set. They are,
- Standard Deviation Formula Sample
- Population Standard Deviation Formula
[Tex] \bold{s = \sqrt{\frac{\sum_{i=1}^n (x_i – xĖ)^2}{n-1}}}[/Tex]
where,
- s is Population Standard Deviation
- xi is ith observation
- xĖ is the Sample Mean
- N is the Number of Observations
- â = sum over all the values
[Tex] \bold{\sigma = \sqrt{\frac{\sum_{i=1}^N (x_i – \mu)^2}{N}}}[/Tex]
where,
- Ï is Population Standard Deviation
- xi is ith Observation
- Ξ is Population Mean
- N is the Number of Observations
- â = sum over all the values
It is evident to note that both formulas look the same and have only slide changes in their denominator. The denominator in the case of the sample is n-1 but in case of the population is N. Initially the denominator in the sample standard deviation formula has “n” in its denominator but the result from this formula was not appropriate. So, a correction was made, and the n is replaced with n-1 formula correction is called Bessel’s correction which in turn produced the most appropriate results.
The formula used for calculating Standard Deviation is discussed in the image below.

Related topic:
Population vs Sample in Statistics
How to Calculate Standard Deviation?
Generally, when we talk about standard deviation we talk about population standard deviation. The steps to calculate the standard deviation of a given set of values are as follows,
Step 1: Calculate mean of observation using the
(Mean = Sum of Observations/Number of Observations)
Step 2: Calculate squared differences of data values from the mean.
(Data Value – Mean)2
Step 3: Calculate average of squared differences
(Variance = Sum of Squared Differences / Number of Observations)
Step 4: Calculate square root of variance this gives the Standard Deviation
(Standard Deviation = âVariance)
What is Variance?
Variance is a statistical measure that tells us how spread out the values in a data set are from the mean (average).
It is the average of the squared differences from the mean.
Variance shows how much the numbers in your data vary from the average value.
- If the variance is small, the numbers are close to the mean.
- If the variance is large, the numbers are more spread out.
Also, Check:
The formula to calculate the variance of a dataset is as follows:
Variance (Ï2) = ÎĢ [(x – Ξ)2] / N
Where:
- ÎĢ denotes Summation (adding up)
- x represents Each Individual Data Point
- Ξ is the Mean (Average) of Dataset
- N is the Total Number of Data Points
- â = sum over all the values
How to Calculate Variance?
The steps to calculate the variance of a dataset:
Step1: Calculate the Mean (Average):
Add up all the values in the dataset and divide by the total number of values. This gives you the mean (Ξ).
Mean (Ξ) = (Sum of All Values) / (Total Number of Values)
Step2: Find the Difference from the Mean
Subtract the mean from each value in the data set. This shows how far each value is from the average.
For each data value: xi – Meanx
Step3: Square Each Difference
Square the result from Step 2 to eliminate negative signs and give more weight to larger differences.
Squared Difference for Each Value = (Value – Mean)2
Step4: Calculate the Average of the Squared Differences:
Add up all the squared differences calculated in the previous step, and then divide by the total number of values in the dataset. This gives you the variance (Ï^2).
Variance (Ï2) = (Sum of all Squared Differences) / (Total Number of Values)
Sample Variance (if you’re working with a sample only):
s2 = (Sum of all Squared Differences) / N – 1
Population Variance (if you have all data):
Ï2 = (Sum of all Squared Differences) / N
Difference between Variance and Standard Deviation
| Variance | Deviation (Standard Deviation) |
|---|
| Measure of spread in a dataset. | Measure of average distance from the mean. |
| Average of squared differences from the mean. | Square root of the variance. |
| Ï^2 (sigma squared) | Ï (sigma) |
| Indicates the average squared deviation of data points from the mean. | Indicates the average distance of data points from the mean. |
Harder to interpret directly (due to squared units)
| Easier to interpret; shows how spread out data is
|
Standard Deviation of Ungrouped Data
For ungrouped data, the standard deviation can be calculated using three methods:
- Actual Mean Method
- Assumed Mean Method
- Step Deviation Method
Standard Deviation by Actual Mean Method
Standard Deviation by actual mean method uses the basic mean formula to calculate the mean of the given data and using this mean value we find out the standard deviation of the given data values. We calculate the mean in this method with the formula,
Ξ = (Sum of Observations)/(Number of Observations)
Ï = â(âin (xi – xĖ)2/n)
Example: Find the the Standard Deviation of the the data set. X = {2, 3, 4, 5, 6}
Given,
- n = 5
- xi = {2, 3, 4, 5, 6}
We know,
Mean(Ξ) = (Sum of Observations)/(Number of Observations)
â Ξ = (2 + 3 + 4 + 5 + 6)/ 5
â Ξ = 4
using standard deviation formula
Ï2 = âin (xi – xĖ)2/n
â Ï2 = 1/n[(2 – 4)2 + (3 – 4)2 + (4 – 4)2 + (5 – 4)2 + (6 – 4)2]
â Ï2 = 10/5 = 2
Thus, Ï = â(2) = 1.414
Standard Deviation by Assumed Mean Method
For very large values of x finding the mean of the grouped data is a tedious task therefore, we use an assumed mean method where we assume an arbitrary value (A) as the mean value and then calculate the standard deviation using the normal method. Suppose for the group of n data values ( x1, x2, x3, …, xn), the assumed mean is A then the deviation is,
di = xi – A
Where,
- xi = data values
- A = assumed mean
Ï = â(âin (di)2/n)
Where,
- ‘n‘ = Total Number of Data Values
- di = xi – A
Standard Deviation by Step Deviation Method
We can also calculate the standard deviation of the grouped data using the step deviation method. As in the above method in this method also, we choose some arbitrary data value as the assumed mean (say A). Then we calculate the deviations of all data values (x1, x2, x3, …, xn), di = xi – A
In the next step, we calculate the Step Deviations (d’) using
d’ = d/i
where ‘i‘ is a Common Factor of all ‘d’ Values
Ï = â[(â(di2 /n) – (âdin)2] Ã i
where,
- ‘n‘ = Total Number of Data Values
- di = xi – A
Standard Deviation of Discrete Grouped Data
In grouped data first, we made a frequency table and then any further calculation was made. For discrete grouped data, the standard deviation can also be calculated using three methods:
- Actual Mean Method
- Assumed Mean Method
- Step Deviation Method
For a given data set if it has n values (x1, x2, x3, …, xn) and the frequency corresponding to them is (f1, f2, f3, …, fn) then its standard deviation is calculated using the formula,
Ï = â(âin fi(xi – xĖ)2/n)
where,
- n is Total Frequency (n = f1 + f2 + f3 +…+ fn )
- xĖ is the Mean of the Data
- xi Value of data point
- fi frequency of data point
Example: Calculate the standard deviation for the given data
Solution:
Mean (xĖ) = â(fi xi)/â(fi)
â Mean (Ξ) = (10Ã1 + 4Ã3 + 6Ã5 + 8Ã1)/(1 + 3 + 5 + 1)
â Mean (Ξ) = 60/10 = 6
n = â(fi) = 1 + 3 + 5 + 1 = 10
| xi | fi | fixi | (xi – xĖ) | (xi – xĖ)2 | fi(xi – xĖ)2 |
|---|
| 10 | 1 | 10 | 4 | 16 | 16 |
| 4 | 3 | 12 | -2 | 4 | 12 |
| 6 | 5 | 30 | 0 | 0 | 0 |
| 8 | 1 | 8 | 2 | 4 | 8 |
Now,
using standard deviation formula
Ï = â(âin fi(xi – xĖ)2/n)
â Ï = â[(16 + 12 + 0 +8)/10]
â Ï = â(3.6) = 1.897
Standard Derivation(Ï) = 1.897
Standard Deviation of Discrete Data by Assumed Mean Method
In grouped data, if the values in the given data set are very large, then we assumed a random value (say A) as the mean of the data. Then, the deviation of each value from the assumed mean is calculated as,
di = xi – A
di = Deviation of data point from assumed mean
Ï = â[(â(fidi)2 /n) – (âfidi/n)2]
where,
- ‘f‘ is the Frequency of Data Value x
- di = Deviation of data point from assumed mean
- ‘n‘ is Total Frequency [n = â(fi)]
Standard Deviation of Discrete Data by Step Deviation Method
We can also use the step deviation method to calculate the standard deviation of the discrete grouped data. As in the above method in this method also, we choose some arbitrary data value as the assumed mean (say A). Then we calculate the deviations of all data values (x1, x2, x3, …, xn), di = xi – A
In the next step, we calculate the Step Deviations (d’) using
d’ = d/i
where ‘C‘ is the Common Factor of all ‘d‘ values
Ï = [Tex]C \sqrt{\frac{\sum f_i d_i^2}{N} – \left(\frac{\sum f_i d_i}{N}\right)^2}[/Tex]
Where,
- Ï = Standard Deviation
- C = Common Factor of all ‘d’ values
- [Tex]âf_id_i^2[/Tex] = Sum total of the squared step deviations multiplied by frequencies
- [Tex] âf_id_i [/Tex] = Sum total of step deviations multiplied by frequencies
- N = Total Number of Data Values
Standard Deviation of Continuous Grouped Data
For the continuous grouped data, we can easily calculate the standard deviation using the Discrete data formulas by replacing each class with its midpoint (as xi) and then normally calculating the formulas.
The calculation of each class is calculated using the formula,
xi (Midpoint) = (Upper Bound + Lower Bound)/2
s =[Tex]\sqrt{\frac{\sum f_i (x_i – \bar{x})^2}{\sum f_i}}[/Tex]
Where:
- [Tex]x_i[/Tex]â = midpoint of each class interval
- [Tex]f_i[/Tex]â = frequency of each class interval
- [Tex]\bar{x}[/Tex]= mean of the grouped data
- s = standard deviation
For example, calculate the standard deviation of continuous grouped data as given in the table,
| Class | 0-10 | 10-20 | 20-30 | 30-40 |
|---|
Frequency(fi)
| 2 | 4 | 2 | 2 |
|---|
Solution:
| Class | 5-15 | 15-25 | 25-35 | 35-45 |
|---|
| xi | 10 | 20 | 30 | 40 |
|---|
Frequency(fi)
| 2 | 4 | 2 | 2 |
|---|
Mean (xĖ) = â(fi xi)/â(fi)
â Mean (Ξ) = (10Ã2 + 20Ã4 + 30Ã2 + 40Ã2)/(2+4+2+2)
â Mean (Ξ) = 240/10 = 24
n = â(fi) = 2+4+2+2 = 10
| xi | fi | fixi
| (xi – xĖ)
| (xi – xĖ)2
| fi(xi – xĖ)2
|
|---|
| 10 | 2 | 20 | 14 | 196 | 392 |
| 20 | 4 | 80 | -4 | 16 | 64 |
| 30 | 2 | 60 | 6 | 36 | 72 |
| 40 | 2 | 80 | 16 | 256 | 512 |
Now,
using standard deviation formula
Ï = â(âin fi(xi – xĖ)2/n)
â Ï = â[(392 + 64 + 72 +512)/10]
â Ï = â(104) = 10.198
Standard Derivation(Ï) = 10.198
Standard Deviation of Probability Distribution
In probability of all the possible outcomes are generally equal and we take many trials to find the experimental probability of the given experiment.
For a binomial distribution, the standard deviation is given by the formula,
Ï = â(npq)
where,
- n is the Number of Trials
- p is the Probability of Success of Trial
- q is Probability of Failure of Trial (q = 1 – p)
For a Poisson distribution, the standard deviation is given by
Ï = âÎŧt
where,
- Îŧ is the Average Number of Successes
- t is Given a Time Interval
Standard Deviation of Random Variables
Random variables are the numerical values that denote the possible outcomes of the random experiment in the sample space. Calculating the standard deviation of the random variable tells us about the probability distribution of the random variable and the degree of the difference from the expected value.
We use X, Y, and Z as functions, to represent the random variables. The probability of the random variable is denoted as P(X) and the expected mean value is denoted by the Ξ symbol.
Then the Standard Deviation formula for the standard deviation of a probability distribution is,
Ï = [Tex]\sqrt{(â (x_i – Ξ)^2 à P(x_i))}[/Tex]
where:
- xi = data points
- p(xi) = probability of xi
- Ξ = Expected mean Value
Articles related to Standard Deviation:
Example 1: Find the Standard Deviation of the following data,
Solution:
First, make the table as follows, so we can calculate the further values easily.
Xi
| fi
| XiÃfi
| Xi-Ξ
| (Xi-Ξ)2
| fÃ(Xi-Ξ)2
|
|---|
5
| 2
| 10
| -6.375
| 40.64
| 81.28
|
12
| 3
| 36
| 0.625
| 0.39
| 1.17
|
15
| 3
| 45
| 3.625
| 13.14
| 39.42
|
Total
| 8
| 91
|
|
| 121.87
|
Mean (Ξ) = â(fi xi)/â(fi)
â Mean (Ξ) = 91/8 = 11.375
using standard deviation formula
Ï = â(âin fi(xi – Ξ)2/n)
â Ï = â[(121.87)/(8)]
â Ï = â(15.234)
â Ï = 3.90
Standard Derivation(Ï) = 3.90
Example 2: Find the Standard Deviation of the following data table.
| Class | Frequency |
|---|
0-10
| 3
|
10-20
| 6
|
20-30
| 4
|
30-40
| 2
|
40-50
| 1
|
Solution:
Class
| Xi
| fi
| fÃXi
| Xi – Ξ
| (Xi – Ξ)2
| fÃ(Xi – Ξ)2
|
|---|
0-10
| 5
| 3
| 15
| -15
| 225
| 675
|
10-20
| 15
| 6
| 90
| -5
| 25
| 150
|
20-30
| 25
| 4
| 100
| 5
| 25
| 100
|
30-40
| 35
| 2
| 70
| 15
| 225
| 450
|
40-50
| 45
| 1
| 45
| 25
| 625
| 625
|
Total
|
| 16
| 320
|
|
| 2000
|
Mean (Ξ) = â(fi xi)/â(fi)
â Mean (Ξ) = 320/16 = 20
now, by using standard deviation formula
Ï = â(âin fi(xi – Ξ)2/n)
â Ï = â[(2000)/(16)]
â Ï = â(125)
â Ï = 11.18
Standard Derivation(Ï) = 11.18
- Use Excel’s built-in functions
STDEV.P for the entire population or STDEV.S for a sample. - Step-by-Step Guide: Enter your data set in a single column, then type
=STDEV.S(A1:A10) (replace A1:A10 with your data range) in a new cell to get the standard deviation for a sample. - Visual Aids: Utilize Excel’s chart tools to visually represent data variability alongside standard deviation.
Example: Suppose you have the following numbers in cells A1 to A5:
Solution:
- For population SD:
=STDEV.P(A1:A5) - For sample SD:
=STDEV.S(A1:A5)
Read in Detail: Standard Deviation in Excel: How to Calculate, Formulas
Conclusion
The standard deviation is a crucial statistical measure that provides valuable information about the variability or dispersion of data within a dataset. It helps us understand how spread out the data points are from the mean, offering a clearer picture of the data’s consistency and reliability. It is widely used in various fields, including statistics, finance, and science, to understand the distribution of data and make informed decisions based on the level of variability present.
Similar Reads
Statistics in Maths
Statistics is the science of collecting, organizing, analyzing, and interpreting information to uncover patterns, trends, and insights. Statistics allows us to see the bigger picture and tackle real-world problems like measuring the popularity of a new product, predicting the weather, or tracking he
3 min read
Introduction to Statistics
Mean
Mean in Statistics
Mean in Mathematics is the measure of central tendency and is mostly used in Statistics. Mean is the easiest of all the measures. Data is of two types, Grouped data and ungrouped data. The method of finding the mean is also different depending on the type of data. Mean is generally the average of a
15+ min read
How to find Mean of grouped data by direct method?
Statistics involves gathering, organizing, analyzing, interpreting, and presenting data to form opinions and make decisions. Applications range from educators computing average student scores and government officials conducting censuses to demographic analysis. Understanding and utilizing statistica
9 min read
How to Calculate Mean using Step Deviation Method?
Step Deviation Method is a simplified way to calculate the mean of a grouped frequency distribution, especially when the class intervals are uniform. In simple words, statistics implies the process of gathering, sorting, examining, interpreting and then understandably presenting the data to enable o
7 min read
Frequency Distribution - Table, Graphs, Formula
A frequency distribution is a way to organize data and see how often each value appears. It shows how many times each value or range of values occurs in a dataset. This helps us understand patterns, like which values are common and which are rare. Frequency distributions are often shown in tables or
12 min read
Cumulative frequency Curve
In statistics, graph plays an important role. With the help of these graphs, we can easily understand the data. So in this article, we will learn how to represent the cumulative frequency distribution graphically. Cumulative FrequencyThe frequency is the number of times the event occurs in the given
10 min read
Mean Deviation
The mean deviation (also known as Mean Absolute Deviation, or MAD) of the data set is the value that tells us how far each data is from the center point of the data set. The center point of the data set can be the Mean, Median, or Mode. Thus, the mean of the deviation is the average of the absolute
14 min read
Standard Deviation - Formula, Examples & How to Calculate
Standard deviation is a key concept in statistics. It shows how spread out or close the data values are from the average (mean).The standard deviation formula helps us find how much the values in a dataset differ from the mean. In other words, it tells us how scattered the data is.There are differen
15+ min read
Variance
Variance is a measurement value used to find how the data is spread concerning the mean or the average value of the data set. It is used to find the distribution of data in the dataset and define how much the values differ from the mean. The symbol used to define the variance is Ï2. It is the square
13 min read