Standard Deviation and Variance Explained with Step-by-Step Calculations

Two teachers have finished marking fictional mathematics assessments. Both classes have an average of 10 points on a short practice scale. Yet in one class the values are 8, 9, 10, 11 and 12, while the second class has 0, 5, 10, 15 and 20. The means match exactly—but the students’ recorded scores in the second class are far more spread out. If we reported only the average, a reader would miss one of the most important differences between these datasets.

Standard deviation and variance help us quantify that missing information. They measure how observations vary around their mean, but differ in their units and in how they are calculated for a whole population versus a sample. In this tutorial you will build a deviation table, square and add deviations, calculate four main statistics, compare frequency tables and grouped intervals, investigate outliers, reproduce results in Excel, Google Sheets and Python, and apply your understanding to an authentic mathematical exercise—not to real student records.

The lesson continues directly from Mean, Median, Mode and Range and complements the broader Descriptive versus Inferential Statistics guide. Our central worked example uses exactly the same eight hypothetical scores: 60, 65, 70, 70, 75, 80, 85 and 95. The accompanying 120-record fictional dataset is the same dataset from Topic 75, not an invented replacement. Every displayed reference statistic was calculated independently with Python.

Verified introductory calculations. Eight observations; sum = 600; mean = 75; sum of squared deviations = 900. If these eight represent the complete defined class, population variance = 112.5 points² and population SD ≈ 10.6066 points. If they are analysed as a conventional sample, sample variance ≈ 128.5714 points² and sample SD ≈ 11.3389 points. Choose the interpretation before selecting the denominator.

Learning outcomes and a fast comparison

After studying the tutorial, you should be able to explain statistical spread; distinguish range, variance, standard deviation and standard error; calculate population and sample versions by hand; explain why the conventional sample variance uses n−1; work with signed and decimal values; recover variance from exact frequency counts; label midpoint-based grouped results as estimates; evaluate whether an outlier is genuine; and select correct spreadsheet or Python function defaults. You will also practise interpreting measures without implying a causal relationship from descriptive group differences.

StatisticWhat it measuresUnitsEight-score value
Arithmetic meanCentral arithmetic balanceScore points75
RangeMaximum minus minimumScore points35
Population varianceMean squared deviation across complete populationSquared points112.5
Population SDSquare root of population varianceScore points10.6066
Sample varianceConventional n−1 variance estimatorSquared points128.5714
Sample SDSquare root of conventional sample varianceScore points11.3389

Why the same average can conceal very different spreads

For Dataset A = 8, 9, 10, 11, 12, the mean is 10. The deviations from the mean are −2, −1, 0, 1 and 2. Their squares sum to 10; dividing by the population count five gives variance 2, and the population standard deviation is √2 ≈ 1.4142. Dataset B = 0, 5, 10, 15, 20 also averages 10, but its squared deviations sum to 250. Its population variance is 250/5 = 50, so the population standard deviation is √50 ≈ 7.0711—five times Dataset A’s SD.

Two real calculated datasets each mean 10 but with population SD 1.4142 and 7.0711.
Figure 1. Equal means cannot guarantee equal variation. Both dot-plot rows use the same numerical axis.

This is why researchers report a central measure together with spread. In an assessment study, high spread may prompt a careful look at the distribution of scores, but it does not automatically mean instruction was poor. In a manufacturing process, a lower spread around a target measurement may be desirable. In a sports performance analysis, higher variability might reflect playing conditions or a variable role. Context determines whether a difference in standard deviation is important.

What is statistical variability?

Statistical variability means that observations are not all identical. Data can vary in overall range, in how close values are to their mean, in how evenly they fill the observed scale, or in the shape of their distribution. The range uses only the smallest and largest recorded values. The interquartile range measures the distance between the first and third quartiles under a documented convention. Variance and standard deviation incorporate squared distances from the arithmetic mean across all numeric observations.

Each measure has limitations. A single extreme observation can change the range substantially; quartiles depend on an ordering and estimation convention; variance places increased numerical emphasis on larger deviations because of squaring; and SD is not a complete description of the distribution’s shape. A useful report may include the mean, median, SD and a plot, rather than relying on one number. The OpenStax Measures of the Spread of the Data explains these distinctions in introductory statistics.

What is variance?

Variance measures squared dispersion around the mean. The word “average” in its definition requires care: for a complete defined finite population, divide the sum of squared deviations by N. For the conventional sample-variance estimator, divide by n−1. In both cases, first subtract the appropriate mean from each value, square every deviation and add those squared contributions. Squaring ensures the contributions are nonnegative, prevents positive and negative deviations from cancelling, and gives especially large deviations more weight.

Variance is expressed in the square of the original unit. If assessment marks are in score points, variance is measured in points². If travel times are in minutes, variance is measured in minutes². A reported variance of 112.5 points² should not be described as “students differ by 112.5 points.” That would mix up squared variation with the original scale. The square root—standard deviation—restores the familiar measurement units.

What is standard deviation?

Standard deviation is the nonnegative square root of variance. It is a measure of dispersion on the original numerical scale, describing the overall size of differences from the mean using a squared-deviation foundation. For a population, the conventional symbol is σ (sigma); for a sample using the n−1 convention, it is s. Neither variance nor SD can be genuinely negative, because squared deviations cannot be negative and the principal square root is nonnegative.

An SD of approximately 10.61 score points in our complete eight-score class does not mean each student scored exactly 10.61 points above or below 75. The eight actual deviations vary from −15 to +20. Standard deviation summarizes those deviations in one number, and the data could be asymmetric, multimodal or contain extreme cases. It is also not generally the arithmetic mean of absolute distances from the mean; that is a different descriptive statistic, mean absolute deviation.

Step 1: understand deviations from the mean

A deviation records how an observation compares with its mean: deviation = observed value − mean. For the student scoring 60, deviation = 60−75 = −15 points, indicating 15 points below the mean. For 85, deviation = 85−75 = +10 points, meaning ten above. At 75, the deviation is zero. The sign indicates direction; absolute magnitude indicates distance. A negative deviation is not a negative score, and negative deviations are valid in a score dataset.

Original eight-score observations displayed relative to mean 75.
Figure 2. The dashed reference line marks the mean, not the median or an invented target score.

Step 2: square deviations and add them

If we simply added all signed deviations from a dataset’s own arithmetic mean, they would total zero. That is an algebraic property of the mean, not proof that the values are identical. To measure dispersion, variance squares each deviation before summing. For example, the deviation −15 contributes 225 squared points, while the deviation +20 contributes 400. Their contributions do not cancel, and the larger distance contributes more than proportionally.

Score xx − 75(x − 75)²
60−15225
65−10100
70−525
70−525
7500
80525
8510100
9520400
Total0900
Calculated squared deviation bars total 900 for eight fictitious assessment scores.
Figure 3. Squaring deviations prevents sign cancellation and emphasizes more extreme distances.

The table contains eight distinct observations, though two have equal value 70. Each contributes a squared deviation of 25, because an observation should not disappear merely because another student earned the same mark. You may check the total by calculating 225+100+25+25+0+25+100+400=900. The original signed deviations total −15−10−5−5+0+5+10+20=0. All subsequent population and sample calculations start from this same verified sum of squared deviations.

Step 3: choose the population or sample formula

Before calculating variance, define the population of interest. If the eight students are every member of the specific classroom whose dispersion we want to describe, use N=8. If instead those eight were observed as a sample to support estimation of a larger defined population, the conventional sample variance uses n−1=7 under the usual random-sampling assumptions. Data are not automatically a sample because the dataset is small, nor a census merely because it is large. The choice depends on the research question and design.

Population variance: symbol, formula and verified result

Population mean: μ = Σx / N
Population variance: σ² = Σ(xᵢ − μ)² / N
N = 8; μ = 600/8 = 75
Sum of squared deviations = 900
σ² = 900/8 = 112.5 squared score points

The population formula divides the entire sum of squared deviations by the number of observations in the defined finite population. Here that gives 112.5 points². It is an appropriate descriptive result for these eight records considered as the complete classroom. Do not say the variance “equals 112.5 marks away from the mean”; the units are squared. It is tempting to interpret the value directly as a score difference, but doing so would lose the distinction between variance and standard deviation.

Population standard deviation: restore original units

Population SD: σ = √σ² = √(900/8)
σ = √112.5 ≈ 10.6066 score points

The population SD of approximately 10.61 points is more intuitively comparable with original test scores because it uses the same units. It is a descriptive summary of these eight values, not a promise that nearly everyone lies within ten points of 75. The shape of the distribution matters when predicting proportions near the mean. In particular, the familiar 68–95–99.7 rule is an approximation for normally distributed measurements, not a general rule for every eight-score dataset.

Sample variance: why does the conventional formula use n − 1?

The conventional sample variance is s² = Σ(xᵢ−x̄)²/(n−1) for a sample of at least two observations. In the eight-score example, the sample mean x̄ is still 75 and the sum of squared deviations is still 900. The denominator changes from eight to seven: s² = 900/7 ≈ 128.5714 squared score points. That makes this numerical result larger than the population variance computed from the same eight values.

Sample variance: s² = Σ(xᵢ−x̄)²/(n−1)
Sample size: n=8, sample mean x̄=75
s² = 900/(8−1) = 900/7 ≈ 128.5714 points²
Sample SD: s = √(900/7) ≈ 11.3389 points

Why n−1? When the sample mean is calculated from the same observations, its deviations are constrained to sum to zero. For three observations whose mean is ten, their sum must be thirty: once two values are fixed, the last is determined. In general, only n−1 deviations can vary independently. Using n−1 compensates for estimating the mean from the sample and yields an unbiased conventional estimator of population variance under suitable independent random-sampling assumptions—often called Bessel’s correction.

This correction does not make the sample standard deviation universally unbiased for the population SD. It also does not apply mechanically to every weighted survey, correlated time series, complex cluster design or other statistical estimator. If n=1, this conventional sample variance is undefined because n−1 is zero; although the one-point population variance is zero for the population defined as that single observation, that fact does not estimate variability in an unknown larger population.

Population versus sample: one table, two interpretations

CalculationComplete defined populationConventional sample
Meanμ = Σx/Nx̄ = Σx/n
Varianceσ² = Σ(x−μ)²/Ns² = Σ(x−x̄)²/(n−1)
Standard deviationσ = √σ²s = √s²
Eight-score denominatorN = 8n−1 = 7
Eight-score variance112.5 points²128.5714 points²
Eight-score SD10.6066 points11.3389 points
Main purposeDescribe dispersion of that defined groupDescribe sampled dispersion with conventional variance estimator
Verified comparison using denominators 8 and 7; variance values are squared units.
Figure 4. The intended statistical population, not the number of rows alone, determines which convention is appropriate.

One may calculate and report both descriptive versions as long as the labels are clear. Population and sample statistics answer different analytical questions. A common mistake is to call the difference between 112.5 and 128.5714 a data error, or to assume that n−1 must be used whenever n is less than thirty. Neither is correct. The observed scores, mean and squared deviations are identical; the denominator is what changes.

A second calculation from beginning to end

Consider the separate numbers 2, 4, 6, 8, 10. Their sum is thirty, so mean = 30/5 = 6. Their signed deviations are −4, −2, 0, 2, 4, which square to 16, 4, 0, 4, 16. The squared deviations total 40. If all five values form the population, variance is 40/5 = 8 and SD √8 ≈ 2.8284. If these five are a conventional sample, divide by four: sample variance 10 and sample SD √10 ≈ 3.1623.

