Maths4UBETA

Corrected records, missing observations and reverse problems

Update counts and both moments together, then use independent conditions to recover unknown records or constraints.

Try the quick check →
Lesson 5 of 5

Section 1 of 5 · Core · about 6 min

How do I correct one recorded value?

Keep track of three quantities: the number of observations nn, the total T=∑xT=\sum x, and the sum of squares Q=∑x2Q=\sum x^2. For a nonempty dataset,

μ=Tn,σ2=Qn−μ2,σ=σ2.\mu=\frac{T}{n},\qquad\sigma^2=\frac{Q}{n}-\mu^2,\qquad\sigma=\sqrt{\sigma^2}.

All variances here are descriptive, using the full count as the divisor. If only summaries are given, restore T=nμT=n\mu and Q=n(σ2+μ2)Q=n(\sigma^2+\mu^2).

Replacing an incorrect value aa by its correct value bb keeps the same record:

nnew=n,Tnew=T−a+b,Qnew=Q−a2+b2.n_{\mathrm{new}}=n,\qquad T_{\mathrm{new}}=T-a+b,\qquad Q_{\mathrm{new}}=Q-a^2+b^2.

Replace the recorded 99 with 1313 in 3,5,7,93,5,7,9. Let T=∑xT=\sum x and Q=∑x2Q=\sum x^2.

QuantityBeforeUpdateAfter
Count404
Total24−9+13-9+1328
Sum of squares164−92+132-9^2+13^2252
xˉold=244=6,xˉnew=284=7.\bar x_{\mathrm{old}}=\frac{24}{4}=6,\qquad\bar x_{\mathrm{new}}=\frac{28}{4}=7.σold2=1644−62=5,σnew2=2524−72=14.\sigma_{\mathrm{old}}^2=\frac{164}{4}-6^2=5,\qquad\sigma_{\mathrm{new}}^2=\frac{252}{4}-7^2=14.ΔQ=132−92=88≠(13−9)2.\Delta Q=13^2-9^2=88\ne(13-9)^2.

Replacing 99 by 1313 changes the total by 44, the sum of squares by 8888, and leaves the count unchanged.

Worked example

Correct both totals

The four recorded observations are 3,5,7,93,5,7,9. The final value should be 1313, not 99. Find the corrected mean and descriptive variance.

  1. n=4,T=3+5+7+9=24,Q=32+52+72+92=164.n=4,\qquad T=3+5+7+9=24,\qquad Q=3^2+5^2+7^2+9^2=164.
  2. The correction replaces one record, so the count stays 44:

    Tnew=24−9+13=28,T_{\mathrm{new}}=24-9+13=28,Qnew=164−92+132=252.Q_{\mathrm{new}}=164-9^2+13^2=252.
  3. μnew=284=7,σnew2=2524−72=14.\mu_{\mathrm{new}}=\frac{28}{4}=7,\qquad\sigma_{\mathrm{new}}^2=\frac{252}{4}-7^2=14.
  4. Directly checking the corrected list 3,5,7,133,5,7,13 gives those same totals. The sum of squares increased by 132−92=8813^2-9^2=88, not by (13−9)2=16(13-9)^2=16.

Your turn

Six numerical records have mean 1010 and descriptive variance 99. One recorded value 1212 should be 66. Find the corrected count, sum of squares, mean and variance.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

The change in mean also gives

b−a=n(μnew−μ).b-a=n(\mu_{\mathrm{new}}-\mu).

This can recover an unknown count, which must be a positive integer. If the mean change is zero, check the equation directly before dividing; a genuine one-value correction with a≠ba\ne b cannot leave the mean unchanged.

Section 2 of 5 · Core · about 6 min

What changes when a record is added or removed?

Adding a new observation or removing an existing one changes the number of records:

OperationNew countNew totalNew sum of squares
Add a new value bbn+1n+1T+bT+bQ+b2Q+b^2
Remove one value aan−1n-1T−aT-aQ−a2Q-a^2

Use the new count in both the mean and variance. After removal, at least one observation must remain for these summaries to exist. A one-observation dataset has variance zero; an empty dataset has no mean or variance.

Worked example

Delete one erroneous duplicate

