| Hosted by CoCalc | Download
Kernel: R (R-Project)
library(repr) # Change plot size to 4 x 4 options(repr.plot.width=4, repr.plot.height=4)
dbinom(8,17,.35)
[1] 0.1133834
x <- seq(0,50) y <- dbinom(x,50,0.2) plot(x,y,type="h")
Image in a Jupyter notebook
dbinom(2,3,.5)
[1] 0.375
hist(rbinom(1000,17,.35))
Image in a Jupyter notebook
x <- [1:50]
qbinom(.4,17,.35)
[1] 5
pbinom(5,17,.35)
[1] 0.4196988