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: graphic
See also: pdfbin cdfbin randbin

Quantlet: grbinomial
Description: generates a graphical object which represents the probability function of the binomial distribution B(n,p)

Usage: grbin = grbinomial (n, p {, col})
Input:
n scalar, number of independent trials
p scalar, probability of success
col color vector, optional
Output:
grbin graphical object

Example:
; load the library graphic
library("graphic")
library("plot")
; generate a graph of B(3, 0.5)
gr = grbinomial(3, 0.5)
plot(gr)

Result:
shows the binomial probability function for B(3, 0.5)



Author: S. Klinke, W. Haerdle, 20010912 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006