Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 1

Descriptive Statistics: Central Tendency & Dispersion

Recommended resources

Welcome to your first lesson in the Probability and Statistics (PNS) course. Given your goal to master the numerical problem-solving aspects for your upcoming final exam, we'll start from the ground up, focusing on the essential calculations that form the bedrock of statistical analysis. This lesson addresses the first learning outcome: computing measures of central tendency and dispersion. We will break down the "what," "why," and "how" of calculating the mean, median, mode, variance, and standard deviation for different types of datasets.

1. Measures of Central Tendency: Finding the "Center"

First, let's explore measures of central tendency. These are single values that attempt to describe a set of data by identifying the central position within that set. The three main measures are the mean, median, and mode.

To get a quick and clear overview of these concepts for simple, ungrouped data, please watch the first part of the following video.

Mode, Median, Mean, Range, and Standard Deviation (1.3)

This video, from the Simple Learning Pro channel, provides a concise, step-by-step guide to finding the mode, median, and mean.

Watch the sections explaining how to find the mode, the median for both odd and even-sized datasets, and the mean. Pay close attention to the requirement of ordering data for the median and the formula for finding the median's position.

Let's summarize the key ideas from the video:

  • Mean (): The arithmetic average. It is calculated by summing all data points and dividing by the count of data points. Its formula for a sample is . The mean is sensitive to extreme values, or outliers.
  • Median: The middle value of an ordered dataset. If the dataset has an odd number of values, it's the single value in the middle. If it's an even number, it's the average of the two middle values. The median is resistant to outliers.
  • Mode: The most frequently occurring value in the dataset. A dataset can have one mode (unimodal), two (bimodal), more (multimodal), or no mode at all.

For more practice, you can review the worked examples for ungrouped datasets in the document below. This will reinforce your understanding of the calculation process.

CHAPTER 86 MEAN, MEDIAN, MODE AND STANDARD ...

This PDF provides several straightforward, solved problems for calculating the mean, median, and mode from a list of numbers.

Focus on the four examples at the beginning of the document. Follow how each set of numbers is handled to find the three measures of central tendency.


2. Measures of Dispersion: Describing the "Spread"

Knowing the center of a dataset is useful, but it doesn't tell the whole story. Two datasets can have the same mean but look completely different. For example, the test scores in two classes could both average 75%, but in one class, all students scored between 70% and 80%, while in the other, scores ranged from 40% to 100%. This is where measures of dispersion (or variability) come in. They tell us how spread out the data points are.

To understand why dispersion is important, let's look at a conceptual introduction.

Measuring Dispersion

This excerpt introduces the concept of dispersion and provides a clear visual example to illustrate its importance.

First, read the introduction to understand what measures of dispersion represent. Then, study the section Visualizing Dispersion, which uses the example of Tom's, Dick's, and Harriet's groups to show how three datasets with the same mean can have very different spreads.

The primary measures of dispersion we'll focus on are the range, variance, and standard deviation.

Range

The range is the simplest measure of spread, calculated as the difference between the maximum and minimum values in the dataset.

While easy to calculate, it only considers the two most extreme points and can be misleading if there are outliers.

Variance and Standard Deviation

Variance () and Standard Deviation () are the most common and robust measures of spread. They represent the "average distance" of the data points from the mean.

Here’s the intuition:

  1. We find the mean ().
  2. For each data point (), we calculate its deviation from the mean ().
  3. Some deviations are positive, others negative. If we just added them up, they would cancel out to zero. To solve this, we square each deviation, making them all positive: .
  4. We sum these squared deviations: .
  5. We average this sum to get the variance.
  6. Since we squared the units, we take the square root of the variance to get back to the original units. This is the standard deviation.

The following video provides an excellent, step-by-step walkthrough of this calculation.

Mode, Median, Mean, Range, and Standard Deviation (1.3)

The same video from before now demonstrates how to calculate the standard deviation using a clear, table-based method.

Watch the detailed breakdown of calculating the standard deviation. The table method is highly recommended for avoiding errors in manual calculations. Also, watch the brief explanation of variance, which is simply the standard deviation before the final square root step.

An Important Detail: Sample vs. Population ()

In statistics, we often use a smaller sample to make inferences about a larger population. When we calculate variance or standard deviation for a sample, we divide the sum of squared deviations by (the sample size minus one) instead of . This provides a better, unbiased estimate of the true population variance. For your exams, unless you are told you have data for the entire population, you should use the sample formulas with .

Sample Variance ():

Sample Standard Deviation ():

This is a critical distinction that is often a source of error. The "Measuring Dispersion" PDF has a great explanation for this.

Measuring Dispersion

This boxed text explains the rationale behind using n-1 in the denominator for sample standard deviation.

Read the section titled Box 5.1. This will clarify why the n-1 denominator is standard practice in statistics when working with samples.

