4 Measures Of Central Tendency And Dispersion

Basic Statistics · Unit 4

Measures of Central Tendency and Dispersion

Exam-focused notes for Measures of Central Tendency and Dispersion (Basic Statistics, STA154): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

Measures of Central Tendency and Dispersion in short

One number can stand for a whole data set, and another can tell how spread out the data is. Together they let us describe and compare data sets.

Measures of Central Tendency and Dispersion: notes

Mean, median, and mode

The arithmetic mean is the sum of values divided by their number: $$\bar{x} = \frac{\sum x}{n}$$ For grouped data, $\bar{x} = \dfrac{\sum f m}{\sum f}$, where $m$ is the class mark.

The median is the middle value of the sorted data. For grouped data: $$\text{Median} = L + \frac{N/2 - cf}{f} \times h$$ Here $L$ is the lower boundary of the median class, $cf$ the cumulative frequency before it, $f$ its frequency and $h$ its width.

The mode is the most frequent value. For grouped data: $$\text{Mode} = L + \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \times h$$ where $f_1$ is the modal class frequency, and $f_0$, $f_2$ are the frequencies before and after it.

Example: the classes 10 to 20, 20 to 30, 30 to 40, 40 to 50 with $f = 5, 8, 12, 5$ ($N = 30$).

$$\begin{aligned} \bar{x} &= \frac{5(15) + 8(25) + 12(35) + 5(45)}{30} = \frac{920}{30} = 30.67 \ \text{Median} &= 30 + \frac{15 - 13}{12} \times 10 = 31.67 \ \text{Mode} &= 30 + \frac{12 - 8}{24 - 8 - 5} \times 10 = 33.64 \end{aligned}$$

What this unit covers

  • Mean, median, and mode
  • Choice of appropriate central tendency measure
  • Range and interquartile range
  • Variance and standard deviation
  • Coefficient of variation
  • Methods of measuring dispersion
  • Comparison of consistency between datasets

Comparison of consistency between datasets

2082 · 10 marks

Build System Consistency Analysis

A software development team is tracking the build sizes (in MB) produced by two different automated build systems during nightly integrations over 10 days. Which build system is more consistent? Justify your answer.

$$\begin{array}{|c|cccccccccc|}\hline \text{Build System A} & 88 & 92 & 94 & 85 & 90 & 95 & 89 & 87 & 91 & 86 \ \hline \text{Build System B} & 130 & 135 & 132 & 140 & 128 & 133 & 137 & 131 & 129 & 138 \ \hline \end{array}$$

[10]

Show solved answer

Model Answer: Build System Consistency Analysis

Given Data

Build System A (MB): 88, 92, 94, 85, 90, 95, 89, 87, 91, 86 Build System B (MB): 130, 135, 132, 140, 128, 133, 137, 131, 129, 138 $n = 10$ for each

Method

Since the two data sets have different means (different units/scale of build sizes), the correct measure of relative consistency is the Coefficient of Variation (CV). The lower the CV, the more consistent.

Step 1: Means

System A: $$\bar{x}_A = \frac{88+92+94+85+90+95+89+87+91+86}{10} = \frac{897}{10} = 89.7 \text{ MB}$$

System B: $$\bar{x}_B = \frac{130+135+132+140+128+133+137+131+129+138}{10} = \frac{1333}{10} = 133.3 \text{ MB}$$

Step 2: Variance and Standard Deviation

System A - squared deviations from 89.7:

$x$$x-\bar{x}$$(x-\bar{x})^2$
88-1.72.89
922.35.29
944.318.49
85-4.722.09
900.30.09
955.328.09
89-0.70.49
87-2.77.29
911.31.69
86-3.713.69

$$\sum (x-\bar{x})^2 = 100.10$$ $$\sigma_A^2 = \frac{100.10}{10} = 10.01, \qquad \sigma_A = \sqrt{10.01} \approx 3.164 \text{ MB}$$

System B - squared deviations from 133.3:

$x$$x-\bar{x}$$(x-\bar{x})^2$
130-3.310.89
1351.72.89
132-1.31.69
1406.744.89
128-5.328.09
133-0.30.09
1373.713.69
131-2.35.29
129-4.318.49
1384.722.09

$$\sum (x-\bar{x})^2 = 148.10$$ $$\sigma_B^2 = \frac{148.10}{10} = 14.81, \qquad \sigma_B = \sqrt{14.81} \approx 3.849 \text{ MB}$$

Step 3: Coefficient of Variation

$$CV_A = \frac{\sigma_A}{\bar{x}_A}\times 100 = \frac{3.164}{89.7}\times 100 \approx 3.53%$$

$$CV_B = \frac{\sigma_B}{\bar{x}_B}\times 100 = \frac{3.849}{133.3}\times 100 \approx 2.89%$$

