Formalization of Normal Random Variables

Similar documents
Performance Analysis of ARQ Protocols using a Theorem Prover

Formalization of Birth-Death and IID Processes in Higher-order Logic

Formal Analysis of Soft Errors using Theorem Proving

Discrete Random Variables

Formal Verification of Tail Distribution Bounds in the HOL Theorem Prover

Formal Reliability Analysis of Combinational Circuits using Theorem Proving

Formalization of Measure Theory and Lebesgue Integration for Probabilistic Analysis in HOL

Continuous Random Variables

A Formal Model of Clock Domain Crossing and Automated Verification of Time-Triggered Hardware

Accurate Reliability Analysis of Combinational Circuits using Theorem Proving

Reliability Block Diagrams based Analysis: A Survey

Northwestern University Department of Electrical Engineering and Computer Science

Formalization of Continuous Probability Distributions

Formal Reliability Analysis using Higher-Order Logic Theorem Proving

HW Solution 12 Due: Dec 2, 9:19 AM

12 Expectations. Expectations 103

Formalization of Entropy Measures in HOL

Formal Probabilistic Performance Verification of Randomly-scheduled Wireless Sensor Networks. Osman Hasan and Sofiène Tahar

Formalization of Discrete-time Markov Chains in HOL

COEN6551: Formal Hardware Verification

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

IAM 530 ELEMENTS OF PROBABILITY AND STATISTICS LECTURE 3-RANDOM VARIABLES

Probability and Statisitcs

Absence of Global Clock

Formalization of Continuous Time Markov Chains with Applications in Queueing Theory

Random variables. DS GA 1002 Probability and Statistics for Data Science.

Why study probability? Set theory. ECE 6010 Lecture 1 Introduction; Review of Random Variables

Review of Probability. CS1538: Introduction to Simulations

Lecture 13: Conditional Distributions and Joint Continuity Conditional Probability for Discrete Random Variables

p. 6-1 Continuous Random Variables p. 6-2

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Lecture Notes 1 Probability and Random Variables. Conditional Probability and Independence. Functions of a Random Variable

Recitation 2: Probability

Random variables, Expectation, Mean and Variance. Slides are adapted from STAT414 course at PennState

Measure-theoretic probability

Math 105 Course Outline

Statistics and Econometrics I

Probability, Random Processes and Inference

Review (probability, linear algebra) CE-717 : Machine Learning Sharif University of Technology

Summarizing Measured Data

Formalization of Ray Optics (Highlights)

Linear Dynamical Systems

Introduction to probability theory

Formal Verification of Mathematical Algorithms

Basic Measure and Integration Theory. Michael L. Carroll

arxiv: v1 [cs.lo] 7 Dec Department of Electrical and Computer Engineering,

Chapter 2 Random Variables

Module 3. Function of a Random Variable and its distribution

ECE 302: Probabilistic Methods in Electrical Engineering

Review (Probability & Linear Algebra)

Detecting Wormhole Attacks in Wireless Networks Using Local Neighborhood Information

Random variable X is a mapping that maps each outcome s in the sample space to a unique real number x, < x <. ( ) X s. Real Line

SDS 321: Introduction to Probability and Statistics

DISTRIBUTED COMPUTER SYSTEMS

1 Probability and Random Variables

STAT 516: Basic Probability and its Applications

Formalization of Birth-Death and IID Processes in Higher-order Logic

Lecture 3 Continuous Random Variable

On the Formalization of Gamma Function in HOL

An Informal introduction to Formal Verification

Probability, Random Processes and Inference

Probabilistic NetKAT

Statistics for scientists and engineers

Statistical Runtime Verification of Analog and Mixed Signal Designs

Formal Reliability Analysis of Railway Systems Using Theorem Proving Technique

Reasoning about Time and Reliability

Discrete Random Variable

Queueing Theory and Simulation. Introduction

STAT 479: Short Term Actuarial Models

Homework 2. Spring 2019 (Due Thursday February 7)

Physical Layer Binary Consensus. Study

Probability and Random Processes

STAT 430/510: Lecture 15

Brief Review of Probability

Statistics for Economists Lectures 6 & 7. Asrat Temesgen Stockholm University

Week 2. Review of Probability, Random Variables and Univariate Distributions

Random Variables. Saravanan Vijayakumaran Department of Electrical Engineering Indian Institute of Technology Bombay

Lecture 10: Probability distributions TUESDAY, FEBRUARY 19, 2019

Chapter 3, 4 Random Variables ENCS Probability and Stochastic Processes. Concordia University

Probability theory for Networks (Part 1) CS 249B: Science of Networks Week 02: Monday, 02/04/08 Daniel Bilar Wellesley College Spring 2008

Expected value of r.v. s

EE 302 Division 1. Homework 6 Solutions.

Monte Carlo Integration II & Sampling from PDFs

Relationship between probability set function and random variable - 2 -

AN INFORMATION THEORY APPROACH TO WIRELESS SENSOR NETWORK DESIGN

Verifying Probabilistic Programs using the HOL Theorem Prover Joe Hurd p.1/32

Properties of Continuous Probability Distributions The graph of a continuous probability distribution is a curve. Probability is represented by area

Probability (continued)

ECE Homework Set 2

Chapter 1 Probability Theory

Chapter 4. Continuous Random Variables 4.1 PDF

Probability Foundation for Electrical Engineers Prof. Krishna Jagannathan Department of Electrical Engineering Indian Institute of Technology, Madras

Lecture Notes 17. Randomness: The verifier can toss coins and is allowed to err with some (small) probability if it is unlucky in its coin tosses.

ECE Lecture 4. Overview Simulation & MATLAB

Intel s Successes with Formal Methods

COMPSCI 240: Reasoning Under Uncertainty

arxiv: v1 [cs.lo] 8 May 2015

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

STA 711: Probability & Measure Theory Robert L. Wolpert

Logical Time. 1. Introduction 2. Clock and Events 3. Logical (Lamport) Clocks 4. Vector Clocks 5. Efficient Implementation

Transcription:

Formalization of Normal Random Variables M. Qasim, O. Hasan, M. Elleuch, S. Tahar Hardware Verification Group ECE Department, Concordia University, Montreal, Canada CICM 16 July 28, 2016

2 Outline n Introduction and Motivation n Formalization n Case Study: Clock Synchronization in WSNs n Conclusions

3 Motivation Noise Aging Phenomena Environmental Conditions Unpredictable Inputs

4 Probabilistic Analysis Random Components R andom Variables (Dis crete/ C ontinuous) Hardware Software System Model Probabilistic and Statistical Properties Computer Based Analysis Framework Property Satisfied?

Probabilistic Analysis Basics Random Variables n Discrete Random Variables n Attain a countable number of values n Example n Dice[1, 6] n Continuous Random Variables n Attain an uncountable number of values n Examples n Uniform (all real numbers in an interval [a,b]) 5

6 Probabilistic Analysis Basics Probabilistic Properties Property Description Examples Discrete Continuous Probability Mass Function (PMF) Cumulative Distribution Function (CDF) Probability Density Function (PDF) Probability that the random variable is equal to some number n Probability that the random variable is less than or equal to some number n Slope of CDF for continuous random variables

7 Probabilistic Analysis Basics Statistical Properties Property Description Illustration Expectation Long-run average value of a random variable Variance Measure of dispersion of a random variable

8 Probabilistic Analysis Approaches Random Components Analysis Accuracy Expressiveness Simulation Approximate Probabilistic random State Machine variable functions dgsd Observing some test cases û ü Model Checking Probabilistic State Machine Exhaustive Verification ü û Formal Methods Theorem Proving Random variable functions Mathematical Reasoning ü ü Automation ü ü û Maturity ü û û

