Top Banner
Palm Calculus Made Easy The Importance of the Viewpoint JY Le Boudec 1
69

Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

May 24, 2018

Download

Documents

dangque
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Palm CalculusMade Easy

The Importance of the ViewpointJYLeBoudec

1

Page 2: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Contents

1. InformalIntroduction2. PalmCalculus

3. OtherPalmCalculusFormulae4. ApplicationtoRWP5. OtherExamples6. PerfectSimulation

2

Page 3: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

1. Event versus Time Averages

Considerasimulation,stateStAssumesimulationhasastationaryregime

ConsideranEventClock:timesTnatwhichsomespecificchangesofstateoccur

Ex:arrivalofjob;Ex.queuebecomesempty

Eventaveragestatistic

Timeaveragestatistic

3

Page 4: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Example: Gatekeeper; Average execution time

4

0 90 100 190 200 290 300

50001000

Real time t (ms)

job arrival

50001000

50001000

Execution time for a job that

arrives at t (ms)

Viewpoint 1: System Designer Viewpoint 2: Customer

Page 5: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Example: Gatekeeper; Average execution time

5

0 90 100 190 200 290 300

50001000

Real time t (ms)

job arrival

50001000

50001000

Execution time for a job that

arrives at t (ms)

Viewpoint 1: System Designer Viewpoint 2: Customer

Two processes, with execution times 5000 and 1000

5000 10002 3000

Inspector arrives at a random timered processor is used with proba

90100 5000

10100 1000

4600

Page 6: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Sampling Bias

Ws andWc aredifferentAmetric definition should mentionthesampling method (viewpoint)Different sampling methods may provide different values:this is thesampling bias

PalmCalculus is asetofformulasforrelating different viewpoints

Canoften be obtained bymeans oftheLargeTimeHeuristic

6

Page 7: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

Wewant torelate andWe apply thelargetimeheuristic

1.Howdowe evaluate these metrics inasimulation?

7

Page 8: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

Wewant torelate andWe apply thelargetimeheuristic

1. Howdowe evaluate these metrics inasimulation?1

…1

where indexofnext greenorred arrow at orafter1

8

Page 9: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

2. Breakoneintegral into pieces that matchthe ’s:1

…1

9

Page 10: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

2. Breakoneintegral into pieces that matchthe ’s:1

…1

1⋯

1⋯

1 ⋯

1⋯

10

Page 11: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

3. Compare1

11

Page 12: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large Time Heuristic Explainedon an Example

3. Compare1

⋯1

cov , ̅ cov ,1

cov ,

12

Page 13: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

This is Palm Calculus !

13

cov ,

Page 14: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Sn =90,10,90,10,90Xn =5000,1000,5000,1000,5000

Correlationis>0

Wc >Ws

Whendothetwoviewpointscoincide?

14

Page 15: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

The Large Time Heuristic

Formally correctifsimulation is stationary

Itis arobust method,i.e.independent ofassumptions ondistributions(andonindependence)

15

Page 16: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Other «Clocks»

16

Flow 1 Flow 2

Flow 3

Distribution of flow sizesfor an arbitrary flowfor an arbitrary packet

Page 17: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

17

Load Sensitive Routing of Long-Lived IP FlowsAnees Shaikh, Jennifer Rexford and Kang G. Shin

Proceedings of Sigcomm'99

ECDF, per flow viewpoint

ECDF, per packet viewpoint

Page 18: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Meanflowsize:perflowperpacket

18

Flow 1 Flow 2

Flow 3

Distribution of flow sizesfor an arbitrary flowfor an arbitrary packet

Page 19: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large «Time» Heuristic

1. Howdowe evaluate these metrics inasimulation?

2. Putthepackets side byside,sorted byflow

19

Flow n=1 Flow n=2 Flow n=3

p=1 p=2 p=3 p=4 p=5 p=6 p=7 p=8 p=9

Page 20: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large «Time» Heuristic

1. Howdowe evaluate these metrics inasimulation?perflow ∑

perpacket ∑where when packet belongs toflow

2. Putthepackets side byside,sorted byflow

20

Flow n=1 Flow n=2 Flow n=3

p=1 p=2 p=3 p=4 p=5 p=6 p=7 p=8 p=9

1⋯

1⋯

1

Page 21: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large «Time» Heuristic

3. Compare

21

Flow n=1 Flow n=2 Flow n=3

p=1 p=2 p=3 p=4 p=5 p=6 p=7 p=8 p=9

Page 22: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large «Time» Heuristic

3. Compare

22

