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 = 'b')
ppois(5,4,lower.tail =F )
## [1] 0.2148696
dpois(2,4)
## [1] 0.1465251
plot(1:5,dpois(1:5,4),type = 'b')
1-ppois(7,4)
## [1] 0.05113362
ppois(3,4)
## [1] 0.4334701
plot(1:7,ppois(1:7,4),type = 'h')
plot(1:3,ppois(1:3,4),type = 'h')
dpois(0,2)
## [1] 0.1353353
ppois(5,2)
## [1] 0.9834364
ppois(0.1,2)
## [1] 0.1353353
plot(1:0,ppois(1:0,2),type = 'h')
plot(1:5,ppois(1:5,2),type = 'h')
plot(1:0.1,ppois(1:0.1,2),type = 'h')
NORMAL DISTRIBUTION
dnorm(10,25,10)
## [1] 0.01295176
w=pnorm(30,25,10)-pnorm(20,25,10);w
## [1] 0.3829249
plot(1:25,pnorm(1:25,10,30),type='h')
plot(1:25,pnorm(1:25,10,25),type='h')
EXPONENTIAL DISTRIBUTION
w=pexp(12,8)- pexp(3,8);w
## [1] 3.775136e-11
plot(1:12,pexp(1:12,8),type = 'h')
plot(1:3,pexp(1:3,8),type = 'h')
qexp(0.95,8)
## [1] 0.3744665
w=pexp(25,8)-pexp(10,8);w
## [1] 0
plot(1:25,pexp(1:25,8),type = 'h')
BETA DISTRIBUTION
1-pbeta(0.8,4,2)
## [1] 0.26272
plot(1:0.8,pbeta(1:0.8,4,2),type ='h')