This smaller example is valuable because calculations can be checked by hand without a spreadsheet. First confirm that signed deviations sum to zero. Next verify the squares and their total. Only then choose the denominator and square root. Reversing the order—taking the square root of each deviation before adding, for instance—does not compute standard deviation. Try reproducing both results before viewing the complete answer guide.

What does a standard deviation of zero mean?

For values 10, 10, 10, 10, 10, the mean is ten and every deviation is zero. The sum of squared deviations is zero, so both population variance and standard deviation are zero. Conventional sample variance and SD are also zero because at least two values exist. This shows no observed spread in that particular dataset; it does not prove future observations, other classrooms or an underlying process must have zero variability.

By contrast, negative measurements do not produce negative variance. Temperature observations −4, −2, 0, 2, 4 have mean zero and squared deviations 16, 4, 0, 4, 16. Their total is 40, population variance is 8 °C², and population SD ≈ 2.8284 °C. Negative deviations or original values are entirely compatible with a nonnegative variance. A small negative numerical output from a poorly conditioned floating-point shortcut would indicate computational error, not a mathematical negative variance.

Variance and standard deviation from an exact frequency table

When each distinct score and its observed count are known, a frequency table can reproduce exact raw-data variance. Let x be the recorded score, f be its frequency, and mean be the frequency-weighted mean Σfx/Σf. Multiply each squared deviation by its frequency before adding; otherwise repeated values contribute too little. For the example with scores 50, 60, 70, 80 occurring 2, 3, 4 and 1 times, the total observation count is ten and mean 640/10 = 64.

Score xFrequency fx−64(x−64)²f(x−64)²
502−14196392
603−41648
704636144
80116256256
Total10840
Σfx = 50×2 + 60×3 + 70×4 + 80×1 = 640
Mean = 640/10 = 64
Σf(x−64)² = 392+48+144+256 = 840
Population variance = 840/10 = 84 points²
Population SD = √84 ≈ 9.1652 points
Sample variance = 840/9 ≈ 93.3333 points²
Sample SD = √(840/9) ≈ 9.6609 points
Frequency weighted squared deviations total 840 across the verified exact-value table.
Figure 5. The score category is not the number of observations; each squared deviation must be multiplied by its count.

Notice that ten—not four—is the denominator for the population variance because ten observations exist even though only four different scores appear. If the ten observations are analysed as a conventional sample, the denominator is nine. If we expanded the frequency table back into ten score entries and used the same formula, all results would match exactly. This is possible because an exact-value frequency table preserves the actual repeated values and their counts.

Grouped frequency tables: calculate midpoint-based estimates

Grouping is different from recording exact values. Suppose a separate fictional table lists class intervals 40–49 (frequency 2), 50–59 (3), 60–69 (4), and 70–79 (1). Without the underlying raw values, students do not know the exact scores within each class. The midpoint method substitutes class centers 44.5, 54.5, 64.5 and 74.5 as representative values, treating all observations in a class as though they occurred at its midpoint. The resulting mean and variance are approximations to the unavailable raw statistics.

ClassFrequencyMidpointMidpoint × frequency
40–49244.589
50–59354.5163.5
60–69464.5258
70–79174.574.5
Total10585
Estimated mean = 585 / 10 = 58.5
Σ f(midpoint − 58.5)² = 840
Estimated population-style grouped variance ≈ 840/10 = 84
Estimated population-style grouped SD ≈ √84 = 9.1652
Approximate sample-style grouped variance ≈ 840/9 = 93.3333

The midpoint-based estimate of 84 happens to equal the earlier exact-value table’s population variance. That is a coincidence of these two carefully separated teaching examples, not evidence that grouped values reconstruct exact original observations. Different within-class arrangements can have different raw variances even while their grouped frequencies remain identical. Open-ended classes and unequal widths require special attention, and a modal class should not be mistaken for an exact modal score.

Alternative computational variance formulas

An algebraically equivalent population identity is σ² = (Σx²/N) − μ². The conventional sample identity is s² = [Σx² − (Σx)²/n]/(n−1). These can make hand calculations faster when squared values are easy to add. For 2, 4, 6, 8, 10, we have Σx² = 4+16+36+64+100 = 220, N=5 and μ=6, so the population variance is 220/5 − 6² = 44 − 36 = 8.

Population: σ² = Σx²/N − μ²
Sample: s² = [Σx² − (Σx)²/n] / (n−1)
2, 4, 6, 8, 10 → Σx²=220, Σx=30
Population variance = 220/5 − (30/5)² = 8
Sample variance = [220 − (30²/5)]/4 = 10

Although the formulas are algebraically correct, subtracting large nearly equal floating-point numbers can lose numerical precision in computer implementations. This matters when observations have a huge common baseline but tiny spread. For programming tasks, prefer reliable numerical libraries or stable algorithms that center values appropriately. Hand calculations are educational; high-quality software also needs numerical safeguards.

Why outliers can change variance sharply

Consider a fictional set of five assessment measurements: 48, 50, 52, 49, 51. Their mean is 50, population variance is 2, population SD is √2 ≈ 1.4142 and range is 4. Now add a valid, unusually high observation of 99. Across six values, the mean becomes 58.1667 and population variance rises to approximately 335.1389, giving SD ≈ 18.3068 and range 51. The change is large because variance squares differences from the mean, so an extreme distance can dominate the total.

Correct population SD before and after the added score 99.
Figure 6. An unusual measurement warrants investigation, not automatic deletion.

