Statistical Probabilistic Model Checking Håkan L. S. Younes Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
How Fast and Fat Is Your Probabilistic Model Checker? an experimental performance comparison David N. Jansen 3,1, Joost-Pieter Katoen 1,2, Marcel Oldenkamp.
Advertisements

Introduction into Simulation Basic Simulation Modeling.
CS 267: Automated Verification Lecture 8: Automata Theoretic Model Checking Instructor: Tevfik Bultan.
Distributed Markov Chains P S Thiagarajan School of Computing, National University of Singapore Joint work with Madhavan Mukund, Sumit K Jha and Ratul.
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
Probabilistic Verification of Discrete Event Systems using Acceptance Sampling Håkan L. S. YounesReid G. Simmons Carnegie Mellon University.
How Fast and Fat Is Your Probabilistic Model Checker? an experimental performance comparison David N. Jansen 3,1, Joost-Pieter Katoen 1,2, Marcel Oldenkamp.
Ymer: A Statistical Model Checker Håkan L. S. Younes Carnegie Mellon University.
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes Reid G. Simmons (initial work performed at HTC, Summer 2001)
Simulation Where real stuff starts. ToC 1.What, transience, stationarity 2.How, discrete event, recurrence 3.Accuracy of output 4.Monte Carlo 5.Random.
Chapter 6: Temporal Difference Learning
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
VESTA: A Statistical Model- checker and Analyzer for Probabilistic Systems Authors: Koushik Sen Mahesh Viswanathan Gul Agha University of Illinois at Urbana-Champaign.
A Framework for Planning in Continuous-time Stochastic Domains Håkan L. S. Younes Carnegie Mellon University David J. MuslinerReid G. Simmons Honeywell.
Policy Generation for Continuous-time Stochastic Domains with Concurrency Håkan L. S. YounesReid G. Simmons Carnegie Mellon University.
Hypothesis Testing – Introduction
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Planning with Concurrency in Continuous-time Stochastic Domains (thesis proposal) Håkan L. S. Younes Thesis Committee: Reid G. Simmons (chair) Geoffrey.
Planning and Verification for Stochastic Processes with Asynchronous Events Håkan L. S. Younes Carnegie Mellon University.
Fast Portscan Detection Using Sequential Hypothesis Testing Authors: Jaeyeon Jung, Vern Paxson, Arthur W. Berger, and Hari Balakrishnan Publication: IEEE.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Random Sampling, Point Estimation and Maximum Likelihood.
Mid-Term Review Final Review Statistical for Business (1)(2)
Planning and Execution with Phase Transitions Håkan L. S. Younes Carnegie Mellon University Follow-up paper to Younes & Simmons’ “Solving Generalized Semi-Markov.
Some Probability Theory and Computational models A short overview.
1 Statistical Distribution Fitting Dr. Jason Merrick.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
Workshop on Stochastic Differential Equations and Statistical Inference for Markov Processes Day 3: Numerical Methods for Stochastic Differential.
By: Messias, Spaan, Lima Presented by: Mike Plasker DMES – Ocean Engineering.
1 When we free ourselves of desire, we will know serenity and freedom.
Estimating  0 Estimating the proportion of true null hypotheses with the method of moments By Jose M Muino.
Lecture 4: Statistics Review II Date: 9/5/02  Hypothesis tests: power  Estimation: likelihood, moment estimation, least square  Statistical properties.
PRISM n A Probabilistic Model Checker, Birmingham n Supports 3 models: n 1.Discrete-time Markov chain(DTMC) n 2.Markov decision processes(MDP) n 3.Continuous-time.
Carnegie Mellon University
Selecting Input Probability Distribution. Simulation Machine Simulation can be considered as an Engine with input and output as follows: Simulation Engine.
Multiplicative Wavelet Traffic Model and pathChirp: Efficient Available Bandwidth Estimation Vinay Ribeiro.
Extending PDDL to Model Stochastic Decision Processes Håkan L. S. Younes Carnegie Mellon University.
Decision-Theoretic Planning with Asynchronous Events Håkan L. S. Younes Carnegie Mellon University.
Introduction Sample Size Calculation for Comparing Strategies in Two-Stage Randomizations with Censored Data Zhiguo Li and Susan Murphy Institute for Social.
Lecture 3: Statistics Review I Date: 9/3/02  Distributions  Likelihood  Hypothesis tests.
1 When we free ourselves of desire, we will know serenity and freedom.
"Classical" Inference. Two simple inference scenarios Question 1: Are we in world A or world B?
Probabilistic Verification of Discrete Event Systems using Acceptance Sampling Håkan L. S. Younes Carnegie Mellon University.
Machine Design Under Uncertainty. Outline Uncertainty in mechanical components Why consider uncertainty Basics of uncertainty Uncertainty analysis for.
Learning Simio Chapter 10 Analyzing Input Data
The generalization of Bayes for continuous densities is that we have some density f(y|  ) where y and  are vectors of data and parameters with  being.
CONCURRENT SIMULATION: A TUTORIAL Christos G. Cassandras Dept. of Manufacturing Engineering Boston University Boston, MA Scope of.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
1 Introduction to Statistics − Day 4 Glen Cowan Lecture 1 Probability Random variables, probability densities, etc. Lecture 2 Brief catalogue of probability.
Probabilistic Verification of Discrete Event Systems Håkan L. S. Younes.
A Formalism for Stochastic Decision Processes with Asynchronous Events Håkan L. S. YounesReid G. Simmons Carnegie Mellon University.
Uncertain Observation Times Shaunak Chatterjee & Stuart Russell Computer Science Division University of California, Berkeley.
Grid-enabled Probabilistic Model Checking with PRISM Yi Zhang, David Parker, Marta Kwiatkowska University of Birmingham.
 Simulation enables the study of complex system.  Simulation is a good approach when analytic study of a system is not possible or very complex.  Informational,
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
Håkan L. S. YounesDavid J. Musliner Carnegie Mellon UniversityHoneywell Laboratories Probabilistic Plan Verification through Acceptance Sampling.
On the Optimality of the Simple Bayesian Classifier under Zero-One Loss Pedro Domingos, Michael Pazzani Presented by Lu Ren Oct. 1, 2007.
OPERATING SYSTEMS CS 3502 Fall 2017
Statistical probabilistic model checking
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Analytics and OR DP- summary.
Hypothesis Testing – Introduction
When we free ourselves of desire,
Partly Verifiable Signals (c.n.)
Statistical Model-Checking of “Black-Box” Probabilistic Systems VESTA
On Statistical Model Checking of Stochastic Systems
Statistical Probabilistic Model Checking
‘Crowds’ through a PRISM
MECH 3550 : Simulation & Visualization
Presentation transcript:

