A Standard Deviation and Variance Guide for Ungrouped Data: Calculation and Interpretation

Master variance and standard deviation of ungrouped data with step-by-step formulas, worked examples, and practical interpretation strategies.

Understanding Variance and Standard Deviation of Ungrouped Data

When you're analyzing a set of numbers, knowing the average only tells half the story. Two datasets can share the same mean but behave completely differently — one might cluster tightly around the center while the other spreads wildly. That's where variance and standard deviation of ungrouped data become essential tools. These measures of variability reveal how scattered your data points are, giving you a complete picture of your distribution's shape and consistency.

Whether you're a student tackling an introductory statistics course or a researcher examining raw measurements, mastering the calculation of variance and standard deviation for ungrouped data is a foundational skill. This guide walks you through the formulas, provides worked examples with detailed tables, and explains what your results actually mean in practice.

What Are Variance and Standard Deviation?

Variance and standard deviation both quantify how far individual data points deviate from the mean. They answer a simple question: how spread out is my data?

Variance represents the average of the squared differences from the mean. It's denoted as s² for a sample and σ² for a population. Because it squares the deviations, variance is always non-negative and is expressed in squared units of the original data.

Standard deviation is simply the square root of variance, denoted as s (sample) or σ (population). It returns the measure to the original units of the data, making it far more interpretable in real-world contexts.

The relationship between these two measures is direct:

MeasureSymbolFormulaUnits
VarianceΣ(x - x̄)² / (n - 1)Squared original units
Standard Deviations√s²Original units

Ungrouped vs. Grouped Data: Why the Distinction Matters

Before diving into calculations, it's critical to understand what makes ungrouped data different from grouped data.

Ungrouped data consists of raw, individual observations — each value stands on its own. For example, the heights of 15 students recorded as 137, 132, 145, 131, and so on.

Grouped data organizes observations into frequency distributions or class intervals. Instead of individual values, you work with midpoints and frequencies.

The formulas for variance and standard deviation differ between these two types. For ungrouped data, you subtract the mean directly from each individual score. For grouped data, you multiply each midpoint's squared deviation by its frequency. Mixing these up is one of the most common mistakes students make.

Step-by-Step: Calculating Variance for Ungrouped Data

The sample variance formula for ungrouped data is:

s² = Σ(x - x̄)² / (n - 1)

Where:

  • x = each individual data value
  • x̄ = the sample mean
  • n = number of data values

Follow these five steps to compute variance:

StepActionPurpose
1Calculate the mean (x̄)Establish the central reference point
2Subtract mean from each value (x - x̄)Find each deviation
3Square each deviation (x - x̄)²Eliminate negative values and weight larger deviations
4Sum all squared deviations Σ(x - x̄)²Get total squared deviation
5Divide by (n - 1)Average the squared deviations (sample correction)

Important note: We divide by (n - 1) rather than n when working with sample data. This Bessel's correction accounts for the fact that we're estimating population parameters from a sample, producing an unbiased estimator.

Worked Example: Exam Scores

Let's apply this process to a concrete dataset. Ten students took a mathematics examination, and their scores were: 22, 24, 12, 30, 29, 21, 17, 30, 10, 25.

Step 1: Calculate the mean

x̄ = (22 + 24 + 12 + 30 + 29 + 21 + 17 + 30 + 10 + 25) / 10 = 220 / 10 = 22

Steps 2-3: Compute deviations and squared deviations

x (Score)x - x̄ (Deviation)(x - x̄)² (Squared Deviation)
2200
2424
12-10100
30864
29749
21-11
17-525
30864
10-12144
2539
Sum460

Step 4-5: Calculate variance

s² = 460 / (10 - 1) = 460 / 9 = 51.11

The variance of these exam scores is 51.11 (in squared score units).

From Variance to Standard Deviation

Once you have variance, calculating standard deviation is straightforward — take the square root:

s = √s² = √51.11 = 7.15

The standard deviation of 7.15 tells us that, on average, individual exam scores deviate from the mean by about 7.15 points. This is much more interpretable than the variance of 51.11 because it's back in the original units (points on the exam).

Larger Dataset Example: Student Heights

To reinforce the process, let's work through a larger dataset. Fifteen students measured their heights in centimeters: 137, 132, 145, 131, 162, 177, 173, 180, 144, 123, 147, 151, 130, 130, 129.

Mean calculation:

x̄ = 2191 / 15 = 146.07 cm

Deviation and squared deviation table:

x (Height)x - x̄(x - x̄)²
137-9.0782.26
132-14.07197.96
145-1.071.14
131-15.07227.10
16215.93253.76
17730.93956.66
17326.93725.22
18033.931151.24
144-2.074.28
123-23.07532.22
1470.930.86
1514.9324.30
130-16.07258.24
130-16.07258.24
129-17.07291.38
Sum4964.86

Variance and standard deviation:

s² = 4964.86 / (15 - 1) = 4964.86 / 14 = 354.63

s = √354.63 = 18.83 cm

The standard deviation of 18.83 cm indicates substantial variability in student heights — the data points are quite spread out from the mean of 146.07 cm.

Interpreting Your Results

What do these numbers actually tell you? Here's a practical interpretation guide:

Standard DeviationInterpretationData Characteristics
Low (relative to mean)Data clusters tightly around meanConsistent, predictable values
High (relative to mean)Data spreads widely from meanDiverse, variable values
ZeroNo variability at allAll values are identical

Key principle: Lesser variability means more consistent data. Greater variability means more scattered data.

Consider three students who each have a mean quiz score of 42:

  • Mike scored 42 on every quiz (standard deviation = 0) — perfectly consistent
  • Peter's scores vary slightly (low standard deviation) — fairly consistent
  • John's scores range wildly (high standard deviation) — inconsistent performance

Even though all three share the same average, their standard deviations reveal dramatically different performance patterns. This is why variance and standard deviation of ungrouped data are indispensable — they capture what the mean alone cannot.

Common Mistakes to Avoid

When calculating variance and standard deviation for ungrouped data, watch out for these frequent errors:

  1. Using n instead of n - 1 for sample data — this underestimates true variability
  2. Forgetting to square deviations — negative and positive deviations would cancel out
  3. Confusing population and sample formulas — know which context you're working in
  4. Mixing grouped and ungrouped formulas — ungrouped data uses individual scores, not midpoints
  5. Taking the square root before dividing — always compute variance first, then standard deviation

Practical Applications

Understanding variance and standard deviation of ungrouped data extends far beyond the classroom:

  • Quality control: Manufacturers use standard deviation to monitor product consistency
  • Finance: Investment risk is often measured by the standard deviation of returns
  • Education: Teachers analyze score variability to identify inconsistent student performance
  • Healthcare: Researchers examine variability in patient responses to treatments

For those looking to deepen their statistical knowledge, Khan Academy's statistics course offers excellent free resources on measures of spread and variability.

Frequently Asked Questions

What is the difference between variance and standard deviation of ungrouped data?

Variance measures the average squared deviation from the mean, while standard deviation is the square root of variance. Standard deviation is more interpretable because it's in the same units as the original data, whereas variance is in squared units.

Why do we divide by n - 1 instead of n when calculating sample variance?

Dividing by n - 1 (Bessel's correction) produces an unbiased estimator of the population variance. Using n would systematically underestimate variability because the sample mean is calculated from the same data, making deviations appear smaller than they truly are relative to the population mean.

Can standard deviation be negative?

No. Since standard deviation is the root of squared deviations, it's always zero or positive. A standard deviation of zero means all values in the dataset are identical — there's no variability whatsoever.

How do I know if my standard deviation is "high" or "low"?

Standard deviation is relative to the mean and the context of your data. A standard deviation of 5 might be low for a dataset with a mean of 1000 but high for a dataset with a mean of 10. Compare the standard deviation to the mean (the coefficient of variation) or consider whether the spread makes sense for your specific field of study.