Conclusion

Consistency between two data sets with different means must be judged by the coefficient of variation, not the raw standard deviation.

  • $CV_B \approx 2.89% < CV_A \approx 3.53%$

Therefore Build System B is more consistent, because relative to its own average build size its build sizes vary less. Although System A has a smaller absolute standard deviation, its builds are much smaller in magnitude, so a fair (relative) comparison shows System B fluctuates proportionally less around its mean.

Compare with the coefficient of variation, not the raw standard deviation: when the means differ substantially (89.7 against 133.3), the CV is the statistically correct basis, and it points to System B as the more consistent system.

Open this answer on its own page →

2081 · 10 marks

Response Time Consistency Comparison

A cloud service provider is evaluating the response times of two different server clusters over 10 requests. The company wants to compare the variability in response times between the two clusters. Here are the response times (in milliseconds) for the two clusters. Which cluster has more consistent response times?

$$\begin{array}{|c|cccccccccc|}\hline \text{Cluster A} & 88 & 92 & 94 & 85 & 90 & 95 & 89 & 87 & 91 & 86 \ \hline \text{Cluster B} & 130 & 135 & 132 & 140 & 128 & 133 & 137 & 131 & 129 & 138 \ \hline \end{array}$$

[10]

Cluster A (ms): 88, 92, 94, 85, 90, 95, 89, 87, 91, 86 (n = 10) Cluster B (ms): 130, 135, 132, 140, 128, 133, 137, 131, 129, 138 (n = 10) Since the two clusters have very different means, the correct measure to compare consistency is the Coefficient of Variation (CV), which is relative (unitless)...

Open this answer on its own page →

2078 · 10 marks

Measuring Dispersion and Student Performance Analysis

Dispersion measures the scatter or spread of data about a central value. Methods are classified as absolute (same units as data) and relative (unit-free ratios/percentages). Absolute measures: 1. Range = Largest value − Smallest value ($L - S$). Simplest but based only on extremes. 2. Quartile De...

Open this answer on its own page →

2080.1 · 10 marks

Measures of Central Tendency and Computer Consistency Analysis

Measure Suitable Situation ----------------------------- Mean Data is fairly symmetric with no extreme outliers; all values must be used; further algebraic/statistical treatment (like SD, CV) is needed; quantitative data. Median Distribution is skewed or has outliers; open-ended classes; ordinal ...

Open this answer on its own page →

0 · 2.5 marks

Cyber Cafe Download Time Analysis

There are two popular Cyber Cafes (namely Cafe A and Cafe B) in Kathmandu located at Thamel area. Each of them has good number of computers in the cyber and maintains peace, comfort and good working environment. Each customer, before entering into the cafe, asks to the cafe owner about the average time to download an image file since the internet in Kathmandu is a bit of sporadic. Each of them replied that the time to download an image file is on an average no more than 70 seconds. The following is the data of downloading time for an image file experienced by 8 customers in each cafe in some random 8 different days.

$$\begin{array}{|c|c|}\hline \text{Cafe A (in sec)} & \text{Cafe B (in sec)} \ \hline 70 & 70 \ 55 & 75 \ 55 & 72 \ 45 & 73 \ 40 & 73 \ 80 & 80 \ 75 & 74 \ 69 & 40 \ \hline \end{array}$$

a.) Explain whether the owner's response to the customers are satisfied in each cafe? Even having the average waiting time within the owner's limit, is there any further comments on the data with reference to measures of central tendency you have computed? Discuss. [3]

b.) What similarities and differences are observed based on the average download time in Cafe A and in Cafe B? [2]

c.) Compare the download time between two cafes with respect to variability and shape of the data distribution. [2.5]

d.) On the basis of your statistical analysis, which cafe would be suggested to the customers so that one can download an image file in a lesser time? [2.5]

Show solved answer

Model Answer: Cyber Cafe Download Time Analysis

Given Data

Cafe A (sec)Cafe B (sec)
7070
5575
5572
4573
4073
8080
7574
6940
  • Sample size each: $n = 8$
  • Owner's claimed limit: average download time $\leq 70$ sec

a) Owner's Response Satisfaction & Central Tendency [3]

Mean:

Cafe A: $\bar{x}_A = \dfrac{70+55+55+45+40+80+75+69}{8} = \dfrac{489}{8} = 61.125$ sec

Cafe B: $\bar{x}_B = \dfrac{70+75+72+73+73+80+74+40}{8} = \dfrac{557}{8} = 69.625$ sec

Both means $\leq 70$ sec, so both owners' claims are technically satisfied.

Median:

Cafe A sorted: $40, 45, 55, 55, 69, 70, 75, 80$ $\text{Median}_A = \dfrac{55+69}{2} = 62$ sec

Cafe B sorted: $40, 70, 72, 73, 73, 74, 75, 80$ $\text{Median}_B = \dfrac{73+73}{2} = 73$ sec

Mode:

  • Cafe A: mode $= 55$ (appears twice)
  • Cafe B: mode $= 73$ (appears twice)

Discussion:

  • Cafe A: Mean $61.125$ < Median $62$ → slightly left (negatively) skewed. The measures are close, so the mean is a fair representation.
  • Cafe B: Mean $69.625$ < Median $73$ → pronounced left skew caused by the single low value ($40$ sec). The mean is dragged down by this outlier.
  • Although Cafe B's mean is within the claimed 70 sec, its median (73 sec) exceeds 70 sec. This means the typical/most common customer at Cafe B experiences downloads slower than claimed; the owner's claim is misleading, satisfied only because one unusually fast reading lowers the average.

b) Similarities and Differences in Average Download Time [2]

Similarities:

  • Both have $n = 8$ observations.
  • Both means fall below the 70-second threshold ($61.125$ and $69.625$).
  • Both share the same maximum value of $80$ sec and same minimum of $40$ sec, so both have identical range = $80 - 40 = 40$ sec.

Differences:

  • Cafe A's mean ($61.125$) is $8.5$ sec faster than Cafe B's ($69.625$).
  • Cafe A's mean and median are nearly equal (representative), whereas Cafe B's mean is pulled down by the $40$-sec outlier, making its mean unrepresentative (median $73$ is more typical).
  • On the whole, Cafe A downloads faster on average.

c) Variability and Shape [2.5]

Cafe A (deviations from $61.125$), squared:

$78.7656 + 37.5156 + 37.5156 + 260.0156 + 446.2656 + 356.2656 + 192.5156 + 62.0156 = 1470.875$

$s_A^2 = \dfrac{1470.875}{7} = 210.125 \Rightarrow s_A = \sqrt{210.125} = 14.4957$ sec

$CV_A = \dfrac{14.4957}{61.125}\times 100 = 23.71%$

Cafe B (deviations from $69.625$), squared:

$0.1406 + 28.8906 + 5.6406 + 11.3906 + 11.3906 + 107.6406 + 19.1406 + 877.6406 = 1061.875$

$s_B^2 = \dfrac{1061.875}{7} = 151.6964 \Rightarrow s_B = \sqrt{151.6964} = 12.3165$ sec

$CV_B = \dfrac{12.3165}{69.625}\times 100 = 17.69%$

Variability:

  • Absolute variability: Cafe A ($s = 14.4957$) > Cafe B ($s = 12.3165$).
  • Relative variability (CV): Cafe A ($23.71%$) > Cafe B ($17.69%$).
  • Cafe B is more consistent apart from its one outlier.

Shape:

  • Both distributions are negatively (left) skewed (mean < median in both).
  • Cafe A: mild left skew, spread fairly evenly.
  • Cafe B: strong left skew driven by the single $40$-sec value; most values cluster tightly in the $70$-$80$ range.

d) Recommendation [2.5]

Cafe A is recommended for faster download times:

  1. Lower mean: $61.125$ sec vs $69.625$ sec - about $8.5$ sec faster.
  2. Lower median: $62$ sec vs $73$ sec - the typical Cafe A experience is markedly faster and stays within the 70-sec claim, whereas Cafe B's median exceeds it.
  3. Cafe B's advantage (lower s and CV) is largely artificial, produced by one lucky $40$-sec reading; excluding it, its values sit at $70$-$80$ sec, mostly at or above the limit.
  4. Cafe A's central tendency measures are consistent, giving a genuinely faster and honest performance.

Conclusion: Customers wanting to download an image file in less time should choose Cafe A.

Open this answer on its own page →

Coefficient of variation

2079 · 10 marks

What is the difference between relative and absolute statistical measure? J.J. Thomson discovered the electron by isolating negatively charged particles for which he could measure the mass-charge ratio. This ratio appeared to be constant over a wide range of experimental conditions and, consequently, could be characteristics of new particles. His observations from two different cathode-ray tubes that used air as the gas. Which tube is more homogeneous?

$$\begin{array}{|c|c|c|c|c|c|c|c|}\hline \text{Tube I} & 0.57 & 0.34 & 0.43 & 0.32 & 0.48 & 0.40 & 0.40 \ \hline \text{Tube II} & 0.53 & 0.47 & 0.47 & 0.51 & 0.63 & 0.61 & 0.48 \ \hline \end{array}$$

[10]

Absolute measures of dispersion: - Expressed in the same units as the original data - Examples: Range, Quartile Deviation, Mean Deviation, Standard Deviation - Measure scatter in absolute terms - Cannot compare variability between series with different units or widely different means Relative mea...

Open this answer on its own page →