StatWhy: Formal Verification Tool for Statistical Hypothesis Testing Programs
Yusuke Kawamoto, Kentaro Kobayashi, Kohei Suenaga

TL;DR
StatWhy is a formal verification tool designed to ensure correctness in statistical hypothesis testing programs by automatically checking programmer annotations and requirements, thereby reducing misuse and errors in scientific research.
Contribution
The paper introduces StatWhy, a novel tool that uses formal verification to validate statistical programs' correctness through annotations, addressing a critical gap in statistical software reliability.
Findings
StatWhy successfully verifies correctness of OCaml-based statistical programs.
The tool identifies missing or incorrect requirements in statistical code.
Application examples show reduction of common statistical errors.
Abstract
Statistical methods have been widely misused and misinterpreted in various scientific fields, raising significant concerns about the integrity of scientific research. To mitigate this problem, we propose a tool-assisted method for formally specifying and automatically verifying the correctness of statistical programs. In this method, programmers are required to annotate the source code of the statistical programs with the requirements for these methods. Through this annotation, they are reminded to check the requirements for statistical methods, including those that cannot be formally verified, such as the distribution of the unknown true population. Our software tool StatWhy automatically checks whether programmers have properly specified the requirements for the statistical methods, thereby identifying any missing requirements that need to be addressed. This tool is implemented using…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsScientific Computing and Data Management · Bayesian Modeling and Causal Inference · Advanced Database Systems and Queries