The Computational Formula

The formula is known as the definitional formula because it shows the definition of variance. However, it requires two passes over the data: one to calculate the mean, and a second to calculate the sum of squared differences.

For calculation, especially with a calculator or a program, the computational formula is often more efficient. It allows you to compute the variance in a single pass. Given your computer science background, you can think of this as an algorithmic optimization.

Computational Formula for Sample Variance ():

Here, means "square each value, then sum," while means "sum the values, then square the sum."


3. Calculations for Grouped Data

Exam questions often present data in a grouped frequency table, where you have class intervals (e.g., weights 120-139 lbs) and frequencies (the number of data points in that interval). Since we don't know the exact values, we must estimate our measures using the midpoint of each interval.

The video below gives a fantastic, problem-focused walkthrough of the entire process for grouped data.

Mean, Median, and Mode of Grouped Data & Frequency Distribution Tables Statistics

This video from The Organic Chemistry Tutor is tailored for the kind of problems you'll face, explaining how to handle grouped data to find the mean, median, and mode.

First, watch the detailed calculation of the estimated mean. Pay close attention to how the midpoint and frequency columns are used. Next, watch the explanation of how to identify the intervals containing the median and mode using cumulative frequency and highest frequency, respectively.

The key to solving these problems is to set up your calculation table correctly. The image below shows a typical layout for a grouped data problem, including the formulas for more precise estimates of the median and mode.

This image shows the standard table layout and formulas for calculating mean, median, and mode from a grouped frequency distribution. Notice the key columns: Mid Point (X), F*X (Frequency times Midpoint), and Cumulative Frequency (C.F.).

Let's break down the formulas shown in the image, as they are essential for your exam:

Median for Grouped Data:

  • : Lower class boundary of the median class (the class where cumulative frequency surpasses ).
  • : Width of the median class.
  • : Frequency of the median class.
  • : Total number of data points ().
  • : Cumulative frequency of the class preceding the median class.

Mode for Grouped Data:

  • : Lower class boundary of the modal class (the class with the highest frequency).
  • : Width of the modal class.
  • : Frequency of the modal class.
  • : Frequency of the class preceding the modal class.
  • : Frequency of the class following the modal class.

Variance for Grouped Data:
The formulas are adapted to use midpoints () and frequencies ().


4. Let's Solve a Problem Together

Now, let's apply everything we've learned to a typical exam-style problem. This is a crucial step to solidify your understanding.

A grouped frequency distribution table. We will compute the mean, median, mode, sample variance, and sample standard deviation for this data.

We'll work through this step-by-step. I encourage you to perform the calculations alongside me.

Step 1: Create the Calculation Table
First, we need to extend the given table with columns for Midpoint (), , , , and Cumulative Frequency (). Note that .

Class Interval Frequency (f) Midpoint (x) fx cf
10 - 13 4 11.5 46 132.25 529 4
14 - 17 3 15.5 46.5 240.25 720.75 7
18 - 21 5 19.5 97.5 380.25 1901.25 12
22 - 25 10 23.5 235 552.25 5522.5 22
26 - 29 4 27.5 110 756.25 3025 26
30 - 33 6 31.5 189 992.25 5953.5 32
34 - 37 11 35.5 390.5 1260.25 13862.75 43
38 - 41 7 39.5 276.5 1560.25 10921.75 50
Total

Step 2: Calculate the Mean

Step 3: Calculate the Median

  1. Find the median position: .
  2. Find the median class: Look at the cf column. The 25th value falls in the 26-29 interval (as the cf up to the previous class is 22, and for this class it's 26).
  3. Apply the formula:
    • (lower boundary of the 26-29 class)
    • (class width)
    • (frequency of the median class)
    • (cumulative frequency of the class before)

Step 4: Calculate the Mode

  1. Find the modal class: The class with the highest frequency is 34-37, with .
  2. Apply the formula:
    • (lower boundary)
    • (frequency of the class before)
    • (frequency of the class after)

Step 5: Calculate Sample Variance and Standard Deviation
Using the computational formula is much faster here.


So, for this dataset, we have:

  • Mean: 27.82
  • Median: 28.5
  • Mode: 35.72
  • Sample Variance: 76.30
  • Sample Standard Deviation: 8.73

Conclusion

In this lesson, you've learned to compute the fundamental measures used to describe a dataset: central tendency (mean, median, mode) and dispersion (range, variance, standard deviation). We've emphasized the importance of step-by-step calculations, the distinction between sample and population formulas, and the specific methods for handling both raw and grouped data. Mastering these calculations is the first and most critical step in your preparation for the PNS exam.

In our next lesson, we will continue our exploration of descriptive statistics by looking at measures of a distribution's shape: skewness and kurtosis. These will allow you to describe not just where the center is and how spread out the data is, but also whether the data is symmetric or lopsided.