Bicop.select

Bicop.select(self, data: numpy.ndarray, controls: pyvinecopulib.core.FitControlsBicop = FitControlsBicop()) None

Selects the best fitting model.

The function calls fit() for all families in family_set and selecting the best fitting model by either BIC or AIC, see bic() and aic().

When at least one variable is discrete, two types of “observations” are required: the first \(n \times 2\)block contains realizations of \(F_{X_1}(X_1), F_{X_2}(X_2)\). Let \(k\)denote the number of discrete variables (either one or two). Then the second \(n \times k\)block contains realizations of \(F_{X_k}(X_k^-)\). The minus indicates a left-sided limit of the cdf. For continuous variables the left limit and the cdf itself coincide. For, e.g., an integer-valued variable, it holds \(F_{X_k}(X_k^-) = F_{X_k}(X_k - 1)\).

Incomplete observations (i.e., ones with a NaN value) are discarded.

Parameters:
datandarray, shape (n, m), dtype float

An \(n \times (2 + k)\)matrix of observations contained in \((0, 1)\), where \(k\)is the number of discrete variables.

controlsFitControlsBicop

The controls (see FitControlsBicop).