Class 2. Part 1 Frequencies and visualisations
Table of contents
- Part 1 - Class 2. Descriptive, univariate Statistics: Frequencies and visualisations
- Descriptive statistics in this class:
- Visual presentation
- Example theory questions
1. Part 1 - Class 2. Descriptive, univariate Statistics: Frequencies and visualisations
1.1 Introduction to descriptive univariate statistics
Descriptive univariate statistics focus on understanding a single variable within a sample. The core question is how to describe this variable and its distribution across observations.
This involves examining how common certain characteristics or behaviors are within the collected data 3.
- Core question: How can we describe one variable in a sample 2?
- Focus: Understanding the distribution of one variable across sample observations.
- Application: Determining the prevalence of specific characteristics or behaviors in a sample 3.
1.2 Types of variables
Variables can be classified into two main types: categorical and metric. The type of variable dictates the statistical methods that can be meaningfully applied to it 7.
- Categorical variables: These variables have values that are categories, also known as qualitative variables.
- Examples include hair color, political party preference, or favorite television show.
- Metric variables: These variables have numerical values, also known as quantitative variables.
- Examples include net income, length, age, or the number of friends 7.
📝 Categorical variables have values that are categories, such as hair color (e.g., brown, blonde, black) or political party preference 7.
1.3 Measurement levels 10
The measurement level of a variable indicates what can be meaningfully stated about its values. There are four main levels: Nominal, Ordinal, Interval, and Ratio 8 9.
The survey collects data on various variables, including:
- AI use for studying: a binary variable (Yes/No).
- Field of study: a nominal categorical variable.
- AI use frequency: an ordinal categorical variable (Never, Sometimes, Often, Very often).
- AI use per week: a ratio metric variable (hours).
- Age: a ratio metric variable (years) 6.
| Level | Values are distinguishable | Natural order in values | Specific numerical distance between values | True zero point | Example |
|---|---|---|---|---|---|
| Nominal | ✓ | — | — | — | Field of study |
| Ordinal | ✓ | ✓ | — | — | Political interest |
| Interval | ✓ | ✓ | ✓ | — | Temperature °C |
| Ratio | ✓ | ✓ | ✓ | ✓ | Age |
10.
2. Descriptive statistics in this class:
2.1 Frequencies
Frequencies describe how often specific values or categories of a variable appear in a dataset. They can be presented as absolute counts or as relative proportions of the total.
Understanding frequencies is crucial for summarizing and interpreting data, forming the basis for more complex statistical analyses and visualizations 13.
2.2 Absolute frequency
Absolute frequency refers to the raw count of observations that fall into a particular category or have a specific value for a variable. It directly indicates how many times a value occurs in the dataset.
The sum of all absolute frequencies equals the total sample size, denoted by n 16 17.
The formula for the sample size (n) is the sum of the absolute frequencies (fi) for all distinct categories (m): n=∑i=1mfi=f1+f2+f3+⋯+fm 21.
For example, if a variable "Field of study" has categories Sociology, Political Science, and Communication Sciences, and their absolute frequencies are 320, 280, and 400 respectively, the total sample size is 320+280+400=1000 20.
- Absolute frequency example: In a survey of 1000 students, 320 study Sociology, 280 study Political Science, and 400 study Communication Sciences. The absolute frequency for Sociology is 320 20.
2.3 Relative frequency
Relative frequency expresses the absolute frequency of a category as a proportion or percentage of the total sample size. It provides a standardized measure of occurrence, making it easier to compare frequencies across datasets of different sizes.
The sum of all relative frequencies (proportions) is always 1, or 100% when expressed as a percentage 22.
The proportion (pi) for category i is calculated as: pi=nfi 22.
For instance, if Sociology has an absolute frequency of 320 out of a total of 1000 students, its relative frequency (proportion) is 320/1000=0.32, or 32% 26.
2.4 Frequency table 26 27
A frequency table systematically lists the possible values or categories of a variable along with their corresponding frequencies. It can display absolute frequencies, relative frequencies (proportions or percentages), or both.
For nominal variables, the order of categories is arbitrary, while for ordinal, interval, and ratio variables, the categories are typically ordered from lowest to highest 24 25.
| Field of study | Absolute frequency (fi) | Proportion (pi) | Percentage (%) |
|---|---|---|---|
| Sociology | 320 | 0.32 | 32% |
| Political Sciences | 280 | 0.28 | 28% |
| Communication Sciences | 400 | 0.40 | 40% |
| Total (n) | 1000 | 1 | 100% |
The table below shows the experience of discrimination and/or racism across various demographic groups, presenting percentages for 'At least one experience' and 'None' 27.
| Category | Total | None | At least one experience |
|---|---|---|---|
| Gender | 100% | 28% | 72% |
| Men | 100% | 31% | 69% |
| Women | 100% | 29% | 71% |
| Age (18–29 years) | 100% | 29% | 71% |
| Age (30–44 years) | 100% | 30% | 70% |
| Age (45–59 years) | 100% | 27% | 73% |
| Age (60 years and older) | 100% | 37% | 63% |
| Generation (G1) | 100% | 27% | 73% |
| Generation (G1.5) | 100% | 28% | 72% |
| Generation (G2) | 100% | 42% | 58% |
| Region (Brussels) | 100% | 33% | 67% |
| Region (Flanders) | 100% | 31% | 69% |
| Region (Wallonia) | 100% | 26% | 74% |
| Belgian nationality (Yes) | 100% | 32% | 68% |
| Belgian nationality (No) | 100% | 26% | 74% |
| Standard of living (Comfortable) | 100% | 37% | 63% |
| Standard of living (Sufficient) | 100% | 31% | 69% |
| Standard of living (Difficult) | 100% | 26% | 74% |
| Standard of living (Very difficult) | 100% | 20% | 80% |
| Total | 100% | 30% | 70% |
📝 The table shows that for "Standard of living (Very difficult)", 20% had "None" of the experiences of discrimination and/or racism, while 80% had "At least one experience" 27.
2.5 Cumulative frequency
Cumulative frequency indicates the total number of observations that have a value less than or equal to a specific category or value. This concept is meaningful only for ordinal or metric variables because it relies on an inherent order of values.
Cumulative frequencies can be absolute (total count) or relative (proportion or percentage) 28 31.
The absolute cumulative frequency for a category is the sum of its absolute frequency and the absolute frequencies of all preceding categories. Similarly, the relative cumulative frequency is the sum of its proportion and the proportions of all preceding categories 29 30.
- AI use: Absolute frequency (fi), Absolute cumulative frequency, Proportion (pi), Relative cumulative frequency, Percentage (%), Cumulative percentage
- Never: 80, 80, 0.08, 0.08, 8%, 8%
- Rarely: 170, 250, 0.17, 0.25, 17%, 25%
- Sometimes: 300, 550, 0.30, 0.55, 30%, 55%
- Often: 280, 830, 0.28, 0.83, 28%, 83%
- Very often: 170, 1000, 0.17, 1.00, 17%, 100%
- Total: 1000, 1000, 1.00, 1.00, 100%, 100% 30.
A cumulative frequency table is useful for understanding the distribution of ordinal or metric variables. For example, in a survey about concern over sanctions, the cumulative proportion of those "Very concerned" or "Rather concerned" is 0.22+0.19=0.41 32.
It is not meaningful to calculate cumulative frequencies for nominal variables because they lack an inherent order 33.
2.6 Ungrouped and grouped data 38 43
When a metric variable has many distinct values, presenting each one individually can lead to a loss of overview. In such cases, it is beneficial to group the values into class intervals.
This process simplifies the data, making it easier to interpret and visualize, though it may result in a loss of some detail 37.
When creating class intervals, two key rules apply:
- Exclusivity: Intervals should not overlap. For example, use "25-34" and "35-44," not "25-35" and "35-45." 39.
- Full-scale: All possible values must be covered by an interval. Open intervals can be used at the extremes (e.g., "Age -25" or "64+") 40.
The number and width of class intervals are determined by the researcher's judgment to balance overview and information loss 41.
The following table illustrates grouping the "Age" variable into broader categories 38.
| Age Group | Frequency | Percent | Valid Percent | Cumulative Percent |
|---|---|---|---|---|
| 18 or younger | 1735 | 4.3% | 4.3% | 4.3% |
| 19 - 45 | 15585 | 38.8% | 38.9% | 43.2% |
| 46 - 65 | 13664 | 34.0% | 34.1% | 77.3% |
| Older than 65 | 9102 | 22.7% | 22.7% | 100.0% |
Similarly, "Years of full-time education completed" can be grouped into fewer categories for clarity 43.
| Years of education | Frequency | Percent | Valid Percent | Cumulative Percent |
|---|---|---|---|---|
| 0-6 years | 1740 | 4.3% | 4.4% | 4.4% |
| 7-12 years | 18199 | 45.3% | 45.7% | 50.1% |
| 13 years or more | 19889 | 49.5% | 49.9% | 100.0% |
A good frequency table is clear, logical, complete, accurate, readable, and transparent, providing the source of the data 44.
2.7 Visual presentations
Visual presentations transform frequency data into graphical formats, making it easier to grasp patterns, trends, and distributions at a glance. Common types include bar graphs, pie charts, and histograms, each suited for different types of variables and data representations 12.
2.8 Bar graph
A bar graph is used to display the frequencies of categorical data, where each bar represents a distinct category. The height or length of the bar is proportional to the frequency of that category.
Bar graphs are suitable for nominal and ordinal variables 15.
The figure below shows the number of international migrants worldwide and their percentage of the global population from 1990 to 2024, illustrating trends over time using a bar graph 15 23.
15.
2.9 Pie chart
A pie chart represents the relative frequencies of categories as slices of a circle. Each slice's size is proportional to the percentage of the whole it represents.
Pie charts are effective for showing the composition of a whole and are best used with a small number of categories.
2.10 Histogram
A histogram is a graphical representation of the distribution of numerical data, specifically for grouped data. It uses adjacent bars (bins or class intervals) where the width of each bar represents the range of the interval, and the height represents the frequency of data points falling within that interval.
Histograms are ideal for visualizing the shape of a distribution for metric variables 12.
3. Visual presentation
3.1 Bar graphs and pie charts
Bar graphs and pie charts are visual tools used to display the distribution of a variable. A bar graph uses rectangular bars, where the height of each bar represents the absolute or relative frequency of a category, making it ideal for comparing different categories.
A pie chart divides a circle into slices, with each slice's size indicating the relative frequency of a category, best suited for showing parts of a whole. Both charts offer a quick visual overview of data distribution 46.
The sequence of categories in bar graphs and pie charts for ordinal variables should follow the variable's natural order 51.
A bar graph can effectively display the frequency distribution of nominal variables. For instance, a fictitious example shows the distribution of fields of study among 100 individuals, with Sociology being the most frequent, followed by Political Sciences and Communication Sciences 47.

