L1-Statistics (revised)

📚 L1-Statistics (revised).pptx.pdf

Brief overview

This document introduces the fundamental principles of statistics, focusing on data organization, summarization, and the calculation of key statistical measures. Understanding these concepts is essential for interpreting data and drawing meaningful conclusions across various fields.

Key points

  • Overview of basic statistical concepts and data types.
  • Calculation and application of central tendency measures for ungrouped data.
  • Construction of frequency distribution tables for grouped data.
  • Computation of central tendency measures for grouped data.
  • Understanding and calculating measures of variability including variance and standard deviation.

1. Basic concepts of statistics and data types

1.1 What is statistics?

  • Statistics: the science of collecting, organizing, presenting, analyzing, and interpreting data. It helps make effective decisions 5.

1.2 Types of statistics

  • Descriptive Statistics: Summarizes and describes data using graphs and tables.
  • Inferential Statistics: Analyzes data to make generalizations or conclusions about a population based on a sample 6.

🔑 Important: Descriptive statistics paint a picture of your data, while inferential statistics let you draw conclusions about a larger group.

1.3 Types of data

Statistics deals with different kinds of information. These are broadly categorized by their nature.

  • Qualitative Data: Non-numeric information.
  • Examples: Gender, hair color, nationality, profession.
  • Quantitative Data: Numeric information.
  • Examples: Height, weight, age, salary 7.

🔑 Important: Qualitative data describes qualities, while quantitative data describes quantities.

1.4 Population and sample

Understanding the source of data is crucial in statistics.

  • Population: The entire group of individuals, objects, or events being studied.
  • Sample: A subset or part of the population used for analysis 8.

🔑 Important: A sample should accurately represent the population to ensure valid conclusions.

1.5 Measures of central tendency

Measures of central tendency describe the center of a dataset. They represent a typical value.

  • Mean: The average of all values, calculated by summing all values and dividing by the number of values.
  • Affected by extreme values (outliers).
  • Applicable only to quantitative data 13.
  • Median: The middle value in an ordered dataset (array).
  • Less affected by outliers and skewed data 14.
  • Mode: The value that occurs most frequently in the dataset.
  • Can be used for both qualitative and quantitative data 15.

🔑 Important: The mean is sensitive to outliers, the median is resistant to them, and the mode identifies the most common value.

1.6 Choosing the right measure

The best measure of central tendency depends on the data type and distribution.

Data Type/SituationMost Appropriate MeasureJustification
Quantitative, no outliersMeanRepresents the average value well.
Quantitative, with outliersMedianResists the influence of extreme values.
Qualitative or CategoricalModeIdentifies the most frequent category or value.
Bimodal or MultimodalModeUseful if there are multiple peaks in the data.

17

🔑 Important: Always consider the characteristics of your data before selecting a measure of central tendency.

📝 Example: For income data which is often skewed, the median is usually a better representation of the typical income than the mean 18.

2. Measures of central tendency for ungrouped data

2.1 Understanding measures of central tendency

Measures of central tendency describe the center or typical value of a dataset. They help summarize data into a single representative number.

Common measures include the mean, median, and mode. Choosing the right measure depends on the data's characteristics.

2.2 Computing the mean

The mean is the arithmetic average of a dataset. To calculate it, sum all values and divide by the total number of values.

This is suitable for data without extreme outliers26.

  • Formula: Mean=∑xn\text{Mean} = \frac{\sum x}{n}
  • ∑x\sum x represents the sum of all values.
  • nn represents the total number of values.

Example: For the data 12, 13, 14, 15, 16:

  • Sum = 12+13+14+15+16=7012 + 13 + 14 + 15 + 16 = 70
  • Number of values = 5
  • Mean = 70/5=1470 / 5 = 1425.

Example: For the data 15, 19, 37, 20, 18, 17, 22, 23, 17, 17:

  • Sum = 15+19+37+20+18+17+22+23+17+17=20515 + 19 + 37 + 20 + 18 + 17 + 22 + 23 + 17 + 17 = 205
  • Number of values = 10
  • Mean = 205/10=20.5205 / 10 = 20.533.

2.3 Computing the median

The median is the middle value in a dataset that has been ordered. It is less affected by extreme values than the mean28.

  • Steps:
  1. Order the data from smallest to largest.
  2. Count the number of data points (nn).
  3. If nn is odd, the median is the single middle value.
  4. If nn is even, the median is the average of the two middle values.

Example: For the data 12, 13, 14, 15, 16:

  • Ordered data: 12, 13, 14, 15, 16
  • Number of values = 5 (odd)
  • Median = 1427.

Example: For the data 15, 19, 37, 20, 18, 17, 22, 23, 17, 17:

  • Ordered data: 15, 17, 17, 17, 18, 19, 20, 22, 23, 37
  • Number of values = 10 (even)
  • Middle values are 18 and 19.
  • Median = (18+19)/2=18.5(18 + 19) / 2 = 18.534 35 36.

2.4 Computing the mode

The mode is the value that appears most frequently in a dataset. A dataset can have one mode, multiple modes, or no mode at all.

  • Steps:
  1. Count the frequency of each value.
  2. Identify the value(s) with the highest frequency.

Example: For the data 12, 13, 14, 15, 16:

  • Each value appears once.
  • Mode = No mode 24 29 30.

Example: For the data 15, 19, 37, 20, 18, 17, 22, 23, 17, 17:

  • The value 17 appears 3 times, which is more than any other value.
  • Mode = 17 32 37.

2.5 Applying measures to a dataset

Consider student hours spent on social media: 5, 6, 5, 4, 4, 3, 1, 1, 8, 7.

MeasureCalculationResultInterpretation
Mean(5+6+5+4+4+3+1+1+8+7)/10=44/10(5+6+5+4+4+3+1+1+8+7) / 10 = 44 / 104.4The average hours spent is 4.4.
MedianOrdered: 1, 1, 3, 4, 4, 5, 5, 6, 7, 8. (4+5)/2(4+5)/24.5Half the students spent 4.5 hours or less, half spent 4.5 hours or more.
ModeValues 1 and 4 appear twice.1 and 4The most common amounts of time spent are 1 hour and 4 hours.

In this case, the data has low values (1, 1) which are outliers. The median (4.5) is a better representation of the typical student's social media use than the mean (4.4) because it is not as affected by these low values 21.

2.6 Analyzing quiz data

Grades for 20 students: 85, 86, 87, 90, 91, 84, 86, 83, 88, 90, 86, 88, 87, 89, 85, 92, 84, 88, 90, 86.

MeasureCalculationResultInterpretation
MeanSum = 1762; 1762/201762 / 2088.1The average grade is 88.1.
MedianOrdered: 83, 84, 84, 85, 85, 86, 86, 86, 86, 87, 88, 88, 89, 90, 90, 90, 91, 92. (87+88)/2(87+88)/287.5Half the students scored 87.5 or lower, and half scored 87.5 or higher.
ModeThe grade 86 appears 4 times.86The most frequent grade received by students was 86.

The mean (88.1) and median (87.5) are close, suggesting the data is fairly symmetrical without extreme outliers impacting the average. The mode shows the most common grade 39 .

🔑 Important: For ungrouped data, the mean, median, and mode provide different perspectives on the data's center. Always consider the nature of your data, especially the presence of outliers, when choosing which measure best represents it 22.

3. Frequency distribution tables and measures for grouped data (part 1)

3.1 Organizing data into frequency distribution tables

Data can be organized into a grouped frequency distribution table to manage large datasets. This table shows how often values occur within defined ranges 42 47.

Here are the key components of such a table:

  • Class interval: These are the groups of values that classify the data. For example, 1-5, 6-10, etc 51.
  • Class limits: These are the smallest and largest values within a class interval. The smaller value is the lower limit, and the larger value is the upper limit 53.
  • Class size (or class width): This is the number of values in each class. It's found by subtracting consecutive lower or upper limits. For instance, 6-1=5 55.
  • Frequency (f): This is the count of data points that fall into each class interval 57.
  • Class boundaries: These are the "true" limits of a class. They are found by subtracting 0.5 from the lower limit and adding 0.5 to the upper limit when limits are whole numbers. This is useful for continuous data 59.
  • Class mark (or midpoint): This is the value exactly in the middle of a class interval or class boundary 61.

