#Binomial Distribution #pmf 1-pbinom(0.6,40,0.275) plot(1:40,pbinom(1:40,40,0.275),type=‘h’) #poissondistribution #pmf dpois(3,4) plot(1:3,dpois(1:3,4),type=‘l’) 1-dpois(5,4) plot(1:5,dpois(1:5,4),type=‘h’) dpois(2,4) plot(1:2,dpois(1:2,4),type=‘l’) 1-ppois(7,4) plot(1:7,ppois(1:7,4),type=‘l’) dpois(3,4) plot(1:3,dpois(1:3,4),type=‘l’) ppois(0,2) plot(1:0,ppois(1:0,2),type=‘h’) ppois(5,2) plot(1:5,ppois(1:5,2),type=‘l’) ppois(0.1,2) plot(1:0.1,ppois(1:0.1,2),type=‘l’) #normaldistribution dnorm(10,25,10) plot(1:10,dnorm(1:10,25,10),type=‘l’) w=pnorm(30,25,10)-pnorm(20,25,10);w plot(1:25,pnorm(1:25,10,25),type=‘l’) plot(1:30,pnorm(1:30,10,25),type=‘l’) #exponentialdistribution w=pexp(12:8)-pexp(3,8);w plot(1:12,pexp(1:12,8),type=‘l’) plot(1:3,pexp(1:3,8),type=‘l’) w=pexp(25,8)-pexp(10,8);w qexp(0.95,8) #betadistribution 1-pbeta(0.8,4,2) plot(1:0.8,pbeta(1:0.8,4,2),type=‘b’)