arXiv Science⌕ Search

arXiv · 2611.30021

StatClaim: Study Designs as Types, Protocols as Programs and Statistical Claims as Proof Obligations

Abstract

Statistical guarantees depend on the compatibility of a study's model, hypotheses, sampling plan and analysis. StatClaim is a declarative domain-specific language for encoding research protocols and statistical analysis plans as programs built from objects whose types encode their statistical roles within the study design. The compiler checks type compatibility and applies contracts to check additional requirements on the values and relationships of these objects. When verification is requested, StatClaim's backend constructs and checks proofs of supported statistical claims using Lean under stated assumptions. These claims concern Type I error, familywise error, power and interval coverage, including supported combinations of analyses and procedures with planned stopping rules. Reports distinguish formally proved, conditional, cited and author-declared guarantees and provide replayable certificates for verified claims. The same specification supports sample-size searches, power calculations and interval-precision assessment using exact calculations, analytical approximations or reproducible simulation. A command-line interface, editor integration and graphical block editor use a shared compiler and execution layer. Validation reproduces 102 optimal and minimax two-stage designs from Simon's published tables and verifies their error and power bounds in Lean. A clinical trial case study illustrates partial encoding of a published analysis plan using cited methods and conditional proofs. The open-source implementation includes runnable tutorials and examples for specifying and checking study designs before outcomes are collected.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Supun Manathunga. 2026-11-23. StatClaim: Study Designs as Types, Protocols as Programs and Statistical Claims as Proof Obligations. https://arxiv.science/abs/2611.30021

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

SULA: Robust Langevin Sampling via Drift-Diffusion Saturation

The unadjusted Langevin algorithm (ULA) and its stochastic-gradient variant, SGLD, are workhorses of modern Bayesian machine learning, but can be fragile when faced with a target distribution possessing a non-Lipschitz drift. In such settings, the conditional expected squared jump distance can grow rapidly, leading to numerical instability or the need for prohibitively small step-sizes. We propose the saturated unadjusted Langevin algorithm (SULA) that pairs a saturated gradient drift with a gradient-informed state-dependent diffusion, while preserving first-order consistency with the Langevin diffusion. The two coefficients are chosen so that the conditional expected squared jump distance is independent of the gradient. Under suitable conditions, we establish first-order weak convergence to the Langevin diffusion, geometric ergodicity of the discretized Markov chain for a fixed step-size, and an $O(h)$ bound on the invariant-measure bias for smooth test functions with polynomial growth. We also develop a stochastic-gradient variant, SG-SULA, using a gradient rescaling motivated by a Gaussian cumulative distribution function identity under Gaussian gradient noise. Numerical experiments demonstrate that SULA is less sensitive to the choice of step-size than existing Langevin discretizations on the targets considered, and that SG-SULA provides competitive predictive performance in Bayesian inference problems.

stat.CO↗

A generalized ensemble-marginalized Kalman filter for semilinear time-dependent PDEs with noisy boundary conditions

Uncertainty in boundary data is a major source of bias in PDE-constrained inverse problems, yet it is often neglected by treating measured boundary records as exact inputs. The ensemble-marginalized Kalman filter (EnMKF) removes this bias for linear parabolic problems with noisy boundaries by modeling boundary values as a linear Gaussian control, estimating them with a Kalman filter, and marginalizing their uncertainty from the prediction step. We extend this construction to semilinear time-dependent PDEs by exploiting time discretizations in which the boundary enters the discrete dynamics affinely, such as IMEX schemes that treat the linear part implicitly and the nonlinear reaction explicitly. For such discretizations the boundary uncertainty can still be marginalized one step at a time, yielding a deterministic covariance inflation term without any additional sampling. For second-order-in-time problems, the same per-step marginalization fails because the sensitivity of the discrete velocity to boundary errors scales like the inverse time step; we introduce an error-state EnMKF that propagates temporally correlated boundary-error realizations according to the innovations-form dynamics of the control Kalman filter. Parameter-dependent observation operators are treated by augmenting the ensemble with predicted observations and projecting the marginalization term into observation space. Numerical experiments on contaminant transport with nonlinear decay and on nonlinear cable vibration demonstrate reduced boundary-induced parameter bias, avoidance of ensemble collapse at small ensemble sizes, and improved state and flux estimates relative to standard ensemble Kalman filters.

stat.CO↗

Sub-Cauchy Sampling: Escaping the Dark Side of the Moon

We introduce a Markov chain Monte Carlo algorithm based on Sub-Cauchy Projection, a geometric transformation that generalizes stereographic projection by mapping Euclidean space into a spherical cap of a hyper-sphere, referred to as the complement of the dark side of the moon. We prove that our proposed method is uniformly ergodic for sub-Cauchy targets, namely targets whose tails are at most as heavy as a multidimensional Cauchy distribution, and show empirically its performance for challenging high-dimensional problems. The simplicity and broad applicability of our approach open new opportunities for Bayesian modeling and computation with heavy-tailed distributions in settings where most existing methods are unreliable.

stat.CO↗