A mathematical approach to defining the semantics of modelling - - PowerPoint PPT Presentation

a mathematical approach to defining the semantics of
SMART_READER_LITE
LIVE PREVIEW

A mathematical approach to defining the semantics of modelling - - PowerPoint PPT Presentation

Strachey 100 A mathematical approach to defining the semantics of modelling languages Jane Hillston LFCS, University of Edinburgh 19th November 2016 Strachey 100 A modelling language approach to defining mathematical structures via semantics


slide-1
SLIDE 1

Strachey 100

A mathematical approach to defining the semantics of modelling languages

Jane Hillston LFCS, University of Edinburgh 19th November 2016

slide-2
SLIDE 2

Strachey 100

A modelling language approach to defining mathematical structures via semantics

Jane Hillston LFCS, University of Edinburgh 19th November 2016

slide-3
SLIDE 3

Strachey 100

Outline

1 Introduction 2 Discrete state space 3 Fluid approximation 4 Dealing with uncertainty

slide-4
SLIDE 4

Introduction Strachey 100

Outline

1 Introduction 2 Discrete state space 3 Fluid approximation 4 Dealing with uncertainty

slide-5
SLIDE 5

Introduction Strachey 100

Quantitative Modelling

Quantitative modelling is concerned with the dynamic behaviour of systems and quantified assessment of that behaviour.

slide-6
SLIDE 6

Introduction Strachey 100

Quantitative Modelling

Quantitative modelling is concerned with the dynamic behaviour of systems and quantified assessment of that behaviour. There are often conflicting interests at play: For example, in performance evaluation users typically want to

  • ptimise external metrics such as response time (as small as

possible), throughput (as high as possible) or blocking probability (preferably zero);

slide-7
SLIDE 7

Introduction Strachey 100

Quantitative Modelling

Quantitative modelling is concerned with the dynamic behaviour of systems and quantified assessment of that behaviour. There are often conflicting interests at play: For example, in performance evaluation users typically want to

  • ptimise external metrics such as response time (as small as

possible), throughput (as high as possible) or blocking probability (preferably zero); In contrast, system managers may seek to optimize internal metrics such as utilisation (reasonably high, but not too high), idle time (as small as possible) or failure rates (as low as possible).

slide-8
SLIDE 8

Introduction Strachey 100

Quantitative Modelling

Quantitative modelling is concerned with the dynamic behaviour of systems and quantified assessment of that behaviour. There are often conflicting interests at play: For example, in performance evaluation users typically want to

  • ptimise external metrics such as response time (as small as

possible), throughput (as high as possible) or blocking probability (preferably zero); In contrast, system managers may seek to optimize internal metrics such as utilisation (reasonably high, but not too high), idle time (as small as possible) or failure rates (as low as possible). Mathematical models are needed to represent and analyse the dynamic behaviour to gain understanding and make predictions.

slide-9
SLIDE 9

Introduction Strachey 100

Quantitative Modelling using CTMC

Continuous Time Markov Chains are often the formalism of choice

slide-10
SLIDE 10

Introduction Strachey 100

Quantitative Modelling using CTMC

Continuous Time Markov Chains are often the formalism of choice

slide-11
SLIDE 11

Introduction Strachey 100

Quantitative Modelling using CTMC

Continuous Time Markov Chains are often the formalism of choice

slide-12
SLIDE 12

Introduction Strachey 100

Quantitative Modelling using CTMC

Continuous Time Markov Chains are often the formalism of choice

slide-13
SLIDE 13

Introduction Strachey 100

Deriving Performance Measures

SYSTEM MARKOV Q = ..... ..... ..... ..... ..... ..... ..... ..... PROCESS ..... ..... DIAGRAM TRANSITION STATE

=

EQUILIBRIUM PROBABILITY DISTRIBUTION

p , p , p , , p

N 2 1 3

Linear algebra is used to derive a transient or steady state probability distribution — the probability that the system is in each particular state at a given time.

slide-14
SLIDE 14

Introduction Strachey 100

Deriving Performance Measures

SYSTEM MARKOV Q = ..... ..... ..... ..... ..... ..... ..... ..... PROCESS ..... ..... DIAGRAM TRANSITION STATE e.g. throughput, response time, utilisation

=

EQUILIBRIUM PROBABILITY DISTRIBUTION

p , p , p , , p

N 2 1 3

PERFORMANCE MEASURES

Linear algebra is used to derive a transient or steady state probability distribution — the probability that the system is in each particular state at a given time. From the probability distribution the measures such a throughput, response time and utilisation can be straightforwardly derived

slide-15
SLIDE 15

Introduction Strachey 100

Difficulties of working with Markov processes

SYSTEM MARKOV Q = ..... ..... ..... ..... ..... ..... ..... ..... PROCESS ..... ..... DIAGRAM TRANSITION STATE e.g. throughput, response time, utilisation

=

EQUILIBRIUM PROBABILITY DISTRIBUTION

p , p , p , , p

N 2 1 3

PERFORMANCE MEASURES

Whilst Markov process-based modelling has many advantages, working directly in terms of the state transition diagram or infinitesimal generator matrix is at best time-consuming and error prone, and often simply infeasible.

slide-16
SLIDE 16

Introduction Strachey 100

The PEPA project

The PEPA project started in Edinburgh in 1991.

slide-17
SLIDE 17

Introduction Strachey 100

The PEPA project

The PEPA project started in Edinburgh in 1991. It was motivated by problems encountered when carrying out performance analysis of large computer and communication systems, based on numerical analysis of Markov processes.

slide-18
SLIDE 18

Introduction Strachey 100

The PEPA project

The PEPA project started in Edinburgh in 1991. It was motivated by problems encountered when carrying out performance analysis of large computer and communication systems, based on numerical analysis of Markov processes. Process algebras offered a compositional description technique supported by apparatus for formal reasoning.

slide-19
SLIDE 19

Introduction Strachey 100

The PEPA project

The PEPA project started in Edinburgh in 1991. It was motivated by problems encountered when carrying out performance analysis of large computer and communication systems, based on numerical analysis of Markov processes. Process algebras offered a compositional description technique supported by apparatus for formal reasoning. Performance Evaluation Process Algebra (PEPA) sought to address these problems by the introduction of a suitable process algebra.

slide-20
SLIDE 20

Introduction Strachey 100

The PEPA project

The PEPA project started in Edinburgh in 1991. It was motivated by problems encountered when carrying out performance analysis of large computer and communication systems, based on numerical analysis of Markov processes. Process algebras offered a compositional description technique supported by apparatus for formal reasoning. Performance Evaluation Process Algebra (PEPA) sought to address these problems by the introduction of a suitable process algebra. We have sought to investigate and exploit the interplay between the process algebra and the continuous time Markov chain (CTMC).

slide-21
SLIDE 21

Discrete state space Strachey 100

Outline

1 Introduction 2 Discrete state space 3 Fluid approximation 4 Dealing with uncertainty

slide-22
SLIDE 22

Discrete state space Strachey 100

Process Algebra

Models consist of agents which engage in actions.

α.P

✟✟ ✟ ✯ ❍ ❍ ❍ ❨

action type

  • r name

agent/ component

The structured operational (interleaving) semantics of the language is used to generate a labelled transition system.

Process algebra model Labelled transition system ✲ SOS rules

slide-23
SLIDE 23

Discrete state space Strachey 100

Process Algebra

Models consist of agents which engage in actions.

α.P

✟✟ ✟ ✯ ❍ ❍ ❍ ❨

action type

  • r name

agent/ component

The structured operational (interleaving) semantics of the language is used to generate a labelled transition system.

Process algebra model Labelled transition system ✲ SOS rules

For quantitative modelling we need to incorporate quantitative information — stochastic process algebra (SPA).

slide-24
SLIDE 24

Discrete state space Strachey 100

SPA Languages SPA

slide-25
SLIDE 25

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time
slide-26
SLIDE 26

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time

❅ ❅ ❅

exponential only exponential + instantaneous general distributions

slide-27
SLIDE 27

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time

❅ ❅ ❅ ✑✑✑✑ ◗◗◗◗

exponential only exponential + instantaneous general distributions exponential only general distributions

slide-28
SLIDE 28

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time

❅ ❅ ❅ ✑✑✑✑ ◗◗◗◗

exponential only

PEPA, Sπ-calculus,SCCP

exponential + instantaneous

EMPA, Markovian TIPP

general distributions

TIPP, SPADES, GSMPA

exponential only general distributions

slide-29
SLIDE 29

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time

❅ ❅ ❅ ✑✑✑✑ ◗◗◗◗

exponential only

PEPA, Sπ-calculus,SCCP

exponential + instantaneous

EMPA, Markovian TIPP

general distributions

TIPP, SPADES, GSMPA

exponential only

IMC

general distributions

IGSMP, Modest

slide-30
SLIDE 30

Discrete state space Strachey 100

SPA Languages SPA

❅ ❅ ❅ ❅

integrated time

  • rthogonal time

❅ ❅ ❅ ✑✑✑✑ ◗◗◗◗

exponential only

PEPA, Sπ-calculus, SCCP

exponential + instantaneous

EMPA, Markovian TIPP

general distributions

TIPP, SPADES, GSMPA

exponential only

IMC

general distributions

IGSMP, Modest

slide-31
SLIDE 31

Discrete state space Strachey 100

Performance Evaluation Process Algebra

Models are constructed from components which engage in activities.

(α, r).P

✟✟ ✟ ✯ ✻ ❍ ❍ ❍ ❨

action type

  • r name

activity rate (parameter of an exponential distribution) component/ derivative

slide-32
SLIDE 32

Discrete state space Strachey 100

Performance Evaluation Process Algebra

Models are constructed from components which engage in activities.

(α, r).P

✟✟ ✟ ✯ ✻ ❍ ❍ ❍ ❨

action type

  • r name

activity rate (parameter of an exponential distribution) component/ derivative

slide-33
SLIDE 33

Discrete state space Strachey 100

Performance Evaluation Process Algebra

Models are constructed from components which engage in activities.

(α, r).P

✟✟ ✟ ✯ ✻ ❍ ❍ ❍ ❨

action type

  • r name

activity rate (parameter of an exponential distribution) component/ derivative

The language is used to generate a CTMC.

slide-34
SLIDE 34

Discrete state space Strachey 100

Performance Evaluation Process Algebra

Models are constructed from components which engage in activities.

(α, r).P

✟✟ ✟ ✯ ✻ ❍ ❍ ❍ ❨

action type

  • r name

activity rate (parameter of an exponential distribution) component/ derivative

The language is used to generate a CTMC.

PEPA MODEL LABELLED TRANSITION SYSTEM CTMC Q ✲ ✲ SOS rules state transition diagram

slide-35
SLIDE 35

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

slide-36
SLIDE 36

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

PREFIX:

(α, r).S designated first action

slide-37
SLIDE 37

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

PREFIX:

(α, r).S designated first action

CHOICE:

S + S competing components

slide-38
SLIDE 38

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

PREFIX:

(α, r).S designated first action

CHOICE:

S + S competing components

CONSTANT:

A

def

= S assigning names

slide-39
SLIDE 39

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

PREFIX:

(α, r).S designated first action

CHOICE:

S + S competing components

CONSTANT:

A

def

= S assigning names

COOPERATION:

P ✄

L P

α / ∈ L individual actions α ∈ L shared actions

slide-40
SLIDE 40

Discrete state space Strachey 100

PEPA

S ::= (α, r).S | S + S | A P ::= S | P ✄

L P | P/L

PREFIX:

(α, r).S designated first action

CHOICE:

S + S competing components

CONSTANT:

A

def

= S assigning names

COOPERATION:

P ✄

L P

α / ∈ L individual actions α ∈ L shared actions

HIDING:

P/L abstraction α ∈ L ⇒ α → τ

slide-41
SLIDE 41

Discrete state space Strachey 100

Solving discrete state models

Under the SOS semantics a SPA model is mapped to a CTMC with global states determined by the local states

  • f all the participating

components.

c b a c b a c b a

slide-42
SLIDE 42

Discrete state space Strachey 100

Solving discrete state models

Under the SOS semantics a SPA model is mapped to a CTMC with global states determined by the local states

  • f all the participating

components.

c b a c b a c b a

slide-43
SLIDE 43

Discrete state space Strachey 100

Solving discrete state models

When the size of the state space is not too large they are amenable to numerical solution (linear algebra) to determine a steady state or transient probability distribution.

slide-44
SLIDE 44

Discrete state space Strachey 100

Solving discrete state models

When the size of the state space is not too large they are amenable to numerical solution (linear algebra) to determine a steady state or transient probability distribution.

Q =      q1,1 q1,2 · · · q1,N q2,1 q2,2 · · · q2,N . . . . . . . . . qN,1 qN,2 · · · qN,N     

slide-45
SLIDE 45

Discrete state space Strachey 100

Solving discrete state models

When the size of the state space is not too large they are amenable to numerical solution (linear algebra) to determine a steady state or transient probability distribution.

Q =      q1,1 q1,2 · · · q1,N q2,1 q2,2 · · · q2,N . . . . . . . . . qN,1 qN,2 · · · qN,N      π(t) = (π1(t), π2(t), . . . , πN(t)) π(∞)Q = 0

slide-46
SLIDE 46

Discrete state space Strachey 100

Solving discrete state models

Alternatively they may be studied using stochastic

  • simulation. Each run generates

a single trajectory through the state space. Many runs are needed in order to obtain average behaviours.

slide-47
SLIDE 47

Discrete state space Strachey 100

Benefits of using a language

There are clear benefits for model construction in using a modelling language and its semantics to build the required CTMC. But the language also allows you to characterise properties of the CTMC, previously described as properties of the infinitesimal generator matrix, as easily checked syntactic conditions. This supports automatic model reductions and model manipulations to improve the efficiency of solution.

slide-48
SLIDE 48

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state

slide-49
SLIDE 49

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state

slide-50
SLIDE 50

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state

slide-51
SLIDE 51

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state This is not as straightforward as it may seem if we wish the aggregated process to still be a Markov process — an arbitrary partition will not in general preserve the Markov property.

slide-52
SLIDE 52

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state This is not as straightforward as it may seem if we wish the aggregated process to still be a Markov process — an arbitrary partition will not in general preserve the Markov property. In order to preserve the Markov property we must ensure that the partition satisfies a condition called lumpability.

slide-53
SLIDE 53

Discrete state space Strachey 100

Aggregation and lumpability

Model aggregation: partition the state space of a model, and replace each set of states by one macro-state This is not as straightforward as it may seem if we wish the aggregated process to still be a Markov process — an arbitrary partition will not in general preserve the Markov property. In order to preserve the Markov property we must ensure that the partition satisfies a condition called lumpability. Use a behavioural equivalence in the process algebra to form the partitions; moreover this is a congruence allowing the reduction to be carried out compositionally.

slide-54
SLIDE 54

Discrete state space Strachey 100

State space explosion

Unfortunately, as the size of the state space becomes large it becomes infeasible to carry out numerical solution and extremely time-consuming to conduct stochastic simulation. Even with sophisticated model reduction and aggregation techniques discrete approaches are defeated by the scale of many dynamic systems.

slide-55
SLIDE 55

Fluid approximation Strachey 100

Outline

1 Introduction 2 Discrete state space 3 Fluid approximation 4 Dealing with uncertainty

slide-56
SLIDE 56

Fluid approximation Strachey 100

The Fluid Approximation Alternative

Fortunately there is an alternative: fluid approximation.

slide-57
SLIDE 57

Fluid approximation Strachey 100

The Fluid Approximation Alternative

Fortunately there is an alternative: fluid approximation. For a large class of models, just as the size of the state space becomes unmanageable, the models become amenable to an efficient, scale-free approximation.

slide-58
SLIDE 58

Fluid approximation Strachey 100

The Fluid Approximation Alternative

Fortunately there is an alternative: fluid approximation. For a large class of models, just as the size of the state space becomes unmanageable, the models become amenable to an efficient, scale-free approximation. These are models which consist of populations.

slide-59
SLIDE 59

Fluid approximation Strachey 100

Population models

A shift in perspective allows us to model the interactions between individual components but then only consider the system as a whole as an interaction of populations.

slide-60
SLIDE 60

Fluid approximation Strachey 100

Population models

A shift in perspective allows us to model the interactions between individual components but then only consider the system as a whole as an interaction of populations. This allows us to model much larger systems than previously possible but in making the shift we are no longer able to collect any information about individuals in the system.

slide-61
SLIDE 61

Fluid approximation Strachey 100

Population models

A shift in perspective allows us to model the interactions between individual components but then only consider the system as a whole as an interaction of populations. This allows us to model much larger systems than previously possible but in making the shift we are no longer able to collect any information about individuals in the system. To characterise the behaviour of a population we calculate the proportion of individuals within the population that are exhibiting certain behaviours rather than tracking individuals directly.

slide-62
SLIDE 62

Fluid approximation Strachey 100

