3. Lecture Three - Measures of Location
Table of contents
- Lecture 3: Measures of Location and Dispersion
- Measures of Central Tendency
- Class Exercise
- Quantiles
- Measures of Dispersion
- Standardized Variable: Z-score
- Graphical description of Distributions: Empirical Rule
- Box & Whisker Plot
- Shape of Distributions
- Shape of Distributions: Kurtosis
1. Lecture 3: Measures of Location and Dispersion
1.1 Purpose of descriptive statistics
Descriptive statistics uses numerical and graphic techniques to summarize data sets and present that information more manageably. It aims to answer three main questions about a distribution:
- Centre: Where is the data located? This is addressed by measures like the mean, median, and mode.
- Spread: How spread out are the data values? This is described by measures such as range, interquartile range, variance, and standard deviation.
- Shape: What does the distribution look like? This refers to symmetry (skewed) and kurtosis.
1.2 Measures of central tendency
Measures of central tendency identify the location of the center of a data set. There are three primary measures: mean, median, and mode.
These can be calculated for both raw (ungrouped) and grouped data.
1.3 Mean
The sample mean, denoted as xˉ, is calculated by summing all data entries of a variable and dividing by the number of data entries (n). It is the most popularly used measure of central tendency and is also known as the average or expected value.
A population mean is a parameter, while the sample mean for grouped and ungrouped data is a statistic.
| Type | Formula |
|---|---|
| Population Mean | μ=N∑N |
| Sample Mean (Raw Data) | xˉ=n∑n |
| Sample Mean (Grouped Data) | xˉ=∑f∑fm |
Advantages of the mean:
- It utilizes all data points within a data set.
- It is easy to understand and accurately calculate using well-known formulas.
Disadvantages of the mean:
- Requires understanding of the components within the formula for accurate calculation.
- Manual calculation can be more difficult, as an error in any step affects the final answer.
1.4 Median
The median is the value that divides an ordered data set into two equal parts, with 50% of the data above it and 50% below it.
- If the number of data entries (N or n) is odd, the median is the central value.
- If the number of data entries (N or n) is even, the median is the average of the two middle observations.
Median for Ungrouped Data: To calculate the median for ungrouped data, first order the data set. Example: For the data set {32, 17, 1, 82, 62, 7}, the ordered set is {1, 7, 17, 32, 62, 82}.
Since there are six data points (an even number), the median is the average of the third and fourth values: (17+32)/2=24.5.
Median for Grouped Data:
- Identify the median interval: This is the class interval containing the observation at position n/2.
- Calculate the median value using the formula: Median =L+(f2n−CF)×w where:
- L is the lower boundary of the median class.
- n is the total number of observations.
- CF is the cumulative frequency of the class preceding the median class.
- f is the frequency of the median class.
- w is the class width.
1.5 Mode
The mode is the data value that occurs with the greatest frequency.
- A data set may have no mode if all values occur with the same frequency.
- A data set can have more than one mode (bimodal, trimodal, etc.).
Mode for Ungrouped Data:
- Example: The set {1; 3; 8; 10; 2; 9; 15} has no mode.
- Example: The set {2; 5; 7; 9; 9; 9; 10; 11} has a mode of 9.
- Example: The set {2; 3; 4; 4; 4; 5; 7; 7; 7; 9} is bimodal with modes 4 and 7.
Mode for Grouped Data:
- Identify the modal interval: This is the class interval with the highest frequency.
- Calculate the modal value using the formula: Mode =L+((fm−fm−1)+(fm−fm+1)fm−fm−1)×w where:
- L is the lower boundary of the modal class.
- fm is the frequency of the modal class.
- fm−1 is the frequency of the class before the modal class.
- fm+1 is the frequency of the class after the modal class.
- w is the class width.
The relationship between the mean, median, and mode can indicate the shape of the distribution:
- Normal distribution: Mean = Median = Mode.
- Positively skewed distribution: Mode < Median < Mean.
- Negatively skewed distribution: Mean < Median < Mode.

