This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / stats / _distn_infrastructure / rv_discrete / stats

function

scipy.stats._distn_infrastructure:rv_discrete.stats

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_distn_infrastructure.py:3975

Signature

def stats(self, *args, **kwargs)

Summary

Some statistics of the given RV.

Parameters

arg1, arg2, arg3,... : array_like

The shape parameter(s) for the distribution (see docstring of the instance object for more information)

loc : array_like, optional

location parameter (default=0)

moments : str, optional

composed of letters ['mvsk'] defining which moments to compute: 'm' = mean, 'v' = variance, 's' = (Fisher's) skew, 'k' = (Fisher's) kurtosis. (default is 'mv')

Returns

stats : sequence

of requested moments.

Aliases

  • scipy.stats.rv_discrete.stats