Results 1 to 3 of 3

Math Help - [SOLVED] Simple Probability Question (Programming)

  1. #1
    Junior Member
    Joined
    Jun 2008
    Posts
    27

    Question [SOLVED] Simple Probability Question (Programming)

    Hi guys. So I have a simple probability question that involves a little pseudo-code. Just need some advice, not answers so I am not posting my whole question from my homework, just the part that is giving me confusion.

    You have a procedure that returns either 0 or 1. It returns 0 with some probability p and returns 1 with probability 1 - p, where 0 < p < 1. You do not know what p is.

    What does it mean when it says it returns 0 with some probability p, and 1 with probability 1-p?

    Since p is between 0 and 1, say p is for example, .75. Then when I run that subroutine, does it return 0 or 1? 1-0.75 is 0.25, but what, does it round down?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Flow Master
    mr fantastic's Avatar
    Joined
    Dec 2007
    From
    Zeitgeist
    Posts
    16,948
    Thanks
    5
    Quote Originally Posted by mander View Post
    Hi guys. So I have a simple probability question that involves a little pseudo-code. Just need some advice, not answers so I am not posting my whole question from my homework, just the part that is giving me confusion.

    You have a procedure that returns either 0 or 1. It returns 0 with some probability p and returns 1 with probability 1 - p, where 0 < p < 1. You do not know what p is.

    What does it mean when it says it returns 0 with some probability p, and 1 with probability 1-p?

    Since p is between 0 and 1, say p is for example, .75. Then when I run that subroutine, does it return 0 or 1? 1-0.75 is 0.25, but what, does it round down?
    Well, if I said:

    You have a coin that returns either H or T when tossed. It returns H with probability 1/3 and returns T with probability 2/3

    what do you think this means? If I toss the coin, what happens?

    Now read this: Binomial distribution - Wikipedia, the free encyclopedia
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Jun 2008
    Posts
    27
    OH! I get it now. Thank you. I should be able to finish this assignment then. I just didn't understand the way they worded it... I'm not very used to probability terminology, I guess. And Thanks for the link! My prof never referred to our topic as binomial distribution or Bernoulli distribution so I didn't know how to research it further. That helps a lot.

    Thanks again Mr. Fantastic
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. [SOLVED] Simple probability problem
    Posted in the Discrete Math Forum
    Replies: 4
    Last Post: May 4th 2010, 02:13 PM
  2. [SOLVED] Simple Probability has me stumped
    Posted in the Statistics Forum
    Replies: 25
    Last Post: August 28th 2009, 02:39 PM
  3. [SOLVED] Simple probability question
    Posted in the Statistics Forum
    Replies: 2
    Last Post: March 24th 2009, 06:09 AM
  4. [SOLVED] Simple Probability Help
    Posted in the Statistics Forum
    Replies: 7
    Last Post: February 23rd 2009, 04:50 PM
  5. [SOLVED] Simple Probability
    Posted in the Statistics Forum
    Replies: 2
    Last Post: February 2nd 2009, 05:29 AM

Search Tags


/mathhelpforum @mathhelpforum