Probabilistic Analysis using Theorem Proving System Properties (Discrete Random Variables) Higher-order logic Formalization of Probability Theory Discrete Random Variables Probabilistic Properties PMF CDF Statistical Properties Expectation Variance System Description Random Components System Model Probabilistic Analysis Proof Goals Theorem Prover Continuous Random Variables Probabilistic Properties Statistical Properties 9 CDF PDF Expectation Variance Formal Proofs of Properties [Hurd, 2002]: Probability Theory, Discrete Random Variables (RVs), PMF [Hasan, 2007]: Statistical Properties for Discrete RVs, CDF, Continuous RVs [Mhamdi, 2011] Probability (Arbitrary space) Lebesgue Integration, Multiple Continuous RVs Statistical Properties [Hölzl, 2012] Isabelle/HOL: Probability, Measure and Lebesgue Integration, Markov, Central Limit Theorem System Properties (Continuous Random Variables)

Paper Contributions n Formalization of Probability Density Function (PDF) n Formalization of Normal Random Variable n Enormous Applications n Sample mean of most distributions can be treated as Normally Distributed n Case Study: Clock Synchronization in WSNs 10

Probability Density Function n PDF p(x) of a random variable x is used to define its distribution n The PDF of a random variable is formally defined as the Radon-Nikodym (RN) derivative of the probability measure with respect to the Lebesgue-Borel measure n RN derivative and probability measure was available in HOL4 n Lebesgue-Borel measure n Ported from Isabelle/HOL [Hölzl, 2012] n Some theorems and tactics (e.g. SET_TAC) also ported from the Lebesgue measure theory of HOL-Light [Harrison, 2013] O. Hasan Formalization of Normal Random Variables 11

Probability Density Function n The PDF of a random variable is formally defined as the Radon-Nikodym (RN) derivative of the probability measure with respect to the Lebesgue-Borel measure Definition: Probability Density Function O. Hasan Formalization of Normal Random Variables 12

Normal Random Variable n Normal PDF Definition: Normal Random Variable n X is a real random variable, i.e., it is measurable from the probability space (p) to Borel space n The distribution of X is that of the Normal random variable O. Hasan Formalization of Normal Random Variables 13

Normal Random Variable Properties Theorem: PDF of a Normal random variable is non-negative Theorem: PDF over the whole space is 1 O. Hasan Formalization of Normal Random Variables 14

Normal Random Variable Properties Theorem: PDF of a Normal random variable is symmetric around its mean Theorem: PDF of a Normal random variable is symmetric around its mean O. Hasan Formalization of Normal Random Variables 15

Normal Random Variable Properties Theorem: Summation of Normal Random Variables n The proofs of these properties not only ensure the correctness of our definitions but also facilitate the formal reasoning process about the Normal Random Variable O. Hasan Formalization of Normal Random Variables 16

Application: Probabilistic Clock Synchronization in WSNs n Synchronizing receivers with one another n Randomness in Message delivery latency n Probabilistic bounds on clock synchronization error n single hop n & multi-hop networks Wireless Sensor Network O. Hasan Formalization of Normal Random Variables 17

Capturing the Randomness in the Latency n Multiple pulses are sent from the sender to the set of receivers n The difference in reception time at the receivers is plotted R1 S R2 R3 R5 R3 R4 R4 Pairwise difference in packet reception time Normally Distributed with mean = 0 O. Hasan Formalization of Normal Random Variables 18

Error Bounds Single Hop Theorem: Probability of synchronization error for single hop network O. Hasan Formalization of Normal Random Variables 19

20 Conclusions n Probabilistic Theorem Proving n Exact Answers n Useful for the analysis of Safety critical application n Our Contributions n Formalization of Probability Density Functions and Normal random variables n Case Study n Clock Synchronization in WSNs n Future Work n More Applications Probabilistic Round off Error Bounds in Computer Arithmetic

Thank you! 21