scipy.stats.norm

https://docs.scipy.org/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
  • 3
    点赞
  • 41
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值