Giter Club home page Giter Club logo

Comments (3)

baggepinnen avatar baggepinnen commented on May 30, 2024 1

Having $[x_{t-1}, x_{t-2}]$ be the state vector is indeed the way to go. This does not introduce much redundancy other than in memory, the full dimension of the state is indeed given by 2 times the dimension of $x$, and this is what determine the statistical properties regarding how densely the state space is sampled etc.

There is no way to access state older than the last step, the definition of state is the complete set of information that is required to predict the future, hence, $x_t$ is technically not a valid state representation in the system
$$x_t = a_1 x_{t-1} + a_2 x_{t-2} + noise,$$

One could implement a custom particle filter to handle this case if the use of memory becomes a bottleneck, but his would have to special case not only the dynamics update, but also handling of the initial state etc. since you'd need multiple past values of $x$ to initialize the filter.

A further complication would be in the resampling step, since it would not be enough to resample the current value of $x$, you'd have to also copy over the history of $x$ in the resampling step.

BTW, this model is linear, is the noise Gaussian? If so, I'd use a Kalman filter instead

from lowlevelparticlefilters.jl.

baggepinnen avatar baggepinnen commented on May 30, 2024 1

Cool, I'll close this issue for now, feel free to continue the discussion if you have further questions :)

from lowlevelparticlefilters.jl.

danscr avatar danscr commented on May 30, 2024

Thanks for the explanation! I'll then proceed as you suggested.
The noise in my current dynamics is not always Gaussian, since I have some parameters constrained to certain intervals. But later on I might simplify my model to be able to use Kalman filter.

from lowlevelparticlefilters.jl.

Related Issues (20)

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.