statsmodels.robust.covariance.CovM.fit#
- CovM.fit(start_mean=None, start_shape=None, start_scale=None, maxiter=100, update_scale=True)[source]#
Estimate mean, shape and scale parameters with MM-estimator
- Parameters:
- start_mean
Noneorndarray Starting value for mean, center. If None, then median is used.
- start_shape
Noneor 2-dimndarray Starting value of shape matrix, i.e., scatter matrix normalized to det(scatter) = 1. If None, then scaled covariance matrix of data is used.
- start_scale
Noneorfloat Starting value of scale.
- maxiter
int Maximum number of iterations.
- update_scalebool
If update_scale is False, then the scale is fixed at start_scale and only mean and shape are updated in each iteration.
- start_mean
- Returns:
CovMResultNamed tuple with mean, shape, scale, cov, converged, n_iter, and mahalanobis. See
CovMResultfor details.
Notes
If start_scale is provided and update_scale is False, then this is an M-estimator with a predetermined scale as used in the second stage of an MM-estimator.