Algebra 1 (HS pathway)

Descriptive Statistics: Data Distributions and Two-Way Tables

Algebra 1

  • ✓By the end of this lesson students will be able to describe the shape, center, and spread of a data distribution.
  • ✓By the end of this lesson students will be able to construct and interpret two-way frequency tables.
  • ✓By the end of this lesson students will be able to calculate and interpret joint, marginal, and conditional relative frequencies from two-way tables.
  • ✓By the end of this lesson students will be able to identify possible associations between two categorical variables using two-way tables.

Key concepts

Data Distribution

A data distribution describes how data values are spread out and clustered. We analyze distributions by their shape, center, and spread. Common visual representations include dot plots, histograms, and box plots.

Shape of a Distribution

The shape describes the overall pattern of the data. Key shapes include:\n- **Symmetric**: The left and right sides of the distribution are approximate mirror images.\n- **Skewed Right (Positively Skewed)**: The tail of the distribution extends to the right, meaning there are more data values on the lower end and fewer, larger values pulling the mean to the right.\n- **Skewed Left (Negatively Skewed)**: The tail of the distribution extends to the left, meaning there are more data values on the higher end and fewer, smaller values pulling the mean to the left.\n- **Uniform**: All data values or intervals have roughly the same frequency, resulting in a flat shape.

Center of a Distribution

The center describes a typical or central value of the data.\n- **Mean**: The arithmetic average of all data values. It is sensitive to outliers and skewness.\n Formula: Sum of all values / Number of values.\n- **Median**: The middle value when the data is ordered from least to greatest. If there's an even number of data points, it's the average of the two middle values. It is resistant to outliers and skewness, making it a better measure of center for skewed distributions.

Mean = (Σx) / n
Spread of a Distribution

The spread (or variability) describes how much the data values vary from each other.\n- **Range**: The difference between the maximum and minimum values in the dataset. It is simple but highly affected by outliers.\n Formula: Maximum value - Minimum value.\n- **Interquartile Range (IQR)**: The range of the middle 50% of the data. It is the difference between the third quartile (Q3) and the first quartile (Q1). It is resistant to outliers and is a good measure of spread for skewed distributions.\n Formula: IQR = Q3 - Q1.

Range = Max - Min; IQR = Q3 - Q1
Two-Way Frequency Table

A two-way frequency table (or contingency table) displays the frequencies of two categorical variables. It shows how many observations fall into each combination of categories for the two variables.

Joint Frequencies

The entries in the body of a two-way table that represent the count of observations sharing two specific characteristics (one from each variable).

Marginal Frequencies

The totals in the margins (rows and columns) of a two-way table. They represent the total count for each category of a single variable, ignoring the other variable.

Relative Frequencies

Frequencies expressed as proportions or percentages of a total. They help compare distributions across different sample sizes.\n- **Joint Relative Frequency**: The ratio of a joint frequency to the grand total of all observations. It tells you the proportion of the total sample that has both characteristics.\n Formula: Joint Frequency / Grand Total.\n- **Marginal Relative Frequency**: The ratio of a marginal frequency to the grand total of all observations. It tells you the proportion of the total sample that has a specific characteristic of one variable.\n Formula: Marginal Frequency / Grand Total.\n- **Conditional Relative Frequency**: The ratio of a joint frequency to a marginal frequency. It tells you the proportion of observations with a specific characteristic GIVEN that they also have another specific characteristic. The 'condition' defines the denominator.

Joint Relative Freq = Joint Freq / Grand Total; Marginal Relative Freq = Marginal Freq / Grand Total; Conditional Relative Freq = Joint Freq / Marginal Freq of Condition

Key facts to remember

  • 1Data distributions are described by their shape (symmetric, skewed, uniform), center (mean, median), and spread (range, IQR).
  • 2The mean is sensitive to outliers and skewness, while the median is resistant.
  • 3For symmetric distributions, the mean and median are close; for skewed distributions, the mean is pulled towards the tail.
  • 4A two-way frequency table displays the counts of two categorical variables.
  • 5Joint frequencies are counts within the body of the table, representing the intersection of two categories.
  • 6Marginal frequencies are the row and column totals, representing the total counts for each category of a single variable.
  • 7Relative frequencies (joint, marginal, conditional) express frequencies as proportions or percentages of a total.
  • 8Conditional relative frequencies are used to examine associations between variables by comparing proportions within specific subgroups.