📝 Example: For the class interval 1-5, the lower limit is 1 and the upper limit is 5. The class size is 5. The class boundaries are 0.5 and 5.5. The class mark is 3.

Here is a typical structure of a grouped frequency distribution table:

ScoreClass BoundaryClass MarkFrequency (f)
1-50.5-5.533
6-105.5-10.582
11-1510.5-15.51311
16-2015.5-20.5181
21-2520.5-25.52320
26-3025.5-30.5288
31-3530.5-35.5335

43 49 58 60

3.2 Measures of central tendency for grouped data

Organizing data helps in calculating measures of central tendency, which describe the center of a dataset.

  • Mean: The average of all values. It is calculated by summing all values and dividing by the total count. Extreme values can significantly affect the mean.
  • Median: The centermost value in a dataset when arranged in order. It represents the middle position.
  • Mode: The value that appears most frequently in the dataset.

🔑 Important: Grouped frequency tables allow us to estimate these measures even without individual scores 44.

🔑 Important: The mean uses all data points, the median marks the middle, and the mode identifies the most common value 45.

4. Frequency distribution tables and measures for grouped data (part 2)

4.1 Calculating the mean for grouped data

The mean for grouped data is calculated by summing the products of each class mark and its frequency, then dividing by the total number of observations.

  • Class mark (xx): The midpoint of a class interval. It is calculated as lower limit+upper limit2\frac{\text{lower limit} + \text{upper limit}}{2}.
  • Frequency (ff): The number of observations within a class interval.
  • fxfx: The product of the class mark and its frequency.

The formula for the mean (xˉ\bar{x}) of grouped data is: xˉ=∑fxN\bar{x} = \frac{\sum fx}{N} where NN is the total frequency (∑f\sum f).

📝 Example: For a score of 1-5, the class mark is 3. If its frequency is 3, then fx=3×3=9fx = 3 \times 3 = 9.

Mean calculation example:

ScoreClass BoundaryClass Mark (xx)Frequency (ff)fxfx
1-50.5-5.5339
6-105.5-10.58216
11-1510.5-15.51311134
16-2015.5-20.518118
21-2520.5-25.52320460
26-3025.5-30.5288224
31-3530.5-35.5335165

Mean: xˉ=102650=20.52\bar{x} = \frac{1026}{50} = 20.52 64. Note: The example on page 64 shows xˉ=20.7\bar{x}=20.7, likely due to rounding or a slight data difference.

4.2 Calculating the median for grouped data

The median is the middle value in a dataset. For grouped data, it's found using class boundaries and cumulative frequencies.

  • Cumulative Frequency (cfcf): The sum of frequencies for all class intervals up to and including the current class.
  • Median Class: The class interval containing the median. It is identified by finding the class where the cumulative frequency first equals or exceeds N/2N/2.

The formula for the median is: Median=L+(N/2−CFf)×w\text{Median} = L + \left( \frac{N/2 - CF}{f} \right) \times w where:

  • LL is the lower class boundary of the median class.
  • NN is the total frequency.
  • CFCF is the cumulative frequency of the class preceding the median class.
  • ff is the frequency of the median class.
  • ww is the class width.

🔑 Important: The median class is where the cumulative frequency first meets or passes N/2N/2 68.

Median calculation example:

ScoreFrequency (ff)Cumulative Frequency (cfcf)
1-533
6-1025
11-151116
16-20117
21-252037
26-30845
31-35550

Here, N=50N = 50, so N/2=25N/2 = 25. The median class is 21-25 because its cfcf is the first to exceed 25 37.

  • L=20.5L = 20.5 (lower class boundary of 21-25)
  • CF=17CF = 17 (cumulative frequency of the class before 21-25)
  • f=20f = 20 (frequency of the median class)
  • w=5w = 5 (class width)

