Stochastic Simulation Discrete simulation/event-by-event Bo Friis - - PowerPoint PPT Presentation

stochastic simulation discrete simulation event by event
SMART_READER_LITE
LIVE PREVIEW

Stochastic Simulation Discrete simulation/event-by-event Bo Friis - - PowerPoint PPT Presentation

Stochastic Simulation Discrete simulation/event-by-event Bo Friis Nielsen Institute of Mathematical Modelling Technical University of Denmark 2800 Kgs. Lyngby Denmark Email: bfni@dtu.dk Discrete event simulation Discrete event


slide-1
SLIDE 1

Stochastic Simulation Discrete simulation/event-by-event

Bo Friis Nielsen

Institute of Mathematical Modelling Technical University of Denmark 2800 Kgs. Lyngby – Denmark Email: bfni@dtu.dk

slide-2
SLIDE 2

02443 – lecture 5 2

DTU

Discrete event simulation Discrete event simulation

  • Continuous but asynchronous time
  • Systems with discrete state-variables

⋄ Inventory systems ⋄ Communication systems ⋄ Traffic systems - (simple models)

  • even-by-event principle
slide-3
SLIDE 3

02443 – lecture 5 3

DTU

Elements of a discrete simulation language/program Elements of a discrete simulation language/program

  • Real time clock
  • State variables
  • Event list(s)
  • Statistics
slide-4
SLIDE 4

02443 – lecture 5 4

DTU

The event-by-event principle The event-by-event principle

  • Advance clock to next event to occur
  • Invoke relevant event handling routine

⋄ collect statistics ⋄ Update system variables

  • Generate and schedule future events - insert in event list(s)
  • return to top
slide-5
SLIDE 5

02443 – lecture 5 5

DTU

Analysing steady-state behaviour Analysing steady-state behaviour

  • Burn-in/initialisation period

⋄ Typically this has to be determined experimentally

  • Confidence intervals/variance estimated from sub-samples
slide-6
SLIDE 6

02443 – lecture 5 6

DTU

Queueing systems Queueing systems

  • Arrival process
  • Service time distribution(s)
  • Service unit(s)
  • Priorities
  • Queueing discipline
slide-7
SLIDE 7

02443 – lecture 5 7

DTU Buffer S(t) A(t)

  • A(t) - Arrival process
  • S(t) - Service process (service time distribution)
  • Finite or infinite waiting room
  • One or many serververs
  • Kendall notation: A(t)/S(t)/N/K

⋄ N - number of servers ⋄ K - room in system (sometime K only relates to waiting room)

slide-8
SLIDE 8

02443 – lecture 5 8

DTU

Performance measures Performance measures

  • Waiting time distribution

⋄ Mean ⋄ Variance ⋄ Quantiles

  • Blocking probabilities
  • Utilisation of equipment (servers)
  • Queue length distribution
slide-9
SLIDE 9

02443 – lecture 5 9

DTU

N(t) X X X X X X S = X + ..... + X

1 n n 1 2 3 4 5 6

* * * * *

slide-10
SLIDE 10

02443 – lecture 5 10

DTU

Poisson process Poisson process

  • Independently exponentially distributed intervals

P(Xi ≤ t) = 1 − e−λt

  • Poisson distributed number of events in an interval. Number of

events in non-overlapping intervals independent N(t) ∼ P(λt) ⇔ P(N(t) = n) = (λt)n n! e−λt

  • If the intervals Xi are independently but generally distributed we

call the process a renewal process

slide-11
SLIDE 11

02443 – lecture 5 11

DTU

Sub-samples - precision of estimate Sub-samples - precision of estimate

  • We need sub-samples in order to investigate the precision of the

estimate.

  • The sub-samples should be independent if possible
  • For independent subsamples the standard deviation of our

estimate will be proportional to √n

−1

slide-12
SLIDE 12

02443 – lecture 5 12

DTU

Confidence limits based on sub-samples Confidence limits based on sub-samples

  • We want to estimate some quantity θ
  • We obtain n different (independent) estimates ˆ

θi.

  • The central limit theorem motivates us to construct the

following confidence interval: ¯ θ = n

i=1 ˆ

θi n S2

θ =

1 n − 1 n

  • i=1

ˆ θ2

i − n¯

θ2

  • ¯

θ + Sθ √nt α

2 (n − 1); ¯

θ + Sθ √nt1− α

2 (n − 1)

slide-13
SLIDE 13

02443 – lecture 5 13

DTU

Confidence limits based on sub-samples - based on normal distribution Confidence limits based on sub-samples - based on normal distribution

  • ¯

θ + Sθ √nu α

2 ; ¯

θ + Sθ √nu1− α

2

slide-14
SLIDE 14

02443 – lecture 5 14

DTU

General statistical analysis General statistical analysis

  • More generally we can apply any statistical technique
  • In the planning phase - experimental design
  • In the analysis phase

⋄ Analysis of variance ⋄ Time-series analysis ⋄ . . .