Collection of solutions to simulation problems in MT426 (probability: random variables) using R. Aaron McMillan Fraenkel

Collection of solutions to simulation problems in MT426 (probability: random variables) using R. Aaron McMillan Fraenkel 1. Simulate the following pro...
Author: Sharyl Farmer
23 downloads 0 Views 723KB Size
Collection of solutions to simulation problems in MT426 (probability: random variables) using R. Aaron McMillan Fraenkel 1. Simulate the following problem: choose n points on a circle and find the probability that they all lie in some semi-circle. Hint: draw n times from the uniform pdf runif(n, 0, 2π). Additionally, let X be the angle of the smallest arc containing all the points. Plot a histogram of X — that is, estimate the pdf fX (x). (You may find the function sort useful). Points On Circle.R 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

# ## TRIAL = n points on a circle trial

Suggest Documents