Posted by **david** on Tuesday, January 23, 2007 at 12:33am.

When a computerized generator is used to generate random digits, the proability that any particular digit in the set {0,1,2, . . .,9} is generated on any individual trial is 1/10-0.1. suppose that we are generating digits one at a time and are interested in tracking occurrences of the digit 0.

Determine the probabiliy that the first 0 occurs as the fifth random digit generated?

so the probability of not getting a zero for the first four time is 9/10. then the probability of getting a zero for the fifth time is 1/10. and i just multiply that right.

****how many digits would you expect to have to generate in order to observe the first o.

please help me. am i doing this right?

The probability of generating a zero is 1/10, so you would expect to have to generate 10 digits.

You can calculate this from the defintion of the expectation value with a bit of brute force as follows:

The probability that the n-th random digit is the first zero is:

P(n) = (9/10)^(n-1) * 1/10

The expectation value for n is:

<n> = sum_{n=1}^{infinity} n*P(n)

You can calculate this summation using the formula for the geometric series:

sum_{n=0}^{infinity} x^n = 1/[1-x]

differentiate both sides w.r.t. x:

sum_{n=1}^{infinity} nx^(n-1) =

1/[1-x]^(2)

Note that the lower limit of the summation changes to n = 1 because the n = 0 term is a constant which vanishes when differentiated.

Inserting x = 9/10 in here and multiplying by 1/10 gives:

<n> = 1/10 * 1/[1/10]^2 = 10

## Answer This Question

## Related Questions

- stats please help test tom - When a computerized generator is used to generate ...
- Data Structures and Algorithms - The "random" numbers produced by computers aren...
- finite math - suppose that 3 digits are selected at random from the set S={1,2,3...
- statistics - A random number generator draws at random with replacement from the...
- Math - In a table of random digits, each digit is to occur with a probability of...
- Math Help Please - Would you please explain the steps you used to get the answer...
- math - using digits 1-9 only once, multiply a 3 digit by a 2 digit number and ...
- Math - Received answer to the following question from Jishka. (2469) Would you ...
- Stats - Describe how to use a source of random data to simulate multiple trials ...
- math - Any of the ten digits 0 through 9 may be used in a 6-digit code, but no ...

More Related Questions