R language Learning Note-probability function

Source: Internet
Author: User

In the R language, different distributions can be generated for experimentation and learning.

In R, the probability function is shaped like ①:

where the first letter denotes one aspect of the distribution that it refers to:
D = density function (density)
p = Distribution functions (distribution function)
Q = number of decimal functions (quantile function)
R = Generate random number (random deviation)
Common probability functions are shown in the following table:


Table 1 Probability distributions

Distribution Name Abbreviation Distribution Name Abbreviation
Beta distribution Beta Logistic distribution Logis
Two item distributions Binom Multi-item Distribution Multinom
Cauchy distribution Cauchy Negative two-item distribution Nbinom
(non-center) Chi-square distribution Chisq Normal Norm
Exponential distribution Exp Poisson distribution POIs
F Distribution F Wilcoxon symbol Rank Distribution Signrank
Gamma distribution Gamma T distribution T
Geometric distribution Geom Evenly distributed Unif
Super Geometric distribution Hyper Weibull distribution Weibull
Logarithmic normal distribution Lnorm Wilcoxon Rank and distribution Wilcox

If you do not specify a mean and a standard deviation, the function assumes that it is a standard normal distribution (the mean value is 0 and the standard deviation is 1). The density function (dnorm), the distribution function (Pnorm), the Division function (Qnorm), and the random number generation function (Rnorm).


Reference:

[1] [Beauty]robert I. Kabacoff,r language Practice (R in Action Data analysis and Graphics with R)

R language Learning Note-probability function

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.