Compute the probability that the sum of the dice is greater than 12 and less than 18.
Compute the probability that the sum is even.
Compute the probability that the mean is exactly 4.
Total number of points in the Sample Space that are mutually exclusive, exhaustive and equally likely = 6^3=216.
Number of cases favorable to the events in (1) is 55. Here are first few of the 55 cases.
Number of cases favorable to the events in (2) is 108.
Number of cases favorable to the events in (3) is 25.
Hence, by the classical definition of probability, the corresponding probabilities are 55/216=0.2546296, 108/216=0.5 and 25/216=0.1157407 respectively.
Now let’s try to obtain the solution using simulation.
Let’s simulate an experiment of throwing 3 dice together for a number of trials.
Here is a visual comparison between the simulated and the actual (theoretical) probabilities for each of the 3 cases, the theoretical probabilities are represented as dotted lines. As can be seen, in general, as the number of trials increase, the simulated probability tends to more accurately estimate the theoretical probabilities.
Now let’s find the impact of the number of trials on the mean and absolute difference from the theoretical probabilities w.r.t. the computed probabilities with simulation.
Let Θ be an unknown constant. Let W1,W2,…,Wn be independent exponential random variables each with parameter 1.
Let Xi=Θ+Wi. It can be shown that Θ^ML=mini Xi. Now, we have been asked to construct a confidence interval of the particular form [Θ^−c,Θ^], where Θ^=mini Xi and c is a constant that we need to choose.
For n=10, how should the constant be chosen so that we have a 95% confidence interval? (Give the smallest possible value of c.) Your answer should be accurate to 3 decimal places.
This problem appeared in the final exam of the edX course MITx: 6.041x Introduction to Probability – The Science of Uncertainty.
Find the area of the following regions with Monte-Carlo Simulation.
Let’s use Monte-Carlo-Integration to compute the area of the above green shaded region and then compare with the actural area enclosed by the curves.
##  "Area with Monte-Carlo Integration =  0.332888"
##  "Actual Area =  0.333333408167678  with absolute error 7.80933322530327e-05"
##  "Area with Monte-Carlo Integration =  3.700785"
##  "Actual Area =  3.69730505599894  with absolute error 4.1048332022e-14"
Normal Curve between the vertical lines and then compare the values with those obtained from the actual cdf Φ(.) values available from the standard normal table.
Again let’s use Monte-Carlo-Integration to compute the area under the pdf of the Student’s t-distribution with degrees of freedom ν=5 between the vertical lines and then compare the values with those obtained from the actual cdf values available from the t-table.
@Norberto J. Sanchez: you are right, it's a typo created because of html copy paste, it should be (s < 18) instead of (s /span> 18) as stated in the problem.
Was that a typo or do I need an R package to run this code? If so, please provide the name of the package.