Probability & Statistics 1 (9709) · Measures of central tendency · Quick revision
Corrected records, missing observations and reverse problems
Track the count and both moment totals. Make the change before recalculating the summaries.
Recover the information behind the summaries
Let be the count, the total and the sum of squares.
Use descriptive variance with divisor . SD is ; a supplied SD must be squared when restoring .
Update exactly the records that changed
Replace by : keep , use and . The sum of squares change is , not .
Add : use . Remove : use , leaving at least one record. A duplicate means one extra copy: remove only that copy. Reorder the actual list to check a median.
Recover two missing observations
Subtract known records from the required totals to find and . Then , and the two missing values solve
Real values require . Keep every valid assignment, apply any order or context restriction, and restore both original moments. A mean alone usually leaves the pair undetermined.
Choose an additional real observation
Adding to records with mean and variance gives
The real minimum is , at . Adding the old mean keeps the mean, reduces positive variance and leaves zero variance unchanged. Solve a target condition completely, then apply integer or range restrictions; they can change the minimum.