Skip to content

ENH: robust/RLM equivalent of GLSAR or MLE with AR errors #3258

Open

Description

@josef-pkt

what do we do if we have serially correlated errors and possible outliers?

i.e. linear regression model with AR errors plus outliers or heavy tailed distributions

see discussion at "RLM (again), with pre-whitening" (partially copied below)
https://groups.google.com/d/msg/pystatsmodels/vL-2gVMIqCs/fPrfQNGD7SwJ

objective: We want good estimates of the parameters on the regressors beta, and time series features are mostly a "nuisance". This is in contrast to the separate issue of outliers in time series analysis where the focus is on estimating the dynamics in spite of outliers (see ??? for outlier estimation in tsa)

However, we still have to distinguish at least innovation and additive ouliers (IO and AO)

  • IO or heavy tailed innovations: looks like standard M- or Huber-Dutter type models should work without problems
  • AO: this is an additional error to just an observation that doesn't affect future dynamics, i.e. similar to a measurement error that has only an effect in the current period

Denby and Martin provides a good comparison. M-estimators (with Huber or Bisquare weights) work for IO but not for AO. Generalized M-estimators (GM with extra weights for regressors) works for AO outliers with much smaller bias. I think this can be used as starting point. see also #3259

Denby, Lorraine, and R. Douglas Martin. 1979. “Robust Estimation of the First-Order Autoregressive Parameter.” Journal of the American Statistical Association 74 (365): 140–46. doi:10.2307/2286743.

Handling only IO and heavy-tailed innovations would be a good and relatively simple way to get started.


my comments on the mailing list, slightly edited

Based on a quick search I only find this reference that sounds similar:
Coursey, Don, and Hans Nyquist. 1986. “A Procedure for Obtaining M-Estimates in Regression Models with Serially Dependent Errors.” Journal of Time Series Analysis 7 (4): 255–67. doi:10.1111/j.1467-9892.1986.tb00493.x.

However, in spite of the title, they only look at median (quantile) regression and look at stable distributions in the Monte Carlo, and have no theory.
Essentially, they put Cochran-Orcut iteration with a robust estimator, which is what I did also, if I guess correctly based on the message.

Almost all of robust statistics looks only at the iid case. There is some time series literature for pure time series analysis that I didn't look at much (except for outlier detection). So, far I only found a single working paper for sandwich robust covariance matrices with correlation across observations (like HAC/Newey-West).

Writing an RLM equivalent to GLSAR would only take a few hours, but figuring out whether the theory is correct and writing unit test usually takes me much longer (unless I have a corresponding function.in another package).
An alternative would be to use MLE with t-distribution with 3 or 5 degrees of freedom. In this case all the standard results for MLE would apply, and it would be reasonably robust to outliers or heavy tails but it wouldn't be a high breakdown estimator.

'---

Geodesy seems to be using robust estimators with (network, spatial) correlated error, e.g.

Guo, Jianfeng, Jikun Ou, and Haitao Wang. 2009. “Robust Estimation for Correlated Observations: Two Local Sensitivity-Based Downweighting Strategies.” Journal of Geodesy 84 (4): 243–50. doi:10.1007/s00190-009-0361-y.
Yang, Y., L. Song, and T. Xu. n.d. “Robust Estimator for Correlated Observations Based on Bifactor Equivalent Weights.” Journal of Geodesy 76 (6–7): 353–58. doi:10.1007/s00190-002-0256-7.

They work the other way, adjust the weighting/whitening in GLS to account for possible outliers. We cannot do this much yet, because most of our models don't have an appropriate weight option yet.
In their case the estimation problem is simpler because they assume that the clean covariance matrix of the error term is given by prior knowledge or a prior estimate. (The underlying structure looks a bit similar to measurement error models.)

I didn't find anything or not much in the statistics literature about robust estimation using the dependence structure into account, but there seems to be a lot more on the property of standard M-estimators under dependence (which sounds more like the analog to OLS + correlation consistent sandwich cov_params)

aside: if the time series properties dominate the GLSAR results, then it is necessary to take into account that there are different kinds of outliers in time series that depend on whether outlier have lasting effect, i.e. effect future observations through the dynamic structure or outliers themselves are correlated (e.g. outlier episodes that last a few periods).

Nevertheless, I think it should be possible to handle additive outliers or heavy tailed innovation case with correlation with RLM in analogy to GLS which shouldn't be too difficult.

'----

One article that sounds good
Hu, Hongchang. 2013. “Asymptotic Normality of Huber–Dutter Estimators in a Linear Model with AR(1) Processes.” Journal of Statistical Planning and Inference 143 (3): 548–62. doi:10.1016/j.jspi.2012.08.012.

He (?) estimates the AR(1) coefficient jointly with location coefficient beta and scale. This is similar to using MLE instead of GLS. However, it requires non-linear parameter estimation instead of IRLS which we currently don't have.
But the theory should be largely the same as for standard M-estimators with auxiliary scale.

(Huber-Dutter is just an M-estimators where both mean parameters and scale are derived from the same objective function. Most robust M-estimators specify the estimating equation for scale separately from the estimating equation for the mean. a bit like full MLE versus Feasible GLS.)

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions