Thursday, February 26, 2009

Probability : randBin




randBin(
meaning "random Binomial", generates a random integer between 0 and n from a Binomial distribution.

How to use the randBin command:
  1. Press [MATH]
  2. Scroll to the farthest right until you get to PRB and press enter.
  3. Select and press [randBin(]
  4. Enter the numbers using the formula below
randBin( n,p,# of simulations)
n = number of trials
p = probability of success


* the seed that is on rand affects the output of randBin(


Example:
Design an experiment to determine the probability of getting 50% correct answers on a 12 multiple choice questions quiz if you try to guess all the answers.

randBin( 12, 1/4, 5)

[ 2 1 4 1 2 ]
[ 1 5 1 2 1 ]
[ 4 2 2 5 0 ]
[ 2 4 3 4 5 ]
[ 3 3 1 4 2 ]

Answer : P ( 50% or over ) : 3\ 25= 12%



and that's what i understand about the randBin( command. Please feel free to correct any mistakes or add in some information(s) that is/are missing.




next up is ... Eugene.

1 comments:

Hadass Eviatar said...

Nice post and I really like your example!

Nice surprise for you guys tomorrow ;-).

Cheers, Dr. Eviatar.

Template by - Abdul Munir | Daya Earth Blogger Template