1. Find standard deviation of a simple dataset
Problem
Calculate the mean by summing all values and dividing by the count .
Subtract the mean from each value, square the result, and sum—this captures total squared deviation from the center.
Divide by (not ) to get the sample variance, which corrects for using the sample mean.
Take the square root of the variance to obtain standard deviation in the original units.
Answer:
This straightforward example uses the formula directly: find the mean, calculate squared deviations from it, sum them, divide by , and take the square root.