Descriptive Statistics0%

Statistics · Topic 5 of 13

Descriptive Statistics

Video coming soon4 worked examples

Theory

Descriptive statistics are used to summarise and describe the main features of a dataset. The statistics you use depend on whether your data is categorical or numerical.

1. Categorical Data (Sample Size & Proportions)

When analysing categorical data, we look at the sample size (the total number of observations) and proportions (the number of specific responses divided by the sample size).

Proportions can be written as decimals, fractions, or percentages. They are incredibly useful for fairly comparing groups of different sizes.

2. Numerical Data (Location & Spread)

To summarise numerical data, you must calculate one measure of location (an average) and one measure of dispersion (how spread out or consistent the data is). These measures must always be paired correctly based on the distribution of the data:

  • Normally Distributed Data: Use the mean (location) and the standard deviation (spread).
  • Skewed Data (Positive or Negative): Use the median (location) and the interquartile range / IQR (spread). This is because extreme outliers in the 'tail' of skewed data will drastically distort the mean, but the median remains unaffected.

3. Making Valid Comparisons

A massive part of the Higher Applications course is comparing two datasets. To gain full marks, you must always write two separate sentences in the context of the question:

  • Sentence 1 (Location): Compare the averages using the word "average", state which is higher/lower, and explicitly state the numbers.
    (e.g., "On average, Group A was faster because its median (12s) is lower than Group B's (15s).")
  • Sentence 2 (Spread): Compare the spread using the word "consistent" or "varied", and explicitly state the numbers.
    (e.g., "Group A's times were more consistent because its IQR (2s) is smaller than Group B's (5s).")

4. R Studio Commands

  • mean(X) / sd(X) - calculates the mean and standard deviation.
  • median(X) / IQR(X) - calculates the median and interquartile range.
  • summary(X) - provides the 5-figure summary (min, Q1, median, mean, Q3, max).
  • prop.table(table(X)) - calculates the proportions of a categorical variable.

Worked examples

Example 1

Example 1: Categorical Proportions

A cinema surveys its customers to find out their favourite movie genre.

  • Out of 400 teenagers surveyed, 120 chose 'Horror'.
  • Out of 650 adults surveyed, 143 chose 'Horror'.

By calculating the relevant proportions, compare the preference for Horror movies between teenagers and adults.

Proportions:

  • Proportion of teenagers: 120 ÷ 400 = 0.30 (or 30%)
  • Proportion of adults: 143 ÷ 650 = 0.22 (or 22%)

Comparison:

A higher proportion of teenagers chose Horror as their favourite movie genre compared to adults.

Example 2

Example 2: Selecting the Correct Measures

A researcher is analysing two datasets using statistical software.

  • Dataset A (Reaction Times) produces a perfectly symmetrical histogram.
  • Dataset B (Annual Incomes) produces a histogram that is heavily skewed to the right.

State the most appropriate measures of location and spread that the researcher should use to summarise Dataset A and Dataset B.

Dataset A (Symmetrical): Mean and Standard Deviation.

Dataset B (Skewed): Median and Interquartile Range (IQR).

Example 3

Example 3: Making Valid Comparisons (Contextual)

A logistics company wants to compare the delivery times (in minutes) of two of its drivers, David and Sarah.

  • David has a mean delivery time of 42 minutes and a standard deviation of 8.5 minutes.
  • Sarah has a mean delivery time of 38 minutes and a standard deviation of 3.2 minutes.

Make two valid comparisons about the delivery times of the two drivers.

Comparison 1 (Location):

On average, Sarah's delivery times are faster because her mean (38 mins) is lower than David's mean (42 mins).

Comparison 2 (Spread):

Sarah's delivery times are much more consistent because her standard deviation (3.2 mins) is smaller than David's standard deviation (8.5 mins).

Example 4

Example 4: The Impact of Outliers

A small startup company has 10 employees. Nine of the employees earn exactly £25,000 a year. The CEO earns £400,000 a year. Explain why the median is a much better measure of location for this dataset than the mean.

The CEO's massive salary is an extreme outlier that creates a positive skew.

If the mean is used, this outlier will pull the average drastically upwards, giving a false impression that the typical employee earns a very high salary. The median is resistant to extreme outliers and will accurately reflect the typical £25,000 salary.