#binomial distribution #cdf pbinom(3,5,0.6) pbinom(5,5,0.6) 1-pbinom(3,5,0.6) pbinom(2,5,0.6,lower.tail = F)#quontiles qbinom(0.5,5,0.6) qbinom(0.9,5,0.6) qbinom(0.75,5,0.6) qbinom(0.25,5,0.6) #generating random numbers rbinom(100,5,0.6) set.seed(12345)#ploting distributions plot(1:5,dbinom(1:5,5,0.6),type=‘l’) plot(1:5,dbinom(1:5,5,0.6),type=‘h’,col=‘red’) par(mfrow=c(1,2)) #poison distribution round(dpois(2,3),3)#cdf 1-ppois(3,3) 1-ppois(4,3

qpois(0.9,3)
qpois(0.75,3)
qpois(0.25,3)
```#random
rpois(100,3)
set.seed(12345)
```#ploting distribution
#plots
plot(1:10,dpois(1:10,3),type = 's')
```#normal distribution
dnorm(6,20,5)
```#cdf
pnorm(30,20,5)
pnorm(30,20,5,lower.tail = F)
1-pnorm(30,20,5)
```#plot
plot(1:10,dnorm(1:10,5,2),type = 'b')
```#beta
dbeta(1,4,1)
qbeta(0.2,4,1)
pbeta(5,1,4)
```#exponential distribution
dexp(2,5)
pexp(3,2)
plot(1:20,dexp(1:20,2)

## R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:


```r
summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.