An outlier may be a transcription error, an inconsistent unit, an unusual but true observation, or a value from a different process. Determine which explanation fits before excluding anything. Report how results change with and without a flagged value when a sensitivity analysis is warranted, and preserve the original source. Median and interquartile range offer complementary descriptions when extreme observations heavily influence mean and SD. A lower SD is not universally better: it must be interpreted relative to what the variable measures and the purpose of the analysis.

Standard deviation versus range and interquartile range

Range measures only the difference between extremes. Interquartile range (IQR) is Q3−Q1 under a documented quartile convention, summarizing the middle portion of an ordered distribution. Standard deviation uses all numerical observations through squared deviations from their mean. Unlike SD, range and IQR do not use the mean in their formulas. When extreme values are genuine but unusually influential, it can be helpful to report the median with IQR alongside the mean with SD, rather than pretending that either pair describes everything.

Scores with mean 75 and mean plus or minus actual population standard deviation.
Figure 7. SD summarizes spread; it does not prescribe the exact position of any one observation.

Standard deviation is not standard error

Standard deviation concerns the variability of measured observations. Standard error concerns the variability of a statistic—such as a sample mean—across repeated samples under a specified design or probability model. For independent observations under suitable assumptions, an estimated standard error for the mean is s/√n. For example, a hypothetical IID sample of 25 has sample SD 10 points, giving estimated SE = 10/√25 = 2 points. This does not imply that individuals’ scores have SD two.

The short formula cannot automatically be carried over to clustered, strongly dependent or unequal-probability samples. A finite-population sample without replacement may require a finite-population correction. If observations are repeated measurements on the same learners, treating all rows as independent can lead to overly optimistic uncertainty estimates. The standard deviation of a dataset and the standard error of a sample mean have related formulas but answer different questions. The previous descriptive and inferential statistics guide provides the broader distinction.

The 68–95–99.7 empirical rule requires approximately normal data

For a normal distribution, approximately 68% of values lie within one population SD of the mean, 95% within two, and 99.7% within three. This is the familiar empirical rule. It is a property of the normal model, not a guarantee that any group of eight scores—or a strongly skewed, multimodal or truncated dataset—will show those exact percentages. Students should not invent counts by multiplying a small, arbitrary class size by 68%, 95% or 99.7% unless a suitable model is explicitly assumed.

Correct normal-curve regions for approximately 68 95 99.7 percent rule.
Figure 8. The shaded areas illustrate an approximately normal distribution, not a claim that fictional school results are normally distributed.

A normal-curve picture is useful only when its conditions and approximation are transparent. A histogram can reveal a rough shape but does not by itself prove a distribution is normal. Biological, educational and financial measurements may be bounded, skewed, clustered or shaped by selection effects. For those, the empirical rule could be misleading. First describe the observed distribution, then consider whether a normal model is appropriate for the intended interpretation.

Z-scores: express a distance in SD units

A population z-score is z=(x−μ)/σ when the population SD σ is positive. It describes the signed distance of an observed value from its mean, scaled by SD. For the fictional eight-score population, a score of 95 is 20 points above mean 75. Dividing by σ≈10.6066 gives z≈+1.8856. That tells us 95 lies about 1.89 population SDs above the mean. It does not tell us that the score is an error or establish that all scores follow a normal distribution.

For the eight-score complete population:
μ = 75 and σ = sqrt(112.5) ≈ 10.6066
For x = 95: z = (95−75)/10.6066 ≈ 1.8856
If σ = 0, this z-score formula is undefined.

Optional: coefficient of variation

The coefficient of variation is CV = SD/mean, often multiplied by 100 to express a percentage. For a suitable positive ratio-scale measurement with mean 50 units and SD five, CV = 5/50 = 0.10 or 10%. It can help compare relative variation when different groups have meaningfully positive means. However, it becomes unstable or misleading when the mean is near zero, and it is unsuitable as a general comparison tool for interval scales without a meaningful absolute zero, such as ordinary Celsius temperature readings.

Scientific calculator: a model-independent method

A basic scientific calculator can carry out the main variance calculation without any special statistical menu. Count n, compute the mean, subtract the mean from each value, square every deviation and add the squares. Divide by N if you are describing a complete defined population or n−1 if calculating the conventional sample variance. Take the nonnegative square root to obtain SD. Finally, attach the correct units and round only after using adequate precision. If your calculator offers σx or sx, check the manual to confirm which denominator each button represents.

Microsoft Excel: live, reproducible statistical formulas

The downloadable workbook’s Eight Scores worksheet places student labels in A2:A9 and numerical scores in B2:B9. Use VAR.P and STDEV.P for the complete defined population; VAR.S and STDEV.S for the conventional sample summaries. These are supported Excel statistical functions, as documented in Microsoft’s statistical-function reference. Check that the range includes all eight numeric observations, and distinguish an authentic zero score from a missing cell.

=AVERAGE(B2:B9)       → 75
=VAR.P(B2:B9)         → 112.5
=STDEV.P(B2:B9)       → 10.6066017...
=VAR.S(B2:B9)         → 128.5714286...
=STDEV.S(B2:B9)       → 11.3389342...

The worksheet also provides formula-based deviation and squared-deviation columns so that students can reconcile the sum of squares, instead of trusting a single summary cell. Excel formulas usually ignore blank cells in a referenced numeric range, but erroneous text imports or unexpected error values still need investigation. Do not silently convert missing assessment values into zeros. If regional settings use different argument separators, follow the installed application’s locale. The workbook formula calculations were evaluated programmatically, not through a physical Excel desktop interface.

Google Sheets: same statistical distinction, compatible workbook

The supplied Google Sheets-compatible XLSX has the same columns and equations. After importing it into Google Sheets, check whether the score column is numeric and select the correct version of VAR.P, VAR.S, STDEV.P and STDEV.S. Google’s function list is the authoritative current reference for supported function names and aliases. A Google Sheets tab’s contents can look correct but still include numeric text or blank data; verify the input types before interpreting any output.

