Home/Mathematics/Standard Deviation (Sample)

Formula & Calculator

Standard Deviation (Sample)

Measures how spread out a set of sample data values are from their mean, using n-1 in the denominator to correct for sample bias.

MathematicsStatisticsResearch

Sample Standard Deviation CalculatorSpread of Data

s = √( Σ(xᵢ)² / (n − 1) )
s = sample standard deviation  ·  xᵢ = data points  ·  = sample mean  ·  n = sample size
⟹ Computedata → s
Please fix the errors above.
Presets:
Sample Standard Deviation
n: mean (x̄): Σ(xᵢ−x̄)²: variance (s²):
✓ Copied!
Standard Deviation Magnitude
Low (< 1) Moderate (1–3) High (3–6) Very High (> 6)
s = √( Σ(xᵢ)² / (n − 1) )  ·  Sample standard deviation with Bessel's correction

Interpretation

s = √( Σ(xᵢ − x̄)² / (n−1) ). Measures spread of sample data. Used in statistics, quality control, and finance. Essential for data analysis.

s = sqrt( sum((xi - x_bar)^2) / (n - 1) )
Standard Deviation (Sample)

Variables

SymbolQuantityUnit
sSample standard deviation
xiEach individual data value
x_barSample mean
nNumber of data points in the sample

What it means

The sample standard deviation (s) is a measure of the dispersion or spread of a set of data points relative to the sample mean. It is calculated by taking the square root of the variance. The denominator is n−1 (Bessel’s correction) to provide an unbiased estimate of the population standard deviation. This metric is widely used in statistical analysis to quantify uncertainty, in quality control (six sigma), in finance (volatility of returns), and in many scientific fields. A small s indicates data points are close to the mean; large s indicates wide spread. Understanding standard deviation is essential for interpreting confidence intervals, hypothesis testing, and regression analysis.

Worked example

Sample Standard Deviation – Two Examples

Real‑World
Scenario: A quality engineer measures 5 bolt diameters (mm): 10, 12, 11, 13, 9. Sum of squared deviations = 10. Find s.
ParameterValue
n5
Sum sq dev10
1s = √(10/(5−1)) = √2.5 = 1.58 mm
Result 1.58 mm ✓ Spread
Scenario: Test scores: 70,75,80,85,90. Sum sq dev = 250. Find s.
ParameterValue
n5
Sum sq dev250
1s = √(250/4) = √62.5 = 7.91
Result 7.91 points ✓ Variability
Insight: Sample s uses n−1 (Bessel correction). Population σ would use N.

Common mistakes

  • Sample standard deviation: s = √[Σ(xᵢ − x̄)²/(n−1)] – denominator is n−1 (degrees of freedom).
  • Population: For population σ, use N in denominator (not n−1).
  • Mean: x̄ is the sample mean – compute it first.
  • Units: The standard deviation has the same units as the data.
  • Zero: If all values are equal, s = 0.

Applications

The sample standard deviation, s = √(Σ(xi − x̄)²/(n−1)), measures the spread of a dataset around its mean. It is essential in quality control, engineering tolerances, and statistical inference. Engineers use it to assess process capability, to set control limits, and to evaluate measurement uncertainty. In finance, it measures risk (volatility). In research, it quantifies variability. By understanding standard deviation, professionals can judge the consistency of processes, identify outliers, and make data‑driven decisions. This formula is a cornerstone of descriptive statistics and is used in virtually every field that handles numerical data.

  • Quality control and process capability (Six Sigma)
  • Measurement system analysis and uncertainty estimation
  • Risk assessment in finance and investment
  • Experimental data analysis and hypothesis testing
  • Performance variation analysis in manufacturing

Frequently Asked Questions

Q01What is the sample standard deviation and how is it calculated?
A01

The sample standard deviation (s) measures the spread of data around the sample mean. It is calculated as s = √( Σ(xᵢ – x̄)² / (n – 1) ), where n is the sample size, x̄ is the sample mean, and the sum is over all data points.

Q02What is the common mistake when using this formula?
A02

Dividing by n instead of n–1, which is the correction needed when working with a sample rather than a full population.

Q03What is the difference between sample and population standard deviation?
A03

Population standard deviation uses n (number of data points) in the denominator; sample standard deviation uses n–1 to correct for bias.

Q04Why is n–1 used for sample standard deviation?
A04

This is Bessel's correction. It accounts for the loss of one degree of freedom when estimating the sample mean from the same data.

Q05What is the variance?
A05

Variance is the square of the standard deviation: s² for sample, σ² for population.

Q06What is the standard deviation of a constant set of numbers?
A06

It is zero, since all values are the same and there is no spread.

Q07What are the units of standard deviation?
A07

The same units as the original data (e.g., if data is in kg, s is in kg).

Q08How does standard deviation relate to the normal distribution?
A08

In a normal distribution, about 68% of data falls within ±1σ, 95% within ±2σ, and 99.7% within ±3σ.

Q09What are the applications of standard deviation?
A09

  • Measuring variability in data.
  • Quality control (process capability).
  • Risk assessment in finance.

Q10What is the difference between standard deviation and standard error?
A10

Standard error (SE) is the standard deviation of the sample mean: SE = s/√n. It measures the precision of the mean estimate.