library(repr) # Change plot size to 4 x 4 options(repr.plot.width=4, repr.plot.height=4)
dbinom(8,17,.35)
x <- seq(0,50) y <- dbinom(x,50,0.2) plot(x,y,type="h")
dbinom(2,3,.5)
hist(rbinom(1000,17,.35))
x <- [1:50]
qbinom(.4,17,.35)
pbinom(5,17,.35)