How to Find the Mean, Median, Mode, Range, and Standard Deviation

How to Find the Mean, Median, Mode, Range, and Standard Deviation
••• Darkdiamond67/iStock/GettyImages

Simplify comparisons of sets of number, especially large sets of number, by calculating the center values using mean, mode and median. Use the ranges and standard deviations of the sets to examine the variability of data.

Calculating Mean

The mean identifies the average value of the set of numbers. For example, consider the data set containing the values 20, 24, 25, 36, 25, 22, 23.

    To find the mean, use the formula: Mean equals the sum of the numbers in the data set divided by the number of values in the data set. In mathematical terms:

    \text{Mean}=\frac{\text{sum of all terms}}{\text{how many terms or values in the set}}

    Add the numbers in the example data set:

    20+24+25+36+25+22+23=175

    Divide by the number of data points in the set. This set has seven values so divide by 7.

    Insert the values into the formula to calculate the mean. The mean equals the sum of the values (175) divided by the number of data points (7). Since

    \frac{175}{7}=25

    the mean of this data set equals 25. Not all mean values will equal a whole number.

Calculating Median

The median identifies the midpoint or middle value of a set of numbers.

    Put the numbers in order from smallest to largest. Use the example set of values: 20, 24, 25, 36, 25, 22, 23. Placed in order, the set becomes: 20, 22, 23, 24, 25, 25, 36.

    Since this set of numbers has seven values, the median or value in the center is 24.

    If the set of numbers has an even number of values, calculate the average of the two center values. For example, suppose the set of numbers contains the values 22, 23, 25, 26. The middle lies between 23 and 25. Adding 23 and 25 yields 48. Dividing 48 by two gives a median value of 24.

Calculating Mode

The mode identifies the most common value or values in the data set. Depending on the data, there might be one or more modes, or no mode at all.

    Like finding the median, order the data set from smallest to largest. In the example set, the ordered values become: 20, 22, 23, 24, 25, 25, 36.

    A mode occurs when values repeat. In the example set, the value 25 occurs twice. No other numbers repeat. Therefore, the mode is the value 25.

    In some data sets, more than one mode occurs. The data set 22, 23, 23, 24, 27, 27, 29 contains two modes, one each at 23 and 27. Other data sets may have more than two modes, may have modes with more than two numbers (as 23, 23, 24, 24, 24, 28, 29: mode equals 24) or may not have any modes at all (as 21, 23, 24, 25, 26, 27, 29). The mode may occur anywhere in the data set, not just in the middle.

Calculating Range

Range shows the mathematical distance between the lowest and highest values in the data set. Range measures the variability of the data set. A wide range indicates greater variability in the data, or perhaps a single outlier far from the rest of the data. Outliers may skew, or shift, the mean value enough to impact data analysis.

    In the sample group, the lowest value is 20 and the highest value is 36.

    To calculate range, subtract the lowest value from the highest value. Since

    36-20=16

    the range equals 16.

    In the sample set, the high data value of 36 exceeds the previous value, 25, by 11. This value seems extreme, given the other values in the set. The value of 36 might be an outlier data point.

Calculating Standard Deviation

Standard deviation measures the variability of the data set. Like range, a smaller standard deviation indicates less variability.

    Finding standard deviation requires summing the squared difference between each data point and the mean [∑(​x​ − ​µ​)2], adding all the squares, dividing that sum by one less than the number of values (​N​ − 1), and finally calculating the square root of the dividend. In one formula, this is:

    \text{SD}= \sqrt{\frac{\sum_i{(x_i - \mu)^2}}{N-1}}

    Mathematically, start with calculating the mean.

    Calculate the mean by adding all the data point values, then dividing by the number of data points. In the sample data set,

    20+24+25+36+25+22+23=175

    Divide the sum, 175, by the number of data points, 7, or

    \frac{175}{7}=25

    The mean equals 25.

    Next, subtract the mean from each data point, then square each difference. The formula looks like this:

    \sum_i^N(x_i - \mu)^2

    where ∑ means sum, ​xi represents each data set value and ​µ​ represents the mean value. Continuing with the example set, the values become:

    20-25=-5 \text{ and } -5^2=25 \\ 24-25=-1 \text{ and } -1^2=1 \\ 25-25=0 \text{ and } 0^2=0 \\ 36-25=11 \text{ and } 11^2=121 \\ 25-25=0 \text{ and } 0^2=0 \\ 22-25=-3 \text{ and } -3^2=9 \\ 23-25=-2 \text{ and } -2^2=4

    Adding the squared differences yields:

    25+1+0+121+0+9+4=160

    Divide the sum of the squared differences by one less than the number of data points. The example data set has 7 values, so ​N​ − 1 equals 7 − 1 = 6. The sum of the squared differences, 160, divided by 6 equals approximately 26.6667.

    Calculate the standard deviation by finding the square root of the division by ​N​ − 1. In the example, the square root of 26.6667 equals approximately 5.164. Therefore, the standard deviation equals approximately 5.164.

    Standard deviation helps evaluate data. Numbers in the data set that fall within one standard deviation of the mean are part of the data set. Numbers that fall outside of two standard deviations are extreme values or outliers. In the example set, the value 36 lies more than two standard deviations from the mean, so 36 is an outlier. Outliers may represent erroneous data or may suggest unforeseen circumstances and should be carefully considered when interpreting data.

Related Articles

How to Calculate the Distribution of the Mean
How to Determine the Assumed Mean
How to Calculate the Mean, Median, & Mode
Difference Between the Mean & the Average
How to Calculate a Quintile
How to Calculate the Interquartile Range
How to Calculate Standard Errors
How to Calculate the Grand Mean
How to Calculate the Midrange
How to Calculate Average Deviation From the Mean
How to Find the Mean, Median, Mode, and Range of a...
How to Calculate a Sigma Value
Uses for Mean, Median & Mode
Definition of Mean, Median & Mode
How to Compute a Population Mean
How to Calculate F-Values
How to Calculate Percent Relative Range
How to Calculate Outliers
How to Calculate a Moving Range
How to Calculate Statistical Mean