---
name: mcmc-diagnostics-4554bc5c2eba
description: MCMC convergence diagnostics and analysis
allowed-tools:
  - Bash
  - Read
  - Write
  - Edit
  - Glob
  - Grep
metadata:
  specialization: mathematics
  domain: science
  category: statistical-computing
  phase: 6
graph:
  domains: [domain:mathematics]
  specializations: [specialization:computational-mathematics]
  skillAreas: [skill-area:statistical-analysis, skill-area:mathematical-reasoning, skill-area:data-analysis]
  workflows: [workflow:experiment-design]
  roles: [role:research-scientist, role:data-scientist]
---

# MCMC Diagnostics

## Purpose

Provides MCMC convergence diagnostics and analysis capabilities for validating Bayesian inference results.

## Capabilities

- Rhat (potential scale reduction) computation
- Effective sample size (ESS) calculation
- Trace plot generation
- Autocorrelation analysis
- Divergence detection
- Energy diagnostic (E-BFMI)

## Usage Guidelines

1. **Convergence Check**: Verify Rhat < 1.01 for all parameters
2. **Sample Quality**: Ensure ESS is sufficient for inference
3. **Visual Inspection**: Review trace plots for mixing
4. **Divergences**: Address divergent transitions

## Tools/Libraries

- ArviZ
- CODA
- MCMCpack


---
Source attribution: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/science/mathematics/skills/mcmc-diagnostics/SKILL.md
License: MIT
License information: https://opensource.org/license/mit
Original upstream instructions; downloaded from Mega AI Hub.

## Upstream license notice

# MIT License

Copyright (c) 2025 A5C AI

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.



# Mega AI Hub resource metadata

Creator / publisher: a5c-ai
Original project: https://github.com/a5c-ai/babysitter/blob/feb68abe397acc14f32b34984975c48fedba2b33/library/specializations/domains/science/mathematics/skills/mcmc-diagnostics/SKILL.md
Attribution basis: Source repository record

Fields of work: Data & Analytics, Development & Engineering, Education & Research
Roles: Data Analyst, Data Scientist, Market Research Analyst, ML / AI Engineer, Researcher
Specialties: Specialty not specified
Tools: Arviz, Bash, Coda, Mcmcpack
Country applicability: Country not specified
Classification basis: Source catalog labels
Instruction SHA-256: b7130cd7eec9aa71e1e238e576da34a6b02e539cec4b18d949feeb45512a06df
