StatWhy: Formal Verification Tool for Statistical Hypothesis Testing Programs
Not on the map. Why?
Abstract (arXiv)
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 the Why3 platform to verify the correctness of OCaml programs that conduct statistical hypothesis testing. We demonstrate how StatWhy can be used to avoid common errors in various statistical hypothesis testing programs.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 7 of its 42 references that are in the map. First posted on arXiv 25 May 2024.
Builds on
7 of 42 references.
References · 7
- 2022PAC Verification of Statistical Algorithmscited by 8
- 2019Statistical Epistemic Logiccited by 4
- 2019Towards Logical Specification of Statistical Machine Learningcited by 4
- 2020An Epistemic Approach to the Formal Specification of Statistical Machine Learningcited by 4
- 2021Cameleer: a Deductive Verification Tool for OCaml (extended version)cited by 3
- 2022Sound and Relatively Complete Belief Hoare Logic for Statistical Hypothesis Testing Programscited by 3
- 2022Formalizing Statistical Causality via Modal Logiccited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.