ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Moments about any point: converting raw moments to central moments

Work out the first four moments of a frequency table about a convenient point A, convert these raw moments into the central moments m2, m3 and m4, handle grouped data with step deviations, and go back from central moments to moments about any other point.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

This lesson works with frequency tables, so you should be able to find a mean and raise small whole numbers to the powers 2, 3 and 4. A value is called v, its frequency f, and the total frequency N = sum of f. A moment is an average of powers of deviations: pick a point, find each value's deviation from it (value minus point, so it may be negative), raise those deviations to the power r and average them with the frequencies as weights. Measured from the mean, these averages are the central moments, written m2, m3 and m4. Measured from any other point A they are raw moments, written with a prime mark: m'1, m'2, m'3 and m'4. The letter x only ever means multiply. What beta1 and beta2 say about shape is explained in the skewness and kurtosis lesson; here the job is the arithmetic that produces them.

Raw moments about a chosen point A

Choose a convenient point A, usually a value near the middle of the table, and write d = v - A for every row. The r-th raw moment about A is m'r = (sum of f x d^r) / N, so four columns are needed: f x d, f x d^2, f x d^3 and f x d^4. Build each column from the one before it by multiplying by d once more; that keeps the signs right, because odd powers keep the sign of d and even powers are never negative. The first raw moment gives the mean at once: mean = A + m'1, since the average deviation from A is exactly how far the mean sits from A. Two choices of A are special. With A = 0 the deviations are the values themselves, and m'r = (sum of f x v^r) / N are the moments about the origin. With A equal to the mean, m'1 = 0 and the raw moments are already central. A point near the middle keeps every d small and whole, which is the reason for the method.

Converting raw moments to central moments

Since m'1 = mean - A, each deviation from the mean equals d - m'1, so the r-th central moment is the average of (d - m'1)^r. Expanding that bracket and averaging term by term gives the conversion formulas: m2 = m'2 - m'1^2; m3 = m'3 - 3 x m'2 x m'1 + 2 x m'1^3; m4 = m'4 - 4 x m'3 x m'1 + 6 x m'2 x m'1^2 - 3 x m'1^4. The first central moment is always 0, and m2 is the variance. The coefficient 3 in m3, and 4 and 6 in m4, come from the binomial expansion, and the signs alternate. The last term of each line is shorter than the pattern suggests because the average of d is m'1 itself, so the final two terms of the expansion merge: they become + 2 x m'1^3 in m3 and - 3 x m'1^4 in m4. All four raw moments must be taken about the same point A. If m'1 = 0, the formulas collapse to m2 = m'2, m3 = m'3 and m4 = m'4, as they should.

Grouped data: change of origin and change of scale

Adding the same amount to every value, a change of origin, moves the mean by that amount as well, so every deviation from the mean, and therefore every central moment, stays the same. Multiplying every value by c, a change of scale, multiplies every deviation from the mean by c, so the r-th central moment is multiplied by c^r: m2 by c^2, m3 by c^3 and m4 by c^4. Grouped data use both facts. Treat each class as if all its values sat at its class mark, choose A among the middle class marks, and use step deviations u = (class mark - A) / c, where c is the common class width; the u column then holds small whole numbers such as -2, -1, 0, 1 and 2. Find the raw moments of u about 0, convert them into central moments of u, and scale back: mean = A + c x (first raw moment of u), and m2, m3 and m4 are the central moments of u times c^2, c^3 and c^4. In the one-step finish, beta1 = m3^2 / m2^3 and beta2 = m4 / m2^2, the powers of c cancel, c^6 against c^6 and c^4 against c^4, so both betas can be read straight from the moments of u.

Going back: from central moments to another point

Sometimes the mean and the central moments are known and the raw moments about some other point B are wanted, for example about B = 0, the origin. Let d = mean - B, how far the mean lies above B. Each deviation from B equals the deviation from the mean plus d, and deviations from the mean average to 0, so expanding gives: m'1 = d; m'2 = m2 + d^2; m'3 = m3 + 3 x m2 x d + d^3; m'4 = m4 + 4 x m3 x d + 6 x m2 x d^2 + d^4. Every sign is plus, and no term holds the first central moment because it is 0. If B lies above the mean, d is negative and its odd powers carry the minus sign. A round trip is the natural check: feed the new m'1 to m'4 into the conversion formulas, and the original m2, m3 and m4 must come back.

Common mistakes

Writing the mean as A - m'1, or forgetting to add A at all. Taking m'2 as the variance without subtracting m'1^2. Dropping the 2 in the last term of m3 or the 3 in the last term of m4, or giving those terms the wrong sign. Squaring m'1 where the formula needs m'1 itself, as in 3 x m'2 x m'1. Forgetting that a negative m'1 makes m'1^3 negative too. In grouped data, dividing by c when scaling back, or multiplying every moment by the same c instead of c^r. Adding A to m2, m3 or m4, although a change of origin leaves central moments alone. Using class limits in place of class marks. Mixing raw moments taken about two different points. A negative m2 or m4 always signals an error, since both are averages of even powers.

A routine for moment conversion questions

1. Pick A near the middle of the values or class marks; for grouped data take c as the class width so that u = (class mark - A) / c is a small whole number; for ungrouped values take c = 1, so u is simply d = value - A. 2. Build the columns f x u, f x u^2, f x u^3 and f x u^4 and total each one. 3. Divide each total by N to get m'1 to m'4. 4. Mean = A + c x m'1. 5. Convert: m2 = m'2 - m'1^2, m3 = m'3 - 3 x m'2 x m'1 + 2 x m'1^3, m4 = m'4 - 4 x m'3 x m'1 + 6 x m'2 x m'1^2 - 3 x m'1^4. 6. Multiply by c^2, c^3 and c^4. 7. If the betas are asked for, divide m3^2 by m2^3 and m4 by m2^2. 8. Sense-check: m2 and m4 are never negative (both are 0 only when every value is the same), the betas need m2 > 0, and beta2 is never below 1 + beta1.

Worked examples

  1. In a survey of 16 families in a village near Nashik, 2 families have no children, 7 have 1 child, 5 have 2, 1 has 3 and 1 has 4. Taking A = 2, find the first four raw moments about A, the mean, and the central moments m2, m3 and m4.

    1. d = children - 2 takes the values -2, -1, 0, 1 and 2, with frequencies 2, 7, 5, 1 and 1, so N = 16.
    2. Column totals: f x d = -4 - 7 + 0 + 1 + 2 = -8; f x d^2 = 8 + 7 + 0 + 1 + 4 = 20; f x d^3 = -16 - 7 + 0 + 1 + 8 = -14; f x d^4 = 32 + 7 + 0 + 1 + 16 = 56.
    3. Raw moments about 2: m'1 = -8/16 = -0.5, m'2 = 20/16 = 1.25, m'3 = -14/16 = -0.875 and m'4 = 56/16 = 3.5. Mean = 2 + (-0.5) = 1.5 children.
    4. m2 = 1.25 - (-0.5)^2 = 1.25 - 0.25 = 1.
    5. m3 = -0.875 - 3 x 1.25 x (-0.5) + 2 x (-0.5)^3 = -0.875 + 1.875 - 0.25 = 0.75.
    6. m4 = 3.5 - 4 x (-0.875) x (-0.5) + 6 x 1.25 x 0.25 - 3 x 0.0625 = 3.5 - 1.75 + 1.875 - 0.1875 = 3.4375.
    7. Check m2 straight from the mean: the deviations -1.5, -0.5, 0.5, 1.5 and 2.5 give f x (deviation)^2 totals of 4.5 + 1.75 + 1.25 + 2.25 + 6.25 = 16, and 16/16 = 1. Working from A = 2 avoided cubing decimals and raising them to the fourth power.

    Answer: About 2: m'1 = -0.5, m'2 = 1.25, m'3 = -0.875 and m'4 = 3.5; the mean is 1.5 children; m2 = 1, m3 = 0.75 and m4 = 3.4375.

  2. The ages of 25 members of a yoga group in Rishikesh fall in the classes 20-30, 30-40, 40-50, 50-60 and 60-70 years with frequencies 1, 2, 14, 7 and 1. Using step deviations, find the mean age, m2, m3 and m4, and then beta1 and beta2.

    1. Class marks are 25, 35, 45, 55 and 65. Take A = 45 and c = 10, so u = (class mark - 45) / 10 = -2, -1, 0, 1 and 2, with f = 1, 2, 14, 7 and 1.
    2. Column totals: f x u = -2 - 2 + 0 + 7 + 2 = 5; f x u^2 = 4 + 2 + 0 + 7 + 4 = 17; f x u^3 = -8 - 2 + 0 + 7 + 8 = 5; f x u^4 = 16 + 2 + 0 + 7 + 16 = 41.
    3. Raw moments of u about 0: 5/25 = 0.2, 17/25 = 0.68, 5/25 = 0.2 and 41/25 = 1.64. Mean age = 45 + 10 x 0.2 = 47 years.
    4. Central moments of u: m2 = 0.68 - 0.04 = 0.64; m3 = 0.2 - 3 x 0.68 x 0.2 + 2 x 0.008 = 0.2 - 0.408 + 0.016 = -0.192; m4 = 1.64 - 4 x 0.2 x 0.2 + 6 x 0.68 x 0.04 - 3 x 0.0016 = 1.64 - 0.16 + 0.1632 - 0.0048 = 1.6384.
    5. Scale back with powers of c = 10: m2 = 0.64 x 100 = 64, so the SD is 8 years; m3 = -0.192 x 1000 = -192; m4 = 1.6384 x 10000 = 16384.
    6. beta1 = (-192)^2 / 64^3 = 36864 / 262144 = 0.1406 and beta2 = 16384 / 64^2 = 16384 / 4096 = 4. The moments of u give the same pair, 0.192^2 / 0.64^3 = 0.1406 and 1.6384 / 0.64^2 = 4, because the powers of c cancel.

    Answer: Mean age 47 years; m2 = 64, m3 = -192 and m4 = 16,384; beta1 = 0.1406 and beta2 = 4.

  3. For the milk (in litres) brought each day by member families to a dairy cooperative near Anand, the mean is 12 and the central moments are m2 = 4, m3 = -3 and m4 = 40. Find the first four raw moments about 10 litres.

    1. B = 10, so d = mean - B = 12 - 10 = 2.
    2. m'1 = d = 2, and m'2 = m2 + d^2 = 4 + 4 = 8.
    3. m'3 = m3 + 3 x m2 x d + d^3 = -3 + 3 x 4 x 2 + 8 = -3 + 24 + 8 = 29.
    4. m'4 = m4 + 4 x m3 x d + 6 x m2 x d^2 + d^4 = 40 + 4 x (-3) x 2 + 6 x 4 x 4 + 16 = 40 - 24 + 96 + 16 = 128.
    5. Round trip: 8 - 2^2 = 4; 29 - 3 x 8 x 2 + 2 x 2^3 = 29 - 48 + 16 = -3; 128 - 4 x 29 x 2 + 6 x 8 x 2^2 - 3 x 2^4 = 128 - 232 + 192 - 48 = 40. The central moments come back unchanged.

    Answer: About 10 litres: m'1 = 2, m'2 = 8, m'3 = 29 and m'4 = 128.

Practice checks

  1. For the weekly overtime of workers at a Surat textile unit, the first two raw moments about 20 hours are m'1 = -1.5 and m'2 = 18.25. The mean and the variance are:
  2. About the point 25 kg, the first three raw moments of the weights of rice sacks in a godown are m'1 = 2, m'2 = 10 and m'3 = 50. The third central moment m3 is:
  3. About the point 6, the first four raw moments of the number of mangoes spoilt per crate at a Ratnagiri packing shed are m'1 = -1, m'2 = 3, m'3 = -4 and m'4 = 11.4. The fourth central moment m4 is:
  4. Heights of saplings in a Pune nursery are grouped in classes 5 cm wide, and with u = (class mark - A) / 5 the central moments of u are m2 = 1.6, m3 = 0.6 and m4 = 5.2. For the heights themselves, m2 and beta2 are:
  5. A distribution has mean 5 and central moments m2 = 3 and m3 = 2. Its third raw moment about zero, m'3 about the origin, is:

Sources checked