Question: 5 Simulating Random Numbers Before we continue enter > set.seed(studentID) where studentID is your actual UOW student ID. This command will ensure that every student




5 Simulating Random Numbers Before we continue enter > set.seed(studentID) where studentID is your actual UOW student ID. This command will ensure that every student will generate unique random numbers, which guarantees that all of you have different results of your log-book questions. We first generate 150 random numbers from the uniform distribution in [0, 1]. Then we transform the data and obtain a vector Y1, which contains random numbers 0,1,...,7, in fact numbers from the hypergeometric distribution described above, achieved by the transformation inside the for-loop. > size U set.seed(studentID) where studentID is your actual UOW student ID. This command will ensure that every student will generate unique random numbers, which guarantees that all of you have different results of your log-book questions. We first generate 150 random numbers from the uniform distribution in [0, 1]. Then we transform the data and obtain a vector Y1, which contains random numbers 0,1,...,7, in fact numbers from the hypergeometric distribution described above, achieved by the transformation inside the for-loop. > size U
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
