Академический Документы
Профессиональный Документы
Культура Документы
Analysis
Output Data Analysis • Terminating versus non-terminating simulations
o Terminating simulation:
Runs for some duration of time TE, where E is a
Overview of Output Data Analysis specified event that stops the simulation.
Starts at time 0 under well-specified initial conditions.
The Stochastic Process Ends at the stopping time TE.
1 __________________________ 2 _________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
3 __________________________ 4 _________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
Overview of Output Data The Stochastic Process
Analysis • Model output consist of one or more random variables (r.
• Whether a simulation is considered to be terminating or v.)
non-terminating depends on both • It is an input-output transformation and the input
o The objectives of the simulation study and variables are r.v.’s.
o The nature of the system.
5 __________________________ 6 _________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
7 __________________________ 8 _________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Consider the estimation of a performance parameter, θ • Point estimation for discrete time data.
(or φ), of a simulated system. o The point estimator:
o Discrete time data: [Y1, Y2, …, Yn], with ordinary mean:
θ
o Continuous-time data: {Y(t), 0 ≤ t ≤ TE} with time-
weighted mean: φ
Is unbiased if its expected value is θ, that is if:
Is biased if:
9 __________________________ 10 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
11 _________________________ 12 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Performance measure that does not fit: quantile or • To understand confidence intervals fully, it is important to
percentile: distinguish between measures of error, and measures of
risk, e.g., confidence interval versus prediction interval.
o Estimating quantiles: the inverse of the problem of • Suppose the model is the normal distribution with mean
estimating a proportion or probability. θ, variance σ2 (both unknown).
o Consider a histogram of the observed values Y: o Let Yi be the average cycle time for parts produced on
Find θˆ such that 100p% of the histogram is to the left the ith replication of the simulation (its mathematical
of (smaller than) θˆ. expectation is θ).
13 _________________________ 14 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
15 _________________________ 16 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Prediction Interval (PI): o Normal-theory prediction interval:
o A measure of risk.
o A good guess for the average cycle time on a particular
day is our estimator but it is unlikely to be exactly
right.
o PI is designed to be wide enough to contain the actual o The length of PI will not go to 0 as R increases because
average cycle time on any particular day with high we can never simulate away risk.
probability.
17 _________________________ 18 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
19 _________________________ 20 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Across Replication: • Overall sample average, Y.. , and the interval replication
o For example: the daily cycle time averages (discrete sample averages, Yi, are always unbiased estimators of
time data) the expected daily average cycle time or daily average
WIP.
21 _________________________ 22 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
23 _________________________ 24 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Call Center Example: estimate the agent’s utilization ρ o For the final sample size:
over the first 2 hours of the workday.
o Initial sample of size R0 = 4 is taken and an initial estimate
of the population variance is S02 = (0.072)2 = 0.00518.
o The error criterion is ε = 0.04 and confidence coefficient is o R = 15 is the smallest integer satisfying the error criterion,
1-α = 0.95, hence, the final sample size must be at least: so R - R0 = 11 additional replications are needed.
o After obtaining additional outputs, half-width should be
checked.
25 _________________________ 26 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
27 _________________________ 28 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Example: Suppose R = 1000 reps, to estimate the p =
• Confidence Interval of Quantiles: An approximate (1- 0.8 quantile with a 95% confidence interval.
α)100% confidence interval for θ can be obtained by
o First, sort the data from smallest to largest.
finding two values θl and θu.
o Then estimate of θ by the (1000)(0.8) = 800th
o θl cuts off 100pl% of the histogram (the Rpl smallest
smallest value, and the point estimate is 212.03.
value of the sorted data).
o θu cuts off 100pu% of the histogram (the Rpu smallest
value of the sorted data).
29 _________________________ 30 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
o Performance measure:
31 _________________________ 32 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• The sample size is a design choice, with several • Notation: the estimation of θ from a discrete-time output
considerations in mind: process.
o Any bias in the point estimator that is due to artificial o One replication (or run), the output data: Y1, Y2, Y3, …
or arbitrary initial conditions (bias can be severe if run o With several replications, the output data for
length is too short). replication r: Yr1, Yr2,Yr3, …
o Desired precision of the point estimator.
o Budget constraints on computer resources.
33 _________________________ 34 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
35 _________________________ 36 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Divide each simulation into two phases: • M/G/1 queueing example: A total of 10 independent
o An initialization phase, from time 0 to time T0. replications were made.
o A data-collection phase, from T0 to the stopping o Each replication beginning in the empty and idle state.
time T0+TE. o Simulation run length on each replication was T0+TE =
o The choice of T0 is important: 15,000 minutes.
After T0, system should be more nearly o Response variable: queue length, LQ(t,r) (at time t of
representative of steady-state behavior. the rth replication).
o System has reached steady state: the probability o Batching intervals of 1,000 minutes, batch means
distribution of the system state is close to the
steady-state probability distribution (bias of
response variable is negligible).
37 _________________________ 38 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
39 _________________________ 40 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• No widely accepted, objective and proven technique to o Cumulative average becomes less variable as more data
guide how much data to delete to reduce initialization are averaged.
bias to a negligible level. o The more correlation present, the longer it takes for Yj
• Plots can, at times, be misleading but they are still to approach steady state.
recommended. o Different performance measures could approach steady
state at different rates.
o Ensemble averages reveal a smoother and more precise
trend as the # of replications, R, increases.
o Ensemble averages can be smoothed further by plotting
a moving average.
41 _________________________ 42 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
43 _________________________ 44 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
The Stochastic Process The Stochastic Process
• Using a single, long replication: • A continuous-time process, {Y(t), T0 ≤ t ≤ T0+TE}:
o Problem: data are dependent so the usual estimator is o k batches of size m = TE/k, batch means:
biased.
o Solution: batch means.
• Batch means: divide the output data from 1 replication • A discrete-time process, {Yi , i = d+1,d+2, …, n}:
(after appropriate deletion) into a few large batches and o k batches of size m = (n – d)/k, batch means:
then treat the means of these batches as if they were
independent.
45 _________________________ 46 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
47 _________________________ 48 ________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________
____________________________ ___________________________