The recorded list is 2,5,5,8,102,5,5,8,10. One of the two entries 55 is an extra copy of the same record. Remove exactly one copy, then find the corrected mean, median and descriptive variance.

  1. n=5,T=30,Q=22+52+52+82+102=218.n=5,\qquad T=30,\qquad Q=2^2+5^2+5^2+8^2+10^2=218.
  2. nnew=4,Tnew=30−5=25,Qnew=218−52=193.n_{\mathrm{new}}=4,\qquad T_{\mathrm{new}}=30-5=25,\qquad Q_{\mathrm{new}}=218-5^2=193.
  3. μnew=254,σnew2=1934−(254)2=14716.\mu_{\mathrm{new}}=\frac{25}{4},\qquad\sigma_{\mathrm{new}}^2=\frac{193}{4}-\left(\frac{25}{4}\right)^2=\frac{147}{16}.
  4. The corrected ordered list is 2,5,8,102,5,8,10. Its two middle values are 55 and 88, so

    median=5+82=132.\text{median}=\frac{5+8}{2}=\frac{13}{2}.

    The valid remaining record 55 is retained.

Your turn

Five recorded observations have T=35T=35 and Q=315Q=315. One value 77 was entered twice by mistake, and exactly one extra copy must be deleted. Find the corrected count, mean and descriptive variance. Separately, would a mean and variance exist if the only observation in a dataset were removed?

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

Mean and variance after removing the only observation

For a new median, sort the updated raw records and locate their new central positions. For a new mode, recount the frequencies. Counts and moment totals alone generally do not determine those summaries.

Section 3 of 5 · Core · about 5 min

Can the mean stay unchanged while SD changes?

Adding a value equal to the current mean leaves that mean unchanged. The added squared deviation is zero, but there is one more record to share the existing squared deviations:

σnew2=nn+1σ2.\sigma_{\mathrm{new}}^2=\frac{n}{n+1}\sigma^2.

If the original variance is positive, it decreases; if all original observations are equal, it remains zero. Similarly, removing an existing observation equal to the mean leaves the mean unchanged and gives

σnew2=nn−1σ2,n>1.\sigma_{\mathrm{new}}^2=\frac{n}{n-1}\sigma^2,\qquad n>1.

The divisor change matters even when the centre does not move.

Worked example

Insert the mean and update the divisor

The three observations are 1,4,71,4,7. Add a fourth observation equal to their mean. Compare the original and new means and descriptive variances.

  1. μ=1+4+73=4,σ2=(1−4)2+(4−4)2+(7−4)23=6.\mu=\frac{1+4+7}{3}=4,\qquad\sigma^2=\frac{(1-4)^2+(4-4)^2+(7-4)^2}{3}=6.
  2. The added value is 44, so the new total is 1616 and the new count is 44. The mean remains 44.

  3. The added value has zero deviation from that mean. The squared deviations still total 1818, but now

    σnew2=184=92=34(6).\sigma_{\mathrm{new}}^2=\frac{18}{4}=\frac{9}{2}=\frac{3}{4}(6).
  4. The mean is unchanged while the positive variance decreases. The SD changes from 6\sqrt{6} to 32\frac{3}{\sqrt{2}}.

Your turn

The observations are 1,3,5,71,3,5,7. Add a fifth observation equal to their original mean. Find the new mean, descriptive variance and standard deviation.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Section 4 of 5 · Further applications · about 7 min

How do two missing observations come from mean and variance?

First recover the full TT and QQ. Subtract the known records and their squares separately. If the remaining information is

p+q=S,p2+q2=R,p+q=S,\qquad p^2+q^2=R,

then

pq=S2−R2.pq=\frac{S^2-R}{2}.

Each missing value is a root of

z2−Sz+S2−R2=0.z^2-Sz+\frac{S^2-R}{2}=0.

Worked example

Find both missing values from two moments

The five observations are 2,4,8,p,q2,4,8,p,q. Their mean is 66, and their descriptive variance is 88. Find all labelled pairs (p,q)(p,q). Then state which pair satisfies p<qp\lt q.

  1. T=5(6)=30,Q=5(8+62)=220.T=5(6)=30,\qquad Q=5(8+6^2)=220.
  2. p+q=30−2−4−8=16,p+q=30-2-4-8=16,p2+q2=220−22−42−82=136.p^2+q^2=220-2^2-4^2-8^2=136.
  3. pq=(p+q)2−(p2+q2)2=162−1362=60.pq=\frac{(p+q)^2-(p^2+q^2)}{2}=\frac{16^2-136}{2}=60.
  4. The missing observations are the roots of

    z2−16z+60=(z−6)(z−10)=0.z^2-16z+60=(z-6)(z-10)=0.

    Thus the labelled pairs are (6,10)(6,10) and (10,6)(10,6). The condition p<qp\lt q selects (6,10)(6,10).

  5. Either labelled assignment gives total 3030 and sum of squares 220220. Hence the original mean is 66 and variance is 2205−62=8\frac{220}{5}-6^2=8, as required.

