Docsity

ISYE 6644 (Simulation) Midterm Exam Study Guide, Exams of Mathematical Modeling and Simulation

Toggle sidebar
bg1
ISYE 6644 MIDTERM EXAM
NEWEST EXAM WITH COMPLETE
QUESTIONS AND DETAILED ANSWERS
Which type of simulation focuses on long-term behavior? Examples include: long-
running assembly line in a factory, performance of a transportation network under
various conditions, and an estimate of the unemployment rate 30 years from now
(M1L9). - ✔✔✔ Correct Answer > Steady-state simulations
Which method is used to analyze the simulation output for terminating simulations
(M1L9)? - ✔✔✔ Correct Answer > Independent Replications.
Make indep runs under the same conditions, get the sample mean. Sample means
will approximate iid normal (by CLT), which can use classical stats tests. NOTE:
sample means are used and NOT the original data since raw output is likely not iid,
normal.
What is one method described in class to analyze simulation output for steady state
simulations (M1L9)? - ✔✔✔ Correct Answer > Batch means.
This involves warming up the simulation (initialization bias / not included in
analysis). Make one long run. Break up run into evenly sized batches and calculate
sample mean from each batch. Do classic stats assuming iid normal on the batch
means (relies on CLT).
Name the two numerical methods covered in class to find the zeroes (roots) of a
complicated non-linear function that may not have a closed-form solution. - ✔✔✔
Correct Answer > 1. Bisection method
2. Newton's method
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download ISYE 6644 (Simulation) Midterm Exam Study Guide and more Exams Mathematical Modeling and Simulation in PDF only on Docsity!

ISYE 6644 MIDTERM EXAM

NEWEST EXAM WITH COMPLETE

QUESTIONS AND DETAILED ANSWERS

Which type of simulation focuses on long-term behavior? Examples include: long- running assembly line in a factory, performance of a transportation network under various conditions, and an estimate of the unemployment rate 30 years from now (M1L9). - ✔✔✔ Correct Answer > Steady-state simulations Which method is used to analyze the simulation output for terminating simulations (M1L9)? - ✔✔✔ Correct Answer > Independent Replications. Make indep runs under the same conditions, get the sample mean. Sample means will approximate iid normal (by CLT), which can use classical stats tests. NOTE: sample means are used and NOT the original data since raw output is likely not iid, normal. What is one method described in class to analyze simulation output for steady state simulations (M1L9)? - ✔✔✔ Correct Answer > Batch means. This involves warming up the simulation (initialization bias / not included in analysis). Make one long run. Break up run into evenly sized batches and calculate sample mean from each batch. Do classic stats assuming iid normal on the batch means (relies on CLT). Name the two numerical methods covered in class to find the zeroes (roots) of a complicated non-linear function that may not have a closed-form solution. - ✔✔✔ Correct Answer > 1. Bisection method

  1. Newton's method

Be able to apply either one to find the zeroes of a function on a test. Bisection: linear convergence (slower), but guaranteed to find a zero if continuous function. Newton's method: quadratic convergence (faster), but NOT guaranteed to find a zero. Some apply a hybrid approach :) What is simulation (M1L3)? - ✔✔✔ Correct Answer > Imitation of a real-world process or system over time. What is a model (M1L3)? - ✔✔✔ Correct Answer > High-level representations of the operation of a real-word process or system.

Random samples from which distribution can be transformed into random variables of any other distribution (M1L8)? - ✔✔✔ Correct Answer > Uniform (0, 1) What specific pseudorandom number generating algorithm was covered in detail in Module 1? It involves choosing a seed value, two carefully chosen constants a and m, using the modulus operator, and then normalizing all values to fit between 0 and 1 by dividing by m (M1L8). - ✔✔✔ Correct Answer > Linear Congruential Generator (LCG). The Desert Island Generator is is an LCG with a=16807 and m = 2^31 - 1 (a very large prime number. X(i) = 16807X(i - 1) mod (2^31 - 1) U(i) = X(i) / m What are the 3 general steps for the inverse transform method (M1L8)? - ✔✔✔ Correct Answer > 1. Generate the Unif (0, 1) PRN (U_i)

2. For the desired probability distribution, get the inverse of its CDF (F^-

1(U_i)). This involves setting the CDF (F(X)) equal to U, and then solving for X (X will by F^-1(U), a function of U).

3. Plugging in U values from #1 into #2, gets a random variable from the

desired distribution! Which probability distribution does the following approximate:

  • (1/lamba)ln(U_i)? True or False: ln(1 - U_i) can also be used in the above equation (M1L8). - ✔✔✔ Correct Answer > Exponential Distribution

True - because (1 - U_i) is also uniform True or false: output from simulations tend to be i.i.d. normally distributed (M1L9). - ✔✔✔ Correct Answer > False! They tend to be nasty and can't directly be analyzed with standard stats tests. Which type of simulation focuses on short-term behavior? Examples include: Avg wait time in a bank for a day, avg # of infected victims during a pandemic, and evaluating the effectiveness of a marketing campaign over 3 months (M1L9). - ✔✔✔ Correct Answer > Terminating simulations Is the following a discrete or continuous model: 1 customer shows up and waits in line, and then another, and so on (M1L3). - ✔✔✔ Correct Answer > Discrete model Is the following a discrete or continuous model: An hourly weather prediction for precipitation over time (M1L3). - ✔✔✔ Correct Answer > Continuous model Is the following a stochastic or deterministic model: Calls that randomly arrive at a call center (M1L3). - ✔✔✔ Correct Answer > Stochastic model Is the following a stochastic or deterministic model: Predicting the voltage if we know the current and resistance in a circuit (M1L3). - ✔✔✔ Correct Answer > Deterministic model

Surveillance applications of simulation (such as - "is a disease spreading?") rely on sequential hypothesis tests over time. Describe how sequential hypothesis tests are used with simulation (M1L5)? - ✔✔✔ Correct Answer > 1. Come up with the null hypoth (e.g., disease is not spreading with time).

2. Use sim to approximate the probability distr of null hypothesis.

3. If actual samples collected cast doubt on the distr for null hypothesis, reject

it, and say that the disease is spreading. What are some characteristics of simulation models? - ✔✔✔ Correct Answer > 1. Discrete (vs. continuous)

2. Stochastic (vs. deterministic)

3. Dynamic (vs. static)

What is simulation? - ✔✔✔ Correct Answer > Simulation is the imitation of a real- world process of system over time. Simulation involves the generation of an artificial history to draw inferences concerning the operating characteristics of the real system that is represented. What is simulation good for? - ✔✔✔ Correct Answer > 1. Describe / analyze real or conceptual system behavior.

2. Ask "what if" questions.

3. Aid in system design and optimization

4. Can simulate almost anything

What are the reasons to simulate? - ✔✔✔ Correct Answer > 1. Will the system accomplish its goals?

2. Current system won't accomplish its goals, now what?

3. Need incremental improvement.

4. Create a specification or action plan

5. Solve a problem, like a bottleneck.

6. Resolve disputes

7. Sell an idea

What are the advantages of simulation? - ✔✔✔ Correct Answer > 1. Can study models too complicated for analytical / numerical treatment

2. Study detailed relations that might be lost in the analytical or numerical

treatment

3. Use as a basis for experimental studies of systems

4. Use to check results and give credibility to conclusions obtained by other

methods. 5. Reduce design blunders

6. Really nice demo method

7. (sometimes) very easy

What are the disadvantages of simulation? - ✔✔✔ Correct Answer > 1. Sometimes not so easy

2. Sometimes very time consuming / costly

3. Simulations give "random" output (and lots of misinterpretation of results is

possible)

4. To do a certain problem, better methods than simulation may exist

Who is William Gosset?

A) He invented the t distribution that is used ubiquitously in statistics.

B) He invented the s distribution that is used ubiquitously in statistics.

C) He invented tea.

D) He invented the word "ubiquitous".

E) He is the brother of Louis Gossett Jr., best known for his fine acting in many

films, including An Officer and a Gentleman. - ✔✔✔ Correct Answer > A) He invented the t distribution that is used ubiquitously in statistics. What was the first use of a computer simulation? - ✔✔✔ Correct Answer > Stan Ulam and Johnny von Neumann in 1946 after world war 2. They used simulation in the context of the development of the H bomb. The simulated thermonuclear reactions actually, chain reactions. What was the main development in the simulation field in the 1960s? - ✔✔✔ Correct Answer > Industrial applications

  • manufacturing
  • queueing models Who was Harry Markowitz? - ✔✔✔ Correct Answer > He was one of the first guys to develop a language called SIMSCRIPT. He also won a nobel prize for some of the work he did in optimizing financial portfolios (portfolio theory).

In terms of simulations origins in manufacturing, what are some of the ways that simulation was/is used? - ✔✔✔ Correct Answer > 1. Calculated the movement of parts and interaction of system components.

2. Evaluates part flow thru the system

3. Examines conflicting demand for resources

4. Studies contemplated changes before their introduction

5. Prevent design blunders

YES or NO? Has anyone closely related to the field of computer simulation ever won a Nobel Prize? - ✔✔✔ Correct Answer > Yes - Harry Markowitz won the 1990 Nobel Prize in Economics for his work in the field of portfolio optimization. He is highly regarded in the simulation community for his conception and development of the general-purpose simulation language SIMSCRIPT. Who is Dr. Harold Shipman? - ✔✔✔ Correct Answer > He killed his patients using heroin overdoses Caught after carelessly revising a patient's will, leaving all her assets to himself Doctored his records to show his patients had needed morphine but the software recorded the dates of these modifications hung himself in prison Which of the following are areas where simulation has found substantial applica- tion? (More than one answer below may be correct.)

D) Somewhat greater than 1/2 - ✔✔✔ Correct Answer > D) Somewhat greater

than 1/ In fact, you only need 23 people in the room to achieve a probability of 1/2. Inscribe a circle in a unit square and toss 1000 random darts at the square. Suppose that 800 of those darts land in the circle. Using the technology developed in this lesson, what is the resulting estimate for 𝜋

A) - 3.

B) 2.

C) 3.

D) 3.

E) 4.0 - ✔✔✔ Correct Answer > D) 3.

Since the estimate 𝜋̂ = 4 x (proportion in circle). Note that (a) is the University of Georgia answer, and is completely incorrect. What is a characteristic of a bad random number generator? - ✔✔✔ Correct Answer > It must generate a random number distribution for every seed imaginable. What is a random walk simulation? - ✔✔✔ Correct Answer > Take a normal step up or down every time unit and plot where you are as time progresses. This "random walk" converges to Brownian motion

Einstein and Black+Scholes won nobel Prizes for this research. TRUE or FALSE? All random number generators perform pretty much the same. - ✔✔✔ Correct Answer > False Suppose customers to a barber shop show up at times 4 and 11. Moreover, suppose that it takes the barber 12 minutes to serve customer 1 and then 14 minutes to serve customer 2. When does customer 2 leave the barber?

A) 18

B) 25

C) 30

D) 40 - ✔✔✔ Correct Answer > C) 30 - Since customer 2's service starts only

when customer 1 leaves, which happens at time 4 + 12 = 16. At a high level, how are random numbers generated in a computer? - ✔✔✔ Correct Answer > 1. Generate pseudorandom numbers (PRNs) using a deterministic algorithim (not really random but appears to be)

  1. Generate other random variables by starting with the PRN and applying transformations to get any other type of random variable. Suppose we are using the (terrible) pseudo-random number generator 𝑋𝑖=(5𝑋𝑖−1+3)mod(8), with starting value ("seed") 𝑋0=1. Find the second PRN, 𝑈2=𝑋2/𝑚=𝑋2/8.

A) 0

B) 1/

Steady-State Simulations

  • Interested in long-term behavior
  • Example: Long-running assembly line How are terminating solutions analyzed? - ✔✔✔ Correct Answer > Usually analyzed via independent replications.

1. Make independent runs (replications) of the simulation, each under identical

conditions

2. Sample means from each replication are assumed to be approximately i.i.d.

normal

3. Use classical statistics techniques on the i.i.d. sample means (not on the

original observations) How are steady-state simulations analyzed? - ✔✔✔ Correct Answer > First deal with initialization (start-up) bias

  • usually "warm up" simulation before collecting data
  • failure to do so can ruin statistical analysis Many methods for dealing with steady-state
  • ex: batch means What is the method of batch means in analyzing steady-state simulations? - ✔✔✔ Correct Answer > - Make one long run (vs. many shorter reps)
  • warm up simulation before collecting data
  • chop remaining observations into contiguous batches
  • sample means from each batch are approximately i.i.d. normal - use classical statistics on the i.i.d. batch means TRUE or FALSE? Simulation outputs such as consecutive customer waiting times are almost always independent and identically distributed normal random variables. - ✔✔✔ Correct Answer > False - Output is pretty much never i.i.d. normal Let's simulate a bank that closes at 4:30 p.m. What kind of simulation approach would you take?

A) Steady-state simulation

B) Terminating simulation

C) Arnold SChwarzenegger simulation

D) I'm from the university of georgia. What is simulation? and what is a bank? -

✔✔✔ Correct Answer > B) Terminating Simulation What is the derivative of X^k - ✔✔✔ Correct Answer > kx^k- 1 What is the derivative of e^x - ✔✔✔ Correct Answer > e^x What is the derivative of sin(x) - ✔✔✔ Correct Answer > cos(x) What is the derivative of cos(x) - ✔✔✔ Correct Answer > - sin(x)

What is the conditional probability of A given B? - ✔✔✔ Correct Answer > The probability of some event A, given event B, is equal to the probability of the intersection of the two events A and B divided by the probability of B all by itself. Regarding probability, events are independent when what definition is met? - ✔✔✔ Correct Answer > If the probability of A intersect B equals P of a times P of B then A and B are independent events. Toss a 4-side die twice (you know, one of those goofy Dungeons and Dragons pyramid dice things). Assuming the die is numbered 1,2,3,4, what's the probability that the sum will equal 3?

A) 0

B) 1/

C) 13/

D) 1/8 - ✔✔✔ Correct Answer > D) 1/

P(sum=3)=P((1,2)or(2,1))=P(1,2)+P(2,1)=2(1/16)=1/8. TRUE or FALSE? f(x)=3e−xforx>0 is a legitimate probability density function. - ✔✔✔ Correct Answer > FALSE Correct: In order to be a legit p.d.f., f(x) must integrate to 1; but lo and behold.. .∫Rf(x)dx=∫∞03e−xdx=3.☹ Suppose X is a continuous random variable with cumulative distribution function F(x). What is the distribution of the nasty random variable F(X)?

A) Normal

B) Unif (0,1)

C) Exponential

D) Weibull - ✔✔✔ Correct Answer > Unif (0, 1) - this is the Inverse Transform

Theorem Suppose U is a Unif (0,1) random variable. Name the distribution of X=−ℓn(1−U).

A) Normal

B) Unif (0, 1)

C) Exponential

D) Weibull - ✔✔✔ Correct Answer > C) Exponential

The abbreviation "m.g.f." stands for... - ✔✔✔ Correct Answer > Moment Generating Function What is the concept of double expectation? - ✔✔✔ Correct Answer > Idea: the average expected value of all of the conditional expected values is the overall population average. TRUE or FALSE? If 𝑋 and 𝑌 are uncorrelated, then they're independent. - ✔✔✔ Correct Answer > False