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

你可能感兴趣的:(scipy)