Skip to content

ENH: LTS, MTL least trimmed squares and ETS and MM-E - rebased - #8125

Open
josef-pkt wants to merge 20 commits into
statsmodels:mainfrom
josef-pkt:lts_rebased2
Open

josef-pkt wants to merge 20 commits into
statsmodels:mainfrom
josef-pkt:lts_rebased2

Conversation

@josef-pkt

Copy link
Copy Markdown
Member

rebased version of #452
(actually rebased from a branch that doesn't have a PR https://github.com/josef-pkt/statsmodels/commits/lts_rebased )

merge conflicts in RLM.fit start_params, weights, initial scale

originally written in 2012, rebased in 2014.
has old pattern or code compatible with older python (print in example script files are python 2 statements)

@lgtm-com

lgtm-com Bot commented Feb 16, 2022

Copy link
Copy Markdown

This pull request introduces 29 alerts when merging 38cf395 into 152e27d - view on LGTM.com

new alerts:

  • 10 for Unreachable code
  • 10 for Variable defined multiple times
  • 5 for Unused import
  • 3 for Unused local variable
  • 1 for Unhashable object hashed

Comment thread statsmodels/base/model.py

@cache_readonly
def llf(self):
return self.model.loglike(self.params)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not in original PR

@josef-pkt

Copy link
Copy Markdown
Member Author

no unit tests in this PR

@josef-pkt josef-pkt mentioned this pull request Nov 29, 2022
6 tasks
@josef-pkt

josef-pkt commented Mar 15, 2023 •

Copy link
Copy Markdown
Member Author

reference
Pison et al "Small sample corrections for LTS and MCD" 2002
found again because referenced in
Pison and Van Aelst Diagnostic Plots for Robust Multivariate Methods 2004
related to (outlier) robust cov #3230 #3221

what's the difference between LTS and efficient LTS, ETS?
(AFAIR, ETS was only based on working paper by Doornik, no published reference. But the above looks similar for LTS. I don't remember the details)

@josef-pkt josef-pkt mentioned this pull request Nov 28, 2023
@josef-pkt

Copy link
Copy Markdown
Member Author

This will require quite a bit of work.

EfficientLTS works pretty well and we should have it.
From what I remember when working on resistant estimators. ELTS is just "reweighted" LTS similar to reweighting in other resistant estimators. see more recent literature than Doornik's working paper.
Also we need the option for deterministic starts corresponding to DetLTS

Several additional classes might be too experimental, unfinished or unclear. Those should not be public in a first round.
For example, Maximum Trimmed Likelihood assumes symmetry to avoid Fisher bias. Although many references don't correct for fisher bias that shows up in case of asymmetric distributions.
LTSMM can be dropped, and LTS can be added as first stage option to the already merged MM estimator.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant