By downloading this code you agree to the
Source Code Use License (PDF). |
{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.
see also
xyplo.p, binplo.p
author
Thomas Dana Schneider
bugs
none known
*)
(* end module describe.binom *)
{This manual page was created by makman 1.45}
{created by htmlink 1.62}