Help with maths problem

Watch
Announcements
Thread starter 4 years ago
#1
A random number generator on a computer is used to produce integers from 1 to 5 inclusive. Ahmed writes a program which will produce a sequence of these integers which ends when 5 has been obtained. The number, n, of integers in the sequence is counted and stored. The procedure is repeated 1000 times and Σn obtained. On a particular run of this program the value of Σn was 5096. Estimate the probability of the computer generating a 5.

I'm confused
0
4 years ago
#2
(Original post by marmbite)
A random number generator on a computer is used to produce integers from 1 to 5 inclusive. Ahmed writes a program which will produce a sequence of these integers which ends when 5 has been obtained. The number, n, of integers in the sequence is counted and stored. The procedure is repeated 1000 times and Σn obtained. On a particular run of this program the value of Σn was 5096. Estimate the probability of the computer generating a 5.

I'm confused
You are looking at a sequence of Bernoulli trials where the events are "five generated" and "not a five generated" and are concerned with the the number of trials until the event "five generated" occurs.

So, have you ever heard of the "geometric distribution"? The question is asking you to estimate the parameter of this distribution from the observed data.

If you have never heard of the geometric distribution, the question is then asking you to work it out from first principles!

So, if the probability of generating a five is p (and therefore that the probability of generating something other than a five is (1-p)), what is the probability of having to generate k numbers before a five appears?
0
Thread starter 4 years ago
#3
(Original post by Gregorius)
You are looking at a sequence of Bernoulli trials where the events are "five generated" and "not a five generated" and are concerned with the the number of trials until the event "five generated" occurs.

So, have you ever heard of the "geometric distribution"? The question is asking you to estimate the parameter of this distribution from the observed data.

If you have never heard of the geometric distribution, the question is then asking you to work it out from first principles!

So, if the probability of generating a five is p (and therefore that the probability of generating something other than a five is (1-p)), what is the probability of having to generate k numbers before a five appears?
It's the final question in an exercise on geometric distribution. (Should have mentioned that in the original post)
0
X

new posts
Back
to top
Latest
My Feed

Oops, nobody has postedin the last few hours.

Why not re-start the conversation?

see more

See more of what you like onThe Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Poll

Join the discussion

Current uni students - are you thinking of dropping out of university?

Yes, I'm seriously considering dropping out (173)
14.45%
I'm not sure (56)
4.68%
No, I'm going to stick it out for now (350)
29.24%
I have already dropped out (35)
2.92%
I'm not a current university student (583)
48.71%