UNIHIVE

Study Hub UNIPORT AGR 101

AGR 101 · Introductory Statistics for Agriculture

Measures of location: mean, median and mode

The arithmetic mean, median and mode for ungrouped and grouped data, with their strengths and weaknesses.

Our notes

2 min read

Ungrouped data: maize yields of 8 plots (t/ha)

2.4, 3.1, 2.8, 3.5, 2.9, 3.1, 2.6, 3.2

Mean x̄ = Σx ÷ n = 23.6 ÷ 8 = 2.95 t/ha.
Median: sort: 2.4, 2.6, 2.8, 2.9, 3.1, 3.1, 3.2, 3.5. With n even, the median is the average of the two middle values (4th and 5th): (2.9 + 3.1) ÷ 2 = 3.0 t/ha. (With n odd, it is the single middle value at position (n + 1) ÷ 2.)
Mode: the most frequent value: 3.1 t/ha (twice).

Grouped data: broiler weights

Using mid-points x and frequencies f (table in "Collation and frequency tables"):
Mean = Σfx ÷ Σf. fx: 4 × 1.2 = 4.8; 10 × 1.7 = 17.0; 18 × 2.2 = 39.6; 12 × 2.7 = 32.4; 6 × 3.2 = 19.2. Σfx = 113.0, so mean = 113.0 ÷ 50 = 2.26 kg.

Median = L + ((n/2 − F) ÷ f) × c, where L is the lower boundary of the median class, F the cumulative frequency before it, f its frequency, c the width.
n/2 = 25; cumulative frequencies 4, 14, 32: the 25th bird is in 2.0-2.4. L = 1.95, F = 14, f = 18, c = 0.5.
Median = 1.95 + (11 ÷ 18) × 0.5 = 1.95 + 0.306 = 2.26 kg (2.256 before rounding).

Mode = L + (d₁ ÷ (d₁ + d₂)) × c, where d₁ = f(modal) − f(before), d₂ = f(modal) − f(after).
d₁ = 18 − 10 = 8; d₂ = 18 − 12 = 6. Mode = 1.95 + (8 ÷ 14) × 0.5 = 1.95 + 0.286 = 2.24 kg.
Mean, median and mode are close: the distribution is nearly symmetrical.

Assumed mean (shortcut)

Choose A near the middle (A = 2.2): mean = A + Σf(x − A) ÷ Σf. Deviations −1.0, −0.5, 0, 0.5, 1.0 give f × d = −4, −5, 0, 6, 6, sum = 3. Mean = 2.2 + 3 ÷ 50 = 2.26 kg. Same answer.

Other means

  • Weighted mean: Σwx ÷ Σw, for example an average price weighted by quantity sold.
  • Geometric mean: the n-th root of the product; for growth rates (herd growth of 10%, then 20%: average factor √(1.10 × 1.20) = √1.32 = 1.149, so about 14.9% a year, not 15%).

Which to use

MeasureStrengthWeakness
Meanuses every value; basis of later statisticspulled by extreme values
Mediannot affected by extremes; good for skewed data (farm incomes, farm sizes)ignores the size of other values
Modethe "most common"; works for categories (most popular variety)may not exist or may be more than one

Exams usually ask: compute the mean, median and mode for ungrouped and grouped data; use an assumed mean; say which measure suits skewed data.

Common mistake: using class limits (2.0) instead of the lower boundary (1.95) in the median and mode formulas.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All AGR 101 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.