Delila Program: binom

# binom program

## Pascal source code: binom.p (wget instructions) Instructions on compiling Alphabetic List of Delila Programs Delila Programs by Most Recent Update Please report broken links Copyright Statement for Delila Programs

### 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 *)
(*
name
binom: produce the binomial probabilities for a found black to white ratio

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

files

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

description
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)
black!white!

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

xyplo.p, binplo.p

author
Thomas Dana Schneider

bugs
none known

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