Share:

Knowledge Base

How do you calculate the standard deviation of a sample?

09/05/2023 | by Patrick Fischer, M.Sc., Founder & Data Scientist: FDS

To calculate the standard deviation of a sample, please follow the steps below:

Collect a sample of data points.

Calculate the average (arithmetic mean) of the sample by dividing the sum of all data points by the number of data points.

Calculate the deviation of each data point from the mean by subtracting the value of each data point from the mean.

Square each deviation to eliminate negative values ​​and reinforce the significance of the deviations.

Calculate the mean of the squared deviations by dividing the sum of all squared deviations by the number of data points in the sample. This value is called the variance.

Calculate the standard deviation by taking the square root of the variance.

Here is the formula to calculate the standard deviation of a sample:

Standard deviation = √(Σ(x - x̄)² / (n - 1))

x is a data point in the sample

x̄ is the mean of the sample

n is the number of data points in the sample

It is important to note that the formula uses the divisor (n - 1) instead of just n. This is because the sample estimate needs a correction for the bearish in variance that occurs when considering the Sample mean used to estimate the population mean. This is known as the "Bessel Correction".

By following these steps and applying the formula, you can calculate the standard deviation of your sample.

Like (0)
Comment

Our offer to you:

Media & PR Database 2024

Only for a short time at a special price: The media and PR database with 2024 with information on more than 21,000 newspaper, magazine and radio editorial offices and much more.

Newsletter

Subscribe to our newsletter and receive the latest news & information on promotions: