Library: | distribs |
See also: | pdfbin qfbin randbin cdfbin2 |
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 |
library("distribs") cdfbin(20, 0.1, 0:20)
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