Class 2. Part 1 Frequencies and visualisations

Table of contents

  1. Part 1 - Class 2. Descriptive, univariate Statistics: Frequencies and visualisations
  2. Descriptive statistics in this class:
  3. Visual presentation
  4. Example theory questions

1. Part 1 - Class 2. Descriptive, univariate Statistics: Frequencies and visualisations

1.1 Introduction to descriptive univariate statistics

Descriptive univariate statistics aim to summarize and describe the main characteristics of a single variable within a dataset. The core question is how to understand the distribution of a variable across the observations in a sample, essentially asking how common a certain characteristic or behavior is 2 3.

  • Descriptive statistics: Methods used to summarize and describe data from a sample.
  • Univariate statistics: Statistical methods that analyze one variable at a time 2.
  • Fictitious case: A survey of 1000 university students in Flanders investigates their use of generative AI and associated factors 5.

1.2 Types of variables

Variables can be classified based on the nature of their values, which dictates the appropriate statistical methods. Understanding variable types is crucial for accurate data analysis 7.

  • Categorical variables: Variables whose values are categories or labels, also known as qualitative variables.
  • Examples include hair color, political party preference, or favorite television show.
  • Metric variables: Variables that have numerical values, also known as quantitative variables.
  • Examples include net income, length, age, or the number of friends 7.

1.3 Levels of measurement 10

The level of measurement indicates what can be meaningfully said about the values of a variable, ranging from simple distinguishability to true zero points 9.

  • Nominal: The lowest level of measurement, where values are distinguishable categories without any inherent order.
  • Ordinal: This level allows for ordering of values, meaning categories can be ranked, but the distance between them is not necessarily uniform or quantifiable.
  • Interval: At this level, values have a natural order, and the specific numerical distance between them is meaningful. However, there is no true zero point.
  • Ratio: The highest level of measurement, possessing all properties of interval variables, including a true zero point, which allows for meaningful ratios between values 8 9.

This diagram compares different levels of measurement: Nominal, Ordinal, Interval, and Ratio, highlighting their characteristics.

LevelValues are distinguishableNatural order in valuesSpecific numerical distance between valuesTrue zero pointExample
Nominal✓———Field of study
Ordinal✓✓——Political interest
Interval✓✓✓—Temperature °C
Ratio✓✓✓✓Age

📝 The 'Field of study' variable, with categories like Sociology, Political Science, or Communication, is a nominal variable because the categories are distinguishable but have no inherent order 10.

1.4 Example variables from the AI use survey

The fictitious case study on generative AI use among university students involves several variables, each with specific types and measurement levels 6 11.

  • AI use for studying: A categorical variable with two possible values: Yes or No.
  • Field of study: A nominal categorical variable, with categories such as Sociology, Political Science, or Communication.
  • AI use frequency: An ordinal categorical variable, with ordered categories like Never, Sometimes, Often, or Very often.
  • AI use per week: A metric variable measuring hours, with values such as 0, 1.5, 4, or 10.
  • Age: A metric variable representing years, with values like 18, 19, 20, or 21 6.
Student IDAgeField of studyAI use for studyingAI use frequencyAI use per week
Student_118SociologyYesVery Often10
Student_218Political ScienceYesVery Often5
Student_319Political ScienceYesOften6
Student_420Political ScienceYesOften3
Student_518Political ScienceYesVery Often10
Student_621CommunicationYesOften3
Student_720CommunicationYesVery Often4
Student_820Political ScienceYesSometimes9
Student_921SociologyYesSometimes9
Student_1020Political ScienceNoNever0
Student_1119CommunicationNoNever0
Student_1219Political ScienceYesVery Often10
Student_1320SociologyNoNever0
Student_1418Political ScienceYesVery Often10
Student_1519CommunicationNoNever0
Student_1620SociologyYesOften6
Student_1721SociologyYesSometimes7
Student_1820Political ScienceYesOften8
Student_1919SociologyYesSometimes9
Student_2019Political ScienceYesOften8
Student_2119CommunicationYesVery Often8
Student_2219CommunicationYesVery Often8
Student_2318CommunicationNoNever0
Student_2418Political ScienceYesVery Often10
Student_2520Political ScienceNoNever0
Student_2621Political ScienceYesOften8
Student_2721Political ScienceNoNever0
Student_2821CommunicationYesVery Often10
Student_2920CommunicationYesOften4
Student_3020CommunicationYesVery Often10
Student_3118CommunicationYesOften6
Student_3218CommunicationYesVery Often10
Student_3319CommunicationYesVery Often10
Student_3420SociologyYesVery Often12

2. Descriptive statistics in this class:

2.1 Frequencies 26 30 38 43

Frequencies describe how often specific values or categories appear within a dataset. They can be presented as absolute counts or as proportions relative to the total number of observations.

Understanding frequencies is fundamental to summarizing and interpreting data.

  • Absolute frequency (fif_i): This is the raw count of observations that fall into a specific category or have a particular value for a variable. It directly indicates how many times a value occurs.

  • The total number of observations in a dataset, denoted by nn, is the sum of all absolute frequencies: n=∑i=1mfin = \sum_{i=1}^{m} f_i, where mm is the number of distinct values or categories 17.

  • For example, in a study of fields of study, if Sociology has an absolute frequency of 320, it means 320 respondents chose Sociology 16.

  • The sum of absolute frequencies for all categories equals the total sample size (nn) 20.

  • Relative frequency (pip_i): This represents the proportion of observations that fall into a specific category or have a particular value. It is calculated by dividing the absolute frequency (fif_i) by the total sample size (nn), so pi=finp_i = \frac{f_i}{n}.

  • Relative frequencies range from 0 to 1.

  • This proportion is often expressed as a percentage by multiplying by 100.

  • The sum of all relative frequencies across all categories must equal 1 22.

  • Frequency table: This is a structured way to present the frequency distribution of a variable. It lists the possible values or categories of a variable along with their corresponding frequencies.

  • For nominal variables, the order of categories in a frequency table is arbitrary.

  • For ordinal, interval, or ratio variables, categories are typically ordered from lower to higher values 25.

  • A complete frequency table often includes absolute frequencies, relative frequencies (proportions), and percentages 26.

Field of studyAbsolute frequency (fi)Proportion (pi)Percentage (%)
Sociology3200.3232%
Political Sciences2800.2828%
Communication4000.4040%
Total (n)10001100%
  • Cumulative frequency: This indicates the total number of observations that have a value up to and including a particular category. It is only meaningful for variables with an inherent order, such as ordinal or metric variables.
  • Absolute cumulative frequency: This is the sum of absolute frequencies for a category and all preceding categories 28.
  • Relative cumulative frequency: This is the sum of relative frequencies for a category and all preceding categories, representing the proportion of observations up to that point 29.
  • A cumulative frequency table lists categories along with their cumulative absolute and relative frequencies or percentages 31.
AI useAbsolute frequency (fi)Absolute cumulative frequencyProportion (pi)Relative cumulative frequencyCumulative percentage
Never80800.080.088%
Rarely1702500.170.2525%
Sometimes3005500.300.5555%
Often2808300.280.8383%
Very often17010000.171.00100%
Total100010001.001.00100%
  • Ungrouped vs. Grouped frequencies:
  • Ungrouped frequencies are used when a variable has a limited number of distinct values (e.g., number of children).
  • Grouped frequencies are necessary for metric variables with many values (e.g., age, income) to provide a clearer overview and avoid information overload 37.
  • When grouping values into class intervals, the intervals must be exclusive (non-overlapping) and cover the full range of data. 39 40.
  • The number and width of class intervals are determined by the researcher's judgment to balance overview and information loss 41.
Age GroupFrequencyPercentCumulative Percent
18 or younger17354.3%4.3%
19 - 451558538.9%43.2%
46 - 651366434.0%77.3%
Older than 65910222.7%100.0%
Years of full-time educationFrequencyPercentCumulative Percent
0-6 years17404.4%4.4%
7-12 years1819945.7%50.1%
13 years or more1988949.9%100.0%
  • Characteristics of a good frequency table: A good frequency table is clear, logical in its category ordering, complete (including totals and missing values), accurate, readable, and transparent with its source 44.

2.2 Visual presentations 27

Visual presentations transform frequency data into graphical formats, making it easier to understand patterns, trends, and distributions. Common types include bar graphs, pie charts, and histograms, each suited for different types of data and analytical purposes.

  • Bar graph: This is used to display frequencies for categorical data (nominal or ordinal variables). Each category is represented by a bar, with the height of the bar proportional to its frequency.
  • Bar graphs are effective for comparing frequencies across different categories.
  • They can show both the absolute number of observations and their proportion or percentage 15.

This bar chart displays the number of international migrants worldwide and their percentage of the global population from 1990 to 2024. 15.

