Start chapters home Start History history History expand_more Community
Community expand_more
menu_open Close
{{ filterOption.label }}
{{ item.displayTitle }}
{{ item.subject.displayTitle }}
No results
{{ searchError }}
Expand menu menu_open home
{{ courseTrack.displayTitle }}
{{ statistics.percent }}% Sign in to view progress
{{ }} {{ }}
search Use offline Tools apps
Login account_circle menu_open
close expand
Normal Distribution

Calculating Mean and Standard Deviation


Numerical Data

Numerical data is data that is measurable, such as time, speed, and distance. It is described with numbers that can be either discrete or continuous. When the data is continuous, there are an infinite number of possible values that the data can take.


Measure of Center

A measure of center is a statistic that summarize a data set by finding its center. The most common measures of center are mean, median and mode.



The mean or average of a data set is one representation of the center of the data set. It is one measure of center. The others are the median and the mode. To calculate the mean, add all the data points together, then divide by the number of data points.


Suppose a data set represents the heights of different towers. The mean of this data set gives an idea of a typical height. Calculating the mean could be seen as rearragning the blocks so that all the towers have the same height.

Animate the mean value


After the blocks are rearranged, the towers each have a height of 4. Therefore, the mean is 4. If the heights are written as x, then the mean is sometimes written as The towers' mean height can then be written as

When on vacation in Mexico, Peter finds a rose species he has never seen before. He decides to study how many petals each flower has. The result of his study is this.
How many petals do the flowers on average have?
Show Solution
In order to determine the mean, we need to add all the data points together. Then we divide the sum by the total number of points, which in this case is 5.
The mean is 12. Thus, on average the roses have 12 petals each.


Measure of Spread

A measure of spread is a way of quantifying how spread out, or different, the points in a data set are. A small spread means data points are similar, while a large spread means they are different. This is illustrated by the two data sets below. Both have a mean, median and mode of 3, but, we can assume the second data set has a larger spread because of how different its data points are.

Some commonly used measures of spread are range, mean absolute deviation, standard deviation, and interquartile range. These are often used together with a measure of center, to give an idea both of what a typical value is and how much the data can be expected to deviate from it.


Standard Deviation

Standard deviation is a commonly used measure of spread. It is a measure of how much a randomly selected value from a data set is expected to differ from the mean. To denote the standard deviation, the Greek letter is used, which is read as "sigma."To calculate a standard deviation, the rule
is used, where n is the number of values in the data set and is the mean of the set.


Finding the Standard Deviation of a Data Set

The standard deviation, of a data set is calculated using the rule
where n is the number of values in the data set and is the mean of the set. Performing this calculation in one step makes for a convoluted expression. Therefore, it is best divided into a few, smaller steps. Consider the following data set as an example.


Find the mean,

First, the mean, should be calculated. The example data set has 6 values, so the denominator is 6.


Find the deviation of each data value,

For each data value, can now be calculated and added to a table. This shows how much each data point varies from the mean.

1 14=-3
5 54=1
3 34=-1
8 84=4
3 34=-1
12 124=8


Square the deviations

Square the deviations, and add them to a new column in the table.

1 -3 (-3)2=9
5 1 12=1
3 -1 (-1)2=1
8 4 42=16
3 -1 (-1)2=1
12 8 82=64


Find the mean of the squared deviations

The squared deviations should be added and divided by the number of data values. In other words, the mean of the squared deviations is found.


This value is called the variance of the data set.


Square-root the mean of the squared deviations
Finally, take the square root of the just found quotient to get the standard deviation. Here, the fraction is used instead of the quotient, to avoid rounding errors.
Thus, a randomly chosen value from this data set is expected to deviate roughly 4 units from the mean.
{{ 'mldesktop-placeholder-grade-tab' | message }}
{{ 'mldesktop-placeholder-grade' | message }} {{ article.displayTitle }}!
{{ grade.displayTitle }}
{{ 'ml-tooltip-premium-exercise' | message }}
{{ 'ml-tooltip-programming-exercise' | message }} {{ 'course' | message }} {{ exercise.course }}
{{ focusmode.exercise.exerciseName }}
{{ 'ml-btn-previous-exercise' | message }} arrow_back {{ 'ml-btn-next-exercise' | message }} arrow_forward
arrow_left arrow_right