Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   pool 3,000 people, randomly select 5%, what r odds of being picked each time (https://www.askmehelpdesk.com/showthread.php?t=770724)

  • Oct 10, 2013, 06:38 AM
    LisaMK1957
    pool 3,000 people, randomly select 5%, what r odds of being picked each time
    I have a pool of 3000 people. I need 5% of that pool randomly selected in the result set.

    If I run my code, assigning a random number then pulling the Top 5%.

    I seem to get some of the same people in the result set each time I run my code.

    What is the probability or odds of this happening?

    Thank you for any help you can offer.
  • Oct 10, 2013, 08:21 AM
    ebaines
    The probability of getting some of the same people is quite high. The probability of having no duplicates in selecting 60 people out of 3000 is:



    which equals 0.294. So about 70.6% of the time there will be at least one duplicate.

  • All times are GMT -7. The time now is 02:58 AM.