goulib.stats

very basic statistics functions

Functions

avg(data)

confidence_interval(data[, conf])

covariance(data1, data2)

kurtosis(data)

linear_regression(x, y[, conf])

mean(data)

mean_var(data)

mean and variance by stable algorithm :param :return: float (mean, variance) of data uses a stable algo by Knuth

median(data[, is_sorted])

mode(data[, is_sorted])

normal_pdf(x, mu, sigma)

Return the probability density function at x

stats(l)

stddev(data)

var(data)

variance(data)

Classes

Discrete(data)

discrete probability density function

Normal([data, mean, var])

represents a normal distributed variable the base class (list) optionally contains data

PDF(pdf[, data])

probability density function

Stats([data, mean, var])

an object that computes mean, variance and modes of data that is appended to it as in a list (but actual values are not stored)