cdf#

cdf(observations, normalised=True)[source]#

Returns x coordinates and y coordinates for a cdf (cumulative density function) from a list of observations.

Parameters:
  • observations (list) – list of observations, should be numeric

  • normalised (bool) – if true, y coordinates normalised such that y is the probability of finding a value less than or equal to x, if false y is the number of observations less than or equal to x. Defaults to True.

Returns:

the x and y coordinates for the cdf

Return type:

Tuple[np.ndarray, np.ndarray]