Your turn

Four numerical observations are 0,6,p,q0,6,p,q. Their mean is 55, and their descriptive variance is 1313. Find every labelled pair (p,q)(p,q). A separate proposal gives the same known records and mean but variance 88. Could that proposal have real missing observations?

Enter each pair in the order shown. Separate complete pairs with commas or semicolons.

Can the separate variance proposal be realised?

The mean alone usually determines only the missing sum. Keep every valid branch, then check the original mean, variance and any restrictions such as non-negative, integer, distinct or ordered observations.

Section 5 of 5 · Further applications · about 7 min

Which added values satisfy a variance limit?

This application uses completing the square and quadratic inequalities. If one real value tt is added to nn original observations, start with

V(t)=Q+t2n+1−(T+tn+1)2.V(t)=\frac{Q+t^2}{n+1}-\left(\frac{T+t}{n+1}\right)^2.

Expanding and completing the square gives a quadratic you can solve without differentiation. Equivalently, if the original mean is μ\mu and variance is σ2\sigma^2,

V(t)=nn+1σ2+n(n+1)2(t−μ)2.V(t)=\frac{n}{n+1}\sigma^2+\frac{n}{(n+1)^2}(t-\mu)^2.

Its minimum occurs at t=μt=\mu, with value nn+1σ2\frac{n}{n+1}\sigma^2. This minimum is positive unless all the original records are equal.

The level six meets the quadratic at the included boundaries. A point marks its minimum at four and four-and-a-half.

Add a real value tt to 1,4,71,4,7. The count becomes 44, the total 12+t12+t, and the sum of squares 66+t266+t^2.

V(t)=66+t24−(12+t4)2=92+316(t−4)2.V(t)=\frac{66+t^2}{4}-\left(\frac{12+t}{4}\right)^2=\frac92+\frac3{16}(t-4)^2.V(t)≤6⟺(t−4)2≤8.V(t)\le6\quad\Longleftrightarrow\quad (t-4)^2\le8.4−22≤t≤4+22.4-2\sqrt2\le t\le4+2\sqrt2.

The minimum variance is 92\frac92 at t=4t=4. The endpoints are included because the required variance is at most 66.

For original observations 1,4,71,4,7, the variance is V(t)=92+316(t−4)2V(t)=\frac{9}{2}+\frac{3}{16}(t-4)^2. The bound V(t)≤6V(t)\le6 keeps the whole interval between 4−224-2\sqrt{2} and 4+224+2\sqrt{2}.

Worked example

Complete the variance square

Add one real observation tt to 1,4,71,4,7. Find the minimum possible descriptive variance and the value of tt that gives it. Then find every real tt for which the variance is at most 66.

  1. nnew=4,T=12+t,Q=66+t2.n_{\mathrm{new}}=4,\qquad T=12+t,\qquad Q=66+t^2.
  2. V(t)=66+t24−(12+t4)2=3t2−24t+12016.V(t)=\frac{66+t^2}{4}-\left(\frac{12+t}{4}\right)^2=\frac{3t^2-24t+120}{16}.
  3. V(t)=92+316(t−4)2.V(t)=\frac{9}{2}+\frac{3}{16}(t-4)^2.

    A real square is non-negative. The minimum is 92\frac{9}{2}, attained only at t=4t=4.

  4. V(t)≤6⟺316(t−4)2≤32⟺(t−4)2≤8.V(t)\le6\Longleftrightarrow\frac{3}{16}(t-4)^2\le\frac{3}{2}\Longleftrightarrow(t-4)^2\le8.
  5. −22≤t−4≤22,-2\sqrt{2}\le t-4\le2\sqrt{2},4−22≤t≤4+22.4-2\sqrt{2}\le t\le4+2\sqrt{2}.

    This includes both endpoints. A target variance below 92\frac{9}{2} would be impossible.

Your turn

Two observed counts are 00 and 44. A third count tt is added. First treat tt as real and find the lower and upper endpoints of the complete interval on which the new descriptive variance is at most 44. Then list all allowed values when tt must be a non-negative integer.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Give the complete set: {1, 4} for separate values, (1, 5] for an interval, U for union or empty for no real solutions. Use sqrt(...) for exact roots.

For a non-strict upper bound V(t)≤cV(t)\le c, subtract the minimum and isolate the square. A bound below the minimum gives no solutions; a bound equal to the minimum gives one value. For a larger bound, retain both endpoints and every value between them. For the strict condition V(t)<cV(t)\lt c, a bound equal to the minimum gives no solutions; a larger bound excludes its boundary values. An exact target above the minimum has two real solutions before any context restrictions are applied.

Worked examples

Practise the method

Core practice

Question 1 of 4

0 / 4 checked in this collection

Question list

Core practice

Fresh variants

Exam-style

Correct the entry and its square

3 marks

Mixed-topic check. For 5 records, the sum is 50 and square-sum 540. One entry 6 should have been 11. Give the corrected mean, variance and SD.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Full answer-format guide

Exact numbers: 3/2, sqrt(5), 2-sqrt(3), pi/6, 3*pi/2. Sets: {1,4}. Intervals: (3,5]; a round bracket excludes the endpoint. Infinity: inf; union: U; no solutions: empty. Separate coordinate pairs or triples with semicolons. Expressions: 2x^2+3x-1; equations: x^2=3x+1 or the polynomial equal to zero. Factors: x-1 ; x+2. Parameter fraction: numerator ; denominator. List integer answers individually.

Review the method

Progress stays in this browser. Create an account to save it or sign in.

Extra practice from this lesson

Replace the entry, not the whole dataset

Five lengths, in centimetres, have recorded mean 66 and recorded sum of squares 220220. One entry of 22 should have been 77. Find the corrected count, mean, descriptive variance and standard deviation.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

The same mean can accompany different spread

A list of five observations has total 5050, sum of squares 590590, and contains one observation equal to 1010. Consider two separate changes to this original list: A removes that observation; B adds a new observation equal to 1010. Find each new count and descriptive variance. How do the two new means compare with the original mean?

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact value or round to 3 significant figures.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

The two new means

Remove only the extra copy

The recorded list is 3,4,4,7,123,4,4,7,12. An audit finds that one observation of 44 was accidentally entered twice. Remove only its extra copy. Find the corrected count, mean, median and descriptive standard deviation.

Enter the value on its own or write n = … . Fractions and exact square roots are accepted.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Enter an exact value or round to 3 significant figures.

Recover an ordered pair from two moments

The six observations 1,4,6,9,p,q1,4,6,9,p,q have mean 66 and descriptive variance 323\frac{32}{3}. Given that p<qp<q, find the sum and sum of squares of the missing observations, then give the ordered pair (p,q)(p,q).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter each pair in the order shown. Separate complete pairs with commas or semicolons.

A positive proposed variance does not guarantee feasibility

A claim is made that the four real observations 2,12,p,q2,12,p,q have mean 66 and descriptive variance 1111. Find the sum and sum of squares that p,qp,q would need. Decide whether any real pair can satisfy the claim.

Enter an exact number, for example 3/2 or 2-sqrt(3).

Enter an exact number, for example 3/2 or 2-sqrt(3).

Can a real pair exist?

Apply it · original exam-style problems

Show your working on paper and compare it with the worked solution and marking guidance.

Start after this lesson

Recover the count before a correction and an addition 7 marks

A list of nn masses, in grams, has recorded mean 1212 and descriptive standard deviation 22. One recorded mass of 88 should have been 2020. Correcting this entry increases the mean to 1313. Find nn, the corrected sum of squares and the corrected standard deviation. Then a genuinely new observation of 1313 g is added to the corrected list. Find its new descriptive variance.

Hint

The replacement changes the total by 1212 but keeps nn fixed. Use the change in mean to recover nn. Carry out the later addition only after completing the correction.

Worked solution
  1. 12n−8+20=13n⟹n=12.12n-8+20=13n\quad\Longrightarrow\quad n=12.
  2. Told=144,Qold=12(22+122)=1776.T_{\mathrm{old}}=144,\qquad Q_{\mathrm{old}}=12(2^2+12^2)=1776.
  3. Tcorrected=156,Qcorrected=1776−82+202=2112.T_{\mathrm{corrected}}=156,\qquad Q_{\mathrm{corrected}}=1776-8^2+20^2=2112.
  4. Vcorrected=211212−132=7 g2,σcorrected=7 g.V_{\mathrm{corrected}}=\frac{2112}{12}-13^2=7\ \text{g}^{2},\qquad \sigma_{\mathrm{corrected}}=\sqrt{7}\ \text{g}.
  5. Now add the new record, increasing the count:

    nnew=13,Tnew=169,Qnew=2112+132=2281.n_{\mathrm{new}}=13,\quad T_{\mathrm{new}}=169,\quad Q_{\mathrm{new}}=2112+13^2=2281.
  6. xˉnew=13 g,Vnew=228113−132=8413 g2.\bar{x}_{\mathrm{new}}=13\ \text{g},\qquad V_{\mathrm{new}}=\frac{2281}{13}-13^2=\frac{84}{13}\ \text{g}^{2}.
  7. The mean remains 1313 g. Its variance decreases from 77 because an extra observation at the mean adds zero squared deviation while increasing the divisor.

Marking guidance
  • 1 mark: relate the replacement to the change in mean.
  • 1 mark: recover the positive integer count.
  • 1 mark: reconstruct the original sum of squares using the squared SD.
  • 1 mark: update the sum of squares and obtain the corrected variance.
  • 1 mark: take the correct square root with units.
  • 1 mark: update the count and both totals for the later addition.
  • 1 mark: calculate the final variance and explain the unchanged mean.
Use the whole variance condition, including restrictions 9 marks

Add a real observation tt to 2,5,8,112,5,8,11. Let V(t)V(t) be the descriptive variance of all five observations. Find the minimum possible variance and the value of tt attaining it. Find every real tt for which V(t)=10V(t)=10, and describe where V(t)≤10V(t)\le10. In a separate version, tt must be a non-negative integer: list every allowed tt with V(t)≤10V(t)\le10, then find the minimum variance under this integer restriction and every integer that attains it.

Hint

Use the new count of five and complete the square. A non-negative square identifies the real minimum; the nearest allowed integers to the centre identify the integer minimum.

Worked solution
  1. n=5,T=26+t,Q=214+t2.n=5,\qquad T=26+t,\qquad Q=214+t^2.
  2. V(t)=214+t25−(26+t5)2=9+425(t−132)2.V(t)=\frac{214+t^2}{5}-\left(\frac{26+t}{5}\right)^2=9+\frac{4}{25}\left(t-\frac{13}{2}\right)^2.
  3. The square is non-negative, so the real minimum is 99, attained only at t=132t=\frac{13}{2}.

  4. V(t)=10⟺(t−132)2=254⟺t=4 or t=9.V(t)=10\quad\Longleftrightarrow\quad\left(t-\frac{13}{2}\right)^2=\frac{25}{4}\quad\Longleftrightarrow\quad t=4\ \text{or}\ t=9.
  5. V(t)≤10⟺∣t−132∣≤52⟺4≤t≤9.V(t)\le10\quad\Longleftrightarrow\quad\left|t-\frac{13}{2}\right|\le\frac{5}{2}\quad\Longleftrightarrow\quad4\le t\le9.
  6. With the separate integer restriction, the complete allowed set is {4,5,6,7,8,9}\{4,5,6,7,8,9\}.

  7. The integers closest to 132\frac{13}{2} are 66 and 77, both a distance 12\frac{1}{2} away. Therefore

    Vinteger,min=9+425(12)2=22625,V_{\mathrm{integer,min}}=9+\frac{4}{25}\left(\frac{1}{2}\right)^2=\frac{226}{25},
  8. attained at both t=6t=6 and t=7t=7. The unequal original observations prevent zero variance even when the extra value is optimally chosen.

Marking guidance
  • 1 mark: update the count, total and sum of squares.
  • 2 marks: derive the variance and complete the square correctly.
  • 1 mark: state the real minimum and where it occurs.
  • 1 mark: solve the equality with both branches.
  • 1 mark: obtain the closed interval for the inequality.
  • 1 mark: list every allowed integer.
  • 1 mark: identify both nearest integers to the real minimiser.
  • 1 mark: calculate the restricted minimum variance.

Come back to what needs practice

Quick revision sheet (A4)

Your review plan starts after your first check.

Question bank and saved work