85173 - Analysis Of Categorical Data

Academic Year 2026/2027

  • Teaching Mode: In-person learning (entirely or partially)
  • Campus: Bologna
  • Corso: Second cycle degree programme (LM) in Statistical Sciences (cod. 6810)

Learning outcomes

By the end of the course the student acquires the knowledge of descriptive and probabilistic methods for the analysis of contingency tables. The student is also able to choose the best method to perform multivariate analyses of a given categorical dataset and to interpret the obtained results.

Course contents

Introduction (2 hours)

  • Data matrices and contingency tables.
  • Descriptive and inferential techniques for the analysis of contingency tables.

Probabilistic methods (11 hours)

  • Probability structure for contingency tables.
  • Loglinear models for contingency tables:

- model specification;

- parameter estimation and interpretation;

- goodness-of-fit measures;

- model selection and comparison;

- diagnostics for checking models.

Descriptive methods (11 hours)

  • Geometric concepts in multidimensional space.
  • Matrix decompositions (spectral, singular value), low-rank matrix approximation and multidimensional analysis.
  • Theory and algebra of simple correspondence analysis.
  • Canonical correlation analysis of contingency tables.
  • Multiple correspondence analysis.

R functions and packages for the analysis of contingency tables (6 hours)

  • Syntax, usage and output of functions and packages available in the R environment for the analysis of contingency tables.
  • Examples of analyses based on the use of such functions and packages.

The reported number of hours is an estimate which takes account of both theoretical and practical lessons. Practical lessons focus on specific topics and are generally scheduled after the lessons devoted to the theoretical treatment of those topics. Specific information on the dates and times of the practical sessions to be held in the computer lab can be found in the degree programme’s timetable.

Readings/Bibliography

Compulsory readings

  • A. Agresti. Categorical data analysis, Second edition. Hoboken: John Wiley & Sons, 2002. Chapters 1-3, 8-9.
  • M. Greenacre. Theory and applications of correspondence analysis. London: Academic Press, 1984. Chapters 1-5.
  • O. Nenadic, M. Greenacre. Correspondence analysis in R, with two- and three-dimensional graphics: the ca package. Journal of Statistical Software. May 2007, Volume 20, Issue 3.
  • N. Redfern. Correspondence analysis of genre preferences in UK film audiences. Participations: Journal of audience and reception studies. 2012, Vol. 9, No. 2, pp. 45-55.
  • M. Greenacre. Correspondence analysis of the Spanish national health survey. Gaceta Sanitaria. 2002, Vol. 16, Issue 2, pp. 160-170.
  • Additional readings concerning topics not included in the recommended textbooks (to be announced during the lessons).

Additional materials useful for the preparation of the exam will be available on the platform "Virtual learning environment" of the University of Bologna (https://virtuale.unibo.it/) for all enrolled students:

  • slides containing a summary of the topics discussed by the teacher during the theoretical lessons;
  • a list of some exercises useful for the preparation of the exam;
  • materials useful for the practical lessons.

In order to have access to the platform "Virtual learning environment", students must use their username and password.

The teacher's oral explanations are completely missing in the slides, so such slides are not self-explanatory and only represent a tool to see which specific topics have been treated during the lessons.

For the preparation of the exam students are required to make use of all the compulsory readings.

Teaching methods

Weekly lectures
Lectures introduce the theoretical foundations of statistical methods. Throughout the course, the lecturer models how statisticians interpret statistical output, justify analytical decisions, and communicate conclusions using appropriate statistical terminology. Examples of the expected style of reasoning and communication (e.g. model answers, sample interpretations and discussion of statistical output) will also be provided and discussed so that students can become familiar with the level of explanation expected in the assessment.

Practical sessions
During the practical sessions, students apply statistical methods using R to analyse authentic datasets. Activities provide opportunities to interpret statistical output, compare alternative approaches, justify methodological choices, and discuss results using disciplinary language before these abilities are assessed in the examination. R scripts employed during these lessons are made available on the platform "Virtual learning environment" of the University of Bologna (https://virtuale.unibo.it/) for all enrolled students.

Independent study

Between classes, students are expected to consolidate their understanding by reviewing lecture materials, completing the recommended readings, revisiting the statistical analyses presented in class, and reflecting on the reasoning used to select, interpret and communicate statistical analyses. Students are also expected to consult the platform "Virtual learning environment" regularly to prepare for practical activities, consolidate key concepts, and practise the type of reasoning and disciplinary communication expected in the assessment.

Further useful information about teaching methods

Attending lectures is the first and easiest way to start learning and taking active part in all teaching activities is crucial. For this reason, although attending lessons is not mandatory, it is strongly recommended.

Assessment methods

The exam tests the qualifications of each student on both a theoretical and a practical level. For all students (regardless of the fact that they have attended lectures or not), the exam is written, lasts two hours and takes place in a room. It consists of a given number of exercises, each of which is composed of open-ended questions concerning either the theoretical aspects of the statistical methods or the ability of using methods for data analysis and interpreting results. These latter questions require solving numerical exercises. Consulting textbooks, notes or electronic devices during the written exam is not allowed. A pocket calculator is necessary. The maximum mark for each exercise is fixed in advance and is visible by the student who takes the exam. The sum of the marks for all exercises is 32. The overall final grade is given by the sum of the marks in the exercises, which is expressed on a scale of 30. If such a sum results in 31 or 32 the overall final grade will be 30/30 cum laude. The minimum passing grade is 18/30. Marks are given on the basis of the completeness, accuracy and appropriateness of the student's responses.

Further useful information about the exams
  • In accordance with the degree programme regulations, there are three examination sessions per academic year. They are scheduled as follows: the first session at the end of the teaching term, the second session in January, and the third session in late August/early September. The specific dates for these sessions are made available at the start of the academic year and can be viewed on the Almaesami platform.
  • In order to take the exam, students are required to put their names down for the exam through Almaesami platform.
  • Exams can only be taken in the official exam sessions.
  • An identity card (or the UNIBO student card) is required to take part in the exam.
  • During the exam, students are not allowed to consult books or notes; students are also not permitted to use any electronic device (mobile phones, smart watches, smart glasses, electronic data storage devices, etc.). Students found with unauthorised materials are in breach of University regulations and they will not be allowed to finish the exam.
  • The use of AI during the examination is also prohibited. Any such use constitutes a breach of academic integrity.
  • Students who wish to withdraw from the exam must do so within the first 60 minutes of the exam.
  • Students who pass the exam but are not satisfied with their final grade are allowed to retake it at least once but no more than twice.

Teaching tools

Explanations are generally given by using the slides available on the platform "Virtual learning environment" of the University of Bologna (https://virtuale.unibo.it/) for all enrolled students.

As concerns the teaching methods of this course unit, all students who attend the planned in-presence practical activities in computer lab must also attend the Modules 1 and 2 of an online course for training on Health and Safety in study and research areas (https://www.unibo.it/en/services-and-opportunities/health-and-assistance/health-and-safety/online-course-on-health-and-safety-in-study-and-internship-areas). Please note that General training (Module 1) and specific training (Module 2) of this course are compulsory for all students who are involved in any activities which take place in IT laboratories and other work places that present specific risks.

Office hours

See the website of Gabriele Soffritti

SDGs

Quality education

This teaching activity contributes to the achievement of the Sustainable Development Goals of the UN 2030 Agenda.