How can i comment on the following graphs of Binomial distribution.

Jesmin

New Member
I am using 'R' to draw the graph :
Code:
par(mfrow=c(2,2))
graph(10,0.05)
graph(20,0.05)
graph(50,0.05)
graph(200,0.05)
How can i comment on the graphs?

Does it " as number of trials increases, probability of getting the zero success decreases" ?

GretaGarbo

Human
What package (or “ library”) are you using to do “graph()"?

Code:
> par(mfrow=c(2,2))
> graph(10,0.05)
Error: could not find function "graph"
> graph(20,0.05)
Error: could not find function "graph"

Jesmin

New Member
What package (or “ library”) are you using to do “graph()"?

Code:
> par(mfrow=c(2,2))
> graph(10,0.05)
Error: could not find function "graph"
> graph(20,0.05)
Error: could not find function "graph"
I am really sorry. Actually This graph is my own function. I forgot to mention it. This is :

Code:
graph <- function(n,p){
x <- dbinom(0:n,size=n,prob=p)
return(barplot(x,names.arg=0:n))
}

par(mfrow=c(2,2))
graph(10,0.05)
graph(20,0.05)
graph(50,0.05)
graph(200,0.05)