class documentation

class EmpiricalDistribution:

Constructor: EmpiricalDistribution(data)

View In Hierarchy

Represents a probability distribution found through empirical data

Method __init__ Undocumented
Method cdf Returns the cumulative density of value (i.e., fraction of datapoints less than value), can be passed an array.
Method pdf Returns the probability density function of the distribution
Method ppf Returns the value of the distribution at cumulative probability prob. I.e., ppf(0.5) is the median, can be passed an array
Method whole_cdf Undocumented
Instance Variable _data Undocumented
def __init__(self, data: np.ndarray):

Undocumented

def cdf(self, value: Number | np.ndarray) -> Number | np.ndarray:

Returns the cumulative density of value (i.e., fraction of datapoints less than value), can be passed an array.

def pdf(self, nbins=100) -> Number | np.ndarray:

Returns the probability density function of the distribution

def ppf(self, prob: Number | np.ndarray) -> Number | np.ndarray:

Returns the value of the distribution at cumulative probability prob. I.e., ppf(0.5) is the median, can be passed an array

def whole_cdf(self) -> tuple[np.ndarray, np.ndarray]:

Undocumented

_data =

Undocumented