We propose a new approach to formally describing the requirement for statistical inference and checking whether a program uses the statistical method appropriately. Specifically, we define belief Hoare logic (BHL) for formalizing and reasoning about the statistical beliefs acquired via hypothesis testing. This program logic is sound and relatively complete with respect to a Kripke model for hypothesis tests. We demonstrate by examples that BHL is useful for reasoning about practical issues in hypothesis testing. In our framework, we clarify the importance of prior beliefs in acquiring statistical beliefs through hypothesis testing, and discuss the whole picture of the justification of statistical inference inside and outside the program logic.
翻译:我们建议一种新的方法,正式描述统计推断的要求,并检查一个方案是否适当地使用统计方法。具体地说,我们界定了信仰Hoare逻辑(BHL),以便正式确定和推理通过假设测试获得的统计信仰。这个方案逻辑对于Kripke假设测试模型来说是合理和相对完整的。我们通过实例表明,BHL有助于推理假设测试中的实际问题。在我们的框架里,我们澄清了先前的信念在通过假设测试获得统计信仰方面的重要性,并讨论了方案逻辑内外统计推理理由的整个情况。