Median =20.5+(25−1720)×5=20.5+(820)×5=20.5+2=22.5= 20.5 + \left( \frac{25 - 17}{20} \right) \times 5 = 20.5 + \left( \frac{8}{20} \right) \times 5 = 20.5 + 2 = 22.5 73.

4.3 Calculating the mode for grouped data

The mode is the value that occurs most frequently. For grouped data, it's found within the modal class, which has the highest frequency.

  • Modal Class: The class interval with the highest frequency.

The formula for the mode is: Mode=L+(d1d1+d2)×w\text{Mode} = L + \left( \frac{d_1}{d_1 + d_2} \right) \times w where:

  • LL is the lower class boundary of the modal class.
  • d1d_1 is the difference between the frequency of the modal class and the frequency of the class above it.
  • d2d_2 is the difference between the frequency of the modal class and the frequency of the class below it.
  • ww is the class width.

🔑 Important: A distribution can be unimodal (one mode), bimodal (two modes), or multimodal (many modes) 74.

Mode calculation example:

ScoreFrequency (ff)
1-53
6-102
11-1511
16-201
21-2520
26-308
31-355
Total50

The modal class is 21-25, as it has the highest frequency 20.

  • L=20.5L = 20.5 (lower class boundary of 21-25)
  • d1=20−8=12d_1 = 20 - 8 = 12 (frequency of modal class minus frequency of class below)
  • d2=20−1=19d_2 = 20 - 1 = 19 (frequency of modal class minus frequency of class above)
  • w=5w = 5 (class width)

Mode =20.5+(1212+19)×5=20.5+(1231)×5≈20.5+1.94=22.44= 20.5 + \left( \frac{12}{12 + 19} \right) \times 5 = 20.5 + \left( \frac{12}{31} \right) \times 5 \approx 20.5 + 1.94 = 22.44 77.

4.4 Characteristics and comparison of mean, median, and mode

MeasureProsConsAppropriateness
Mean- Highly reliable and representative.
- Unaffected by extreme values (Note: This is incorrect; means are affected by extremes).
- Appropriate for interval/ratio data.
- Easily influenced by extremely high or low scores.
- May not be representative if data is skewed.
Interval and ratio scales
Median- Not easily affected by extreme values.
- Has only one value to describe data.
- Appropriate for interval scales.
- Not always representative of the entire dataset.
- Less sensitive to distribution shape than mean.
Interval scales
Mode- Has only one single value.
- Easy to compute.
- Appropriate for nominal scales.
- Non-uniqueness (can have multiple modes).
- Not always reliable or representative.
Nominal scales

🔑 Important: The mean is best for symmetrical data, the median for skewed data, and the mode for categorical data.

📝 Example: For weights of members in a sport club, calculate the mean, median, and mode.

Masses (kg)Frequency (ff)fxfxcfcf
40-4962946
50-59844014
60-691278026
70-7914109240
80-89759547
90-99327050
Total503371

Mean =337150=67.42= \frac{3371}{50} = 67.42 kg.

Median class is where N/2=50/2=25N/2 = 50/2 = 25. This is the 60-69 class (cf=26cf=26). Median =59.5+(25−1412)×10=59.5+1112×10≈59.5+9.17=68.67= 59.5 + \left(\frac{25-14}{12}\right) \times 10 = 59.5 + \frac{11}{12} \times 10 \approx 59.5 + 9.17 = 68.67 kg.

Modal class is 70-79 (f=14f=14). Mode =69.5+(14−1214−12+14−7)×10=69.5+(22+7)×10=69.5+29×10≈69.5+2.22=71.72= 69.5 + \left(\frac{14-12}{14-12 + 14-7}\right) \times 10 = 69.5 + \left(\frac{2}{2+7}\right) \times 10 = 69.5 + \frac{2}{9} \times 10 \approx 69.5 + 2.22 = 71.72 kg 80 81.

🔑 Important: For skewed data, the median is often a better measure of central tendency than the mean because it is not affected by outliers 78.

