Sub topic 1
Reading and Sorting a Data Set
Prerequisites
This chapter assumes you can add, subtract, compare, and count whole numbers. You should also be comfortable reading a simple list or table and using basic arithmetic.
What a Data Set Contains
A data set is a collection of values recorded for one purpose. Each value is an observation. For example, the data set
8, 3, 5, 3, 10could represent five students' scores.
The number of observations is the count of values. This data set has five observations. Repeated values still count separately. The two 3s represent two observations, not one.
A data set can be written as a list or displayed in a table.
| Observation number | Value |
|---|---|
| 1 | 8 |
| 2 | 3 |
| 3 | 5 |
| 4 | 3 |
| 5 | 10 |
The observation number shows the original position. It does not necessarily show the value's rank or size.
Sort Before Using Positions
To sort a data set means to arrange its values in order. For most GRE statistics questions, use ascending order, from least to greatest:
3, 3, 5, 8, 10Sorting makes positions visible. The smallest value is first, the largest is last, and the values in between have predictable positions.
For the sorted list above:
- The count is 5.
- The minimum, or smallest value, is 3.
- The maximum, or largest value, is 10.
- The first position contains 3.
- The third position contains 5.
- The fifth position contains 10.
The original order does not change the values in the data set. It changes only how difficult it is to identify their positions.
Count Carefully
Many errors come from miscounting. Mark each value or number its position. For an odd count, there is one exact middle position. For an even count, there are two central positions. Later calculations use these positions, so counting is the first step.
Do not remove duplicates unless the question explicitly asks for distinct values. In the list
2, 2, 4, 7there are four observations. The repeated 2 affects the data set just as much as any other value.
A frequency table can make repetition easier to see. A frequency is the number of times a value occurs.
| Value | Frequency |
|---|---|
| 2 | 2 |
| 4 | 1 |
| 7 | 1 |
The frequencies add to 4, which confirms the total number of observations.
A Reliable Reading Process
Use this process whenever a question gives a list of values:
- Copy the values accurately.
- Count the observations.
- Sort the values if a position, middle, minimum, or maximum matters.
- Keep repeated values.
- Label positions when the list is long.
- Check that sorting did not change the count.
Python can sort and count a list, although you should still understand the process by hand.
data = [8, 3, 5, 3, 10]
ordered = sorted(data)
print(len(data)) # 5
print(ordered) # [3, 3, 5, 8, 10]
print(min(data)) # 3
print(max(data)) # 10Exercise
Sort 12, 5, 9, 5, 2 in ascending order. How many observations are there, and what are the minimum and maximum values?
Show answer
The sorted list is 2, 5, 5, 9, 12. There are 5 observations. The minimum is 2, and the maximum is 12.