This bar chart displays the number of international migrants worldwide and their percentage of the global population from 1990 to 2024. 23.

  • Pie chart: This is another visual representation for categorical data, where the entire circle represents the total frequency (100%). Each category is shown as a slice of the pie, with the size of the slice proportional to its relative frequency or percentage.
  • Pie charts are useful for illustrating the proportion of each category within the whole 27.
Experience of discriminationPercentageTotal (N)
None30%923
At least one experience70%923
  • Histogram: This is used to visualize the frequency distribution of continuous (metric) data. It consists of adjacent bars where the width of each bar represents a class interval, and the height represents the frequency within that interval.
  • Histograms are particularly useful for understanding the shape of a distribution, such as whether it is symmetric, skewed, or multimodal.
  • Unlike bar graphs, there are no gaps between the bars in a histogram, signifying the continuous nature of the data 38.

3. Visual presentation

3.1 Bar graph and pie chart

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 represents the frequency of a category, making it ideal for comparing 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 46.

  • Bar graph: A graph featuring a rectangular bar for each category, with the bar's height indicating the absolute or relative frequency of that category. Its primary goal is to compare different categories.
  • Pie chart: A circular graph divided into slices, where each slice's size represents the relative frequency of a category. This chart is effective for illustrating how different parts contribute to a whole.
  • Both chart types offer a visual overview of how data is distributed across a variable 46.
  • When using bar graphs or pie charts for ordinal variables, the sequence of categories should follow the variable's natural order 51.

3.2 Example of bar graph: nominal variable

This example illustrates a bar graph used for a nominal variable, specifically the field of study. The graph shows the frequency of respondents within different fields of study, such as Sociology, Political Sciences, and Communication Sciences 47.

This bar chart displays the frequency distribution of different fields of study.

📝 The horizontal bar chart compares the distribution of jobs by major occupational group between the general population in Belgium and the population of Sub-Saharan African origin 48.

3.3 Example of bar graph: occupational groups

This horizontal bar chart compares the distribution of jobs by major occupational group between the general population in Belgium and the population of Sub-Saharan African origin. It highlights differences in the representation of various professions 48.

This horizontal bar chart compares the distribution of jobs by major occupational group (ISCO level 1) between the general population in Belgium and the population of Sub-Saharan African origin.

3.4 Example of pie chart: reason for choosing Belgium

This pie chart illustrates the distribution of respondents based on their main reason for choosing Belgium as a destination country. It shows the proportion of individuals who moved for reasons such as family and friends, studies, or work 49.

This pie chart illustrates the distribution of respondents by their main reason for choosing Belgium as a destination country.

📝 This pie chart illustrates that 40% of respondents chose Belgium as their destination country due to family and friends 49.

3.5 Example of bar graph: standard of living

This bar chart compares the reported standard of living between the general population and the population of Sub-Saharan African origin. It visualizes how each group perceives their current income in terms of sufficiency and difficulty 50.

This bar chart compares the distribution of the standard of living between the general population and the population of Sub-Saharan African origin.

3.6 Example of bar graph: ordinal variable (smoking behavior)

This example demonstrates a bar graph for an ordinal variable, specifically smoking behavior. It presents the absolute frequencies of different smoking habits, from daily smoking to never having smoked 52.

This bar chart displays the frequency of different smoking behaviors among individuals.

This subsequent bar graph for the same ordinal variable, smoking behavior, displays the relative frequencies, showing the percentage distribution of each smoking habit 53.

This bar chart displays the relative frequencies of different cigarette smoking behaviors.

📝 A bar graph displays the absolute frequencies of smoking behaviors, showing that approximately 15,000 people smoke daily 52.

3.7 Example of bar graph: metric variable (domains affected by racism)

This bar graph displays the frequency distribution of respondents based on the number of life domains affected by racism or discrimination in the preceding five years. It shows the percentage of individuals who experienced such issues in one, two, three, or more domains 54.

3.8 Example of grouping a metric variable (years of education)

When dealing with metric variables like years of full-time education, it is often useful to group them into categories for clearer visualization. This can be done in different ways, such as grouping into three broad categories or six more detailed categories 55 56.

3.9 Histogram

A histogram is a graphical representation used for numerical, continuous data. It displays data using rectangular bars that touch each other, with the height of each bar representing the frequency of values within a specific interval.

Histograms are crucial for visualizing the shape and distribution of numerical data 57.

  • Histogram: A graph where rectangular bars represent intervals of numerical (continuous) values. The bars touch, signifying the continuous nature of the data. The height of each bar indicates the absolute or relative frequency of values within that interval. The primary goal is to show the shape or distribution of numerical data 57.
  • In contrast, bar charts are used for categorical data and have gaps between bars, while histograms are for continuous data and have touching bars 58.