5. Frequency distribution tables and measures for grouped data (part 3)

5.1 Constructing a frequency distribution table for grouped data

To organize raw data into a frequency distribution table, follow these steps:

  • Determine the range: Find the difference between the highest and lowest values in the dataset.
  • Range = Highest Value - Lowest Value 83.
  • Decide the class interval: Choose the number of intervals needed to cover the data range. The goal is to have a manageable number of classes 84.
  • Compute the class size: Divide the range by the chosen class interval. Round up to the nearest whole number if necessary. This determines the width of each class 85.
  • Construct the table: Create columns for class intervals, tally marks, and frequencies 86.
  • Complete the table: Fill in the remaining columns, such as lower and upper class limits, class boundaries, and cumulative frequencies.

📝 Example: For data with a range of 38 and a desired class interval of 6, the class size would be calculated.

Here’s an example of a completed frequency distribution table:

Class SizeTallyFrequency
12-1866
19-2566
26-3288
33-3955
40-4633
47-5322

Frequency distribution tables organize data into classes. Each class has specific components:

  • Class interval: The range of values within a class. For example, 12-18 represents values from 12 up to and including 18.
  • Class limits: The smallest and largest values in a class. These are the numbers that define the boundaries of a class.
  • Class boundaries: These are the midpoints between the upper limit of one class and the lower limit of the next class. They ensure that data points do not fall on the boundary between two classes.
  • To find the class boundary, subtract 0.5 from the lower class limit and add 0.5 to the upper class limit.
  • Class mark (or midpoint): The average of the lower and upper class limits. This value represents the center of the class interval.
  • Class Mark = (Lower Class Limit + Upper Class Limit) / 2.
  • Frequency: The number of data points that fall within a specific class interval.
  • Cumulative frequency: The sum of frequencies for a given class and all preceding classes. It shows the total number of data points up to the upper boundary of that class.

Here is a table showing these components:

Class SizeLower Class LimitUpper Class LimitLower Class BoundaryUpper Class BoundaryClass MarkFrequencyCumulative Frequency
12-18121811.518.51566
19-25192518.525.522612
26-32263225.532.529820
33-39333932.539.536525
40-46404639.546.543328
47-53475346.553.550230

5.3 Calculating measures of central tendency for grouped data

Measures of central tendency describe the center of a dataset. For grouped data, these are calculated using formulas that incorporate class frequencies and marks.

5.3.1 Calculating the mean for grouped data

The mean for grouped data is calculated by summing the products of each class mark and its frequency, then dividing by the total number of observations.

  • Mean formula: xˉ=∑(f⋅x)n\bar{x} = \frac{\sum (f \cdot x)}{n} Where:
  • xˉ\bar{x} is the mean.
  • ff is the frequency of each class.
  • xx is the class mark (midpoint) of each class.
  • nn is the total number of observations (sum of all frequencies).

To calculate the mean:

  1. Find the class mark for each class.
  2. Multiply each class mark by its corresponding frequency.
  3. Sum these products.
  4. Divide the sum by the total frequency (nn).

📝 Example: If the sum of (f⋅x)(f \cdot x) is 1000 and nn is 30, the mean is 1000/30≈33.331000 / 30 \approx 33.33.

5.3.2 Calculating the median for grouped data

The median is the value that divides the distribution into two equal halves. For grouped data, it is found within a specific class interval.

  • Median formula: Median=L+(n2−CFpfm)⋅w\text{Median} = L + \left( \frac{\frac{n}{2} - CF_p}{f_m} \right) \cdot w Where:
  • LL is the lower class boundary of the median class.
  • nn is the total number of observations.
  • CFpCF_p is the cumulative frequency of the class preceding the median class.
  • fmf_m is the frequency of the median class.
  • ww is the class width (size) of the median class.

To find the median:

  1. Determine the median class by finding the class containing the n2\frac{n}{2}-th observation.
  2. Identify LL, CFpCF_p, fmf_m, and ww for this median class.
  3. Substitute these values into the formula.

