Skip to content

ENH: outlier, influence add looo, jackknife residuals #9008

Open

Description

@josef-pkt

motivated by #9005 (comment)

We don't have explicit looo, jackknife residuals (resid_response).
I'm not sure whether we already have all the computation for it, for other statistics.

looo residuals look like a useful tool.

In the GLM, discrete cases we could also add other residuals based on looo, e.g. resid_pearson.
other predictive statistics, looo-fittedvalues, looo-implied-var and similar might also be useful.
(model.predict has "which" option and takes params as argument, but likely not a 2dim params vectorized by rows)

Activity

  1. added this to the 0.15 milestone on Sep 22, 2023
  2. josef-pkt commented on Sep 23, 2023

    @josef-pkt
    MemberAuthor

    OLSInfluence has dffits which is studentized change in fittedvalues, but no dffit without studenization

    MLEInfluence has d_fittedvalues, one-step approximation to change in fittedvalues (based on derivative for slope of fittedvalues/mean function, not finite difference) dy/dparams * dparams
    (diff and derivative are the same in linear models)

    d_fittedvalues_i = yhat_i - yhat_{i, -i} (approx)
    resid_{i, -i} = y_i - yhat_{i, -i} = (y_i - yhat_i) + (yhat_i - yhat_{i, -i}) = resid_i + d_fittedvalues_i

    alternatively we can compute difference to predicted value at distorted params
    fittedvalues_{i, -i} = predict(params + dparams)

  3. josef-pkt commented on Sep 23, 2023

    @josef-pkt
    MemberAuthor

    for plotting:

    • fittedvalues_{i, -i} versus fittedvalues_i

    for overdispersed poisson, we could try to get looo-scale, i.e. mean of pearson residuals with looo
    in poisson: residuals**2 / fittedvalues using looo/jackknife values

  4. changed the title [-]ENH: outlier, influence add looo, jacknife residuals[/-] [+]ENH: outlier, influence add looo, jackknife residuals[/+] on Sep 23, 2023
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