概率分布

  1. 统计表
概率分布 R对应的名称 附加参数
β分布 beta shape1, shape2, ncp
二项式分布 binom size, prob
Cauchy 分布 cauchy location, scale
卡方分布 chisq df, ncp
指数分布 exp rate
F分布 f df1, df1, ncp
γ分布 gamma shape, scale
几何分布 geom prob
超几何分布 hyper m, n, k
对数正态分布 lnorm meanlog, sdlog
logistic 分布 logis location, scale
负二项式分布 nbinom size, prob
正态分布 norm mean, sd
Poisson 分布 pois lambda
t 分布 t df, ncp
均匀分布 unif min, max
Weibull 分布 weibull shape, scale
Wilcoxon 分布 wilcox m, n

不同的名字前缀表示不同的含义:

  • d 表示概率密度函数;
  • p 表示累积分布函数(cumulative distribution function,CDF)
  • q 表 示分位函数以及 r 表示随机模拟(random deviates)或者随机数发生器。

  • 我们可以用函数 ecdf 得到一个数据集的经验累积分布(empirical cumulative distribution)

results matching ""

    No results matching ""