Hey there! Sign in to join this conversationNew here? Join for free

Help with maths problem Watch

Announcements
    • Thread Starter
    Offline

    2
    ReputationRep:
    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
    Offline

    13
    ReputationRep:
    (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?
    • Thread Starter
    Offline

    2
    ReputationRep:
    (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)
 
 
 
  • See more of what you like on The Student Room

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

  • Poll
    Break up or unrequited love?
    Useful resources

    Make your revision easier

    Maths

    Maths Forum posting guidelines

    Not sure where to post? Read the updated guidelines here

    Equations

    How to use LaTex

    Writing equations the easy way

    Student revising

    Study habits of A* students

    Top tips from students who have already aced their exams

    Study Planner

    Create your own Study Planner

    Never miss a deadline again

    Polling station sign

    Thinking about a maths degree?

    Chat with other maths applicants

    Can you help? Study help unanswered threads

    Groups associated with this forum:

    View associated groups
  • See more of what you like on The Student Room

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

  • The Student Room, Get Revising and Marked by Teachers are trading names of The Student Room Group Ltd.

    Register Number: 04666380 (England and Wales), VAT No. 806 8067 22 Registered Office: International House, Queens Road, Brighton, BN1 3XE

    Quick reply
    Reputation gems: You get these gems as you gain rep from other members for making good contributions and giving helpful advice.