3.10 Understanding histograms

Histograms help in understanding the distribution of numerical data, such as the heights of students in a class. They can reveal the most common height range, the spread of the data, and identify any skewness or outliers 58.

3.11 Variable types and frequency distributions

Different types of variables are suited for various frequency distributions and graphical representations. Metric variables, which include ratio and interval scales, can be represented using absolute frequency, relative frequency, absolute cumulative frequency, relative cumulative frequency, frequency tables, bar graphs, and histograms.

Ordinal variables, a type of categorical variable, can also use these representations except for histograms. Nominal variables, another type of categorical variable, can be represented using absolute frequency, relative frequency, frequency tables, bar graphs, and pie charts 59.

Variable TypeMetricOrdinalNominal
RatioX——
IntervalX——
Ordinal—X—
Nominal——X
Frequency DistributionMetricOrdinalNominal
Absolute frequencyXXX
Relative frequencyXXX
Absolute cumulative frequencyXX—
Relative cumulative frequencyXX—
Frequency TableBar GraphPie ChartHistogram
MetricXXX
OrdinalXX—
NominalXX—

3.12 Characteristics of a good chart

A well-designed chart effectively communicates data. Key elements include a clear title that states what the chart shows, and clearly labeled axes indicating what is being measured and in what units.

Meaningful labels for categories or values are essential to avoid reader confusion. The scale of the axes should represent the data honestly, and the order of categories, especially for ordinal variables and numerical values, should be logical.

Choosing the appropriate graph type that fits the variable and the purpose of the analysis is crucial. Including the source of the data adds credibility, and the chart should be readable, avoiding unnecessary decorations, 3D effects, or excessive decimals 60.

  • Clear title: Explains the chart's content.
  • Clearly labelled axes: Indicate the measurement and units.
  • Meaningful category/value labels: Ensure easy interpretation.
  • Appropriate scale: Represents data accurately and honestly.
  • Logical order: Especially important for ordinal variables and numerical values.
  • Appropriate graph type: Matches the variable and the analysis goal.
  • Source: Indicates the origin of the data.
  • Readable: Avoids clutter, 3D effects, and excessive decimals 60.

3.13 Exercises on visual presentation

The following exercises cover the concepts related to visual presentation of data 65:

  • Exercise 2a-d on p. 9
  • Exercise 3a-b on p. 10
  • Exercise 4a-b on p. 11
  • Exercise 5a-b on p. 12
  • Exercise 6a-d on p. 13-14
  • Exercise 7a-b on p. 15
  • Exercise 8a-b on p. 16

3.14 Basic math test and workshop

A basic math test is available at https://vraaghetaansimon.be/simonzegt 66.

A voluntary workshop on Basic Mathematics will be held on Wednesday, October 7th, 2026, from 10:30 to 12:00 in room D.3.0 67.

4. Example theory questions

4.1 Residual in linear regression

The residual in a linear regression represents the difference between the actual observed value of the dependent variable (Y) and the value predicted by the regression model. It quantifies the error or unexplained variation for a specific data point 68.

  • Observed value of Y: The actual data point recorded.
  • Predicted value of Y: The value of Y estimated by the regression equation for a given X 68.

📝 In a linear regression, the residual is the difference between the observed value of Y and the predicted value of Y 68.

4.2 Interpretation of regression coefficients

This section presents questions that test the understanding of how to interpret coefficients in a linear regression model. It focuses on predicting the dependent variable based on the independent variable and understanding the implications of the regression equation 69.

  • Predicted body weight: For a person with a body height of 180cm, the predicted body weight is 80.742 kg.
  • Estimated weight: Every person with a body height of 150cm will have an estimated weight of 51.762 kg.
  • Correlation coefficient direction: The correlation coefficient between the dependent and independent variable will be positive 69.

4.3 Properties of R-squared and correlation coefficient

This question assesses the knowledge of key statistical measures used in regression analysis, specifically R-squared (R2R^2) and the correlation coefficient. It requires identifying incorrect statements about their properties and interpretations 70.

  • R-squared property: The R2R^2 is never negative.
  • Correlation coefficient property: The correlation coefficient expresses only the strength of the association, not the direction.
  • R-squared definition: R2R^2 can be defined as the proportion of explained variability of the dependent variable by the independent variable in the regression model.
  • Intercept definition: The intercept in a regression equation 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.

See also