its stupid stats computer programing problem

I have no idea how to program this piece of crap.  I can do the damn math calculations, but I HAVE to simulate this using a computer.  I have no programming experience and the teacher didn’t teach us how to use a damn math calculation program.  NOT EVEN ONCE.  

Use at least 10000 simulations to answer the following questions. 



1. Suppose Xi for i=1, 2, 3… has Uniform (0,1) distribution.


A. Let M = min (n: X1 + X2 + … + Xn> 1). Find E (M) by simulation. 


B. Let N = min (n+1: Xn > Xn+1). Find E (N) by simulation.


2. Toss a pair of fair dice. If you get any double stop and lose. Otherwise keep tossing. If any sum gets repeated before getting any doubles stop and win.


A. Find the probability of winning


B. Find the expected number of tosses per game.


Looking for solution of this Assignment?


We deliver quality original papers

Our experts write quality original papers using academic databases.  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay