Technical Report

Formal Verification of Expectation and Variance for Discrete Random Variables.

O. Hasan and S. Tahar
 

ABSTRACT

Statistical quantities, such as expectation (mean), variance and tail distribution bounds, play a vital role in the present age probabilistic analysis. In this paper, we present some formalization of expectation theory that can be used to verify the expectation and variance characteristics and bounds for tail distribution of discrete random variables within the HOL theorem prover. The motivation behind this is the ability to perform error free probabilistic analysis, which in turn can be very useful for the performance and reliability analysis of systems used in safety-critical domains, such as space travel, medicine and military. We first present a formal definition of expectation of a function of a discrete random variable. Building upon this definition, we formalize the mathematical concept of variance and verify some classical properties of expectation and variance in HOL. We then utilize these formal definitions to verify the expectation and variance characteristics of the Geometric random variable. In order to demonstrate the practical effectiveness of the formalization presented in this paper, we also present the probabilistic analysis of the Coupon Collector's problem in HOL.



 

 Download PDF file (PDF File)

 Download HOL Code (HOL Code)

 Send comments and suggestions to: Osman Hasan