Results 1 to 4 of 4

Math Help - random deviates

  1. #1
    Member Jason Bourne's Avatar
    Joined
    Nov 2007
    Posts
    132

    random deviates

    Suppose you have a standard die. Explain how you would generate a random dviate from
    1) A Bernoulli distribution with probability of success p = \frac{1}{3}
    2) A discrete uniform distribution, with P[X=i] = \frac{1}{4} for i=1,2,3,4
    3) A binomial distribution with n=20 and   p=\frac{1}{36}
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Jason Bourne View Post
    Suppose you have a standard die. Explain how you would generate a random dviate from
    1) A Bernoulli distribution with probability of success p = \frac{1}{3}

    Throw the die, count a 1 or 2 as a success and 3, 4, 5 and 6 as fail.

    RonL
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Jason Bourne View Post
    Suppose you have a standard die. Explain how you would generate a random dviate from 2) A discrete uniform distribution, with P[X=i] = \frac{1}{4} for i=1,2,3,4

    Throw the die two times.

    If first die shows 1, 2, 3 and the second shows 1, 2,or 3 result is 1.
    If first die shows 1, 2, 3 and the second shows 4, 5,or 6 result is 2.

    If first die shows 4, 5, 6 and the second shows 1, 2,or 3 result is 3.
    If first die shows 4, 5, 6 and the second shows 4, 5,or 6 result is 4.

    RonL
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Jason Bourne View Post
    Suppose you have a standard die. Explain how you would generate a random dviate from

    3) A binomial distribution with n=20 and   p=\frac{1}{36}
    Throw the die twice, if two 6's show count this as a success. Now repeat 20 times.

    RonL
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Probability and random random varible question
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: May 15th 2010, 09:53 PM
  2. exponential random variable with a random mean?
    Posted in the Advanced Statistics Forum
    Replies: 2
    Last Post: March 21st 2010, 03:05 PM
  3. Replies: 3
    Last Post: January 13th 2010, 11:44 AM
  4. Random vectors & random matrices (1)
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: June 16th 2009, 12:18 AM
  5. R - random deviates
    Posted in the Math Software Forum
    Replies: 0
    Last Post: March 5th 2008, 01:52 PM

Search Tags


/mathhelpforum @mathhelpforum