Theory
Descriptive statistics and bivariate data
From frequency tables to regression, with worked examples of interpreting, comparing and predicting.
Data, frequencies and percentages
1. Absolute and relative frequency
In a survey, each row represents a statistical unit, such as one student, and each column records a characteristic. The means of transport is a categorical variable. The number of journeys is discrete quantitative data because it is counted, while their duration is continuous quantitative data because it is measured.
For a value or category, the absolute frequency counts the observations in category . If every observation belongs to exactly one category and the categories cover all the data, the absolute frequencies add up to the total number of observations . When , the relative frequency and percentage frequency are given by
The denominator is the total for the group described by the table. Rounded percentages can add up to slightly more or less than .
Comparing groups of different sizes
In class A, out of students cycle to school. In class B, out of do. To compare how common cycling is, compare the two proportions.
Class B has one more cyclist, while the proportion is percentage points higher in class A. Across both classes, out of students cycle, which is . The combined denominator accounts for the different class sizes.
2. Cumulative frequencies
If the variable takes ordered values , the cumulative frequency at is the number of observations with a value at most . Add the frequencies from the first row up to and including the row for . Dividing by gives the proportion of observations at or below the threshold.
Reading a threshold from a table
The table summarises the number of absences recorded for students in one month.
| Absences | Absolute frequency | Cumulative frequency |
|---|---|---|
At most one absence was recorded for students, so the proportion is . Students with more than one absence form the complementary group, so students had two or three absences.
Cumulative frequencies on a step chart
In the absence table a threshold between and has the same cumulative frequency as threshold . The next observation has two absences and is counted only when the threshold reaches . At that point the chart rises from to , so the jump of size recovers the absolute frequency of two absences. At threshold the chart reaches and then stays constant because every student has been counted. For a discrete variable, the jumps therefore give the frequencies and the horizontal stretches show intervals of thresholds at which no new observation is counted.
Charts for values and intervals
Bars for categories and discrete values
A bar chart assigns one bar to each category or discrete value. The bars are separated because different categories occupy distinct positions. For a categorical variable without a natural order, the bars can be rearranged as long as each label stays with its frequency.
The chart shows the absences listed in the table. Comparing the bar heights gives the most common number of absences. The tallest bar corresponds to one absence.
Histogram and frequency density
When measurements are grouped into intervals of width , the rectangle for each class spans its entire interval. The proportion of observations in a class is proportional to the rectangle’s area. To make the areas equal to the absolute frequencies , use frequency density for the heights.
Relative frequencies can also be used in place of absolute frequencies. The total area is then . With the convention , a measurement equal to belongs to the following interval, so each measurement is counted once.
Intervals of different widths
Two duration intervals contain stops in and stops in , respectively. The first interval is minutes wide and the second is minutes wide.
The first rectangle is taller because it contains more stops per minute of interval width. The second rectangle has a greater area because the interval is wide enough to contain stops at its lower density.
End of the free preview
The theory of this topic continues with 8 more sections
- Means and weights
- Median, mode and quartiles
- Spread and units of measurement
- Changes of units and affine transformations
- Pairs, covariance and correlation
- Linear regression and residuals
- Interpreting the model
- Keep studying
Full access also includes the other 5 worked examples of this topic and the solutions of the 14 practice exercises.
Unlock Maths 3rd year · €29Read the first 3 worked examples in this chapter for free.