Code Monkey home page Code Monkey logo

uq_state-space's Introduction

UQ_State-Space

Quantification of model discrepancy, aka epistemic uncertainty in the ML community, in state-space models using Gaussian processes.

Context: In any scientific context researchers, in their pursuit of how reality works, have to make some modelling assumptions, by assuming a certain function for the process generating the data. This usually means that the researcher is assuming that the data is drawn from a certain distribution. However, these assumptions may be severely inadequate, depending on the context. Hence the need to quantify this inadequacy, which may also be called model discrepancy.

In Macroeconomics, there's a real need for this type of quantification, ever since the financial crisis the 2007-2008 showed some of the limitations of its theoretical models, usually stated in a state-space form.

Problem Statement: How to quantify the inadequacy of a state-space model in the Macroeconomic context?

Answer: We'll try to quantify that model discrepancy using a Gaussian Process, in a Bayesian perspective.

For more information, check out the pdfs in the repository.

FullGP.nb - In this Mathematica Notebook, I use the full Gaussian Process(GP). In the simulations, certain mathematical operations required the matrices to be positive-definite. However, due to machine precision, certain matrices were not. Hence, I had to build from scratch an algorithm that made sure we could find new approximate matrices, which were PD and maintained that property whenever needed. This created two computational bottlenecks, at the learning and filtering phase, with the filtering being the biggest one.

ApproxGP.nb - In this notebook, I use a functional approximation to the GP, which makes the filtering of the main algorith run much faster. However, there's a trade-off. We lose some accuracy in our predictions, when comparing with the full GP.

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.