Population models

A shift in perspective allows us to model the interactions between individual components but then only consider the system as a whole as an interaction of populations. This allows us to model much larger systems than previously possible but in making the shift we are no longer able to collect any information about individuals in the system. To characterise the behaviour of a population we calculate the proportion of individuals within the population that are exhibiting certain behaviours rather than tracking individuals directly. Furthermore we make a continuous approximation of how the proportions vary over time.

slide-63
SLIDE 63

Fluid approximation Strachey 100

Population models — intuition

On Off

Y (t)

slide-64
SLIDE 64

Fluid approximation Strachey 100

Population models — intuition

On Off

Y (t) N copies: Y (N)

i

slide-65
SLIDE 65

Fluid approximation Strachey 100

Population models — intuition

On Off

Y (t) N copies: Y (N)

i

(0,N) (1,N−1) (2,N−2) (0,N)

....

X(N)(t)

slide-66
SLIDE 66

Fluid approximation Strachey 100

Population models — intuition

On Off

Y (t) N copies: Y (N)

i

(0,N) (1,N−1) (2,N−2) (0,N)

....

X(N)(t) X (N)

j

=

N

  • i=1

1{Y (N)

i

= j}

slide-67
SLIDE 67

Fluid approximation Strachey 100

Population models — intuition

On Off

Y (t) N copies: Y (N)

i

(0,N) (1,N−1) (2,N−2) (0,N)

....

X(N)(t) X (N)

j

=

N

  • i=1

1{Y (N)

i

= j} Y (t), Y (N)

i

(t) and X(N)(t) are all CTMCs; As N increases we get a sequence of CTMCs, X(N)(t)

slide-68
SLIDE 68

Fluid approximation Strachey 100

Normalised process — intuition

We consider the sequence of CTMCs, X(N)(t) as N − → ∞.

slide-69
SLIDE 69

Fluid approximation Strachey 100

Normalised process — intuition

We consider the sequence of CTMCs, X(N)(t) as N − → ∞. We focus on the occupancy measure — the proportion of the population that is in each possible state.

slide-70
SLIDE 70

Fluid approximation Strachey 100

Normalised process — intuition

We consider the sequence of CTMCs, X(N)(t) as N − → ∞. We focus on the occupancy measure — the proportion of the population that is in each possible state.

slide-71
SLIDE 71

Fluid approximation Strachey 100

Normalised process — intuition

We consider the sequence of CTMCs, X(N)(t) as N − → ∞. We focus on the occupancy measure — the proportion of the population that is in each possible state.

slide-72
SLIDE 72

Fluid approximation Strachey 100

Normalised process — intuition

We consider the sequence of CTMCs, X(N)(t) as N − → ∞. We focus on the occupancy measure — the proportion of the population that is in each possible state. In the normalised CTMC ˆ X(N)(t) we are concerned with only the proportion of agents that exhibit the different possible states.

slide-73
SLIDE 73

Fluid approximation Strachey 100

Kurtz’s Deterministic Approximation Theorem

Kurtz established in the 1970s that for suitable sequences of CTMCs, in the limit, the behaviour becomes indistinguishable from a continuous evolution of the occupancy measures, governed by an appropriate set of ordinary differential equations. Deterministic Approximation Theorem (Kurtz) Assume that ∃ x0 ∈ S such that ˆ X(N)(0) → x0 in probability. Then, for any finite time horizon T < ∞, it holds that as N − → ∞: P

  • sup

0≤t≤T

||ˆ X(N)(t) − x(t)|| > ε

  • → 0.

T.G.Kurtz. Solutions of ordinary differential equations as limits of pure jump Markov processes. Journal of Applied Probability, 1970.

slide-74
SLIDE 74

Fluid approximation Strachey 100

Illustrative trajectories

20 40 60 80 100 120 0.0 0.2 0.4 0.6 0.8 1.0 time probability

  • CTMC N=100

ODE

  • s

d i p

20 40 60 80 100 120 0.0 0.2 0.4 0.6 0.8 1.0 time probability

  • CTMC N=1000

ODE

  • s

d i p

Comparison of the limit fluid ODE and a single stochastic trajectory of a network epidemic example, for total populations N = 100 and N = 1000.

slide-75
SLIDE 75

Fluid approximation Strachey 100

Fluid semantics for Stochastic Process Algebras

