• Advanced Courses in Life Sciences

    Header of Statistics at Transmitting Science

Online Course – 6th Edition

Introduction to Bayesian Inference in Practice

April 4th-8th, 2022


Please, SUBSCRIBE to our Newsletter if you want to receive information on new editions.

This course will be delivered live online

Online live sessions from Monday, April 4th to Friday, April 8th, from 13:00 to 17:00 (Madrid time zone).

Live sessions will be recorded. Recordings will be made available to participants for a limited period of time. However, attendance to the live sessions is required.

Introduction to Bayesian Inference in Practice

Course overview

Most researchers in life sciences are exposed in their research to a multitude of methods and algorithms to test hypotheses, infer parameters, explore empirical data sets, etc.

Bayesian methods have become standard practice in several fields, (e.g. phylogenetic inference, evolutionary (paleo)biology, genomics), yet understanding how these Bayesian machinery works are not always trivial.

This course is based on the assumption that the easiest way to understand the principles of Bayesian inference and the functioning of the main algorithms is to implement these methods yourself.

The instructor will outline the relevant concepts and basic theory, but the focus of the course will be to learn how to do Bayesian inference in practice. He will show how to implement the most common algorithms to estimate parameters based on posterior probabilities, such as Markov Chain Monte Carlo samplers, and how to build hierarchical models.

He will also touch upon hypothesis testing using Bayes factors and Bayesian variable selection.

The course will take a learn-by-doing approach, in which participants will implement their own MCMCs using R or Python (templates for both languages will be provided).

After completion of the course, the participants will have gained a better understanding of how the main Bayesian methods implemented in many programs used in biological research work. Participants will also learn how to model at least basic problems using Bayesian statistics and how to implement the necessary algorithms to solve them.

Participants are expected to have some knowledge of R or Python (each can choose their preferred language), but they will be guided “line-by-line” in writing their script. The aim is that, by the end of the week, each participant will have written their own MCMC – from scratch! Participants are encouraged to bring own datasets and questions and we will (try to) figure them out during the course and implement scripts to analyze them in a Bayesian framework.

Check the complete program here.


Basic knowledge of Python or R and Statistics. All participants must have a personal computer (Windows, Macintosh), with webcam if possible, and a good internet connection.




April 4th-8th, 2022

Schedule and Course length

Online live sessions from Monday to Friday 13:00 to 17:00 (Madrid time zone).

The rest of the time will be taught with recorded classes and assignments, to be done between the live sessions.

32.5 hours: 20 hours of online live lessons, plus 12.5 hours of assignments.

Live sessions will be recorded. However, attendance to the live sessions is required.

This course is equivalent to 2 ECTS (European Credit Transfer System) at the Life Science Zurich Graduate School.

The recognition of ECTS by other institutions depends on each university or school.




Places are limited to 18 participants and will be occupied by strict registration order.

Participants who have completed the course will receive a certificate at the end.

Daniele Silvestro instructor for Transmitting Science

Dr. Daniele Silvestro
University of Gothenburg

Tobias Andermann instructor for Transmitting Science

Tobias Andermann
University of Gothenburg

Haris Saslis coordinator for Transmitting Science

Dr. Haris Saslis
Transmitting Science

Soledad De Esteban-Trivigno Transmitting Science coordinator

Dr. Soledad De Esteban-Trivigno

Transmitting Science


  • Introduction to probabilistic models and Bayes theorem. We’ll learn:
    • How to calculate the likelihood of any dataset under a simple model
    • The Bayes principles (what is a prior? What is a posterior probability?)
  • Write an R (or Python) script to compute the likelihood of data under Normal and Gamma models. 3D plots of the likelihood surface.
  • Basic structure of Markov Chain Monte Carlo, the most popular algorithm in Bayesian analysis.
  • MCMC, how it works, how to implement it. Based on the likelihood functions written on Monday, implement an MCMC to fit normal and gamma distributions.
  • What is the difference between modeling a pattern and modeling a process? When should we prefer one or the other? (practical) Analysis of global temperature data (provided) to estimate the existence of any climatic trends.
  • Hypothesis testing using marginal likelihoods. (practical) How to interpret and summarize the results of an MCMC, how to assess if it worked.
  • Bayesian tricks to avoid model testing: Hierarchical modeling, shrinkage, and Bayesian variable selection.
  • Continue working on the MCMC script and with own data.
  • Alternative algorithms in Bayesian analyses: Gibbs sampling and Approximate Bayesian Computation (ABC). Basic principles of machine learning.
  • Finalize the MCMC script and (if applicable) plan the future development of the methods implemented for analysis of own data.


  • Course Fee
  • Early bird (until February 28th, 2022):
  • 535 €
    (428 € for Ambassador Institutions)
  • Regular (after February 28th, 2022):
  • 590 €
    (472 € for Ambassador Institutions)
  • Price is VAT included.
    After registration you will receive confirmation of your acceptance in the course. Payment is not required during registration.

You can check the list of Ambassador Institutions. If you want your institution to become a Transmitting Science Ambassador please contact us at communication@transmittingscience.com


Discounts are not cumulative and apply only on the Course Fee. We offer the possibility of paying in two instalments (contact courses@transmittingscience.com).

Former participants will have a 5 % discount on the Course Fee.

20 % discount on the Course Fee is offered for members of some organizations (Ambassador Institutions). If you want to apply to this discount please indicate it in the Registration form (proof will be asked later).

Unemployed scientists living in Spain may benefit from a 40 % discount on the Course Fee. If you would like to enquire about this discount, please contact the course coordinator. That would apply for a maximum of 2 places and they will be covered by strict registration order.