Skip to main content
QUICK REVIEW

[Paper Review] A Practitioner's Guide to Bayesian Inference in Pharmacometrics using Pumas

Mohamed Tarek, José Storópoli|arXiv (Cornell University)|Mar 31, 2023
Statistical Methods in Clinical TrialsMathematics3 citations
TL;DR

This paper presents a comprehensive, practitioner-focused guide to Bayesian inference in pharmacometrics using the Pumas software platform. It details a complete Bayesian workflow—from model definition and prior selection to MCMC sampling, convergence diagnostics, model comparison via cross-validation, and visual predictive checks—demonstrating how Pumas enables flexible, intuitive, and robust statistical inference in pharmacometric applications with real-world code examples and theoretical intuition.

ABSTRACT

This paper provides a comprehensive tutorial for Bayesian practitioners in pharmacometrics using Pumas workflows. We start by giving a brief motivation of Bayesian inference for pharmacometrics highlighting limitations in existing software that Pumas addresses. We then follow by a description of all the steps of a standard Bayesian workflow for pharmacometrics using code snippets and examples. This includes: model definition, prior selection, sampling from the posterior, prior and posterior simulations and predictions, counter-factual simulations and predictions, convergence diagnostics, visual predictive checks, and finally model comparison with cross-validation. Finally, the background and intuition behind many advanced concepts in Bayesian statistics are explained in simple language. This includes many important ideas and precautions that users need to keep in mind when performing Bayesian analysis. Many of the algorithms, codes, and ideas presented in this paper are highly applicable to clinical research and statistical learning at large but we chose to focus our discussions on pharmacometrics in this paper to have a narrower scope in mind and given the nature of Pumas as a software primarily for pharmacometricians.

Motivation & Objective

  • To provide a practical, end-to-end tutorial for pharmacometricians on implementing Bayesian inference using the Pumas platform.
  • To address limitations in existing software by offering a flexible, intuitive, and extensible Bayesian workflow with clean syntax.
  • To bridge the gap between Bayesian theory and application by explaining key concepts like prior selection, MCMC convergence, and model comparison in accessible language.
  • To demonstrate the utility of Pumas for clinical research and statistical learning through real pharmacometric examples, including PK/PD and time-to-event models.
  • To support reproducible, transparent, and rigorous pharmacometric analysis using Bayesian methods with built-in diagnostics and simulation capabilities.

Proposed method

  • Model definition using a structured syntax in Pumas, separating parameters, random effects, and dynamics via @model, @param, @random, and @dynamics blocks.
  • Use of weakly informative priors, such as LogNormal and truncated Normal distributions, to regularize parameter estimation while allowing for uncertainty quantification.
  • Employment of the No-U-Turn Sampler (NUTS) for efficient and adaptive Markov Chain Monte Carlo (MCMC) sampling in high-dimensional parameter spaces.
  • Implementation of convergence diagnostics via multiple MCMC chains, effective sample size (ESS), and potential scale reduction (R-hat) statistics.
  • Application of visual predictive checks (VPCs) and simulation-based diagnostics to assess model fit and predictive performance.
  • Model comparison using expected log predictive density (ELPD) and information criteria, with cross-validation to evaluate out-of-sample predictive accuracy.

Experimental results

Research questions

  • RQ1How can a fully Bayesian workflow be implemented in pharmacometrics using Pumas to ensure robust uncertainty quantification?
  • RQ2What are the best practices for prior selection in hierarchical pharmacometric models to balance informativeness and objectivity?
  • RQ3How can convergence of MCMC chains be diagnosed and ensured in complex pharmacokinetic/pharmacodynamic (PK/PD) models?
  • RQ4In what ways do visual predictive checks and simulation-based diagnostics improve model evaluation in pharmacometrics?
  • RQ5How does cross-validation with expected log predictive density enable reliable model comparison in Bayesian pharmacometric workflows?

Key findings

  • The Pumas platform enables a fully Bayesian workflow with clean, readable syntax that simplifies model specification, prior selection, and posterior inference in pharmacometrics.
  • The use of weakly informative priors, such as LogNormal and truncated Normal distributions, significantly improves MCMC convergence and reduces non-identifiability in hierarchical models.
  • NUTS-based MCMC sampling in Pumas achieves efficient exploration of complex, high-dimensional posterior distributions common in PK/PD and time-to-event models.
  • Visual predictive checks and simulation plots effectively reveal model misspecification and support model refinement in both PK and PD components.
  • Cross-validation with expected log predictive density (ELPD) provides a reliable, out-of-sample measure for model comparison, favoring models with better predictive performance.
  • The integration of diagnostic tools—such as effective sample size, R-hat, and posterior predictive checks—enables robust assessment of model reliability and convergence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.