Skip to content

ENH: outlier detection through penalized estimation #7151

Open

Description

@josef-pkt

mainly parking some references, I didn't find an existing issue, but I thought there should be at least some comments on this

In (most/all ?) models we can remove the effect of an observation on the parameter estimates by including an observation dummy, observation specific mean shift. If we want to include all, then this adds nobs explanatory variables, and k_vars > nobs.

We can use penalized estimation to shrink the parameters for the outlier dummies, or shrink and threshold them to 0 with SCAD or L1 penalization.

One issue is what we use as a starting point, we cannot start with non-penalized estimate. If we start with fully penalized estimate, then we might still have masking and similar effects.

She, Yiyuan, and Art B. Owen. 2011. “Outlier Detection Using Nonconvex Penalized Regression.” Journal of the American Statistical Association 106 (494): 626–39. https://doi.org/10.1198/jasa.2011.tm10390.

The list of citing articles looks also interesting, but I didn't look closely at any of those.

Aside: I added the article to my Zotero 4 times between 2011 and 2016, but by now we should have all or most of the pieces available. I might have tried something like this during the GAM/penalized PR merges.

We don't have penalized RLM yet.

Also, it would be good to have a prior magnitude of the penalization weight, e.g. penalization weight implied by given effective degrees of freedom.

Activity

  1. josef-pkt commented on Nov 10, 2020

    @josef-pkt
    MemberAuthor

    a bit similar idea: use var_weights (maybe we could also use freq_weights)

    Song, Yunquan, Ping Dong, Xiuli Wang, and Lu Lin. 2017. “Rapid Penalized Likelihood-Based Outlier Detection via Heteroskedasticity Test.” Journal of Statistical Computation and Simulation 87 (6): 1206–29. https://doi.org/10.1080/00949655.2016.1257010.

    It doesn't have any published citation
    There might be some problems with generalizing this because, AFAICS from partial skimming, they penalize variance/standard deviation to 1.
    This works for weights (as in WLS) but doesn't provide an appropriate scale estimate.

  2. josef-pkt commented on Nov 10, 2020

    @josef-pkt
    MemberAuthor

    maybe not that exciting for high breakdown, large number of outlier cases, with considerable masking and swamping.

    I read through half of the She, Owen article. The outlier identification still needs a robust starting estimate and is mostly equivalent to a redescending M-estimator.
    So, this is more like an alternative approach for redescending, outlier removing robust estimation.

    The computational shortcut uses an offset in the linear model, (y - outlier_parameter), and I guess won't help for e.g. GLM.

  3. josef-pkt commented on Jan 6, 2025

    @josef-pkt
    MemberAuthor

    bunp

    ran into outlier penalized estimation again by chance (via outlier influence diagnostics for WLS)

    It might be worth looking at it for GLM.
    Fisher consistency might be less of a problem with penalized loglikelihood for additive outlier mean shifts.

    main computational problem: full dummy set implies nobs parameters.
    So we need either sparse computation or special case code that avoids full dummy set.

    computationally related would be GLM with individual fixed effects and GLM with random intercept.

    possible implementation: using offset callback during optimization
    (i.e. in loglike, score/score_obs and hessian (score_factor and hessian_factor)

    score_ and hessian_factor use mu = self.predict(params): predict has offset keyword which could be used for to adjust predict when outlier dummies are used. Otherwise, we need to use the offset callback also in predict.
    (Not clear whether predict should include the effect of outlier dummies.)

    Alternative: use sure independence screening with outlier dummies as extra exog candidates.

  4. added this to the 0.16 milestone on Jan 6, 2025
  5. josef-pkt commented on Jan 20, 2025

    @josef-pkt
    MemberAuthor

    some references

    Those were open in my browser tabs, maybe several are relevant here.
    I don't remember anything. (Too many other topics since I opened those tabs)

    Guo, Xu, Runze Li, Zhe Zhang, and Changliang Zou. n.d. “Model-Free Statistical Inference on High-Dimensional Data.” Journal of the American Statistical Association 0 (0): 1–12. https://doi.org/10.1080/01621459.2024.2310314.

    He, Kejun, Shiyuan He, and Jianhua Z. Huang. 2024. “Asymptotically Faster Estimation of High-Dimensional Additive Models Using Subspace Learning.” Scandinavian Journal of Statistics 51 (4): 1587–1618. https://doi.org/10.1111/sjos.12756.

    Luo, Jiyu, Qiang Sun, and Wen-Xin Zhou. 2022. “Distributed Adaptive Huber Regression.” Computational Statistics & Data Analysis 169 (May):107419. https://doi.org/10.1016/j.csda.2021.107419.

    Pan, Xiaoou, Qiang Sun, and Wen-Xin Zhou. 2021. “Iteratively Reweighted ℓ1-Penalized Robust Regression.” Electronic Journal of Statistics 15 (1): 3287–3348. https://doi.org/10.1214/21-EJS1862.

    Reinsel, Gregory C., Raja P. Velu, and Kun Chen. 2022. Multivariate Reduced-Rank Regression: Theory, Methods and Applications. Vol. 225. Lecture Notes in Statistics. New York, NY: Springer. https://doi.org/10.1007/978-1-0716-2793-8.

    Shih, Jia-Han, Ting-Yu Lin, Masayuki Jimichi, and Takeshi Emura. 2021. “Robust Ridge M-Estimators with Pretest and Stein-Rule Shrinkage for an Intercept Term.” Japanese Journal of Statistics and Data Science 4 (1): 107–50. https://doi.org/10.1007/s42081-020-00089-6.

    Sun, Qiang, Wen-Xin Zhou, and Jianqing Fan. 2020. “Adaptive Huber Regression.” Journal of the American Statistical Association, January. https://www.tandfonline.com/doi/full/10.1080/01621459.2018.1543124.

    Tan, Kean Ming, Qiang Sun, and Daniela Witten. 2023. “Sparse Reduced Rank Huber Regression in High Dimensions.” Journal of the American Statistical Association 118 (544): 2383–93. https://doi.org/10.1080/01621459.2022.2050243.

    Wisnowski, James W, Douglas C Montgomery, and James R Simpson. 2001. “A Comparative Analysis of Multiple Outlier Detection Procedures in the Linear Regression Model.” Computational Statistics & Data Analysis 36 (3): 351–82. https://doi.org/10.1016/S0167-9473(00)00042-6.

    Yagishita, Shotaro. 2024. “Fast Algorithm for Sparse Least Trimmed Squares via Trimmed-Regularized Reformulation.” arXiv. https://doi.org/10.48550/arXiv.2410.04554.

    Yang, Jiawei, Susanto Rahardja, and Pasi Fränti. 2021. “Mean-Shift Outlier Detection and Filtering.” Pattern Recognition 115 (July):107874. https://doi.org/10.1016/j.patcog.2021.107874.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions