Deviation — Definition, Formula & Examples
Deviation is the difference between a single data point and the mean of the data set. It tells you how far that value sits from the average, and in which direction.
For a data value in a data set with mean , the deviation of is defined as . A positive deviation indicates the value lies above the mean; a negative deviation indicates it lies below.
Key Formula
Where:
- = Deviation of the $i$-th data point
- = The $i$-th data value
- = Mean (average) of the data set
How It Works
To find a deviation, first calculate the mean of your data set. Then subtract the mean from the data point in question. The result can be positive, negative, or zero. One key property: when you add up all the deviations in a data set, the sum is always zero. This is why standard deviation squares each deviation before averaging — squaring eliminates the cancellation between positive and negative values.
Worked Example
Problem: A data set contains the values 4, 7, 10, 13, 16. Find the deviation of each value.
Find the mean: Add all values and divide by the count.
Subtract the mean from each value: Compute each deviation using the formula.
Verify the sum: Check that all deviations sum to zero.
Answer: The deviations are −6, −3, 0, 3, and 6. Their sum confirms they equal zero.
Why It Matters
Deviation is the building block of standard deviation and variance. Every time you calculate spread in a statistics or AP Stats course, you start by finding individual deviations. Understanding this step makes the rest of the standard deviation formula far less mysterious.
Common Mistakes
Mistake: Taking the absolute value of every deviation before summing, then concluding the sum should not be zero.
Correction: Raw deviations are signed values (positive or negative). Their sum is always zero. Absolute deviations and squared deviations are separate concepts used for different measures of spread.