Flow n=1 Flow n=2 Flow n=3

p=1 p=2 p=3 p=4 p=5 p=6 p=7 p=8 p=9

1

1 1

1 1 1 1var

1var

Page 23: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Large «Time» Heuristic for PDFs of flow sizes

Putthepackets side byside,sorted byflow

1. Howdowe evaluate these metrics inasimulation?

23

Flow n=1 Flow n=2 Flow n=3

Page 24: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

24

Page 25: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Cyclist’s Paradox

Onaroundtriptour,there is moreuphillsthan downhills

25

Page 26: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

The km clock vs the standard clock

ℓ speedfortheℓ kilometer1

ℓℓ

meanof ℓ

∑ 1ℓℓ

harmonicmeanof ℓ meanof ℓ

26

Page 27: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

27

2. Palm Calculus : Framework

Astationaryprocess(simulation)withstateSt.SomequantityXt measuredattimet.Assumethat

(St;Xt)isjointlystationary

I.e.,St isinastationaryregimeandXt dependsonthepast,presentandfuturestateofthesimulationinawaythatisinvariantbyshiftoftimeorigin.Examples

St =currentpositionofmobile,speed,andnextwaypointJointlystationarywithSt:Xt =currentspeedattimet;Xt =timetoberununtilnextwaypointNotjointlystationarywithSt:Xt =timeatwhichlastwaypointoccurred

Page 28: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Stationary Point Process

Considersomeselectedtransitions ofthesimulation,occurringattimesTn.

Example:Tn =timeofnth tripend

Tn isacalledastationarypointprocessassociatedtoStStationarybecauseSt isstationaryJointlystationarywithSt

Time0isthearbitrary pointintime

28

Page 29: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

29

Palm ExpectationAssume:Xt,St arejointlystationary,Tn isastationarypointprocessassociatedwithStDefinition :thePalmExpectation is

Et(Xt)=E(Xt |aselectedtransitionoccurredattimet)

Bystationarity:

Et(Xt)=E0(X0)

Example:Tn =timeofnth tripend,Xt =instantspeedattimetEt(Xt)=E0(X0)=averagespeedobservedatawaypoint

Page 30: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

30

E(Xt)=E(X0)expressesthetimeaverageviewpoint.Et(Xt)=E0(X0)expressestheeventaverageviewpoint.Exampleforrandomwaypoint:

Tn =timeofnth tripend,Xt =instantspeedattimetEt(Xt)=E0(X0)=averagespeedobservedattripendE(Xt)=E(X0)=averagespeedobservedatanarbitrarypointintime

Xn

Xn+1

Page 31: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

31

Formal DefinitionIndiscretetime,wehaveanelementaryconditionalprobability

Incontinuoustime,thedefinitionisalittlemoresophisticated

usesRadonNikodymderivative– seelecturenotefordetailsAlsosee[BaccelliBremaud87]foraformaltreatment

Palmprobability isdefinedsimilarly

Page 32: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

32

Ergodic InterpretationAssumesimulationisstationary+ergodic,i.e.samplepathaveragesconvergetoexpectations;thenwecanestimatetimeandeventaveragesby:

Intermsofprobabilities:

Page 33: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

33

Intensity of a Stationary Point ProcessIntensity ofselectedtransitions: :=expectednumberoftransitionspertimeunit

Page 34: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

34

Two Palm Calculus FormulaeIntensityFormula:

wherebyconventionT0 ≤ 0<T1

InversionFormula

Theproofs aresimpleindiscretetime– seelecturenotes

Page 35: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

35

Page 36: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

3. Other Palm Calculus Formulae

36

Page 37: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Joe’ sWaitingTime

var

meanwaitingtime var

37

0.5 mean time between busessystem’s viewpoint

penalty due to variability

Page 38: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

38

Feller’s Paradox

Page 39: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

We encountered Feller’s Paradox Already

39

Page 40: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

40

For a Poisson process, what is the mean length of an interval ?

Page 41: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Rate Conservation Law

41

Page 42: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

42

Page 43: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

43

Page 44: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Campbell’s Formula

Shotnoisemodel:customern addsaloadh(t‐Tn,Zn)whereZn issomeattributeandTn isarrivaltime

Example:TCPflow:L=λVwithL=bitspersecond,V=totalbitsperflowandλ=flowspersec

44

t

Total load

T1 T2 T3

Page 45: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Little’s Formula

45

t

Total load

T1 T2 T3

Page 46: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

4. RWP and Freezing Simulations

ModulatorModel:

46

Page 47: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Is the previous simulation stationary ?

