It's a 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.
I DON'T EVEN KNOW HOW TO PROGRAM "Hello World"
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.
11 years ago
20
Purchase the answer to view it

- programming.docx
- geniusy_2006 Only ***3
- 4-5 page paper
- Accounting 14
- Need 3 tests and 1 exam done by March 7th, 80 grade, one try per test/exam. Tests are 20 questions...
- ompute the present value of $6,000 paid in two years using the following discount rates: 9 percent in the first year and 8 percent in the second year. (Do not round intermediate calculations and round your answer to 2 decimal places.)
- Why does Abby claim that reverend hale wife is involved in witchcraft hysteria? crucible
- 2 pages 4 hrs max
- new
- Suppose David spends his income (I) on two goods, x and y , whose market prices are p x and p y , respectively. His preferences are represented by the utility function u ( x;y )...
- please answer all of the following as in depth as possible and show all work for math problems