Giter Club home page Giter Club logo

Comments (6)

lavinei avatar lavinei commented on July 2, 2024

Hi,

A detail hidden within the Poisson DGLM is that the forecast distribution is negative binomial. A full discussion is given in this book, Chapter 14.

Briefly, the amount of dispersion in the forecast distribution increases with the uncertainty in the DGLM coefficients. As noted in the documentation, the forecast distribution is:

$$y_t \sim Pois(\mu_t)$$

However, there is a prior distribution on $\mu_t$:
$$\mu_t \sim Ga(\alpha_t, \beta_t)$$

If you integrate out $\mu_t$, then marginally the forecast distribution becomes negative binomial.

On a practical note, if you are working with data that has greater than Poisson dispersion, you can also use the hyperparameter $\rho$. $0 \lt \rho \lte 1$, and the smaller $\rho$ becomes, the larger the forecast variance. You can set this in the analysis function, or when you define a Poisson DGLM yourself, with rho=0.5, or some other value.

Thanks,
Isaac

from pybats.

arita37 avatar arita37 commented on July 2, 2024

from pybats.

lavinei avatar lavinei commented on July 2, 2024

The model name corresponds to the observation equation conditioned on knowing all the parameters. For a Poisson DGLM, when you condition on $mu_t$, then the forecast distribution is Poisson.

Full details on DGLM theory is given in this book, Chapter 14. Additionally, here is the Wikipedia article on the Gamma-Poisson mixture.

from pybats.

arita37 avatar arita37 commented on July 2, 2024

from pybats.

lavinei avatar lavinei commented on July 2, 2024

Thanks for linking to the Mixture Density network, it looks like a very interesting model and good research. However, the goal of the Mixture Density network seems quite different than the goals of PyBATS. PyBATS is primarily focused on time series, especially computationally efficient models that can be run quickly. I appreciate the suggestion, but I'm not sure that I see them directly connecting.

from pybats.

arita37 avatar arita37 commented on July 2, 2024

from pybats.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.