Optimistic A.SRIP Simulation Methods
4.2 Multiple Replications in Parallel
4.2.2 Spectral Analysis in Parallel Time Streams
Basing on our previous experiencein non-parallel stochastic simulation([ASGA89], [PAWL88], [PAWL90a], [PAW91]) and exhaustive comparative studies of var- ious sequential estimators conducted in Chapter 3, we propose a new tech- nique of sequential estimation of sample means in MRIP scenario, called
Spectral Analysis in Parallel Time Streams (SA-PTS), that is a generalisa- 74
tion of sequential Spectral Analysis (SA) in its HW version, i.e. the version proposed by Heidelberger and Welch [HEID82].
Following SA-PTS,P independent replications of the simulationare launched when the simulation begins; each replication is run in a time stream parallel to others. Within each replication, and for each parameter being estimated, there is an associated series of checkpoints, each checkpoint specifying the number of steady state observations collected. When the number of observa- tions for the estimate of a parameter equals a checkpoint for that parameter, a local point and interval estimate of that parameter is produced, and the es- timates are sent to the global control process responsible for estimating that parameter. Let the number of steady state estimates collected, by the time the i-th replication has reached the j-th checkpoint be denoted by nji. Let
us denote the local point estimate produced by theith replication at the j-th checkpoint by (X)i(ji) and the estimate of its variance byVij = ^2[(X)
i(ji)].
The variance of a point estimator is estimated as the value of its spectral density function at zero frequency, obtained through a regression t to the logarithm of the averaged periodogram of the steady state segment of the output sequence as described in Chapter 2.
Thus if P processors are used to run simulation processes, each time when a global control process is contacted, it can use up to P local esti- mates of the mean, (X)1j
1;(X) 2j
2;:::;(X)PjP, and their respective variances,
V1j 1;V
2j
2;:::;VPjP, submitted from dierent independent replications of the
simulated process. The i-th local point and interval estimate (produced by the ith replication) was estimated over nji observations. The global control
process for a parameter is responsible is responsible for collecting local es- timates of that parameter from the parallel replications, and computing a global estimate of the mean, and its condence interval. When selecting an estimator for the global mean, one should bear in mind that the relative en- tropy of any pair of local point estimates (produced by a pair of replications) does not necessarily equal to the relative number of observation produced by the two processes. For concreteness, given that a point estimate from the 1st replicated simulation process (X)1j
1 was obtained from nj1=100 obser-
vations, and the estimate from the 2nd replicated simulation process (X)2j 2
was obtained from nj2=300 observations, one cannot assume automatically
that the entropy of the second local estimate is 3 times that of the rst, since each replicated process would have evolved over independent time streams.
This suggested that a global point estimate, i.e. an estimate of the mean using the P local estimates, should also take the entropy of the observations into account. Let use dene
^Hi = ^R(0)nVijiji
i (4.3)
where ^R(0)kiji is the estimate of the variance of (X)kiji computed over the
nji, but assuming that the observations were independent.
Then the natural estimator of the global mean is =
XSA,PTS: = XSA,PTS= n j1 ^H 1(X)1j 1 +nj2 ^H 2(X)2j 2;:::;njPH^P(X)PjP P Pm=1njmH^m (4.4) The estimate of the variance of this estimator would require an estimation of the second central moments of the point estimators as well. We have therefore simplied the above estimator to the following pooled estimated, indeed assuming that the entropy of each observation is the same, regardless of which replication of the simulated process that it was collected from :
= XSA,PTS= n j1 n (X)1j 1+ n j2 n (X)2j 2 +::: + n jP n (X)PjP (4.5) Now =
XSA,PTS is a linear combination of independent random variables (since
the local point estimates are obtained from independent processes), the global precision is evaluated using a weighted pooled estimator of the variance of the mean: VSA,PTS = (n j1 n )2V 1j 1 + (n j2 n )2V 2j 2 +::: + (n jP n )2V PjP (4.6)
Recall that (X)iji andViji are the local estimates of the mean and its vari-
ance from the i-th replication respectively, calculated over nji observations,
and n=nj1 +nj2+:::+ njP are the total number of observations available at
the instant when the global precision control processes was contacted. The form of Eqn. 4.5 suggests that the precision of =
XSA,PTS can be approximated
from a Student t-distribution. Following SA/HW, each component estimator in Eqn. 4.5 has the same number,d, degrees of freedom (default value: d=7); c.f. [HEID82]. Thus, the number of degrees of freedom of the pooled esti- mator, obtained fromP independent components, is P d. High degrees of
freedom, plus variance reduction in Eqn. 4.4, leads to an expectation for nar- row and reliable condence intervals, to be tested by our coverage analysis of SA-PTS. One also expects SA-PTS to be more user-friendly, since, contrary to IR, it does not require the replication size to be determined in advance (only one replication run is executed at each processor until the stopping criterion is met), and SA-PTS saves data (fewer initial observations have to be discarded, in total, from fewer replications).
Let us note that RC-PTS, the method based on regenerative cycles and suggested in [REGO91], [SUND91] and [REGO92], although conceptually similar and simple, requires from users to select regenerative points. Proper selection of regenerative points is practically impossible without a deeper un- derstanding of the system being simulated, and good (frequently occurring) regenerative points do not always exist. On the other hand, poorly chosen regenerative points may lead to excessively long run lengths. The quality of RC-PTS has yet to be analysed.
In SA-PTS implemented in AKAROA pooled estimates of analysed pa- rameters and their precision are calculated by their corresponding global control processes. If several parameters are estimated during one simulation run, then one global control process is responsible for the analysis of each parameter. If the required precision of the steady state estimate of a parame- ter has been achieved, the global control process for that parameter initiates a termination request protocol. Subsequently, if it has determined that es- timators of all parameters have achieved their required precision, i.e. if all global control processes have secured estimates of their respective parameters to the required level of precision, messages are sent to initiate the reporting of results, and then stop all simulation processes. Virtual-Real time interac- tions between the SA-PTS simulation processes in MRIP scenario are shown in Fig. 4.2 .
The design goals of AKAROA, and its fuctionalities from the user's point of view as specied by its user programming and runtime interface will be considered in the next Chapter. Then the architecture, implementation, and
Figure 4.2: Virtual-Real time interactions between processes in SA-PTS. the results of initial performancestudies of AKAROAare reported in Chapter 6.