🔑 Important: The median class is the first class whose cumulative frequency is greater than or equal to n/2n/2.

5.3.3 Calculating the mode for grouped data

The mode is the value that appears most frequently in the dataset. For grouped data, it is estimated using the modal class.

  • Mode formula: Mode=L+(fm−fp2fm−fp−fs)⋅w\text{Mode} = L + \left( \frac{f_m - f_{p}}{2f_m - f_{p} - f_{s}} \right) \cdot w Where:
  • LL is the lower class boundary of the modal class.
  • fmf_m is the frequency of the modal class (the class with the highest frequency).
  • fpf_{p} is the frequency of the class preceding the modal class.
  • fsf_{s} is the frequency of the class succeeding the modal class.
  • ww is the class width (size) of the modal class 87.

To find the mode:

  1. Identify the modal class, which is the class with the highest frequency.
  2. Determine LL, fmf_m, fpf_{p}, fsf_{s}, and ww for this modal class.
  3. Plug these values into the formula.

🔑 Important: The mode formula estimates the peak of the distribution within the modal class.

🔑 Important: For grouped data, the mean, median, and mode may not be identical but provide approximations of the central tendency.

6. Measures of variability: variance and standard deviation

6.1 Introduction to variability

Measures of variability describe how spread out a set of data is. They show the dispersion of scores around the central value.

Understanding variability helps assess the consistency of data.

6.2 Variance

Variance is the average squared distance of data points from the mean. It quantifies how much the data points deviate from the average value.

A higher variance indicates greater spread in the data 95.

6.3 Standard deviation

The standard deviation is the square root of the variance. It is a more interpretable measure of dispersion because it is in the same units as the original data.

A low standard deviation means data points are clustered near the mean. A high standard deviation indicates data points are spread over a wider range 96.

6.3.1 Calculating variance and standard deviation

Calculating variance and standard deviation involves several steps:

  1. Find the mean of the dataset 98 106.
  2. Create a table to organize calculations 99 107.
  3. For each data point, calculate the difference between the data point and the mean (x−xˉx - \bar{x}) 100 108.
  4. Square each difference ((x−xˉ)2(x - \bar{x})^2).
  5. Sum the squared differences (∑(x−xˉ)2\sum (x - \bar{x})^2). This sum is often called the sum of squares.
  6. Calculate the variance: Divide the sum of squares by the number of data points (nn) for a population, or by (n−1n-1) for a sample. σ2=∑(x−xˉ)2n(population variance)\sigma^2 = \frac{\sum (x - \bar{x})^2}{n} \quad \text{(population variance)} s2=∑(x−xˉ)2n−1(sample variance)s^2 = \frac{\sum (x - \bar{x})^2}{n-1} \quad \text{(sample variance)}.
  7. Calculate the standard deviation: Take the square root of the variance. σ=σ2(population standard deviation)\sigma = \sqrt{\sigma^2} \quad \text{(population standard deviation)} s=s2(sample standard deviation)s = \sqrt{s^2} \quad \text{(sample standard deviation)} 104 105 111.

6.3.2 Interpreting variability

Different standard deviations indicate different levels of data consistency.

SectionMeanSum of Squared DifferencesVarianceStandard DeviationConsistencyGrade Range
Section A8757447.836.92Heterogeneous80-94
Section B87685.672.38Homogeneous85-89

92 97 101 109- A lower standard deviation signifies that the data points are clustered closely around the mean, indicating greater consistency.

  • A higher standard deviation suggests that the data points are more spread out from the mean, indicating less consistency or greater variability.

🔑 Important: When comparing datasets with the same mean, the one with the smaller standard deviation is considered more consistent.

📝 Example: If two classes have the same average test score, the class with a lower standard deviation has grades that are more similar among students. This means the students in that class are performing at a more uniform level.

🔑 Important: Including standard deviation or variance alongside the mean provides crucial context about data spread. Without it, the mean alone can be misleading about the typical performance or value within a dataset.

🔑 Important: Measures of variability are essential for understanding data dispersion, assessing consistency, and comparing the spread of different datasets 91 112 114.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also