학술

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

arXiv Stat
CC BY
이 매체는 공공·자유 라이선스로 본문을 직접 표시합니다.

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.
Ancillary-file links:
Ancillary files (details):
- LICENSE-MIT.txt
- README-arxiv.txt
- examples/paper/composed_model.stat
- examples/paper/fisher_adaptive.stat
- examples/paper/fisher_design.stat
- examples/paper/fisher_observed.stat
- examples/paper/fisher_sample_size.stat
- examples/paper/response_rate_precision.stat
- examples/paper/simon_design.stat
- examples/paper/simon_search.stat
- examples/paper/t_test_simulation.stat
- replication/copd/design_cited.stat
- replication/copd/design_declared.stat
- replication/copd/power.stat
- statClaim_paper/manuscript/check_examples.py
- statClaim_paper/manuscript/make_tables.py

관련 뉴스