PROBABILITY DISTRIBUTION

1-pbinom(0.6,40,0.275)
## [1] 0.9999974
plot(1:40,pbinom(1:40,40,0.275),type='h')

POISSON DISTRIBUTION

dpois(3,4)
## [1] 0.1953668
plot(1:3,dpois(1:3,4),type='l')

ppois(5,4)
## [1] 0.7851304
plot(1:5,dpois(1:5,4),type='h')

dpois(2,4)
## [1] 0.1465251
plot(1:2,dpois(1:2,4),type='l')

1-ppois(7,4)
## [1] 0.05113362
plot(1:7,ppois(1:7,4),type='l')

dpois(3,4)
## [1] 0.1953668
plot(1:3,dpois(1:3,4),type='l')

ppois(0,2)
## [1] 0.1353353
plot(1:0,ppois(1:0,2),type='h')

ppois(5,2)
## [1] 0.9834364
plot(1:5,ppois(1:5,2),type='l')

ppois(0.1,2)
## [1] 0.1353353
plot(1:0.1,ppois(1:0.1,2),type='l')

NORMAL DISTRIBUTION

plot(1:10,dnorm(1:10,25,10),type='l')

w=pnorm(30,25,10)-pnorm(20,25,10);w
## [1] 0.3829249
plot(1:25,pnorm(1:25,10,25),type='l')

plot(1:30,pnorm(1:30,10,25),type='l')

EXPONENTIAL DISTRIBUTION

w=pexp(12:8)-pexp(3,8);w
## [1] -6.144175e-06 -1.670166e-05 -4.539989e-05 -1.234098e-04 -3.354626e-04
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
## [1] 0
qexp(0.95,8)
## [1] 0.3744665

BETA DISTRIBUTION

1-pbeta(0.8,4,2)
## [1] 0.26272
plot(1:0.8,pbeta(1:0.8,4,2),type='b')