Seemslikeasuperfluousquestion,howeverthereisadifferenceinviewpointbetweentheepochn andtime

LetSn bethelengthofthenth epochIfthereisastationaryregime,thenbytheinversionformula

sothemeanofSn mustbefinite

Thisisinfactsufficient(andnecessary)

47

Page 48: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

48

Application to RWP

Page 49: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

49

Time Average Speed, Averaged over nindependent mobiles

BluelineisonesampleRedlineisestimateofE(V(t))

Page 50: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

50

A Random waypoint model that has no stationary regime !

Assumethatattriptransitions,nodespeedissampleduniformlyon[vmin,vmax]Takevmin =0 andvmax >0

Meantripduration=(meantripdistance)

Meantripdurationisinfinite!

Wasoftenusedinpractice

Speeddecay:“consideredharmful”[YLN03]

max

0max

1 v

vdv

v

Page 51: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

What happens when the model does not have a stationary regime ?

Thesimulationbecomesold

Page 52: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Stationary Distribution of Speed(For model with stationary regime)

Page 53: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Closed Form AssumeastationaryregimeexistsandsimulationisrunlongenoughApplyinversionformula andobtaindistributionofinstantaneousspeedV(t)

Page 54: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

54

Removing Transient MattersA. Inthemobilecase,thenodesaremoreoftentowardsthecenter,distancebetweennodesisshorter,performanceisbetterThecomparisonisflawed.Shoulduseforstaticcasethesamedistributionofnodelocationasrandomwaypoint.Istheresuchadistributiontocompareagainst ?

Random waypoint

Static

A(true)example:Compareimpactofmobilityonaprotocol:

Experimenterplacesnodesuniformlyforstaticcase,accordingtorandomwaypointformobilecaseFindsthatstaticisbetter

Q. Findthebug!

Page 55: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

A Fair Comparison

Werevisitthecomparisonbysamplingthestaticcasefromthestationaryregimeoftherandomwaypoint

Random waypoint

Static, from uniform

Static, same node location as RWP

Page 56: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

56

Isitpossibletohavethetimedistributionofspeeduniformlydistributedin[0;vmax]?

Page 57: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

57

5. PASTAThereisanimportantcasewhereEventaverage=Timeaverage“PoissonArrivalsSeeTimeAverages”

Moreexactly,shouldbe:PoissonArrivalsindependentofsimulationstateSeeTimeAverages

Page 58: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

58

Page 59: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

59

Page 60: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

6. Perfect Simulation

AnalternativetoremovingtransientsPossiblewheninversionformulaistractableExample:randomwaypoint

Sameappliestoalargeclassofmobilitymodels

60

Page 61: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

61

Removing Transients May Take Long

Ifmodelisstableandinitialstateisdrawnfromdistributionotherthantime‐stationarydistribution

Thedistributionofnodestateconvergestothetime‐stationarydistribution

Naïve:so,let’ssimplytruncateaninitialsimulationduration

Theproblemisthatinitialtransiencecanlastverylong

Example[spacegraph]:nodespeed=1.25m/sboundingarea=1kmx1km

Page 62: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

62

Perfect simulation is highly desirable (2)

Distributionofpath:

Time = 100s

Time = 50s

Time = 300s

Time = 500s

Time = 1000s

Time = 2000s

Page 63: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Solution: Perfect Simulation

Def:asimulationthatstartswithstationarydistributionUsuallydifficultexceptforspecificmodelsPossibleifweknowthestationarydistribution

Sample Prev and Next waypoints from their joint stationary distributionSample M uniformly on segment [Prev,Next]Sample speed V from stationary distribution

Page 64: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

Stationary Distrib of Prev and Next

Page 65: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

65

Stationary Distribution of Location Is also Obtained By Inversion Formula

Page 66: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

66

Page 67: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

No Speed Decay

Page 68: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

68

Perfect Simulation Algorithm

SampleaspeedV(t)fromthetimestationarydistributionHow?A:inversionofcdf

SamplePrev(t),Next(t)How?

SampleM(t)

Page 69: Palm Calculus Made Easy - École Polytechnique Fédérale ...perfeval.epfl.ch/printMe/palm.pdf · Palm Calculus isa set of formulas for relatingdifferentviewpoints Can oftenbeobtainedby

ConclusionsAmetricshouldspecifythesamplingmethodDifferentsamplingmethodsmaygiveverydifferentvaluesPalmcalculuscontainsafewimportantformulas

Whichones?

Freezingsimulationsareapatterntobeawareof