entropies

pyoptex.analysis.estimators.sams.entropy.entropies(submodels, freqs, model_size, max_model, eps=1e-06)[source]

Compute the entropies of the submodels given the total set of models. Please read the warning in the documentation on customizing SAMS.

Warning

Asserts weak heredity and a partial response surface model in a particular order.

Parameters

submodelslist(np.array(1d))

The submodels to compute the entropy for

freqsnp.array(1d)

An array of (observed) frequencies from each submodel

model_sizeint

The size of the overfitted models. The overfitted model includes the forced model.

max_model(nquad, ntwo, nlin)

A tuple with the number of quadratic, TFI and linear effects

epsfloat

The numerical stability parameter in computing the logarithms

Returns

entropynp.array(1d)

An array of floats with the entropy for each submodel.