[go: up one dir, main page]

0% found this document useful (0 votes)
4K views9 pages

This Study Resource Was: Week 6 Homework - Summer 2020

er as co eH w o. rs e ou urc o aC s vi y re ed d ar stu is Th sh This document is a quiz for a simulation and modeling course covering topics on uniform random number generators. It contains 12 multiple choice questions testing concepts from lessons on linear congruential generators, Tausworthe generators, and reproducing random number sequences. The quiz was locked on a certain date after one student attempt scoring 10 out of 12 points over 1,560 minutes.

Uploaded by

Kim Craft
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4K views9 pages

This Study Resource Was: Week 6 Homework - Summer 2020

er as co eH w o. rs e ou urc o aC s vi y re ed d ar stu is Th sh This document is a quiz for a simulation and modeling course covering topics on uniform random number generators. It contains 12 multiple choice questions testing concepts from lessons on linear congruential generators, Tausworthe generators, and reproducing random number sequences. The quiz was locked on a certain date after one student attempt scoring 10 out of 12 points over 1,560 minutes.

Uploaded by

Kim Craft
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

Week 6 Homework - Summer 2020


Due Jun 26 at 11:59pm Points 12 Questions 12
Available Jun 19 at 8am - Jun 26 at 11:59pm 8 days Time Limit None

This quiz was locked Jun 26 at 11:59pm.

Attempt History
Attempt Time Score
LATEST Attempt 1 1,560 minutes 10 out of 12

m
er as
Score for this quiz: 10 out of 12

co
eH w
Submitted Jun 23 at 9:11pm

o.
This attempt took 1,560 minutes.
rs e
ou urc
Question 1 1 / 1 pts
o
aC s

(Lesson 6.1: Introduction to Uniform Random Numbers.) TRUE or


vi y re

FALSE? It's actually a good thing for you to be able to reproduce a


sequence of PRNs, should you so desire.
ed d

Correct!
ar stu

True

False
is
Th

TRUE. [You'd better to be able to reproduce your work if your boss


sh

doesn't believe you!]

Question 2 1 / 1 pts

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 1/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

(Lesson 6.2: Some Lousy Generators.) Consider von Neumann's mid-


square PRN method, and suppose that . What is
? [Note: For purposes of this problem, treat all 's as
if they were 8 digits, e.g., treat 123456 as if it were 00123456.]

a. 9834

b. 0.9834

c. 50055625

d. 556

Correct!
e. 0.0556

m
er as
co
eH w
o.
Following the notes, , so that , so that
rs e
ou urc
. Similarly, and , so that
. Thus, (e) is the correct answer.
o
aC s
vi y re

Question 3 1 / 1 pts
ed d
ar stu

(Lesson 6.3: Linear Congruential Generators.) YES or NO? Does


have full period?
is
Th

Correct!
True

False
sh

YES! [It trivially cycles through .]

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 2/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

Question 4 1 / 1 pts

(Lesson 6.3: Linear Congruential Generators. Problem 7.1 from Law


2015). Consider the generator

Starting from , find .

a. 0

b. 6

m
c. 7

er as
co
eH w
Correct! d. 11

o.
e. 38 rs e
ou urc
o
aC s

If , then , , , ...,
vi y re

. So the cycle repeats itself every 16 iterations. This


implies that , and so
ed d

. Thus, the answer is (d).


ar stu
is

Question 5 1 / 1 pts
Th

(Lesson 6.3: Linear Congruential Generators.) Which uniform generator


sh

was recommended in class, at least as a ``desert island'' generator?

a.

Correct! b.

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 3/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

c.

d.

(b).

Question 6 1 / 1 pts

m
(Lesson 6.4: Tausworthe Generators.) Suppose that a Tausworthe

er as
generator gave you the series of bits 1010101. If you use all 7 bits, what

co
eH w
Unif(0,1) random number would that translate to?

o.
rs e
ou urc
a. 0.3825

b. 0.5
o
aC s
vi y re

Correct!
c. 0.6641

d. 0.9826
ed d
ar stu

(c). Using the usual base-2 notation, we have


is
Th
sh

Question 7 1 / 1 pts

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 4/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

(Lesson 6.5: Generalizations of LCGs.) TRUE or FALSE? There are


some great PRN generators out there with incredible cycle lengths
and even !

Correct!
True

False

TRUE! Amazing!

m
er as
co
eH w
Question 8 1 / 1 pts

o.
rs e
ou urc
(Lesson 6.6: Choosing a Generator --- Theory.) Which of the following
statements about the RANDU generator is true?
o
aC s
vi y re

a. Something just ain't right about that boy.

b. The generator is given by


ed d
ar stu

c. The PRNs appear at first glance to be uniform, but funny things happen
when you look at the plots of the PRNs in multiple dimensions.
is
Th

d. The PRNs are distributed on just 15 hyperplanes.


sh

Correct!
e. All of the above.

(e).

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 5/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

Question 9 1 / 1 pts

(Lesson 6.7: Statistical Considerations - Intro.) Suppose the guy on trial is


actually guilty but you incorrectly acquit him. So you've incorrectly
accepted the null hypothesis of innocence. What type of error have you
just made - Type I or Type II?

a. Type I

Correct!
b. Type II

m
er as
(b). You've incorrectly accepted the null hypothesis of innocence.

co
eH w
o.
rs e
ou urc
Question 10 1 / 1 pts
o
aC s
vi y re

(Lesson 6.8: Goodness-of-Fit Tests.) Suppose we observe 1000 PRNs to


obtain the following data.
ed d
ar stu

Conduct a goodness-of-fit test to see if these numbers are


is

approximately Unif(0,1). Use level of significance . Here are


Th

some table entries that you may need: , ,


and . ACCEPT or REJECT?
sh

Correct! a. Accept

b. Reject

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 6/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

The expected number of observations per equal-probability cell is


. This gives us the following
augmented table.

Thus, the goodness-of-fit statistic is

Meanwhile, the appropriate quantile .

m
er as
Since , we ACCEPT . In other words, we are willing

co
to assume that the numbers are approximately Unif(0,1).

eH w
o.
rs e
ou urc
0 / 1 pts
o

Question 11
aC s
vi y re

(Lesson 6.9: Runs Tests for Independence.) Consider the following


PRNs. (Read from left to right, and then down.)
ed d
ar stu
is
Th

Let's conduct a runs up and down test to test : the 's are
independent with level = 0.05. ACCEPT or REJECT?
sh

ou Answered a. Accept

orrect Answer
b. Reject

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 7/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

Let's associate + and - for up and down, respectively. Then the 30


PRNs translate to:

so that we have runs up and down.

Recall that

so that the test statistic is

m
er as
Meanwhile, the appropriate quantile is

co
eH w
Since , we REJECT . In other words, these fellas
probably ain't indep.

o.
rs e
ou urc
o
aC s

Question 12 0 / 1 pts
vi y re

(Lesson 6.9: Runs Tests for Independence.) Suppose that are


ed d

i.i.d. Unif(0,1). Let's denote the number of runs up-and-down by . Find


ar stu

the EXACT distribution of .


is

a. ~ Unif(0,1)
Th

b. ~ Norm(0,1)
sh

c.

ou Answered d.

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 8/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
8/3/2020 Week 6 Homework - Summer 2020: Simulation and Modeling for Engineering and Science - ISYE-6644-OAN/O01

orrect Answer e.

We write out every possible permutation of the order of the three


, each of which will have equal probability of occurring.

m
er as
co
Hence, in the case of three PRNs, there is 1 run with probability

eH w
1/3 and two runs with probability 2/3. Thus, the answer is (e).

o.
rs e
ou urc
o
aC s

Quiz Score: 10 out of 12


vi y re
ed d
ar stu
is
Th
sh

This study source was downloaded by 100000755353177 from CourseHero.com on 08-17-2021 10:05:51 GMT -05:00

https://gatech.instructure.com/courses/128642/quizzes/142121?module_item_id=833702 9/9
https://www.coursehero.com/file/78813579/Homework-6pdf/
Powered by TCPDF (www.tcpdf.org)

You might also like