分享

scipy.stats.norm

 LibraryPKU 2020-01-19

https://docs./doc/scipy-0.18.1/reference/generated/scipy.stats.norm.html

scipy.stats.norm =scipy.stats._continuous_distns.norm_gen object at 0x2b2318b8cd10

一个连续的正态分布,loc代表了均值,scale代表标准差

对象方法描述
rvs(loc=0, scale=1, size=1, random_state=None)Random variates.
pdf(x, loc=0, scale=1)输入x,返回概率密度函数
logpdf(x, loc=0, scale=1)Log of the probability density function.
cdf(x, loc=0, scale=1)输入x,返回概率,既密度函数的面积
logcdf(x, loc=0, scale=1)Log of the cumulative distribution function.
sf(x, loc=0, scale=1)Survival function (also defined as 1 - cdf, but sf is sometimes more accurate).
logsf(x, loc=0, scale=1)Log of the survival function.
ppf(q, loc=0, scale=1)输入密度函数面积,返回x (inverse of cdf — percentiles).
isf(q, loc=0, scale=1)Inverse survival function (inverse of sf).
moment(n, loc=0, scale=1)Non-central moment of order n
stats(loc=0, scale=1, moments=’mv’)Mean(‘m’), variance(‘v’), skew(‘s’), and/or kurtosis(‘k’).
entropy(loc=0, scale=1)(Differential) entropy of the RV.
fit(data, loc=0, scale=1)Parameter estimates for generic data.
expect(func, args=(), loc=0, scale=1, lb=None, ub=None, conditional=False, **kwds)Expected value of a function (of one argument) with respect to the distribution.
median(loc=0, scale=1)Median of the distribution.
mean(loc=0, scale=1)Mean of the distribution.
var(loc=0, scale=1)Variance of the distribution.
std(loc=0, scale=1)Standard deviation of the distribution.
interval(alpha, loc=0, scale=1)Endpoints of the range that contains alpha percent of the distribution

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多