Sketch the histograms of binomial distributions with the following parameters (n, p): a) (106 ,10- 6 ); b) (106 ,2 x 10- 6 ); c) (3284,10- 4 ); d) (1000,0.998)
I am attaching the R codes for histogram
(a) n <- 106
p <- 10^-6
x <- seq(0,n,by=1)
px <- dbinom(x,n,p)
hist(px,xlab = "px",main = "Histogram of n=106, p=
10^-6")
(b)
n <- 106
p <- 2*(10^-6)
x <- seq(0,n,by=1)
px <- dbinom(x,n,p)
hist(px,xlab = "px",main = "Histogram of n=106, p=
2x10^-6")
(c)
n <- 3284
p <- 10^-4
x <- seq(0,n,by=1)
px <- dbinom(x,n,p)
hist(px,xlab = "px",main = "Histogram of n=3284, p= 10^-4")
(d)
n <- 1000
p <- 0.998
x <- seq(0,n,by=1)
px <- dbinom(x,n,p)
hist(px,xlab = "px",main = "Histogram of n=1000, p=
0.998")
Get Answers For Free
Most questions answered within 1 hours.