Vinecop.fit
- Vinecop.fit(self, data: numpy.ndarray, controls: pyvinecopulib.core.FitControlsBicop = FitControlsBicop(), num_threads: int = 1) None
Fits the parameters of a pre-specified vine copula model.
This method fits the pair-copulas of a vine copula model. It is assumed that the structure and pair-copula families are already set. The method is equivalent to calling
fit()for each pair-copula in the model. The same can be achieved by callingselect()with the same data and aFitControlsVinecopobject instantiated withselect_families = false.- Parameters:
- datandarray, shape (n, m), dtype float
\(n \times (d + k)\)or \(n \times 2d\)matrix of observations, where \(k\)is the number of discrete variables.
- controlsFitControlsBicop
The controls for each bivariate fit (see
FitControlsBicop()).- num_threadsint
The number of threads to use for parallel computation.