Coder Social home page Coder Social logo

lkunik / bayesian-osse-r-sample Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 75.51 MB

Source code for Bayesian urban inversion OSSE [Kunik et al., 2019] written in R and equipped with sample inputs (run it out-of-the-box!)

R 100.00%
atmospheric-modelling bayesian-inversion bayesian-inverse-problems urban-co2 bayesian-statistics

bayesian-osse-r-sample's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

bayesian-osse-r-sample's Issues

Chi^2 distribution clarifications

The paper referencing this code mentions that
X2 = spriorT B-1 sprior + zT R-1 z
is distributed as a χ2 variable on ν = Nobservations + Nfluxes. This is true.

The paper then goes on to generate an ensemble of pseudo-observations, calculate X2/ν for each member, and states that the expected value of this latter quantity is one. This is also true.

The difficulty I am having is that I can decompose X2 into two random variables:
Xflux2 = spriorT B-1 sprior
and
Xobs2 = zT R-1 z,
which are distributed as χ2 variables on Nfluxes and Nobservations, respectively. The ensemble in the paper generates multiple realizations of the second variable, but I only see one realization of the first.
E(X2 / ν) is still one;
E(E(X2 | Xflux2)) is also one;
E(X2 | Xflux2) is a function of Xflux2 and is what I think the paper has.

Is this an accurate description of what is going on? Is this a known and intended behavior of this package? It is entirely possible I just missed this section of the paper while reading. If that is th case, a pointer to the section of the paper where this is described would be welcome.

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.