Delila Program: binom

binom program

Documentation for the binom program is below, with links to related programs in the "see also" section.

{version = 1.49; (* of binom.p 1995 Nov 12}

(* begin module describe.binom *)
   binom: produce the binomial probabilities for a found black to white ratio

   binom(xyin: out, xyplop: out, binomp: in, output: out)


   binomp: parameters to control the program, on three lines:
      blacks and whites: two integers on the first line, representing the
         number of black balls and white balls obtained in an experiment
      probability of black, P
   output: messages to the user

   Suppose there exists a large bin containing both black and white
   balls.  The true probability of black balls in the bin is P, and
   the probatility of white balls is (1-P).  We obtain a sample of
   black and white balls from the bin, given as the first two parameters
   in binomp.  The probability of getting this black:white sample is:

                          (black+white)!  black      white
       p(black:white|P) = -------------- P      (1-P)

   The program generates these probabilities for a given P.
   The results are in a form that the xyplo program can use to plot.

see also
   xyplo.p, binplo.p

   Thomas Dana Schneider

   none known

(* end module describe.binom *)
{This manual page was created by makman 1.45}

{created by htmlink 1.62}