=VAR.P(B2:B9)
=VAR.S(B2:B9)
=STDEV.P(B2:B9)
=STDEV.S(B2:B9)

A compatible XLSX is provided for import, but this particular file was not created as a native cloud Google Sheet and its formulas were not executed in the Google Sheets website. Treat the numerical reference figures as independently verified calculations; confirm native workbook behavior yourself after import. Spreadsheet differences can arise from locale, data type, rounding and version, not only from mathematical errors.

Python’s statistics module: four precise function choices

Python’s standard statistics library explicitly separates population from conventional sample calculations: pvariance() and pstdev() use population conventions; variance() and stdev() use conventional sample conventions. The following code uses exactly the eight hypothetical assessment scores and matches the independently checked results. For the sample functions, at least two data points are required.

import statistics
scores = [60, 65, 70, 70, 75, 80, 85, 95]
print('Population variance:', statistics.pvariance(scores))
print('Sample variance:', statistics.variance(scores))
print('Population SD:', statistics.pstdev(scores))
print('Sample SD:', statistics.stdev(scores))
# 112.5, 128.571428..., 10.606601..., 11.338934...

NumPy versus Pandas: understand ddof defaults

NumPy’s np.var() and np.std() ordinarily use a divisor n when ddof=0, the default. Specify ddof=1 for the conventional n−1 denominator. Pandas’ Series variance and standard-deviation methods commonly default to ddof=1, while passing zero requests a population-style denominator. Without checking these choices, two programmers can analyze identical values and report different but internally consistent statistics. Pandas’ official SD documentation describes the relevant distinction.

import numpy as np
import pandas as pd
x = np.array([60,65,70,70,75,80,85,95])
np.var(x, ddof=0)  # population variance: 112.5
np.var(x, ddof=1)  # conventional sample variance: 128.5714...
p.std(x, ddof=0)  # population SD
np.std(x, ddof=1)  # conventional sample SD
pd.Series(x).std()         # typically ddof=1
pd.Series(x).std(ddof=0)   # population-style divisor

Missing-value behavior can also differ. A clean CSV with valid numeric inputs is easiest for a beginner project, but real analytics often include blank values, missing observations and units that need conversion. Pandas commonly skips missing entries in its statistical summary methods unless otherwise specified, while NumPy may propagate NaN values unless a nan-aware function is selected. Make a documented decision about missingness before comparing outputs, and never describe two statistics as contradictory merely because they used different valid-row counts.

Five practical uses: what should the SD mean?

ContextFictional numerical exampleCorrect calculationInterpretation and limit
Assessment marks2,4,6,8,10 pointsPopulation SD √8 ≈ 2.8284 pointsDispersion of these five values; not a national result
Manufacturing diameter9,10,11 unitsPopulation SD √(2/3) ≈ 0.8165 unitsProcess measurement variation; tolerances require separate specifications
Temperature−4,−2,0,2,4 °CPopulation SD √8 ≈ 2.8284 °CSpread of recorded temperatures; not a weather forecast
Travel time15,20,25 minutesPopulation SD √(50/3) ≈ 4.0825 minutesObserved journey-time variability; sampling and routes affect generality
Daily unit sales10,10,15,15 itemsPopulation SD 2.5 itemsThese four days vary; does not predict future sales

Use the same 120 fictional observations from Topic 75

The extended project deliberately reuses the 120 exact fictional assessment rows from Topic 75: unique codes STU001–STU120, six subject labels, four study levels, multiple assessment components, two academic terms and fictional regions. No names, confidential grades or actual school findings are involved. Across all 120 recorded score values the verified sum is 8,261 and mean 68.8417; the complete-data population variance is 141.0833 points², giving population SD 11.8778 points. The conventional sample variance for those same 120 rows is 142.2688, with sample SD 11.9277.

The learning package additionally supplies a simple random selection of 30 distinct rows without replacement, generated reproducibly with NumPy seed 76076. For that selection the sample mean is 69.7333, conventional sample variance is 74.6851 and conventional sample SD is 8.6421. It is entirely possible for a sample’s observed dispersion to differ from that of the full finite population. A single realized sample does not prove a difference between schools, and students should not interpret its smaller SD as an estimate guaranteed to be accurate.

Computed standard deviation across all six fictional subject groups, with 20 scores per subject.
Figure 9. Each subject statistic summarizes its own 20 fictional observations; subject means and other context are needed for interpretation.
Actual histogram of the 120 synthetic assessment scores rather than guessed normal distribution.
Figure 10. The shape of the fictional observations is measured, not assumed normally distributed.

Ten-question capstone: Investigating assessment-score variability

The following capstone uses the supplied complete 120-record synthetic dataset and its independently selected 30-row probability sample. Open the source in a spreadsheet or Python; show the original observation count, denominator choice, full calculation and units. Every result below comes from the included files, not a guess or an observation of real students. The accompanying PDF provides the same assignment so it can be completed without reading the answer immediately.

Capstone task 1: Verify dataset integrity

Method: Count rows and unique student codes; check the 0–100 score restriction. Verified reference: 120 records and 120 unique codes; observed minimum 8, maximum 99. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 2: Calculate the full-data mean

Method: Sum the 120 scores and divide by 120. Verified reference: Total 8,261; mean 68.8417 points. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 3: Treat all 120 as the complete defined population

Method: Compute sum of squared deviations from 68.8417 and divide by 120. Verified reference: Population variance 141.0833 points². Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 4: Convert variance to SD

Method: Use the nonnegative square root without changing the input unit. Verified reference: Population SD 11.8778 points. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 5: Work with a genuine SRS of 30

Method: Use the provided 30 distinct source records selected without replacement, seed 76076. Verified reference: Sample mean 69.7333; conventional sample variance 74.6851 points² and SD 8.6421 points. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 6: Compare subject spreads

Method: Calculate population SD separately for Mathematics and Biology. Verified reference: Use the 20 source rows for each subject. Compare the figures in the verified source workbook; neither implies why marks differ. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 7: Make a deviation worksheet

Method: For eight introductory marks, show x, x−75 and (x−75)². Verified reference: Signed deviations total zero; squared deviations total 900. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 8: Reproduce a frequency variance

Method: Use exact scores 50,60,70,80 with counts 2,3,4,1. Verified reference: Mean 64, squared-deviation sum 840, population variance 84, conventional sample variance 93.3333. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 9: Investigate extremes responsibly

Method: Review observed scores 8 and 99 in the fictional full dataset. Verified reference: Keep original scores in baseline statistics; compare a documented sensitivity result only if a clear rule is given. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Capstone task 10: Prepare the findings report

Method: Write five factually supported statements with formulas and limitations. Verified reference: Report N=120, mean 68.8417, population variance 141.0833 points² and SD 11.8778 points; synthetic results have no causal implications. Common pitfall: Reporting sample results as though they were census results, or forgetting to label the denominator and statistical units. Student extension: Reproduce the value independently in the source workbook and write one sentence stating what it cannot establish.

Thirty original practice questions: hints and worked answers

Attempt each question before expanding its solution. The first ten focus on foundations, the next ten on applied calculations, and the final ten on grouped-data and software interpretation. Each correct question earns one point on the separate self-assessment sheet. These are original learning tasks for practice, not standardized examination bands. Every numerical solution is also included in the downloadable worked-answer guide.

Level 1 — Foundations: Questions 1–10

Question 1 — Define variance

Explain what variance measures and state its units when the data are in minutes.

Show hint

Think squared deviations and denominator.

Show worked solution

Verified calculation: Variance summarizes squared deviations from the mean with an appropriate divisor. Its units would be minutes².

Common mistake: Confusing variance with original-unit SD.

Question 2 — Define standard deviation

State how SD relates to variance.

Show hint

Take the nonnegative square root.

Show worked solution

Verified calculation: Standard deviation equals √variance, recovering the original measurement unit.

Common mistake: Calling SD the ordinary mean absolute deviation.

Question 3 — Range versus SD

For 3,5,7 calculate range and population SD.

Show hint

Mean is five.

Show worked solution

Verified calculation: Range=7−3=4; squared deviations=4+0+4=8; population SD=√(8/3)≈1.6330.

Common mistake: Reporting the range as SD.

Question 4 — Signed deviation

Mean is 75; a student scores 60. Find the deviation.

Show hint

Score minus mean.

Show worked solution

Verified calculation: 60−75=−15 score points, meaning 15 below the mean.

Common mistake: Removing the negative sign without explanation.

Question 5 — Squaring negatives

Square a deviation of −7.

Show hint

Use parentheses.

Show worked solution

Verified calculation: (−7)²=(−7)×(−7)=49 squared units.

Common mistake: Confusing −7² and (−7)².

Question 6 — Find an arithmetic mean

Mean of 4,6,8?

Show hint

Add and divide by three.

Show worked solution

Verified calculation: Total 18; mean=18/3=6.

Common mistake: Dividing by the wrong count.

Question 7 — Sum of squared deviations

For 4,6,8 find the sum of squared deviations.

Show hint

Mean is six.

Show worked solution

Verified calculation: (4−6)²+(6−6)²+(8−6)²=4+0+4=8.

Common mistake: Using unsquared deviations.

Question 8 — Population variance

Treat 4,6,8 as the complete population. Find variance.

Show hint

Divide by N=3.

Show worked solution

Verified calculation: Sumsq=8; population variance=8/3≈2.6667 squared units.

Common mistake: Using the sample denominator two.

Question 9 — Population SD

For the same complete three-value population, find SD.

Show hint

Square root after variance.

Show worked solution

Verified calculation: SD=√(8/3)≈1.6330 units.

Common mistake: Reporting 2.6667 as SD.

Question 10 — Low SD interpretation

Compare datasets 10,10,10 and 7,10,13.

Show hint

Both have mean ten.

Show worked solution

Verified calculation: First population SD=0; second SD=√[(9+0+9)/3]=√6≈2.4495. The first has no observed spread.

Common mistake: Calling a lower SD universally better.

Level 2 — Applied calculations: Questions 11–20

Question 11 — Sample variance

Sample of 2,4,6,8,10: calculate conventional variance.

Show hint

Mean six, sumsq 40.

Show worked solution

Verified calculation: s²=40/(5−1)=10 squared units.

Common mistake: Dividing by five.

Question 12 — Sample SD

Same sample 2,4,6,8,10: find SD.

Show hint

Square root of ten.

Show worked solution

Verified calculation: s=√10≈3.1623 units.

Common mistake: Calling variance the SD.

Question 13 — Population versus sample

For eight marks with sumsq 900 find both variances.

Show hint

Use eight and seven denominators.

Show worked solution

Verified calculation: Population variance=900/8=112.5; sample variance=900/7≈128.5714.

Common mistake: Interchanging denominators.

Question 14 — Negative observations

For temperatures −4,−2,0,2,4 find population variance and SD.

Show hint

Mean zero.

Show worked solution

Verified calculation: Squared deviations sum 40; variance=40/5=8 °C²; SD=√8≈2.8284 °C.

Common mistake: Assuming negative observations cause negative variance.

Question 15 — Decimal values

Find population SD for 1.0,1.5,2.0.

Show hint

Mean 1.5.

Show worked solution

Verified calculation: Squared deviations .25+0+.25=.5; variance=.5/3; SD≈0.4082.

