[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Creating container with elements
From: |
CdeMills |
Subject: |
Re: Creating container with elements |
Date: |
Sat, 7 Apr 2012 13:03:28 -0700 (PDT) |
trixfix wrote
>
> Container holds 1000 elements which 940 are 1 and 60 are 0. I need to
> randomly take 100 elements from that container and check how many 1 and 0
> I have. Also i need to determine probability how many 1 are there, if more
> than 95 or more is 1.
>
>
We won't help you doing your homework. The information you need is at
http://en.wikipedia.org/wiki/Binomial_distribution
and its implementation is in functions
binornd (to generate random variables)
binocdf, binopdf, binoinv to compute the probabilities
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/Creating-container-with-elements-tp4538114p4540000.html
Sent from the Octave - General mailing list archive at Nabble.com.