Bayesian Cognitive Model Builder

Automate hierarchical Bayesian cognitive model development with Stan and PyMC.

34|5|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills --skill bayesian-cognitive-model-builder
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Bayesian Cognitive Model Builder
Source: https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills/tree/main/skills/bayesian-cognitive-model-builder
Command: npx skills add https://github.com/HaoxuanLiTHUAI/awesome_cognitive_and_neuroscience_skills --skill bayesian-cognitive-model-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides domain-validated guidance for building hierarchical Bayesian cognitive models using probabilistic programming languages (Stan, PyMC). It covers priors that respect cognitive constraints, when to use hierarchical structure, how to diagnose MCMC pathologies, and how to evaluate model adequacy through posterior predictive checks.

Core Features & Use Cases

  • Hierarchical modeling guidance: priors selection, centering vs non-centering, and regularization across participants
  • MCMC diagnostics & model checking: convergence diagnostics, trace and rank plots, posterior predictive checks
  • Model comparison & reporting: information criteria (PSIS-LOO/WAIC), Bayes factors, sensitivity analyses, and reproducible workflows

Quick Start

Set up your first hierarchical Bayesian model using Stan or PyMC and run the diagnostic workflow.

Frequently Asked Questions about Bayesian Cognitive Model Builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I specify priors for hierarchical Bayesian cognitive models in Stan or PyMC?▼

To specify priors for hierarchical Bayesian cognitive models, select priors that respect cognitive constraints and apply regularization across participants. This includes choosing between centered and non-centered parameterizations for your Stan or PyMC model structure.

What is the best way to run MCMC diagnostics for cognitive modeling?▼

The best way to run MCMC diagnostics for cognitive modeling is to use a robust diagnostic checklist that evaluates convergence diagnostics, trace and rank plots, and posterior predictive checks to identify MCMC pathologies in your hierarchical models.

How do I perform posterior predictive checks for hierarchical Bayesian models?▼

You perform posterior predictive checks for hierarchical Bayesian models by evaluating model adequacy through domain-relevant workflow guidance. This involves generating explicit diagnostic checklists and comparing posterior predictions against observed cognitive data.

Does this hierarchical Bayesian modeling guidance apply to drift diffusion models and reinforcement learning?▼

Yes, this hierarchical Bayesian modeling guidance applies to common cognitive-model families including DDM, SDT, RL, MPT, and IRT. It provides domain-validated priors specification and model-structure decisions across these frameworks using Stan and PyMC.

When should I use centered vs non-centered parameterization in hierarchical cognitive models?▼

Use centered or non-centered parameterization in hierarchical cognitive models based on model-structure decisions and the need for regularization across participants. This guidance helps determine the appropriate approach to avoid MCMC pathologies and ensure convergence.

How do I compare hierarchical Bayesian cognitive models using PSIS-LOO or WAIC?▼

To compare hierarchical Bayesian cognitive models using PSIS-LOO or WAIC, apply model comparison and reporting workflows that include information criteria, Bayes factors, and sensitivity analyses. This ensures reproducible evaluation of your cognitive model adequacy.