Analysis in R: Introduction to Probability Distribution Commands

This section introduces commands for the normal, binomial, chi-square, and F distributions.

Command

See the command and package help for details.

###normal distribution#####
Nomal <- dnorm(x = 1:10, mean = 5, sd = 1)

#Plot
plot(1:10, Nomal, type = "l")
#######

###binomial distribution#####
Binomial <- dbinom(x = 1:20, size = 30, prob = 0.25)

#Plot
plot(1:20, Binomial, type = "l")
#######

###chi-square distribution#####
Chisquare <- dchisq(x = 1:20, df = 10)

#Plot
plot(1:20, Chisquare, type = "l")
#######

###F distribution#####
FDist <- df(x = 1:20, df1 = 10, df2 = 20)

#Plot
plot(1:20, FDist, type = "l")
#######

I hope this makes your analysis a little easier !!

Prices and shipping availability may change. Please refer to the product page at time of purchase.
Content displayed on this site is provided by Amazon and may be updated or removed.
Amazon Associate, karada-good earns income through qualifying sales.
Copied title and URL