Common mistake: Rounding before square root.

Question 16 — Zero variance

Find both population and sample SD for 9,9,9,9.

Show hint

All deviations zero.

Show worked solution

Verified calculation: Mean nine; squared deviations all zero; both variance and SD equal zero.

Common mistake: Thinking zero variance means missing records.

Question 17 — Same mean, different spread

Compare population variances for A=8,9,10,11,12 and B=0,5,10,15,20.

Show hint

Both means ten.

Show worked solution

Verified calculation: A: sumsq 10/5=2. B: sumsq 250/5=50. B has larger dispersion.

Common mistake: Equal means do not imply equal variances.

Question 18 — Exact frequency variance

Scores 50:2,60:3,70:4,80:1. Population variance?

Show hint

Mean 64.

Show worked solution

Verified calculation: Weighted squared deviations:392+48+144+256=840; variance=840/10=84.

Common mistake: Dividing by four distinct score categories.

Question 19 — Frequency sample SD

Same frequency table: sample SD?

Show hint

Ten total observations.

Show worked solution

Verified calculation: Sample variance=840/9≈93.3333; sample SD=√(840/9)≈9.6609.

Common mistake: Using population divisor ten.

Question 20 — Outlier impact

How does adding 99 to 48,50,52,49,51 change population SD?

Show hint

Recalculate mean and variance.

Show worked solution

Verified calculation: Before variance=2 and SD≈1.4142. After mean≈58.1667, variance≈335.1389, SD≈18.3068.

Common mistake: Automatically deleting the 99.

Level 3 — Examination-style reasoning: Questions 21–30

Question 21 — Grouped variance estimate

Class 40–49:2, 50–59:3, 60–69:4, 70–79:1. Estimate population-style variance.

Show hint

Use midpoints.

Show worked solution

Verified calculation: Midpoints 44.5,54.5,64.5,74.5; estimated mean=58.5; weighted sumsq=840; estimated variance=84.

Common mistake: Presenting midpoint estimate as exact raw-data variance.

Question 22 — Grouped SD estimate

Use same grouped midpoint example to estimate SD.

Show hint

Root of estimated variance.

Show worked solution

Verified calculation: Estimated population-style SD≈√84≈9.1652 original units.

Common mistake: Forgetting approximate label.

Question 23 — Computational identity

For 2,4,6,8,10 find population variance using Σx²/N−μ².

Show hint

Sum squares 220; mean six.

Show worked solution

Verified calculation: 220/5−6²=44−36=8 squared units.

Common mistake: Forgetting to square the mean.

Question 24 — Missing observation

Three values have mean six; first two are four and six. Find third and population variance.

Show hint

Total sum 18.

Show worked solution

Verified calculation: Third=18−4−6=8. For 4,6,8, variance=(4+0+4)/3≈2.6667.

Common mistake: Using six as the required sum.

Question 25 — Corrected observation

4,6,8,10 becomes 4,6,8,12. Revised population variance?

Show hint

Replace 10 with 12.

Show worked solution

Verified calculation: New mean=7.5; squared deviations 12.25+2.25+.25+20.25=35; variance=35/4=8.75.

Common mistake: Appending the corrected value.

Question 26 — Coefficient of variation

Positive ratio-scale variable mean 50, SD 5. Find CV.

Show hint

Divide SD by mean.

Show worked solution

Verified calculation: CV=5/50=0.10=10%, meaningful under stated ratio-scale conditions.

Common mistake: Applying universally to Celsius temperature.

Question 27 — SD versus standard error

Independent sample n=25, sample SD=10. Estimate SE of mean.

Show hint

Use s/√n.

Show worked solution

Verified calculation: SE≈10/√25=2 units, describing estimated variability of the sample mean.

Common mistake: Assuming formula holds for all dependent designs.

Question 28 — Excel verification

State four Excel formulas for B2:B9 and reference values.

Show hint

VAR.P VAR.S STDEV.P STDEV.S.

Show worked solution

Verified calculation: VAR.P=112.5; VAR.S≈128.5714; STDEV.P≈10.6066; STDEV.S≈11.3389, each using B2:B9.

Common mistake: Selecting a header or wrong row.

Question 29 — NumPy ddof comparison

For 2,4,6,8,10 compare np.std with ddof=0 and ddof=1.

Show hint

Denominator n−ddof.

Show worked solution

Verified calculation: Population SD √8≈2.8284 when ddof=0; sample SD √10≈3.1623 when ddof=1.

Common mistake: Assuming pandas and NumPy share defaults.

Question 30 — Integrated variance and SD

For 3,5,5,7 compute mean, sumsq, population/sample variance and SD.

Show hint

Mean five; four observations.

Show worked solution

Verified calculation: Mean 5; sumsq 8; population variance=2 and SD≈1.4142; sample variance=8/3≈2.6667 and SD≈1.6330.

Common mistake: Mixing sample and population conventions.

Self-assessment and four-week learning roadmap

Give yourself one point for each of the 30 exercises. Keep three separate totals, each out of ten: foundational definitions, calculation methods and more demanding applications. Do not interpret the total as a standardized ability measure. Instead, identify the source of each error. If you frequently use n rather than n−1, practise population-versus-sample questions; if units are wrong, revisit variance in squared units versus standard deviation in original units. The printable skills checklist supports a second attempt after review.

WeekFocusStudent outcome
1Variability, deviations and squared deviationsComplete the eight-score table and explain why deviations sum to zero.
2Population and sample formulas, frequency tablesReproduce 112.5, 128.5714 and the exact frequency-table totals.
3Excel, Google Sheets, Python and chartsConfirm software denominator settings and analyse the 120-record CSV.
4Thirty questions, capstone and interpretationComplete the findings report with correct units, design and caveats.

Common calculation mistakes and how to correct them

MistakeCorrection
Confusing variance with SDVariance is measured in squared units; SD is its square root.
Calling range an SDRange uses max−min; SD uses all squared deviations.
Starting with a wrong meanRecheck sum and count first.
Not subtracting the meanDeviation is x−mean, not x alone.
Ignoring negative deviationsSquare negative and positive deviations alike.
Interpreting squared negative values as negative(−5)²=25.
Adding signed deviations instead of squared deviationsUse Σ(x−mean)², not Σ(x−mean).
Using n−1 for a defined full populationPopulation variance denominator is N.
Using n for a conventional sample varianceUse n−1 under the stated sample convention.
Taking the root too earlyComplete variance, then take nonnegative square root.
Missing a repeated recordInclude every observation and its count.
Forgetting squared unitsVariance for minutes is in minutes².
Assigning squared units to SDSD returns the original minutes or score points.
Claiming negative varianceReal mathematical variance is nonnegative.
Claiming SD is every student’s distanceSD summarizes the distribution; individual deviations differ.
Assuming all results are normally distributedEmpirical rule requires an approximately normal model.
Deleting outliers automaticallyInvestigate and document before exclusion.
Ignoring frequency weightsMultiply each squared deviation by frequency.
Calling grouped midpoint result exactIt is generally an estimate.
Equating SD and standard errorOne measures observational spread; the other estimator uncertainty.
Ignoring software ddof defaultsNumPy usually ddof=0, Pandas usually ddof=1.
Converting missing score cells to zeroDistinguish missing from measured zero.
Computing sample variance with n=1The conventional denominator is zero; undefined.
Rounding too soonRetain full precision until final reporting.
Comparing incompatible measurement unitsCompare SD within meaningful scales or appropriate context.
Calling a lower SD universally desirableDesired variability depends on the variable and purpose.
Claiming group SD differences prove educational causesDescriptive dispersion does not establish causation.

Download the complete Topic 76 statistics toolkit

The following companion files have been uploaded to the Notes for SHS WordPress media library. The Excel and import-compatible Google Sheets workbooks contain the original eight scores, 120 source observations, an independent sample of 30, live variance and SD formulas, a frequency table, questions and verified reference values. The PDF materials support offline practice. The complete ZIP also includes calculated statistical diagrams, a Python notebook, CSV files and the independent verification JSON, but WordPress has not accepted or verified a hosted ZIP URL. It is supplied separately with the project files.

Optional guided courses

Students who prefer structured instruction may compare the current descriptions of Basic Statistics on Coursera and Microsoft Excel: Essential Statistics for Data Analysis on Udemy. These are verified provider course pages, not confirmed Notes for SHS affiliate-tracked URLs. No prices, discounts, guaranteed certifications or commissions are claimed. The free worked exercises and datasets on this page are sufficient to practise the introductory skills independently.

Frequently asked questions

What does variance mean?

Variance measures squared deviations from a mean, with a denominator chosen according to the population or sample calculation.

What is standard deviation?

It is the nonnegative square root of variance, expressed in the original measurement units.

What is the population variance formula?

For N observations with population mean μ, σ² = Σ(x−μ)²/N.

How do I calculate conventional sample variance?

Find sample mean, square every deviation, add the squared deviations and divide by n−1 for n≥2.

Why is the sample denominator n−1?

The deviations relative to a sample-estimated mean sum to zero, leaving n−1 degrees of freedom. Bessel’s correction supports an unbiased population-variance estimator under suitable assumptions.

Can standard deviation be negative?

No. The mathematical variance and principal square root are nonnegative. Tiny negative outputs in unstable floating-point shortcuts indicate numerical issues.

What does zero SD mean?

All observed numeric values are equal in that particular dataset, assuming a defined variance calculation.

What is a high standard deviation?

High is relative to the scale, domain and comparison group; no universal threshold works for all measurements.

What does an outlier do to variance?

A sufficiently extreme observation can greatly increase squared deviations, but it is not automatically a data error.

How do frequency tables change variance calculations?

Multiply each squared deviation by its exact-value frequency; use the total number of observations as denominator, or n−1 for the conventional sample version.

Are grouped-data SD results exact?

Usually not. Midpoint-based grouped estimates substitute class centers for unknown original values.

What is the difference between SD and SE?

SD summarizes variability of observations; standard error measures repeated-sampling uncertainty of an estimator under a statistical model.

What is the empirical rule?

For approximately normal distributions, about 68%, 95% and 99.7% lie within one, two and three population SDs of the mean.

Which spreadsheet functions calculate variance?

Use VAR.P or VAR.S depending on population versus sample, and STDEV.P or STDEV.S for the corresponding SD.

How does NumPy’s ddof differ from Pandas?

NumPy typically defaults to ddof=0; Pandas variance and SD functions commonly default to ddof=1. Specify the denominator explicitly when results must be comparable.

Conclusion: understand the spread, not just the center

Variance and standard deviation reveal what an average hides. The eight fictional scores have mean 75, yet their squared deviations sum to 900. Treating the eight as a complete population gives variance 112.5 points² and SD 10.6066 points; conventional sample calculations give variance 128.5714 points² and SD 11.3389 points. Neither pair should be chosen by guesswork. State the population, denominator, unit and analytic purpose before reporting a result.

Practice the method in order: calculate the mean, find signed deviations, square them, add them, divide by the appropriate count and take the square root. Use frequency weights where observations repeat, identify grouped midpoint results as approximations, and check outliers rather than automatically deleting them. The accompanying workbook and Python notebook let you reproduce each major result. With these foundations, the next topic on correlation and causation will be easier to approach without confusing descriptive variation with explanations of why differences arose.

Official references and further study

Related Notes for SHS learning guides