1.6 Class exercise
This section presents a class exercise related to measures of central tendency and data description.
2. Measures of Central Tendency
2.1 Quantiles
Quantiles provide information about the position of particular values relative to the entire data set. They divide an ordered data set into equal parts.
- Quartiles divide data into four equal parts.
- Deciles divide data into ten equal parts.
- Percentiles divide data into one hundred equal parts.
The lower quartile (Q1) is the first quartile or 25th percentile. The upper quartile (Q3) is the third quartile or 75th percentile.
The 50th percentile and the second quartile are equivalent to the median.
To calculate quantiles:
- Sort the data.
- Identify the quantile position.
- Calculate the quantile value.
2.2 Quantile positions (Ungrouped data)
The position of a quartile (Qk) or percentile (Pk) in an ordered data set of size n can be determined using specific formulas.
| Quantile Type | Position Formula |
|---|---|
| First Quartile (Q1) | P=41(n+1) |
| Second Quartile (Q2) / Median | P=42(n+1)=21(n+1) |
| Third Quartile (Q3) | P=43(n+1) |
| k-th Percentile (Pk) | P=100k(n+1) |
2.3 Quartile & Percentile positions (Grouped data)
For grouped data, the position of a quartile or percentile is calculated based on the cumulative frequency.
See the table in section 2.2.
2.4 Quartiles & Percentiles (Grouped data)
To calculate quartiles and percentiles for grouped data:
- Identify the class interval containing the desired quartile or percentile.
- Calculate the value using the formula: Quantile =L+(f4kn−CF)×w (for quartiles, where k=1,2,3) Quantile =L+(f100kp−CF)×w (for percentiles, where p is the percentile number) where:
- L is the lower boundary of the quantile class.
- n is the total number of observations.
- CF is the cumulative frequency of the class preceding the quantile class.
- f is the frequency of the quantile class.
- w is the class width.
3. Class Exercise
3.1 Class Exercise
This section presents a class exercise related to quantiles.
4. Quantiles
4.1 Quantiles
Quantiles divide an ordered data set into equal parts, providing information about the position of values.
- Quartiles divide data into four equal parts (Q1,Q2,Q3).
- Deciles divide data into ten equal parts.
- Percentiles divide data into one hundred equal parts (P1,P2,...,P99).
The 25th and 75th percentiles correspond to the first and third quartiles, respectively. The 50th percentile is equivalent to the median.
4.2 Quartile & Percentile positions (Ungrouped data)
The position of a quartile (Qk) or percentile (Pk) in an ordered data set of size n is calculated as follows:
See the table in section 2.2.
4.3 Quartile & Percentile positions (Grouped data)
For grouped data, the position of a quartile or percentile is determined by the cumulative frequency.
See the table in section 2.2.
4.4 Quartiles & Percentiles (Grouped data)
To calculate quartiles and percentiles for grouped data:
- Identify the class interval containing the desired quartile or percentile.
- Calculate the value using the formula: Quantile =L+(f4kn−CF)×w (for quartiles, where k=1,2,3) Quantile =L+(f100kp−CF)×w (for percentiles, where p is the percentile number) where:
- L is the lower boundary of the quantile class.
- n is the total number of observations.
- CF is the cumulative frequency of the class preceding the quantile class.
- f is the frequency of the quantile class.
- w is the class width.
5. Measures of Dispersion
5.1 Measures of dispersion
Measures of dispersion describe how spread out the data values are within a distribution. There are five common measures:
- Range
- Variance
- Standard deviation
- Coefficient of variation
- Interquartile range
5.2 Variance and Standard Deviation
Variance and standard deviation quantify how data values fluctuate around the mean. The standard deviation is the square root of the variance.
| Type | Formula |
|---|---|
| Population Variance | σ2=N∑(xi−μ)2 |
| Population Standard Deviation | σ=σ2 |
| Sample Variance | s2=n−1∑(xi−xˉ)2 |
| Sample Standard Deviation | s=s2 |
5.3 Sample Standard Deviation (Ungrouped data)
The sample standard deviation for ungrouped data can be calculated using two methods:
Method 1 (Theoretical Method):
- Calculate the sample mean (xˉ).
- Calculate the deviation of each data point from the mean (xi−xˉ).
- Square each deviation ((xi−xˉ)2).
- Sum the squared deviations (∑(xi−xˉ)2).
- Divide the sum by n−1 to get the sample variance (s2).
- Take the square root to get the sample standard deviation (s).
Method 2: This method uses an alternative formula for calculation.
| Formula | Description |
|---|---|
| s2=n−1∑xi2−n(∑xi)2 | Sample Variance |
| s=s2 | Sample Standard Deviation |
5.4 Variance & Standard Deviation (Grouped Data)
For grouped data, variance and standard deviation are calculated using class marks (m) and frequencies (f).
| Type | Formula |
|---|---|
| Sample Variance (Grouped Data) | s2=∑f−1∑f(m−xˉ)2 |
| Sample Standard Deviation (Grouped Data) | s=s2 |
5.5 Interquartile Range and Coefficient of Variation
The interquartile range (IQR) is the difference between the upper quartile (Q3) and the lower quartile (Q1), representing the range of the middle 50% of the data. IQR =Q3−Q1
The coefficient of variation (CV) expresses standard deviation as a percentage of the mean, allowing for comparison of variability between data sets with different means. CV =(xˉs)×100%
6. Standardized Variable: Z-score
6.1 Z-score
A Z-score measures how many standard deviations a data value is from the mean. It indicates how far an observation is from the mean in standardized units and is dimensionless.
| Type | Formula |
|---|---|
| Population z-score | z=σx−μ |
| Sample z-score | z=sx−xˉ |
6.2 Example on z-score
Suppose a student scores 82 in Mathematics (mean=68, standard deviation=8) and 89 in Economics (mean=80, standard deviation=6). To compare their performance relative to other students:
- Mathematics z-score: z=882−68=814=1.75
- Economics z-score: z=689−80=69=1.50
Interpretation: The student's relative performance in Mathematics (z=1.75) is better than in Economics (z=1.50). This means the Mathematics mark is 1.75 standard deviations above the mean, while the Economics mark is 1.50 standard deviations above the mean.
7. Graphical description of Distributions: Empirical Rule
7.1 The Empirical Rule
The Empirical Rule, also known as the 68-95-99.7 rule, provides estimates for the percentage of data falling within certain standard deviations from the mean in a bell-shaped distribution. This rule is a useful approximation when the exact distribution is unknown but is assumed to be approximately normal.
- 68% of data: Approximately 68% of all data points lie within one standard deviation of the mean (μ±σ).
- 95% of data: Approximately 95% of all data points lie within two standard deviations of the mean (μ±2σ).
- 99.7% of data: Approximately 99.7% of all data points lie within three standard deviations of the mean (μ±3σ).
7.2 Example: Applying the Empirical Rule
Consider a dataset with a population mean (μ) of 5.8 and a population standard deviation (σ) of 4.9. We can use the Empirical Rule to estimate the range of values containing a certain percentage of the data.
-
Range for 68% of data:
-
Lower bound: μ−σ=5.8−4.9=0.9
-
Upper bound: μ+σ=5.8+4.9=10.7
-
Thus, approximately 68% of the data falls between 0.9 and 10.7.
-
Range for 95% of data:
-
Lower bound: μ−2σ=5.8−2(4.9)=5.8−9.8=−4
-
Upper bound: μ+2σ=5.8+2(4.9)=5.8+9.8=15.6
-
Thus, approximately 95% of the data falls between -4 and 15.6.
-
Range for 99.7% of data:
-
Lower bound: μ−3σ=5.8−3(4.9)=5.8−14.7=−8.9
-
Upper bound: μ+3σ=5.8+3(4.9)=5.8+14.7=20.5
-
Thus, approximately 99.7% of the data falls between -8.9 and 20.5.
📝 Given a dataset with a mean of 5.8 and a standard deviation of 4.9, approximately 95% of the data is expected to fall within the range of -4 to 15.6.
8. Box & Whisker Plot
8.1 Five-Figure Summary
A Box-and-Whisker plot is a graphical tool used to display the five-figure summary of a dataset. This summary provides a concise overview of the data's distribution.
- Minimum value: The smallest value in the dataset.
- Maximum value: The largest value in the dataset.
- Median: The middle value of the dataset when ordered.
- First Quartile (Q1): The median of the lower half of the data.
- Third Quartile (Q3): The median of the upper half of the data.
These five values are plotted to scale on a diagram, with the box representing the interquartile range (IQR) and the whiskers extending to the minimum and maximum values.
9. Shape of Distributions
9.1 Symmetrical Distributions
A symmetrical distribution is one where the left and right sides of the histogram are identical in shape and size when a vertical line is drawn through the center. In a perfectly symmetrical distribution, the mean, median, and mode are all equal.
- Mean = Median = Mode: This equality is a hallmark of a symmetrical distribution.
📝 A perfectly symmetrical distribution would have its mean, median, and mode at the exact same point.
9.2 Skewed Distributions
Skewed distributions are asymmetrical, meaning one tail of the distribution is longer than the other. The direction of the skew is determined by the relationship between the mean, median, and mode.
9.3 Negatively Skewed (Skewed to the Left)
In a negatively skewed distribution, the mean is less than the median, which is less than the mode. This indicates that the distribution has a longer tail extending to the left.
- Mean < Median < Mode: This relationship characterizes a negatively skewed distribution.
9.4 Positively Skewed (Skewed to the Right)
In a positively skewed distribution, the mean is greater than the median, which is greater than the mode. This indicates that the distribution has a longer tail extending to the right.
- Mean > Median > Mode: This relationship characterizes a positively skewed distribution.
9.5 Measure of Skewness
Skewness can be quantified to measure the degree of asymmetry in a distribution. The formula for skewness typically involves the third standardized moment.
| Skewness Value | Distribution Shape |
|---|---|
| Skewness = 0 | Symmetrical distribution |
| Skewness < 0 | Negatively skewed (left tail is longer) |
| Skewness > 0 | Positively skewed (right tail is longer) |
10. Shape of Distributions: Kurtosis
10.1 Kurtosis Defined
Kurtosis is a statistical measure that describes the shape of the peak of a distribution relative to a normal distribution. It quantifies the degree to which the tails of a distribution differ from those of a normal distribution, specifically concerning the concentration of data around the mean.
10.2 Types of Kurtosis
Distributions are classified based on their kurtosis relative to a normal distribution.
| Kurtosis Type | Peak Shape | Tail Behavior |
|---|---|---|
| Leptokurtic | High and sharp peak | Heavy tails |
| Platykurtic | Low and flat peak | Light tails |
| Mesokurtic (Normal) | Moderate peak | Moderate tails |
- Leptokurtic: Distributions with a high, sharp peak and heavy tails are called leptokurtic. This indicates more data clustered around the mean and more extreme values in the tails compared to a normal distribution.
- Platykurtic: Distributions with a low, flat peak and light tails are called platykurtic. This indicates less data clustered around the mean and fewer extreme values in the tails compared to a normal distribution.
- Mesokurtic: A normal distribution is considered mesokurtic, serving as the baseline for comparison.
📝 A distribution with a very sharp peak and long, thin tails would be described as leptokurtic.
© 2026 Maeve. All rights reserved. This content is protected by copyright.