+ Reply to Thread
Results 1 to 15 of 15

Thread: Independent die roll

  1. #1
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Independent die roll




    Hi i have this problem, where a fair die is rolled until the same number occurs 2 successive times. Let X be the trial on which the repeat occurs, X=10 find f(x)=p(X=x)

    For example, 1,2,3,4,5,6,1,5,3,3

    I'm thinking the answer is as follows:
    f(x)=P(X=x)=1/n for i=1,2,.,n
    Ans: X=10=n=1/10

    am i correct or absolutely incorrect heh ?

  2. #2
    Devorador de queso
    Points: 95,540, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,930
    Thanks
    307
    Thanked 2,629 Times in 2,245 Posts

    Re: Independent die roll

    consider the sequence 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9

    It hasn't had the same number 2 success times but goes much longer than what you have listed as the max (10)
    I don't have emotions and sometimes that makes me very sad.

  3. #3
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    Dason, why do you speak in code ? heh im not following you

  4. #4
    Devorador de queso
    Points: 95,540, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,930
    Thanks
    307
    Thanked 2,629 Times in 2,245 Posts

    Re: Independent die roll

    There is no code there. It was a simple example showing you that you "solution" couldn't be correct.
    I don't have emotions and sometimes that makes me very sad.

  5. #5
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    The question states that the expiriment doesnt surpass 10 rolls and that the repeat happens on the 10th roll so how am i wrong ?

  6. #6
    Points: 1,097, Level: 17
    Level completed: 97%, Points required for next Level: 3

    Location
    Philadellphia, PA
    Posts
    68
    Thanks
    1
    Thanked 20 Times in 18 Posts

    Re: Independent die roll

    P(x=1) = 0 (You can't roll the same number twice in one roll)
    P(x=2) = 1/6
    P(x=3) = 5/6 * 1/6
    p(x=4) = (5/6)^2 * 1/6

  7. #7
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    So
    p(X=5)=(5/6)^3*1/6
    p(X=6)=(5/6)^4*1/6

    And so on ?

  8. #8
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    So basically I employ formula:
    P(x=m)=q^(m-1)*p ?

  9. #9
    TS Contributor
    Points: 22,410, Level: 93
    Level completed: 6%, Points required for next Level: 940

    Posts
    3,020
    Thanks
    12
    Thanked 565 Times in 537 Posts

    Re: Independent die roll

    Do you understand the rationale behind? How do asterisk come up with that answer?

    If yes you should not in doubt.

  10. #10
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    I dont understand what you mean "if yes you should not in doubt" but the number after the asterisk is the probability of rolling any number on a die, 1/6 since there are 6 numbers on a die.

    My question is why are we using 5/6 ? this is the probability that any OTHER different number is rolled right
    Last edited by ITman95; 11-21-2013 at 08:58 AM.

  11. #11
    Points: 1,097, Level: 17
    Level completed: 97%, Points required for next Level: 3

    Location
    Philadellphia, PA
    Posts
    68
    Thanks
    1
    Thanked 20 Times in 18 Posts

    Re: Independent die roll

    1/6 is the probability of matching the previous roll. (stop rolling)
    5/6 is the probability of not matching the previous roll. (continue rolling)

    This is basically a negative binomial distribution, except on the first roll probability of stopping = 0 and the probability of continuing is 1.

    {k + r -1}\choose{k}* (1 - p)^r * p^k

    where

    r= number of failures = 1
    k \in {1,2,3 ... } = number of successes
    p = probability of success = 5/6
    (1 - p) = probability of failure = 1/6

    By convention we usually call the stopping event (rolling the same number twice in a row) a failure. It may seem more natural to call this a success, but it just means the stopping event.

    Because r=1 the first term simplifies to {k + r -1}\choose{k} = {k}\choose{k} = 1

    So so for P(X = 10) we need

    SSSSSSSSSF = 1 * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{5}{6} * \frac{1}{6}

  12. The Following User Says Thank You to asterisk For This Useful Post:

    ITman95 (11-21-2013)

  13. #12
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    I see, thank you for clarifying.

  14. #13
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll

    I think you made a mistake wouldnt p(x=1)=1/6 and p(x=2)=(5/6)*(1/6) and p(x=3)=(5/6)^2 * (1/6) and so on so that its P(X = x) = (5/6)(x-1) (1/6) or is this just in the case where if you are looking to roll a specific number for example a 5 instead of a repeat which is whats asked in the question ?
    Last edited by ITman95; 11-21-2013 at 04:30 PM.

  15. #14
    Points: 1,097, Level: 17
    Level completed: 97%, Points required for next Level: 3

    Location
    Philadellphia, PA
    Posts
    68
    Thanks
    1
    Thanked 20 Times in 18 Posts

    Re: Independent die roll

    I don't see how p(x=1) could equal 1/6.

    How could you roll the same number twice on the first roll? Unless you are not counting the first roll... then it is just semantics.

  16. #15
    Points: 172, Level: 3
    Level completed: 44%, Points required for next Level: 28

    Posts
    44
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Independent die roll


    alright i was just confusing my self with another problem thats all. Thank you for your help asterisk.

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats