distributions.empirical_distribution.ECDF()

statsmodels.distributions.empirical_distribution.ECDF

class statsmodels.distributions.empirical_distribution.ECDF(x, side='right') [source]

Return the Empirical CDF of an array as a step function.

Parameters:

x : array-like

Observations

side : {‘left’, ‘right’}, optional

Default is ‘right’. Defines the shape of the intervals constituting the steps. ‘right’ correspond to [a, b) intervals and ‘left’ to (a, b].

Returns:

Empirical CDF as a step function.

Examples

>>> import numpy as np
>>> from statsmodels.distributions.empirical_distribution import ECDF
>>>
>>> ecdf = ECDF([3, 3, 1, 4])
>>>
>>> ecdf([3, 55, 0.5, 1.5])
array([ 0.75,  1.  ,  0.  ,  0.25])

Methods

__call__(time)

Methods

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.distributions.empirical_distribution.ECDF.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部