Bar graphs are also used for comparing distributions between different groups. A comparison of job distributions by major occupational groups between the general population in Belgium and the population of Sub-Saharan African origin reveals differences in representation within categories like Professionals and Service and Sales Workers 48.

Another application of bar graphs is illustrating the distribution of respondents by their main reason for choosing a country as a destination. In Belgium, family and friends are the most common reason, followed by studies and other factors 49.

Bar graphs can also compare the standard of living between different populations. For example, a comparison between the general population and the population of Sub-Saharan African origin in Belgium shows that the general population reports a higher percentage of comfortable living with their current income, while the Sub-Saharan African origin population reports a higher percentage of their income being sufficient 50.

Bar graphs can represent ordinal variables, such as smoking behavior. The frequency of different smoking behaviors, including daily smoking, occasional smoking, and never having smoked, can be visualized using absolute frequencies 52.

Relative frequencies of smoking behaviors can also be displayed in a bar graph, providing a proportional view of smoking habits 53.

For metric variables, bar graphs are used after grouping the data into categories. For instance, years of full-time education completed can be grouped into categories like 0-6 years, 7-12 years, and 13 years or more, with percentages shown for each group 55 56.
A metric variable can also be grouped into more detailed categories, such as 0-6 years, 7-9 years, 10-12 years, 13-15 years, 16-18 years, and 19 years or more, to show finer distinctions in educational attainment 56.
Bar graphs can also illustrate the number of life domains affected by experiences like racism or discrimination. For example, data might show the percentage of respondents affected in 1, 2, 3, 4, 5, or 6-13 domains 54.
📝 A bar graph shows that among 100 individuals, Sociology is the most frequent field of study, followed by Political Sciences and Communication Sciences 47.
3.2 Histograms
A histogram is a graphical representation used for numerical (continuous) data. It features rectangular bars drawn over intervals of numerical values, where the bars touch each other, signifying the continuous nature of the data.
The height of each bar indicates the absolute or relative frequency of values within that interval. Histograms are primarily used to visualize the shape and distribution of numerical data, helping to identify common values, skewness, and potential outliers 57.
Histograms differ from bar charts in their application: histograms are for continuous data where bars touch, showing distribution, while bar charts are for categorical data with gaps between bars, used for comparison 58.
The following table outlines the suitability of different chart types for various variable types and frequency measures 59:
| Variable Type | Metric | Categorical |
|---|---|---|
| Ratio | X | — |
| Interval | X | — |
| Ordinal | X | X |
| Nominal | — | X |
| Absolute frequency | X | X |
| Relative frequency | X | X |
| Absolute cumulative frequency | X | X |
| Relative cumulative frequency | X | X |
| Frequency table | X | X |
| Bar graph | X | X |
| Pie chart | — | X |
| Histogram | X | — |
3.3 Creating effective charts
A good chart is characterized by several key elements that ensure clarity and accurate representation of data 60.
| Feature | Description |
|---|---|
| Clear title | Indicates what the chart displays. |
| Clearly labelled axes | Specifies what is being measured and its units. |
| Meaningful category/value labels | Avoids the need for the reader to decode codes. |
| Appropriate scale | Ensures axes represent data honestly. |
| Logical order | Follows the natural order for ordinal variables and numerical values. |
| Appropriate graph type | Matches the variable type and the chart's purpose. |
| Source | Indicates the origin of the data. |
| Readable | Minimizes unnecessary decoration, 3D effects, and excessive decimals. |
Examples of visually presented data include charts with labeled axes and data points, such as those showing distributions across groups A, B, and C, or data points plotted against groups A through E 61 62 63 64.
3.4 Exercises and workshops
Exercises related to visual presentation are available across several pages, covering various aspects of bar graphs and other data visualization techniques 65.
A basic math test is available online to reinforce foundational concepts relevant to data analysis 66.
A voluntary workshop on Basic Mathematics is scheduled for Wednesday, October 7th, 2026, from 10:30 to 12:00 in room D.3.0 67.
4. Example theory questions
4.1 Linear regression residuals
The residual in a linear regression represents the discrepancy between an observed data point and the value predicted by the regression model. It quantifies the error in the prediction for a specific observation.
- Residual: the difference between the observed value of Y and the predicted value of Y 68.
4.2 Regression equation interpretation
This section addresses questions about interpreting a linear regression equation, specifically relating body height to predicted body weight.
The regression equation is given as y^=−93.138+0.966x, where y^ is the predicted body weight and x is the body height.

- For a person with a body height of 180cm, the predicted body weight is calculated using the equation.
- For every person with a body height of 150cm, the estimated weight will be calculated using the equation.
- The correlation coefficient between the dependent and independent variable is discussed in relation to the intercept 69.
📝 For a person with a body height of 180cm, the predicted body weight is 80.742 kg, calculated using the regression equation y^=−93.138+0.966x 69.
4.3 Statistical concepts in regression
This section covers common statistical concepts related to regression analysis, such as R-squared and correlation coefficients.
- R²: This value is never negative.
- R²: It can be defined as the proportion of explained variability of the dependent variable by the independent variable in the regression model.
- Correlation coefficient: This expresses only the strength of the association, not its direction.
- Intercept: In a regression equation, the intercept is equal to the predicted value of Y if the value of X is 0 70.
© 2026 Maeve. All rights reserved. This content is protected by copyright.