To apply these results in a stochastic process algebra we need to derive the right set of ODEs, from the model expression.

slide-76
SLIDE 76

Fluid approximation Strachey 100

Fluid semantics for Stochastic Process Algebras

To apply these results in a stochastic process algebra we need to derive the right set of ODEs, from the model expression. Embedding the approach in a formal language offers the possibility to establish the conditions for convergence at the language level via the semantics,

slide-77
SLIDE 77

Fluid approximation Strachey 100

Fluid semantics for Stochastic Process Algebras

To apply these results in a stochastic process algebra we need to derive the right set of ODEs, from the model expression. Embedding the approach in a formal language offers the possibility to establish the conditions for convergence at the language level via the semantics, This removes the requirement to fulfil the proof obligation on a model-by-model basis.

slide-78
SLIDE 78

Fluid approximation Strachey 100

Fluid semantics for Stochastic Process Algebras

To apply these results in a stochastic process algebra we need to derive the right set of ODEs, from the model expression. Embedding the approach in a formal language offers the possibility to establish the conditions for convergence at the language level via the semantics, This removes the requirement to fulfil the proof obligation on a model-by-model basis. Moreover the derivation of the ODEs can be automated in the implementation of the language.

slide-79
SLIDE 79

Fluid approximation Strachey 100

Deriving a Fluid Approximation of a SPA model

The aim is to represent the CTMC implicitly (avoiding state space explosion), and to generate the set of ODEs which are the fluid limit of that CTMC.

slide-80
SLIDE 80

Fluid approximation Strachey 100

Deriving a Fluid Approximation of a SPA model

The aim is to represent the CTMC implicitly (avoiding state space explosion), and to generate the set of ODEs which are the fluid limit of that CTMC. The existing SOS semantics is not suitable for this purpose because it constructs the state space of the CTMC explicitly.

slide-81
SLIDE 81

Fluid approximation Strachey 100

Deriving a Fluid Approximation of a SPA model

The aim is to represent the CTMC implicitly (avoiding state space explosion), and to generate the set of ODEs which are the fluid limit of that CTMC. The existing SOS semantics is not suitable for this purpose because it constructs the state space of the CTMC explicitly.

SPA MODEL LABELLED TRANSITION SYSTEM CTMC Q ✲ ✲ SOS rules state transition diagram

slide-82
SLIDE 82

Fluid approximation Strachey 100

Deriving a Fluid Approximation of a SPA model

The aim is to represent the CTMC implicitly (avoiding state space explosion), and to generate the set of ODEs which are the fluid limit of that CTMC. The existing SOS semantics is not suitable for this purpose because it constructs the state space of the CTMC explicitly. We define a structured operational semantics which defines the possible transitions of an arbitrary abstract state and from this derive the ODEs.

slide-83
SLIDE 83

Fluid approximation Strachey 100

Deriving a Fluid Approximation of a SPA model

The aim is to represent the CTMC implicitly (avoiding state space explosion), and to generate the set of ODEs which are the fluid limit of that CTMC. The existing SOS semantics is not suitable for this purpose because it constructs the state space of the CTMC explicitly. We define a structured operational semantics which defines the possible transitions of an arbitrary abstract state and from this derive the ODEs.

SPA MODEL SYMBOLIC LABELLED TRANSITION SYSTEM ABSTRACT CTMC Q

  • r

ODEs FM(x) ✲ ✲ SOS rules generator functions

M.Tribastone, S.Gilmore and J.Hillston. Scalable Differential Analysis of Process Algebra Models. IEEE TSE 2012.

slide-84
SLIDE 84

Fluid approximation Strachey 100

slide-85
SLIDE 85

Dealing with uncertainty Strachey 100

Outline

1 Introduction 2 Discrete state space 3 Fluid approximation 4 Dealing with uncertainty

slide-86
SLIDE 86

Dealing with uncertainty Strachey 100

Developing a probabilistic programming approach

SPA represent systems in which there is variability in behaviour but still with the assumption that all parameters (rates) in the model are known.

slide-87
SLIDE 87

Dealing with uncertainty Strachey 100

Developing a probabilistic programming approach

SPA represent systems in which there is variability in behaviour but still with the assumption that all parameters (rates) in the model are known. What if we could... include information about uncertainty about the model? automatically use observations to refine this uncertainty? do all this in a formal context?

slide-88
SLIDE 88