Statistical Probabilistic Model Checking Håkan L. S. Younes Carnegie Mellon University

2 Introduction Model checking for stochastic processes Stochastic discrete event systems Probabilistic time-bounded properties Model independent approach Discrete event simulation Statistical hypothesis testing

3 Example: Tandem Queuing Network q1q1 q2q2 arriveroutedepart q 1 = 0 q 2 = 0 q 1 = 1 q 2 = 0 q 1 = 1 q 2 = 1 q 1 = 2 q 2 = 0 q 1 = 1 q 2 = 0 t = 0t = 1.2t = 3.7t = 3.9t = 5.5 With both queues empty, is the probability less than 0.5 that both queues become full within 5 seconds? q 1 = 1 q 2 = 0 q 1 = 2 q 2 = 0 q 1 = 1 q 2 = 1 q 1 = 1 q 2 = 0

4 Probabilistic Model Checking Given a model M, a state s, and a property , does  hold in s for M ? Model: stochastic discrete event system Property: probabilistic temporal logic formula

5 Continuous Stochastic Logic (CSL) State formulas Truth value is determined in a single state Path formulas Truth value is determined over a path Discrete-time analogue: PCTL

6 State Formulas Standard logic operators: ,  1   2, … Probabilistic operator: P ≥  (  ) Holds in state s iff probability is at least  that  holds over paths starting in s P <  (  )   P ≥1–  (  )

7 Path Formulas Until:  1 U ≤T  2 Holds over path  iff  2 becomes true in some state along  before time T, and  1 is true in all prior states

8 CSL Example With both queues empty, is the probability less than 0.5 that both queues become full within 5 seconds? State: q 1 = 0  q 2 = 0 Property: P <0.5 (true U ≤5 q 1 = 2  q 2 = 2)

9 Model Checking Probabilistic Time-Bounded Properties Numerical Methods Provide highly accurate results Expensive for systems with many states Statistical Methods Low memory requirements Adapt to difficulty of problem (sequential) Expensive if high accuracy is required

10 Statistical Solution Method [Younes & Simmons 2002] Use discrete event simulation to generate sample paths Use acceptance sampling to verify probabilistic properties Hypothesis: P ≥  (  ) Observation: verify  over a sample path Not estimation!

11 Error Bounds Probability of false negative: ≤  We say that  is false when it is true Probability of false positive: ≤  We say that  is true when it is false

12 Performance of Test Actual probability of  holding Probability of accepting P ≥  (  ) as true  1 –  

13 Ideal Performance of Test Actual probability of  holding Probability of accepting P ≥  (  ) as true  1 –   False negatives False positives Unrealistic!

14 Realistic Performance of Test Actual probability of  holding Probability of accepting P ≥  (  ) as true  1 –   p1p1 p0p0 Indifference region False negatives False positives 22

15 Sequential Acceptance Sampling [Wald 1945] True, false, or another observation?

16 Graphical Representation of Sequential Test Number of observations Number of positive observations

17 Graphical Representation of Sequential Test We can find an acceptance line and a rejection line given , , , and  acceptance line rejection line reject accept continue Number of observations Number of positive observations Start here Verify  over sample paths Continue until line is crossed

18 Special Case p 0 = 1 and p 1 = 1 – 2  Reject at first negative observation Accept at stage m if p 1 m ≤  Sample size at most d log  / log p 1 e “Five nines”: p 1 = 1 – 10 –5  Maximum sample size 10 –2 460, –4 921, –8 1,842,059

19 Case Study: Tandem Queuing Network M/Cox 2 /1 queue sequentially composed with M/M/1 queue Each queue has capacity n State space of size O(n 2 ) 11 22 a …… 1 − a 

20 Tandem Queuing Network (results) [Younes et al. 2004] Verification time (seconds) Size of state space −2 10 −  P ≥0.5 (true U ≤T full)  = 10 −6  =  = 10 −2  = 0.5·10 −2

21 Tandem Queuing Network (results) [Younes et al. 2004] Verification time (seconds) T 10 −2 10 −  = 10 −6  =  = 10 −2  = 0.5·10 −2  P ≥0.5 (true U ≤T full)

22 Case Study: Symmetric Polling System Single server, n polling stations Stations are attended in cyclic order Each station can hold one message State space of size O(n·2 n ) Server … Polling stations

23 Symmetric Polling System (results) [Younes et al. 2004] Verification time (seconds) Size of state space 10 −2 10 − serv1  P ≥0.5 (true U ≤T poll1)  = 10 −6  =  = 10 −2  = 0.5·10 −2

24 Symmetric Polling System (results) [Younes et al. 2004] Verification time (seconds) T 10 −2 10 −  = 10 −6  =  = 10 −2  = 0.5·10 −2 serv1  P ≥0.5 (true U ≤T poll1)

25 Symmetric Polling System (results) [Younes et al. 2004] (  =10 −6 )  =  =10 −2  =  =10 −4  =  =10 −6  =  =10 −8  =  =10 −10  Verification time (seconds) 10 − −4 10 −2 10 −3 n = 10 T = 40 serv1  P ≥0.5 (true U ≤T poll1)

26 Tandem Queuing Network: Distributed Sampling Use multiple machines to generate samples m 1 : Pentium IV 3GHz m 2 : Pentium III 733MHz m 3 : Pentium III 500MHz % samples m 1 only n m1m1 m2m2 m3m3 timem1m1 m2m

27 Summary Acceptance sampling can be used to verify probabilistic properties of systems Sequential acceptance sampling adapts to the difficulty of the problem Statistical methods are easy to parallelize

28 Other Research Failure trace analysis “failure scenario” [Younes & Simmons 2004a] Planning/Controller synthesis CSL goals [Younes & Simmons 2004a] Rewards (GSMDPs) [Younes & Simmons 2004b]

29 Tools Ymer Statistical probabilistic model checking Tempastic-DTP Decision theoretic planning with asynchronous events

30 References Wald, A Sequential tests of statistical hypotheses. Ann. Math. Statist. 16: Younes, H. L. S., M. Kwiatkowska, G. Norman, and D. Parker Numerical vs. statistical probabilistic model checking: An empirical study. In Proc. TACAS Younes, H. L. S., R. G. Simmons Probabilistic verification of discrete event systems using acceptance sampling. In Proc. CAV Younes, H. L. S., R. G. Simmons. 2004a. Policy generation for continuous-time stochastic domains with concurrency. In Proc. ICAPS Younes, H. L. S., R. G. Simmons. 2004b. Solving generalized semi- Markov decision processes using continuous phase-type distributions. In Proc. AAAI-2004.