Are the following two distributions equivalent?import random def dist5(): return int(random.random() * 10) def dist6(): return random.randint(0, 10)
查看答案
Are the following two distributions equivalent?import random def dist3(): return int(random.random() * 10) def dist4(): return random.randrange(0, 10)
A. Yes
B. No
Are the following two distributions equivalent?import random def dist1(): return random.random() * 2 - 1 def dist2(): if random.random() > 0.5: return random.random() else: return random.random() - 1
A. Yes
B. No
Which modelling system would be best to model a bank account?
A. Discrete
B. Continuous
C. Either discrete or continuous would work, depending on the specifics of the model you wish to use.
Let's say you run a stochastic simulation 100 times. How many times do you need to run the simulation again to get the same result?
A. 1 time
B. 99 times
C. 100 times
D. 101 times
E. All of the above will give you the same result.
F. None will necessarily give you the same result.