Skip to content

Predictive accuracy measures for count data #2027

Open

Description

@josef-pkt

similar to #1577 for binary data

measures of goodness of fit or of the accuracy of the predictive distribution for count data.

references

Czado C, Gneiting T, Held L. 2009. Predictive model assessment for count data. Biometrics65:1254–61

Gneiting, Tilmann, and Matthias Katzfuss. 2014. “Probabilistic Forecasting.” Annual Review of Statistics and Its Application 1 (1): 125–51. doi:10.1146/annurev-statistics-062713-085831.

Activity

  1. added this to the 0.7 milestone on Oct 4, 2014
  2. kiyoto commented on Jul 12, 2015

    @kiyoto
    Contributor

    Any reason why #1577 is not closed? Both would be very useful.

  3. josef-pkt commented on Jul 12, 2015

    @josef-pkt
    MemberAuthor

    The PR #1650 which adds classification measures for #1577 doesn't have unit tests, and a strange keyword

  4. modified the milestones: 0.8, 0.7 on Jul 17, 2015
  5. josef-pkt commented on Jun 14, 2021

    @josef-pkt
    MemberAuthor

    I finally tried to implement the non-randomized PIT in Czado C, Gneiting T, Held L. 2009. Predictive model assessment for count data but I cannot make sense of it.

    AFAICS, equ (2) is only the "remainder" in between two counts, but does not include the location of count itself.
    The description is not very clear, or it doesn't do what I thought it should.

    Also, they mention a code supplement in the article, but I cannot find it. The Biometrics supplement archive does not have it.
    (lists article but no link to supplement)
    google search finds that it's available in surveillance and glarma R packages
    https://rdrr.io/rforge/surveillance/man/pit.html https://rdrr.io/cran/glarma/man/PIT.html

    If I use just linear interpolation, then I can produce probability plots for count, Poisson, that look useful, including a qq-plot.

    e.g.

    true model is 2 component poisson mixture

    nobs = 500
    x = stats.poisson.rvs(3, size=nobs)
    f = 100
    x[-nobs//f :] = stats.poisson.rvs(10, size=nobs//f)
    

    tested model is just poisson(3)
    x-axis: expected
    y-axis observed frequencies

    image

    (experimental notebook try_pit not public, needs more work)

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions