Theory
Data and descriptive statistics
Data collection, frequencies, reading graphs and histograms, mean, median, mode, and spread.
On this page
What is observed
Population, sample, and variable
A statistical survey collects information about a group of people or objects in order to describe it with numbers. Each person or object about which information is collected is a statistical unit.
The population is the set of all the units the survey is about. When only part of the population is observed, the units observed make up the sample. The variable, also called the character, is the property measured or recorded for each unit. Its values or categories are the results the variable can take. For the variable “means of transport”, the categories are, for example, bicycle, bus, and train.
The aim is to study how students enrolled at a school travel there in October. The population is made up of all enrolled students and the statistical unit is the student. For each observed student three variables are recorded:
- the usual means of transport;
- the number of changes;
- the travel time in minutes.
If times are measured every morning, the same student supplies more than one observation, one for each journey. Therefore, for the final count, it is specified whether it refers to journeys or to students.
Measurement and recording
Variables are of two kinds.
- A categorical (qualitative) variable has words or categories as its results. It is nominal if the categories have no order and ordinal if they do.
- A quantitative variable has numbers as its values. It is discrete if it takes separate values, such as the whole numbers obtained by counting. It is continuous if it can take any value in an interval, such as a duration or a length.
In the travel survey:
- usual means of transport is nominal categorical, because bicycle, bus, and train are categories with no order;
- a rating expressed as poor, adequate, or good is ordinal categorical, because poor comes before adequate and adequate comes before good;
- the number of changes is discrete quantitative, because it takes integer values: , , , …;
- the travel time is continuous quantitative, because it can take any positive value in an interval, even when the questionnaire records it to the nearest whole minute.
A time recorded as minutes, rounded to the nearest minute, corresponds to a duration from minutes, inclusive, to minutes, exclusive. Half minutes are rounded up, so becomes and becomes .
Warning
To record data more quickly, codes can be assigned to the means of transport: for bicycle, for bus, for train. These numbers are labels. Swapping codes and leaves the journeys unchanged, while the mean of the codes changes. With two journeys by bicycle and one by train the mean of the codes is
and with the codes swapped it becomes
The mean of the codes therefore depends on the coding chosen. The counts or proportions for each means of transport remain meaningful.
Frequencies and denominators
Absolute and relative frequencies
The absolute frequency of a value or category is the number of times it occurs in the data. It is written , where the index numbers the categories: for the first, for the second, and so on. The total is the number of all observations. The relative frequency is the absolute frequency divided by the total , that is, the part of the total that has that value or category.
The categories are disjoint, meaning that no observation belongs to two categories, and exhaustive, meaning that every observation belongs to some category. With these two conditions each observation is counted exactly once.
The symbol (capital sigma, a Greek letter) denotes a sum. The expression is read “sum of the ” and equals , up to the last category.
A percentage is obtained by calculating and appending the symbol . For example, corresponds to . If the total is zero, no relative frequency can be calculated, because division by zero is undefined.
The cumulative frequency of a value is the number of observations less than or equal to that value. It is obtained by adding the frequency of that value and the frequencies of all the values before it. Cumulative frequencies make sense when the values have an order. We can ask how many students read at most two books or how many ratings were at least adequate. Means of transport, on the other hand, have no order, so listing bicycles or buses first would arbitrarily change the cumulative counts.
Reading a frequency table
Twenty students recorded how many books they read in one month, so . The count row shows that students read exactly two books. Their relative frequency is . The cumulative row shows that students read at most two. The corresponding proportion is .
| Books read | ||||
|---|---|---|---|---|
| Absolute frequency | ||||
| Relative frequency | ||||
| Absolute cumulative frequency |
In the bar chart the horizontal axis shows the number of books, and the height of each bar is the number of students with that value.
The cumulative count grows by adding the count from the next column each time:
The cumulative count up to the value is written , so and . If we were given only the cumulative row, the frequency for would be the difference . The last cumulative count equals the total .
In the second graph the cumulative count stays constant between two observed values and rises with a jump at each of them. The height of the jump is the frequency of that value. The filled dot shows the value of the cumulative count at the jump, and the open dot the value the cumulative count had just before the jump.
Remark
Two groups of students are compared:
- in the first group students out of cycle to school;
- in the second group students out of cycle to school.
The second group has more cyclists, because . The proportions of cyclists, however, are
so the proportion is higher in the first group. To compare how common cycling is in two groups of different sizes, the proportions are therefore compared, each calculated on the total of its own group.
End of the free preview
The theory of this topic continues with 7 more sections
- Bar charts, pie charts, and scales
- Classes and histograms
- Arithmetic and weighted means
- Median and mode
- Spread and extremes
- How data are collected
- Keep studying
Full access also includes the other 5 worked examples of this topic and the solutions of the 14 practice exercises.
Unlock Maths 1st year · €29Read the first 3 worked examples in this chapter for free.