Dealing with uncertainty Strachey 100

Developing a probabilistic programming approach

SPA represent systems in which there is variability in behaviour but still with the assumption that all parameters (rates) in the model are known. What if we could... include information about uncertainty about the model? automatically use observations to refine this uncertainty? do all this in a formal context? Starting from an existing process algebra (Bio-PEPA), we have developed a new language ProPPA that addresses these issues

A.Georgoulas, J.Hillston, D.Milios, G.Sanguinetti: Probabilistic Programming Process Algebra. QEST 2014.

slide-89
SLIDE 89

Dealing with uncertainty Strachey 100

Probabilistic programming

A programming paradigm for describing incomplete knowledge scenarios, and resolving the uncertainty. Describe how the data is generated in syntax like a conventional programming language, but leaving some variables uncertain.

slide-90
SLIDE 90

Dealing with uncertainty Strachey 100

Probabilistic programming

A programming paradigm for describing incomplete knowledge scenarios, and resolving the uncertainty. Describe how the data is generated in syntax like a conventional programming language, but leaving some variables uncertain. Specify observations, which impose constraints on acceptable

  • utputs of the program.
slide-91
SLIDE 91

Dealing with uncertainty Strachey 100

Probabilistic programming

A programming paradigm for describing incomplete knowledge scenarios, and resolving the uncertainty. Describe how the data is generated in syntax like a conventional programming language, but leaving some variables uncertain. Specify observations, which impose constraints on acceptable

  • utputs of the program.

Run program forwards: Generate data consistent with

  • bservations.
slide-92
SLIDE 92

Dealing with uncertainty Strachey 100

Probabilistic programming

A programming paradigm for describing incomplete knowledge scenarios, and resolving the uncertainty. Describe how the data is generated in syntax like a conventional programming language, but leaving some variables uncertain. Specify observations, which impose constraints on acceptable

  • utputs of the program.

Run program forwards: Generate data consistent with

  • bservations.

Run program backwards: Find values for the uncertain variables which make the output match the observations.

slide-93
SLIDE 93

Dealing with uncertainty Strachey 100

ProPPA: Probabilistic Programming Process Algebra

The objective of ProPPA is to retain the features of the stochastic process algebra: simple model description in terms of components rigorous semantics giving an executable version of the model...

slide-94
SLIDE 94

Dealing with uncertainty Strachey 100

ProPPA: Probabilistic Programming Process Algebra

The objective of ProPPA is to retain the features of the stochastic process algebra: simple model description in terms of components rigorous semantics giving an executable version of the model... ... whilst also incorporating features of a probabilistic programming language: recording uncertainty in the parameters ability to incorporate observations into models access to inference to update uncertainty based on

  • bservations
slide-95
SLIDE 95

Dealing with uncertainty Strachey 100

Semantics

parameter

model

k = 2

CTMC

slide-96
SLIDE 96

Dealing with uncertainty Strachey 100

Semantics

parameter

model

k ∈ [0,5]

set

  • f CTMCs
slide-97
SLIDE 97

Dealing with uncertainty Strachey 100

Semantics

parameter

model

k ∼ p

distribution

  • ver CTMCs

μ

slide-98
SLIDE 98

Dealing with uncertainty Strachey 100

Semantics

parameter

model

k ∼ p

distribution

  • ver CTMCs

μ

ProPPA models are given semantics in terms of Probabilistic Constraint Markov Chains, and a variety of inference algorithms are available to refine the prior distribution into the posterior.

slide-99
SLIDE 99

Dealing with uncertainty Strachey 100

Semantics

parameter

model

k ∼ p

distribution

  • ver CTMCs

μ

  • bservations

inference

posterior distribution

μ*

ProPPA models are given semantics in terms of Probabilistic Constraint Markov Chains, and a variety of inference algorithms are available to refine the prior distribution into the posterior.

slide-100
SLIDE 100

Dealing with uncertainty Strachey 100

The future?

The area for quantitative analysis and verification is a good example of Strachey’s ideal of theory and practice intertwined. New applications pose new challenges for both representation and analysis and we seek to design languages to support them. Current challenges include Spatially constrained behaviour Heterogeneous populations of agents Collective adaptive systems where global behaviour is defined by but also influences the behaviour of individual agents.

slide-101
SLIDE 101

Dealing with uncertainty Strachey 100

Thank you!