openest.models.mean_size_model module

Mean-Size Model

In Mean-Size models, each point is characterized only by a value and the population size that went into estimating that value. As such, it does not have enough information to generate a full distribution. It can be safely combined with other mean-size models, or approximated with a Gaussian (with a variance which is equal to the absolute value of the mean for size = 1, and a variance that decreases with the square root of the size, according to the Central Limit Theorem).

The format is:

msx1,mean,size
<x0>,<mean0>,<size0>
<x1>,<mean1>,<size1>
...
class openest.models.mean_size_model.MeanSizeModel(xx_is_categorical=False, xx=None, means=None, sizes=None)[source]

Bases: openest.models.univariate_model.UnivariateModel

attribute_list()[source]
static combine(one, two)[source]
copy()[source]
filter_x(xx)[source]
get_attribute(title)[source]
get_mean(x=None)[source]

E[Y | X]

get_sdev(x=None)[source]

sqrt Var[Y | X]

init_from_mean_size_file(file, delimiter, status_callback=None)[source]
interpolate_x(newxx, kind='quadratic')[source]
kind()[source]
static merge(models, treatment='default')[source]
scale_p(a)[source]

Raise the distribution to the power ‘a’ and rescales.

Returns:modifies this model and returns it
Return type:self
scale_y(a)[source]

Rescaling of the Parameter Dimension

Produces a new conditional PDF with the $y$ dimension scaled by a constant: $p(z | x) = p( rac{y}{a} | x)$.

write(file, delimiter)[source]
write_file(filename, delimiter)[source]