Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: pdfbin qfbin randbin

Quantlet: cdfbin
Description: computes the cumulative distribution function of a binomial distribution

Usage: p = cdfbin (n, p, x)
Input:
n scalar parameter of binomial distribution
p scalar parameter of binomial distribution
x m x 1 vector of integer number (0<=x<=n)
Output:
ret m x 1 vector of cumulative probabilities

Example:

library ("stats")

cdfbin(20, 0.1, 0:20)  

Result:

Contents of ret

[ 1,]  0.12158 

[ 2,]  0.39175 

[ 3,]  0.67693 

[ 4,]  0.86705 

[ 5,]  0.95683 

[ 6,]  0.98875 

[ 7,]  0.99761 

[ 8,]  0.99958 

[ 9,]  0.99994 

[10,]  0.99999 

[11,]        1 

[12,]        1 

[13,]        1 

[14,]        1 

[15,]        1 

[16,]        1 

[17,]        1 

[18,]        1 

[19,]        1 

[20,]        1 

[21,]        1     


Library: stats
See also: pdfbin qfbin randbin

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: Sigbert Klinke, 980827
(C) MD*TECH Method and Data Technologies, 21.9.2000