Worked examples

Example 1

A math teacher recorded the scores on a 10-point quiz for 20 students: 7, 8, 5, 9, 7, 10, 6, 8, 7, 9, 8, 6, 7, 8, 5, 9, 7, 8, 6, 7. Describe the shape, estimate the center, and discuss the spread of this data distribution.

I1. **Order the data**: 5, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 10.
II2. **Visualize (mentally or with a quick sketch like a dot plot)**: Notice that the scores 7 and 8 appear most frequently, and the data tapers off symmetrically on both sides.
III3. **Describe the Shape**: The distribution appears roughly symmetric and unimodal (one peak).
IV4. **Estimate the Center (Median)**: Since there are 20 data points (an even number), the median is the average of the 10th and 11th values. Both are 7. So, Median = (7 + 7) / 2 = 7.
V5. **Estimate the Center (Mean)**: Sum of all values = 5+5+6+6+6+7+7+7+7+7+7+8+8+8+8+8+9+9+9+10 = 146. Number of values = 20. Mean = 146 / 20 = 7.3. The mean and median are close, supporting the symmetric shape.
VI6. **Discuss the Spread (Range)**: Maximum value = 10, Minimum value = 5. Range = 10 - 5 = 5.
VII7. **Discuss the Spread (IQR)**: Q1 (25th percentile) is the median of the lower half (first 10 values: 5, 5, 6, 6, 6, 7, 7, 7, 7, 7). Q1 = (6 + 7) / 2 = 6.5. Q3 (75th percentile) is the median of the upper half (last 10 values: 7, 8, 8, 8, 8, 9, 9, 9, 10). Q3 = (8 + 8) / 2 = 8. IQR = Q3 - Q1 = 8 - 6.5 = 1.5.

Answer

The data distribution of quiz scores is roughly symmetric. The center (median) is 7, and the mean is 7.3. The spread is relatively small, with a range of 5 points and an interquartile range (IQR) of 1.5 points, indicating that the middle 50% of scores are tightly clustered.

For symmetric distributions, the mean and median are usually very close. For skewed distributions, the median is generally a better measure of center.

Example 2

A survey asked 150 high school students about their preferred method of transportation to school: Car, Bus, or Walk. The results are summarized below:\n- 90 students are Freshmen or Sophomores (underclassmen).\n- 60 students are Juniors or Seniors (upperclassmen).\n- 40 underclassmen prefer Car.\n- 30 underclassmen prefer Bus.\n- 20 underclassmen prefer Walk.\n- 25 upperclassmen prefer Car.\n- 15 upperclassmen prefer Bus.\n- 20 upperclassmen prefer Walk.\n\nConstruct a two-way frequency table and then calculate the joint and marginal relative frequencies.

I1. **Construct the Two-Way Frequency Table (Counts)**:
II | Transportation | Car | Bus | Walk | Total |
III |----------------|-----|-----|------|-------|
IV | Underclassmen | 40 | 30 | 20 | 90 |
V | Upperclassmen | 25 | 15 | 20 | 60 |
VI | Total | 65 | 45 | 40 | 150 |
VII (Verify row and column totals match the grand total of 150.)
VIII2. **Calculate Joint Relative Frequencies (divide each cell by Grand Total = 150)**:
9 - Underclassmen & Car: 40 / 150 ≈ 0.267
10 - Underclassmen & Bus: 30 / 150 = 0.200
11 - Underclassmen & Walk: 20 / 150 ≈ 0.133
12 - Upperclassmen & Car: 25 / 150 ≈ 0.167
13 - Upperclassmen & Bus: 15 / 150 = 0.100
14 - Upperclassmen & Walk: 20 / 150 ≈ 0.133
153. **Calculate Marginal Relative Frequencies (divide each marginal total by Grand Total = 150)**:
16 - Total Underclassmen: 90 / 150 = 0.600
17 - Total Upperclassmen: 60 / 150 = 0.400
18 - Total Car: 65 / 150 ≈ 0.433
19 - Total Bus: 45 / 150 = 0.300
20 - Total Walk: 40 / 150 ≈ 0.267
214. **Construct the Two-Way Relative Frequency Table**:
22 | Transportation | Car | Bus | Walk | Total |
23 |----------------|-------|-------|-------|-------|
24 | Underclassmen | 0.267 | 0.200 | 0.133 | 0.600 |
25 | Upperclassmen | 0.167 | 0.100 | 0.133 | 0.400 |
26 | Total | 0.434 | 0.300 | 0.266 | 1.000 |
27 (Note: Totals may not be exactly 1.000 due to rounding.)

Answer

The two-way frequency table and relative frequency table are shown above. For example, the joint relative frequency of being an underclassman and preferring a car is approximately 0.267 (26.7%), and the marginal relative frequency of preferring a bus is 0.300 (30%).

Always ensure your relative frequencies sum to 1 (or 100%) for the grand total, and for row/column totals if calculated correctly, allowing for minor rounding differences.

Example 3

Using the two-way frequency table from the previous example (Problem 2):\n\n| Transportation | Car | Bus | Walk | Total |\n|----------------|-----|-----|------|-------|\n| Underclassmen | 40 | 30 | 20 | 90 |\n| Upperclassmen | 25 | 15 | 20 | 60 |\n| Total | 65 | 45 | 40 | 150 |\n\na) What is the conditional relative frequency that a student prefers to walk, GIVEN that they are an underclassman?\nb) What is the conditional relative frequency that a student is an upperclassman, GIVEN that they prefer a car?

Ia) **Conditional relative frequency of preferring to walk GIVEN underclassman**:
II 1. Identify the condition: The student is an underclassman. The denominator will be the total number of underclassmen, which is 90.
III 2. Identify the joint frequency: Underclassmen who prefer to walk, which is 20.
IV 3. Calculate: Conditional Relative Frequency = (Joint Frequency) / (Marginal Frequency of Condition) = 20 / 90 ≈ 0.222.
V 4. Interpretation: Approximately 22.2% of underclassmen prefer to walk to school.
VIb) **Conditional relative frequency of being an upperclassman GIVEN preferring a car**:
VII 1. Identify the condition: The student prefers a car. The denominator will be the total number of students who prefer a car, which is 65.
VIII 2. Identify the joint frequency: Upperclassmen who prefer a car, which is 25.
9 3. Calculate: Conditional Relative Frequency = (Joint Frequency) / (Marginal Frequency of Condition) = 25 / 65 ≈ 0.385.
10 4. Interpretation: Approximately 38.5% of students who prefer a car are upperclassmen.

Answer

a) The conditional relative frequency that a student prefers to walk, given they are an underclassman, is approximately 0.222 (or 22.2%).\nb) The conditional relative frequency that a student is an upperclassman, given they prefer a car, is approximately 0.385 (or 38.5%).

Pay close attention to the 'GIVEN that' part of the question. This specifies which marginal total becomes the denominator for your calculation.

Common mistakes

  • ✗Confusing 'skewed left' with data clustered on the left; skewed left means the tail is on the left.
  • ✗Incorrectly calculating the median for an even number of data points (forgetting to average the two middle values).
  • ✗Using the mean as the measure of center for highly skewed distributions when the median would be more appropriate.
  • ✗Confusing joint, marginal, and conditional relative frequencies, especially misidentifying the correct denominator for conditional frequencies.
  • ✗Failing to interpret the meaning of calculated frequencies in the context of the problem.

Exam tips

  • ★Always order data from least to greatest before finding the median or quartiles.
  • ★Clearly label all rows, columns, and totals when constructing two-way tables.
  • ★When calculating relative frequencies, double-check that your denominator is correct based on whether you need a joint, marginal, or conditional frequency.
  • ★Practice interpreting the meaning of each type of frequency in plain language, as this is often required in exam questions.

Ready to practise?

Try a problem on this topic

Snap a photo or type a question — get step-by-step working instantly.