Quantitative Aptitude – Average
Advanced, MIT‑Level Treatment
1. Introduction
The average (or mean) is a ubiquitous tool in quantitative analysis.
It summarizes a data set by a single representative value, often used to
compare, predict, or optimize. In the context of Azure Certification
(Quantitative Aptitude), we need to master:
- Fundamental definitions – arithmetic, weighted, geometric, harmonic.
- Algebraic properties – linearity, inequalities.
- Edge‑case reasoning – empty sets, zero denominators, negative numbers.
- Statistical interpretation – unbiasedness, variance.
- Advanced theory – continuous averages, moving averages, and their role in optimisation.
2. Basic Definitions
Let (x_1, x_2, \dots, x_n) be real numbers.
| Type | Formula | Interpretation |
|---|---|---|
| Arithmetic Mean (AM) | (\displaystyle \bar{x} = \frac{1}{n}\sum_{i=1}^{n}x_i) | “Average” in everyday sense. |
| Weighted Mean | (\displaystyle \bar{x}w = \frac{\sum{i=1}^{n} w_i x_i}{\sum_{i=1}^{n} w_i}), (w_i>0) | Different importance for each observation. |
| Geometric Mean (GM) | (\displaystyle G = \left(\prod_{i=1}^{n}x_i\right)^{1/n}) (all (x_i>0)) | Product‑based average, useful for growth rates. |
| Harmonic Mean (HM) | (\displaystyle H = \frac{n}{\sum_{i=1}^{n}\frac{1}{x_i}}) (all (x_i>0)) | Reciprocal‑based average, useful for rates. |
Observation: All means are symmetric in the sense that permuting the (x_i) does not change the result.
3. Fundamental Properties
3.1 Linearity
For any scalars (a,b),
[ \overline{aX+b} = a\bar{X} + b, ]
where (X) denotes the random variable taking values (x_i).
Proof:
[
\overline{aX+b}
= \frac{1}{n}\sum_{i=1}^{n}(a x_i + b)
= a\frac{1}{n}\sum_{i=1}^{n}x_i + b
= a\bar{x} + b.
]
3.2 Median‑Mean Inequality (for sorted data)
If (x_1\le x_2\le\dots\le x_n), then
[ x_{\lceil n/2\rceil} \le \bar{x} \le x_{\lfloor n/2\rfloor + 1}. ]
Proof sketch: Interleave the sorted values; the mean lies between the middle two values. Edge case: for even (n), the mean lies between the two central numbers; for odd (n), it equals the middle number if all others are equal.
3.3 Bounds via Extremes
Let (m = \min_i x_i) and (M = \max_i x_i). Then
[ m \le \bar{x} \le M. ]
Equality holds iff all (x_i) equal (m) or (M), respectively.
3.4 Convexity and Jensen’s Inequality
For any convex function (f),
[ f(\bar{x}) \le \frac{1}{n}\sum_{i=1}^{n} f(x_i). ]
This is the discrete form of Jensen’s inequality.
When (f) is linear, equality holds.
4. Weighted Mean: Deeper Theory
The weighted mean generalises the arithmetic mean by assigning importance weights (w_i>0).
4.1 Normalisation
Define normalized weights (\tilde{w}i = w_i / \sum{j=1}^{n} w_j).
Then
[ \bar{x}w = \sum{i=1}^{n} \tilde{w}i x_i,\quad \sum{i=1}^{n}\tilde{w}_i = 1. ]
Thus the weighted mean is a convex combination of the data.
4.2 Unbiasedness
If (X) is a random variable and we observe (n) samples (x_i), the sample mean (\bar{X}) is an unbiased estimator of (\mathbb{E}[X]):
[ \mathbb{E}[\bar{X}] = \mathbb{E}[X]. ]
For weighted samples, unbiasedness requires (\sum w_i = n) or
corresponding normalisation.
Failure to normalise leads to a scaled estimator.
4.3 Variance Reduction
If observations are independent with common variance (\sigma^2), the variance of the weighted mean is
[ \operatorname{Var}(\bar{X}w) = \frac{\sigma^2}{\left(\sum{i=1}^{n} w_i\right)^2} \sum_{i=1}^{n} w_i^2. ]
Choosing weights inversely proportional to observation variance minimises (\operatorname{Var}(\bar{X}_w)) (Gauss–Markov theorem).
5. Inequalities Involving the Mean
5.1 AM–GM–HM Chain
For positive numbers (x_i>0),
[ H \le G \le \bar{x} \le M. ]