23-Ind-A6 Systems Simulation · May 2018
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
National Exams — May 2018 — 17-Ind-A6 Systems Simulation. Three-hour, closed-book exam; one of two permitted calculators (Sharp or Casio), one 8.5″×11.0″ aid sheet (both sides). Format: three sections — Section A (four concept questions, candidates choose any two, 10 marks each, 20 marks total), Section B (three methods questions built around one continuing warehouse-simulation case study, candidates choose any two, 15 marks each, 30 marks total), Section C (two applications questions, candidates choose any one, 20 marks each). All nine questions are solved below for completeness. Two source anomalies are flagged where they occur: the front-page summary table states Section A is "Do 2 of 3," while Section A's own instructions and its four printed question sets read "two of the following four" — the printed four-question section is answered in full here; and Part C Question 2's sub-parts (a)–(c) are never printed anywhere in the paper, even though the results text for (d)–(f) explicitly refers back to "the factorial design matrix in (a)." Two-page Normal-distribution tables were supplied with the exam; the values below are the same table values obtained by direct computation.
Reference texts: Banks, Carson, Nelson & Nicol, Discrete-Event System Simulation (5th ed., Pearson) — random-number/random-variate generation, input modeling and goodness-of-fit testing, output analysis (warm-up, replication length, batch means vs. replication/deletion), and comparing alternative systems; Montgomery, Design and Analysis of Experiments (current ed., Wiley) — single-factor ANOVA, multiple comparisons, and 2k factorial designs with interaction analysis (Part C).
Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.
Given. $q(x)=3x^2/2$ on $-1\le x\le1$; majorizing function $g(x)=3/2$; linear congruential generator (LCG) $a=21,\ m=100,\ c=13,\ X_0=7$.
Find. (a) an acceptance–rejection (A-R) algorithm; (b) two accepted variates from the LCG stream; (c) a comment on the LCG's period.
Approach. Build the standard A-R test using $g$ as the constant envelope; iterate the LCG and apply the test in non-overlapping $(U_1,U_2)$ pairs until two acceptances occur; check the LCG against the Hull–Dobell full-period conditions.
| Trial | $U_1$ | $U_2$ | $Y=-1+2U_1$ | $Y^2$ | Accept? |
|---|---|---|---|---|---|
| 1 | 0.60 | 0.73 | 0.20 | 0.0400 | reject |
| 2 | 0.46 | 0.79 | −0.08 | 0.0064 | reject |
| 3 | 0.72 | 0.25 | 0.44 | 0.1936 | reject |
| 4 | 0.38 | 0.11 | −0.24 | 0.0576 | reject |
| 5 | 0.44 | 0.37 | −0.12 | 0.0144 | reject |
| 6 | 0.90 | 0.03 | 0.80 | 0.6400 | accept |
| 7 | 0.76 | 0.09 | 0.52 | 0.2704 | accept |
† the constant-envelope area ratio here is $c=g(x)\big/\big(\text{uniform density }1/2\big)=3$, so the expected number of candidates per acceptance is $3$, i.e. an average acceptance probability of $1/3$ — two acceptances in seven trials is well within normal sampling variation of that rate.
| Item | Result |
|---|---|
| (a) algorithm | candidate $Y=-1+2U_1$; accept if $U_2\le Y^2$ |
| (b) two accepted variates | $X_1=0.80$, $X_2=0.52$ (after 5 rejections) |
| (c) LCG period | Hull–Dobell fully satisfied — full period $=100$ |