Roadmap¶
robustmodels grows in stages. Each stage adds established methods from the robust and nonparametric statistics literature that are missing or incomplete in Python. Stages are ordered by how much each method is missing in Python, how widely its R counterpart is used, and which methods later stages build on.
This is a plan, not a schedule: there are no dates, and later stages may change. Suggestions and use cases are welcome in Issues.
Principles¶
scikit-learn API: estimators use
fit,predictandtransform, store fitted attributes with a trailing underscore, and pass scikit-learn’s estimator checks.Independent validation: each method is tested against its definition, theoretical properties and published results. Exact small problems, numerical integration, derivatives and model-based simulations provide independent checks. Other software outputs are supplementary regression references; differences are assessed against the definition and assumptions.
Explicit conventions: choices such as finite-sample corrections or the subset size
hare documented and, where useful, selectable.Few dependencies: NumPy, SciPy, scikit-learn and Matplotlib for diagnostics.
Contribute upstream: where a correct implementation already exists in another project, improve that project instead of duplicating it.
Available¶
Location: Hodges–Lehmann, M, tau, trimmed and winsorized means.
Scale, skewness and tail weight: MAD, Qn, Sn, Pn, tau scale, M-scale, medcouple and its left and right versions.
Covariance: MCD (FAST-MCD and DetMCD), MRCD, MVE, OGK, Stahel–Donoho, Peña–Prieto kurtosis and specific directions (KSD), S and MM estimators.
Multivariate methods: robust PCA (ROBPCA and projection pursuit), robust LDA and QDA, robust one-sample Hotelling’s T² and one-way MANOVA.
Regression: least trimmed squares (FAST-LTS) with reweighting, and S and MM estimators (FAST-S), with standard errors, tests and nested-model tests for MM; nonlinear Huber M regression.
Rank-based methods: rank regression with Wilcoxon scores (exact fit, standard errors, the drop in dispersion test and one-way analysis of variance), and exact Wilcoxon rank-sum and signed-rank tests conditional on ties and zeros.
Robust clustering: TCLUST and trimmed k-means.
Multivariate density estimation: kernel density estimation with a full bandwidth matrix (plug-in and smoothed cross-validation), density derivatives, highest density regions and two-sample tests with permutation or normal calibration.
Shape-constrained estimation: univariate log-concave density estimation and regression by antitonic score matching.
Generalized linear models: Mallows logistic and Poisson, Bianco–Yohai logistic (including leverage trimming), and MT Poisson regression.
Outlier detection and depth: Stahel-Donoho, adjusted and directional outlyingness, projection depth, halfspace depth (exact in any dimension) and regression depth, the Tukey median and the bagplot.
Diagnostics: regression and PCA outlier maps, residual plots, quantile plots of residuals and robust distances, distance-distance plots, tolerance ellipses, scree plots, biplots, classification regions, robust clusters, adjusted boxplots, bagplots, outlyingness plots, highest density regions, log-concave densities, antitonic scores, coefficient comparisons, depth-depth plots and trimmed likelihood curves.
Later stages¶
Benchmark time, memory and statistical calibration for the existing estimators.
Study high-breakdown regression by ranks for contamination in the predictors. Compare against Wilcoxon, LTS and MM regression on the same samples.
Use the density derivatives to evaluate mode finding by mean shift. Check recovery of known modes under different bandwidths before adding ridges.
Study finite-sample calibration for Hotelling’s T² and robust MANOVA, including group imbalance, dimension and contamination. State the null model before comparing any recalibration.
Benchmark diagnostics for cellwise contamination and missing values against existing implementations before choosing an estimator to add.
Use cases and suggestions are welcome in Issues.
Across all stages¶
Extend diagnostic plots as new estimators become available.
Classic datasets from the robust statistics literature, such as hbk, stackloss, starsCYG and wood.
Keep the R-equivalents table and executable diagnostic gallery current as methods are added.
Not planned for now¶
Nonlinear and censored quantile regression, quantile and robust mixed models, sparse LTS, multivariate log-concave density estimation, and integrations with distributed computing frameworks.