Adaptive Rejection Sampler

•
16
•

Provides specialized guidance for implementing efficient Adaptive Rejection Sampling algorithms for log-concave probability distributions.

This skill offers comprehensive procedural guidance for building Adaptive Rejection Sampling (ARS) systems, focusing on the construction of piecewise linear envelopes for log-density functions. It helps developers navigate the mathematical foundations of log-concave sampling while prioritizing performance optimization, numerical stability, and robust verification strategies. By addressing common pitfalls like infinite loops and poor initialization, the skill ensures that sampling implementations are statistically sound and computationally efficient across various environments including R and Python.

주요 기능

01Procedural approaches for log-concavity verification and numerical tolerance
02Comprehensive verification strategies including statistical property testing
03Mathematical guidance for log-concave function envelope construction
04Guidance on adaptive initialization for shifted distributions and edge-case handling
05Optimization strategies for iteration limits and performance-first development
0616 GitHub stars

사용 사례

01Implementing custom statistical samplers from scratch in Python or R
02Validating the statistical integrity and quality of generated probability distribution samples
03Optimizing existing sampling algorithms to prevent timeouts and infinite loops