1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2000 - INRIA - Carlos Klimann
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="cdfbin">
15
<refname>cdfbin</refname>
16
<refpurpose> cumulative distribution function Binomial distribution</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>[P,Q]=cdfbin("PQ",S,Xn,Pr,Ompr)
21
[S]=cdfbin("S",Xn,Pr,Ompr,P,Q)
22
[Xn]=cdfbin("Xn",Pr,Ompr,P,Q,S)
23
[Pr,Ompr]=cdfbin("PrOmpr",P,Q,S,Xn)
27
<title>Arguments</title>
30
<term>P,Q,S,Xn,Pr,Ompr</term>
32
<para>six real vectors of the same size.</para>
36
<term>P,Q (Q=1-P) </term>
38
<para>The cumulation from 0 to S of the binomial distribution. (Probablility of S or fewer successes in XN trials each with probability of success PR.) Input range: [0,1].</para>
44
<para>The number of successes observed. Input range: [0, XN] Search range: [0, XN]</para>
50
<para>The number of binomial trials. Input range: (0, +infinity). Search range: [1E-300, 1E300]</para>
54
<term>Pr,Ompr (Ompr=1-Pr) </term>
56
<para>The probability of success in each binomial trial. Input range: [0,1]. Search range: [0,1]</para>
62
<title>Description</title>
64
Calculates any one parameter of the binomial
65
distribution given values for the others.
68
Formula 26.5.24 of Abramowitz and Stegun, Handbook of
69
Mathematical Functions (1966) is used to reduce the binomial
70
distribution to the cumulative incomplete beta distribution.
73
Computation of other parameters involve a seach for a value that
74
produces the desired value of P. The search relies on the
75
monotinicity of P with the other parameter.
78
From DCDFLIB: Library of Fortran Routines for Cumulative Distribution
79
Functions, Inverses, and Other Parameters (February, 1994)
80
Barry W. Brown, James Lovato and Kathy Russell. The University of