Module 24 · 5 min read · Free chapter
Data analysis in chemistry: errors, significant figures, mean and standard deviation, rejection tests, significance tests and linear regression
Start from zero: no measurement is exact
Weigh the same coin five times on a lab balance and you may get 3.1102, 3.1105, 3.1101, 3.1104 and 3.1103 g. None of these is "the" mass. Every result carries some error, and science needs a way to say how large that error is and whether two results really differ.
That is what data analysis does. It sorts errors into types, reports results with the right number of digits, measures spread with the standard deviation, decides when a result can be thrown out, and fits straight lines to calibration data.
Types of error, accuracy and precision, significant figures
Determinate (systematic) errors have a cause that can be found, and they push results in one direction.
- Instrumental: an uncalibrated burette or weights.
- Method: an indicator that changes colour after the true end point, a slightly soluble precipitate.
- Personal: misjudging a colour change, parallax in reading.
They are detected and reduced by calibrating equipment, running a blank, adding a known standard, and checking with an independent method.
Indeterminate (random) errors have no single assignable cause. They scatter results on both sides of the mean, follow the laws of probability, and cannot be corrected. Repeating the measurement many times reduces their effect on the mean.
Accuracy is how close a result is to the true value; it is spoiled by systematic error. Precision is how close replicate results are to each other; it is limited by random error. Results can be precise but inaccurate, if every reading carries the same systematic error.
Significant figures are all the certain digits plus the first uncertain one. Zeros between digits count (2.005 has four); leading zeros do not (0.0025 has two).
- Addition and subtraction: keep as many decimal places as the least precise term. 12.11 + 18.0 + 1.013 = 31.1.
- Multiplication and division: keep as many significant figures as the factor with fewest. 0.0121 × 25.64 ÷ 2.1 ≈ 0.15 (two figures, from 2.1).
- Rounding: 46.2368 to four figures is 46.24.
Mean, standard deviation and confidence interval
For n results x₁ to xₙ:
The divisor n − 1 is the number of degrees of freedom: once the mean is fixed, only n − 1 deviations are independent. For a very large data set, s approaches the population standard deviation σ.
Related measures.
- Variance: s².
- Relative standard deviation (coefficient of variation): .
- Standard deviation of the mean: , which is why averaging more results narrows the uncertainty.
Gaussian distribution. Random errors give a bell-shaped curve. About 68% of values lie within ±1σ of the mean, about 95% within ±2σ, and about 99.7% within ±3σ.
Confidence interval. The range within which the true mean μ lies with a stated probability:
Here t is Student's t for n − 1 degrees of freedom at the chosen confidence level (for 4 degrees of freedom at 95%, t = 2.78).
Worked example. Iron results (%): 52.40, 52.47, 52.50, 52.51, 52.46.
- Mean = 52.47%.
- s = 0.043%; relative standard deviation = 0.082%.
- 95% confidence interval: 52.47 ± (2.78 × 0.043 ÷ √5) = 52.47 ± 0.05%.
Rejecting outliers, testing significance and fitting lines
Q test. Arrange results in order. For the suspect value,
Reject it if Q is larger than the tabulated value.
| n | 3 | 4 | 5 | 6 | 7 | 8 | 10 |
|---|---|---|---|---|---|---|---|
| Q at 90% | 0.94 | 0.76 | 0.64 | 0.56 | 0.51 | 0.47 | 0.41 |
In the iron data, test 52.40: gap = 52.46 − 52.40 = 0.06, range = 0.11, so Q = 0.55. This is below 0.64, so 52.40 is kept.
4d rule. Find the mean and the average deviation d of the other results; reject the suspect value if it differs from that mean by more than 4d. It needs at least four other results.
t test. To compare a mean with an accepted value μ:
If the calculated t exceeds the table value, the difference is significant and points to a systematic error. A two-mean version compares results from two methods or analysts.
F test. To compare the precision of two methods, with the larger variance on top. If F exceeds the table value, one method is significantly less precise.
Linear regression. Calibration data (for example absorbance against concentration in Beer's law) are fitted by least squares to y = mx + c:
The correlation coefficient r measures how well the points fit a line; r = 0.999 or better is expected for a good calibration. Example: standards of 0, 1, 2, 3 and 4 mM give absorbances 0.002, 0.205, 0.398, 0.602 and 0.801. Least squares gives m = 0.1995 per mM and c = 0.0026, so a sample with absorbance 0.500 has concentration (0.500 − 0.0026) ÷ 0.1995 = 2.49 mM.
Exam lens: how NET and JAM ask this
Typical questions: classify an error as systematic or random; result of a calculation to the right significant figures; standard deviation and relative standard deviation of a small data set; whether a suspect value survives the Q test; which test compares means (t) and which compares precisions (F); slope and intercept of a calibration line.
Quick revision
- Systematic: assignable cause, one direction, correctable; random: chance, both sides, reduce by repetition.
- Accuracy, nearness to truth; precision, agreement among replicates.
- Add or subtract: decimal places; multiply or divide: significant figures.
- s with n − 1; RSD = s⁄x̄ × 100; ±1σ about 68%; μ = x̄ ± ts⁄√n.
- Q = gap ⁄ range; Q at 90%: 0.94 (3), 0.76 (4), 0.64 (5).
- t test: means; F test: variances; least squares slope and intercept, r near 1.