£400Registration Fee
Register Now- Overview
- Instructors
- Schedule
Course Description
This four-day workshop provides a comprehensive introduction to Bayesian data analysis and Bayesian multilevel modelling for researchers in psychology and the social sciences. The course teaches both theoretical foundations and practical implementation of Bayesian statistical inference using Stan via the brms package in R, applied throughout to the grouped, clustered, and repeated-measures data structures that are typical of social science research. Day 1 establishes conceptual foundations through Bayesian reasoning principles, Bayes’ rule in simple examples, and a complete analytical treatment of the Bernoulli model covering likelihood functions, prior distributions, posterior distributions, credible intervals, posterior predictive distributions, and Bayes factors. Day 2 introduces Markov Chain Monte Carlo (MCMC) methods, Stan, and brms via ordinary regression models, covering full MCMC sampling and its diagnostics in depth before turning to fast approximate algorithms as a complementary workflow tool, alongside prior and posterior predictive checks and model comparison using WAIC, LOO, and Bayes factors. Days 3 and 4 turn to the course’s central subject, Bayesian multilevel models: varying intercepts and slopes, nested and crossed data structures, group-level predictors and cross-level interactions, and generalized multilevel models for binary, ordinal, and count outcomes. Through hands-on coding with real social science and psychology datasets, participants gain both conceptual understanding and practical skills for applying Bayesian multilevel methods to their own research.
What You’ll Learn
- Understand how Bayesian inference differs conceptually and practically from classical frequentist approaches to statistics.
- Apply Bayes’ rule to calculate the probability of causes from observed effects and use this as a foundation for statistical inference.
- Perform complete Bayesian inference in the Bernoulli model: specifying likelihood functions, choosing prior distributions (beta distributions), computing posterior distributions analytically.
- Calculate point estimates using maximum a posteriori (MAP) estimation and interval estimates using credible intervals and highest posterior density (HPD) intervals.
- Compute posterior predictive distributions for forecasting future observations.
- Compare models using marginal likelihoods and Bayes factors, understanding when analytical approaches are possible and what role Bayes factors do and do not play in Bayesian practice more broadly.
- Understand Markov Chain Monte Carlo (MCMC) methods as numerical solutions for Bayesian inference in complex models.
- Use the brms package in R to fit Bayesian models through an intuitive interface to Stan.
- Fit Bayesian regression models and compare results with classical lm output to understand similarities and differences.
- Interpret MCMC output including trace plots, effective sample size, and Rhat convergence diagnostics.
- Use fast approximate algorithms, including Pathfinder variational inference, as a complementary tool for quick iteration once full MCMC fitting is well understood, rather than as a substitute for it.
- Specify informative prior distributions based on domain knowledge and evaluate default priors in brms.
- Conduct prior sensitivity analysis to understand how prior specifications affect posterior inference.
- Perform prior predictive checks and posterior predictive checks as a routine part of the Bayesian workflow, not a one-off diagnostic.
- Compare models using WAIC, LOO cross-validation, and Bayes factors, with an accurate sense of the relative importance of each.
- Understand partial pooling and why multilevel models are the natural approach to grouped, clustered, and repeated-measures data common in psychology and social science research.
- Fit Bayesian multilevel models with varying intercepts and varying slopes.
- Specify multilevel models correctly for nested versus crossed random effects structures.
- Incorporate group-level predictors and cross-level interactions into multilevel models.
- Fit Bayesian generalized linear mixed models, including binary and ordinal logistic multilevel models and Poisson and negative binomial multilevel models for count data.
- Understand practical advantages of Bayesian approaches for multilevel models, including cases where Bayesian fitting succeeds when lme4-style optimizers hit convergence or boundary problems.
- Diagnose MCMC problems and apply solutions when models fail to converge.
- Evaluate multilevel models using explained variance and posterior predictive checks adapted to grouped data.
- Report Bayesian multilevel analyses clearly and appropriately in research publications.
- Leverage the brms package for flexible, powerful multilevel modelling within familiar R workflows.
Course Format
Interactive Learning Format
Each day features a well-balanced combination of lectures and hands-on practical exercises, with dedicated time for discussing participants’ own data, time permitting.
Global Accessibility
All live sessions are recorded and made available on the same day, ensuring accessibility for participants across different time zones.
Collaborative Discussions
Open discussion sessions provide an opportunity for participants to explore specific research questions and engage with instructors and peers.
Comprehensive Course Materials
All code, datasets, and presentation slides used during the course will be shared with participants by the instructor.
Personalized Data Engagement
Participants are encouraged to bring their own data for discussion and practical application during the course.
Post-Course Support
Participants will receive continued support via email for 30 days following the course, along with on-demand access to session recordings for the same period.
Who Should Attend / Intended Audiences
Target audience: This course is designed for researchers in psychology and the social sciences who work with grouped, clustered, longitudinal, or repeated-measures data and want to learn Bayesian methods from first principles, including Bayesian approaches to multilevel modelling. If you currently fit mixed effects models with lmer/glmer and want to understand the Bayesian alternative, or if you have run into convergence or singular-fit problems with frequentist multilevel models, this course provides both the conceptual foundations and the practical skills to move to a Bayesian approach. No prior experience with Bayesian methods is required. Researchers from other fields with similarly structured data are welcome, though the course is written with a psychology and social science audience in mind throughout.
Assumed computer background: Familiarity with R programming is expected. You should be comfortable fitting linear models and generalized linear models in R, loading and manipulating data, and installing packages. The course involves substantial hands-on coding using brms, so confidence in reading and modifying R code is important. No prior experience with Stan or brms is required.
Assumed quantitative background: A solid foundation in regression modelling is expected. You should understand linear regression (coefficients, residuals, prediction), generalized linear models (at least conceptually), and fundamental classical statistical concepts (e.g. probability distributions, hypothesis testing). Comfort with mathematical notation and abstract reasoning is important, as the course covers conceptual foundations rigorously on Day 1 before moving to computational implementation. Some prior exposure to mixed effects or multilevel models (e.g. lme4) is helpful.
Equipment and Software requirements
A laptop or desktop computer with a functioning installation of R and RStudio is required. Both R and RStudio are free, open-source programs compatible with Windows, macOS, and Linux systems.
A working webcam is recommended to support interactive elements of the course. We encourage participants to keep their cameras on during live Zoom sessions to foster a more engaging and collaborative environment.
While not essential, using a large monitor—or ideally a dual-monitor setup—can significantly enhance your learning experience by allowing you to view course materials and work in R simultaneously.
All necessary R packages will be introduced and installed during the workshop. A comprehensive list of required packages will also be shared with participants ahead of the course to allow for optional pre-installation.
Dr. Mark Andrews
Mark is a psychologist and statistician whose work lies at the intersection of cognitive science, Bayesian data analysis, and applied statistics. His research focuses on developing and testing Bayesian models of human cognition, with a particular emphasis on language processing and memory. He also works extensively on the theory and application of Bayesian statistical methods in the social and behavioural sciences, bridging methodological advances with real-world research challenges.
Since 2015, Mark has co-led a programme of intensive workshops on Bayesian data analysis for social scientists, funded by the UK’s Economic and Social Research Council (ESRC). These workshops have trained hundreds of researchers in the practical application of Bayesian methods, particularly through R and modern statistical packages.
Education & Career
• PhD in Psychology, Cornell University, New York (Cognitive Science, Bayesian Models of Cognition)
• MA in Psychology, Cornell University, New York
• BA (Hons) in Psychology, National University of Ireland
• Senior Lecturer in Psychology, Nottingham Trent University, England
Research Focus
Mark’s work centres on:
• Bayesian models of human cognition, especially in language processing and memory
• General Bayesian data analysis methods for the social and behavioural sciences
• Comparative studies of Bayesian vs. classical approaches to inference and model comparison
• Promoting reproducibility and transparent statistical practice in psychological research
Current Projects
• Developing Bayesian cognitive models of memory and linguistic comprehension
• Exploring Bayesian approaches to regression, multilevel, and mixed-effects models in psychology and social science research
• Co-leading ESRC-funded workshops on Bayesian data analysis for applied researchers
Professional Consultancy & Teaching
Mark provides expert training and advice in Bayesian data analysis for academic and applied research projects. His teaching portfolio includes courses and workshops on:
• Bayesian linear and generalized linear models
• Multilevel and mixed-effects models
• Cognitive modelling with Bayesian methods
• Applied statistics in R for psychologists and social scientists
He is also an advocate of open science and is experienced in communicating complex statistical methods to diverse audiences.
Teaching & Skills
• Instructor in Bayesian statistics, time series modelling, and machine learning
• Strong advocate for reproducibility, open-source tools, and accessible education
• Skilled in R, Stan, JAGS, and statistical computing for large datasets
• Experienced mentor and workshop leader at all academic levels
Links
• University Profile
• Personal Page
• ResearchGate
Session 1 – 02:00:00 – Introduction to Bayesian Data Analysis
This session establishes the conceptual foundations of Bayesian inference. We begin with an overview of what Bayesian data analysis is and how it fits into statistics as practiced generally. A central theme is that Bayesian inference represents an alternative school of statistics to the classical/frequentist approach rather than being a specialized or advanced technique. We explore the fundamental differences between Bayesian and frequentist philosophies: the role of probability in representing uncertainty, the treatment of parameters as random rather than fixed, and the incorporation of prior information. The session emphasizes that these two approaches need not be viewed as mutually exclusive competitors, and that a pragmatic blend is often appropriate. We discuss when Bayesian methods offer practical advantages: handling small samples, incorporating domain knowledge, working with complex hierarchical models common in psychology and social science research, and providing complete quantification of uncertainty through posterior distributions.
Break – 01:00:00
Session 2 – 02:00:00 – Bayes’ Rule and Introduction to the Bernoulli Model
This session introduces Bayes’ rule as the mathematical foundation for Bayesian inference. We begin with simple examples showing how Bayes’ rule calculates the probability of causes from observed effects. Working through discrete probability problems with small numbers of possibilities, we build intuition for how prior beliefs are updated by data to produce posterior beliefs. These simple cases provide the template for all Bayesian data analysis: likelihood times prior produces posterior, up to normalization. We then introduce the Bernoulli model as a classic statistical problem: inferring the bias of a coin from observed heads and tails, or equivalently, estimating a proportion from binary data, a structure that recurs constantly in psychology in the form of accuracy rates, endorsement rates, and other binary outcomes. The likelihood function for this model is developed, showing how different observed data provide different information. Prior distributions are introduced using the beta distribution family, showing how different beta distributions represent different prior beliefs about the underlying proportion. The posterior distribution is computed analytically, demonstrating conjugacy: with a beta prior and binomial likelihood, the posterior is also beta with updated parameters.
Break – 01:00:00
Session 3 – 02:00:00 – Inference in the Bernoulli Model
This session provides a complete treatment of Bayesian inference using the analytically tractable Bernoulli model. We cover all key concepts that generalize to complex models analyzed via MCMC in later sessions. Point estimation is addressed through maximum a posteriori (MAP) estimation, finding the parameter value with highest posterior probability. Interval estimation is covered through credible intervals (quantile-based) and highest posterior density (HPD) intervals, explaining how these differ conceptually from frequentist confidence intervals. Posterior predictive distributions are developed, showing how to forecast future observations by integrating over posterior uncertainty in the parameters. Model comparison is introduced through marginal likelihoods and Bayes factors, presented here as one instance of a general idea (comparing how well models predict the data) that will reappear, alongside cross-validation and information criteria, when we return to model comparison in full generality on Day 2. Throughout, we use the priorexposure package to visualize likelihoods, priors, and posteriors, and to perform all calculations interactively. This session ensures participants understand the complete Bayesian inference pipeline before moving to computational methods.
Session 4 – 02:00:00 – Introduction to MCMC and brms
This session transitions from analytical Bayesian inference to numerical methods via MCMC. We begin by explaining why analytical approaches, while pedagogically valuable, are only possible in restricted cases with conjugate priors and simple models. Markov Chain Monte Carlo methods are introduced as a general numerical solution that can be applied to virtually any Bayesian model, with the narrative moving from Metropolis-Hastings through Hamiltonian Monte Carlo to the No-U-Turn Sampler used by Stan. We introduce Stan as a state-of-the-art MCMC implementation and brms as a high-level R interface to Stan that allows fitting models with familiar R formula syntax. To demonstrate the connection with Day 1, we re-analyze the Bernoulli model using brms, showing that MCMC recovers the same posterior we calculated analytically. We then fit our first Bayesian linear regression using brm and compare results with lm, examining similarities and differences. This session, and the one that follows, deliberately establish full MCMC sampling as the default way of working with brms before any shortcuts are introduced, since that is how participants will use brms in practice the great majority of the time.
Break – 01:00:00
Session 5 – 02:00:00 – Bayesian Linear Regression
This session provides in-depth coverage of Bayesian linear regression using brms, deliberately kept to a single-level, non-multilevel setting so that the mechanics of MCMC and brms can be learned before the added complexity of grouped data is introduced. We work through regression models with continuous and categorical predictors, examining the posterior distribution over regression coefficients and comparing Bayesian credible intervals with frequentist confidence intervals. MCMC diagnostics are covered in detail: trace plots showing the sampling path of each chain, effective sample size measuring how many independent samples we have, and Rhat statistics indicating convergence across chains. Participants learn to recognize when MCMC has not converged and what to do about it. The brms functions for visualization are introduced: mcmc_plot for posterior distributions, pp_check for posterior predictive checks. The stancode function is used to examine the underlying Stan model, helping participants understand what brms is doing behind the scenes. Through worked examples using psychology and social science datasets, participants develop fluency in fitting and interpreting Bayesian regression models, laying the groundwork for the multilevel extensions to come.
Break – 01:00:00
Session 6 – 02:00:00 – Bayesian Workflow: Approximate Inference, Priors, and Model Comparison
Having now fitted and diagnosed Bayesian linear regression models via full MCMC sampling, this session introduces a complementary workflow tool: fast approximate algorithms, such as Pathfinder variational inference, which fit a model in a fraction of the time that full MCMC requires. These are presented as a second tool to have available, useful for quickly catching coding errors or a badly specified model before committing to full sampling, and not as a replacement for MCMC. In brms and Stan, full MCMC sampling remains what participants will use the great majority of the time; approximate algorithms are a supplement to that practice, not an alternative introduction to it. The session then turns to prior specification, posterior predictive checking, and model comparison as further connected parts of the Bayesian workflow. We begin by examining default priors in brms using prior_summary, understanding that these are weakly informative priors designed to regularize without dominating the likelihood. We then cover how to specify custom priors using set_prior, including different priors for different parameters. Prior predictive checks are introduced: simulating data from the prior before seeing real data to ensure priors are sensible. Prior sensitivity analysis demonstrates how to assess whether posterior inference is robust to prior specification. The session then turns to model comparison, covering multiple approaches: WAIC and LOO cross-validation for comparing predictive accuracy, and Bayes factors for formal hypothesis comparison. We discuss when each method is appropriate, deliberately positioning Bayes factors as one tool among several rather than as the defining feature of Bayesian analysis. Practical workflows for comparing multiple models are demonstrated, closing out the non-multilevel portion of the course before Day 3 turns to multilevel models proper.
Session 7 – 02:00:00 – The Normal Random Effects Model and Partial Pooling
This session introduces the conceptual foundation of multilevel modelling: partial pooling as a principled middle ground between fitting each group separately (no pooling) and ignoring group structure entirely (complete pooling). We work through the normal random effects model, the natural multilevel model for continuous grouped data, using a dataset with many groups and unequal amounts of data per group, of the kind common in psychology and social science research, for example participants nested within labs or sites, or repeated observations nested within countries. We show how the group-level means are treated not as independent fixed unknowns but as draws from a shared population distribution, and how the resulting estimates for each group are pulled toward the overall mean by an amount that depends on the amount of data available for that group and the between-group variance relative to the within-group variance. The intraclass correlation is introduced as a measure of how much of the total variance is attributable to group membership. Throughout, the Bayesian workflow habits established on Day 2, fitting via full MCMC, checking diagnostics, and running posterior predictive checks, are applied to this new model structure, with fast approximate algorithms available as a secondary check when iterating on model specification.
Break – 01:00:00
Session 8 – 02:00:00 – Bayesian Linear Mixed Effects Models
This session covers Bayesian linear mixed effects models with varying intercepts and varying slopes, the workhorse model structure for grouped and repeated-measures data in psychology and social science research. The brms syntax for mixed models, using the lme4-style formula with random effects specified as (1 | group) for varying intercepts and (predictor | group) for varying slopes, is covered in detail, including the correlation structure between varying intercepts and slopes that this syntax implies. We compare brms output with lme4/lmer output directly, using the same datasets fit both ways, to build an intuition for where the two approaches agree and where they differ. A key advantage of Bayesian mixed models is demonstrated concretely: they often converge where lme4 produces singular fits or convergence warnings, particularly with complex random effects structures or limited numbers of groups, because weakly informative priors regularize the variance components in a way that flat-prior maximum likelihood estimation does not. MCMC diagnostics specific to multilevel models, including divergent transitions, are introduced.
Break – 01:00:00
Session 9 – 02:00:00 – Multilevel Models for Nested and Crossed Data
This session extends the basic varying-intercept, varying-slope model to more complex grouping structures. Nested data, where one grouping factor is entirely contained within another (for example, students within classrooms within schools), is distinguished from crossed data, where two or more grouping factors cut across each other independently (for example, participants crossed with stimulus items in a repeated-measures experiment). We cover how brms formula syntax must reflect this distinction, and address a persistent source of confusion in the applied literature about how nested versus crossed structures should be specified, working through concrete examples until the distinction is unambiguous. Real datasets with both nested designs (students in classrooms) and crossed designs (participants and items) are analyzed, a structure especially relevant to experimental psychology, where the participant-by-item crossed design is close to universal.
Session 7 – 02:00:00 – Group-Level Predictors and Cross-Level Interactions
This session covers models that include predictors measured at the group level as well as the individual level, for example, a classroom-level teaching method alongside student-level test scores, or a country-level policy variable alongside individual-level survey responses. We cover how to specify and interpret group-level predictors in brms, and how cross-level interactions, where the effect of an individual-level predictor depends on a group-level variable, are specified and interpreted. This is a common analytic need in social science research examining how context moderates individual-level effects, and the session works through several such examples in detail.
Break – 01:00:00
Session 8 – 02:00:00 – Bayesian Generalized Linear Mixed Models
This session extends Bayesian multilevel modelling to non-normal outcomes, combining the generalized linear model families from single-level modelling with the random effects structures covered on Day 3. We fit multilevel binary logistic regression models, multilevel ordinal logistic regression models for ordered categorical outcomes such as Likert-type survey responses, and multilevel Poisson and negative binomial models for count data. Throughout, we emphasize that the Bayesian workflow established earlier in the course, fit via MCMC, check diagnostics, check priors, check posterior predictive fit, compare models, remains the same regardless of the outcome distribution or the random effects structure. Real datasets from psychology and social science research illustrate these models in practice, chosen to reflect the kinds of outcomes participants are likely to encounter in their own work.
Break – 01:00:00
Session 9 – 02:00:00 – Evaluating Multilevel Models and Course Wrap-Up
This session covers approaches to evaluating multilevel models specifically: explained variance measures adapted to the multilevel setting, where a single R-squared value is less informative than it is in single-level regression, and posterior predictive checks adapted to grouped data, checking not only overall fit but fit at the group level. We close with a structured recap of the Bayesian workflow as it has been applied across the course, from the Bernoulli model on Day 1 through generalized multilevel models on Day 4, and discuss how participants can apply this workflow to multilevel models in their own research. Pointers to further learning, including Bayesian approaches to psychometric models and longitudinal growth curve models, are provided for those wishing to continue beyond the course.
Frequently asked questions
Everything you need to know about the product and billing.
When will I receive instructions on how to join?
You’ll receive an email on the Friday before the course begins, with full instructions on how to join via Zoom. Please ensure you have Zoom installed in advance.
Do I need administrator rights on my computer?
I’m attending the course live — will I also get access to the session recordings?
I can’t attend every live session — can I join some sessions live and catch up on others later?
I’m in a different time zone and plan to follow the course via recordings. When will these be available?
I can’t attend live — how can I ask questions?
Will I receive a certificate?
When will I receive instructions on how to join?
You’ll receive an email on the Friday before the course begins, with full instructions on how to join via Zoom. Please ensure you have Zoom installed in advance.
Do I need administrator rights on my computer?
I’m attending the course live — will I also get access to the session recordings?
I can’t attend every live session — can I join some sessions live and catch up on others later?
I’m in a different time zone and plan to follow the course via recordings. When will these be available?
I can’t attend live — how can I ask questions?
Will I receive a certificate?
Still have questions?
Can’t find the answer you’re looking for? Please chat to our friendly team.








