Giter Club home page Giter Club logo

bayesian-unobserved-component-models's Introduction

mcxs-report-template

This is a template repository for the Research Report for Macroeconometrics. You can use it to generate a website with your report such as the one at https://donotdespair.github.io/mcxs-report-template/

Using the template

In order to use this template:

  1. login to your GitHub account.
  2. Search for mcxs-report-template and click the Use this template button.
  3. Give a name to your repository and make it public.
  4. Clone the repo to your computer using GitHub Desktop.
  5. Go to RStudio and click File -> New Project... -> Existing Folder and select the folder to which you cloned the repository. It's much easier if you consistently keep working on your report using this R project.
  6. Start working on your project. Good luck!

Once you have your own repository created from this template, follow the steps to create your website:

  1. Go to the GitHub page of your repository.
  2. Go to Setup -> Pages.
  3. Set Source to Deploy from a branch
  4. Set the Branch to master, and then the folder to /docs.
  5. Click Save, reload the page and get the link to your website. YAY!

The structure of the template repository

The repository contains several folders and files. Here's what they are for:

Folder docs/ contains the rendered website. Do not ever adjust its contents. It's automatically generated.

File .gitignore includes a list of files that you might have in your local folder, but do not want them to be submitted to the public repository.

File README.md is the one you are reading right now. Feel free to edit this file having created your own repository from this template.

File _quarto.yml contains all the settings of the quarto project. Do not modify the existing setup unless you are sure of the consequences to the developed website. Feel free to add more detailed setup when you learn more about quarto over the semester.

File index.qmd is the quarto file in which you should develop your report. Please do not change its name or location. Otherwise modify as you will.

File references.bib contains LaTeX references to be used in the quarto document. Have a look at the recommendation of how to use it under the link provided in the template website. It is recommended to not change this file's name or location as they are set to the default values which make working in RStudio simple.

File styles.css contains the CSS style that determines the visual aspects of your website. You may modify or replace it, but please first read about it. You may also leave it as is and that's perfectly fine.

bayesian-unobserved-component-models's People

Contributors

adamwang15 avatar bgussen avatar carlb99 avatar comeseemeintheocean avatar cora1ine avatar donotdespair avatar inhyekang-au avatar jimmyyang917 avatar lzyzero3 avatar punzbd avatar russellyang728 avatar sb955 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

bayesian-unobserved-component-models's Issues

Prior distributions

  • specify the prior distributions for $\tau$, $\tau_0$, $\sigma^2$, and $\sigma_\eta^2$
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • include your name in the author list

Estimating Student-t degrees of freedom parameter

  • present estimation of a degrees of freedom parameter of an $N$-variate Student-t distribution modelled as the IG2-scale mixture of normal.
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Simulation smoother and precision sampler

  • describe what's the idea for using the Simulation smoother and precision sampler
  • provide an R function for the implementation of the precision sampler (a random number generator from a multivariate normal with a band precision matrix) Copy/paste/adjust my code. And describe a bit.
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Let's get to work!

todos

  • set up repo
  • upload the website
  • deploy the website
  • invite collaborators
  • create issues
  • assign issues

Student-t error terms

Present a model in which the error terms $\epsilon_t$ follow a Student-t distribution

  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Estimating gamma error term variance prior scale

  • put a prior on the prior scale of $\sigma^2$ and present its full conditional posterior distribution with an R function executing this sampler. The prior structure should be:
    $\sigma^2|s \sim\mathcal{IG}2(s, \underline{\nu})$
    $s\sim\mathcal{G}(\underline{s},\underline{a})$
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Estimation of autoregressive parameters for cycle component

Consider an extension of the model from the repo by a zero-mean autoregressive equation for $\epsilon_t$:
$$\epsilon_t = \alpha_1 \epsilon_{t-1} = \dots + \alpha_p \epsilon_{t-p} + e_t$$
where
$$e_t \sim N\left(0, \sigma_\alpha^2\right)$$
With the prior for autoregressive parameter vector $\boldsymbol\alpha = (\alpha_1,\dots,\alpha_p)'$
$$\boldsymbol\alpha\mid\sigma_{\alpha}^2 \sim N_p(0_p,\sigma_{\alpha}^2I_p)$$
and
$$\sigma_\alpha^2 \sim IG2 (s_\alpha, \nu_\alpha)$$

  • present a Bayesian algorithm for the estimation of autoregressive parameters and their shrinkage level
  • write a short note
  • a quick derivation or full conditional posterior distributions for $\boldsymbol\alpha$ and $\sigma_\alpha^2$
  • an R function with the sampler
  • include your name in the author list

Estimating inverted-gamma 2 error term variance prior scale

  • put a prior on the prior scale of $\sigma^2$ and present its full conditional posterior distribution with an R function executing this sampler. The prior structure should be:
    $\sigma^2|s \sim\mathcal{IG}2(s, \underline{\nu})$
    $s\sim\mathcal{IG}2(\underline{s},\underline{\mu})$
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Analytical solution for a joint posterior

  • provide an analytical solution for a joint posterior for $\tau$ and $\sigma^2$ for a simplified model in which $\tau_0 = 0$ and $\sigma^2_\eta = c\sigma^2$ where $c$ is a constant signal-to-noise ratio
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Student-t prior for the trend component

  • implement a Student-t prior for the trend component $\tau$ that in ths baseline model is given by a multivariate normal:

$\tau|\sigma^2_{\eta}\sim\mathcal{N}_T$

$(\mathbf{0}, \sigma^2_{\eta}(\mathbf{H}'\mathbf{H})^{-1})$

  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Laplace prior for the trend component

  • implement a Laplace prior for the trend component $\tau$ that in the baseline model is given by a multivariate normal:

$\tau|\sigma^2_{\eta}\sim\mathcal{N}_T$

$(\mathbf{0}, \sigma^2_{\eta}(\mathbf{H}'\mathbf{H})^{-1})$

  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Estimating the initial condition prior scale

  • put a prior on the prior scale of $\tau_0$ and present its full conditional posterior distribution with an R function executing this sampler. The prior structure should be:
    $\tau|s \sim\mathcal{IG}2(\underline{\tau}, s^2)$
    $s^2\sim\mathcal{IG}2(\underline{s},\underline{\nu})$
  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Random walk with time-varying drift parameter

  • present a model in which the state-space equation includes a drift that changes over time. You choose the form of the regime change ๐Ÿ˜„

$$\tau_t=\mu_t + \tau_{t-1}+\eta_t$$

  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

Estimating error term initial conditions $\boldsymbol\epsilon_0$

  • present a model with the autoregressive cycle component

$$\epsilon_{t}=\alpha_1\epsilon_{t-1}+\dots+\alpha_p\epsilon_{t-p}+e_t$$

$$e_t\sim\mathcal{N}(0\sigma_e^2)$$

  • also estimate the initial conditions $\boldsymbol\epsilon_0 = \epsilon_0, \dots, \epsilon_{-p+1}$ following the normal prior
    $$\boldsymbol\epsilon_0 \sim\mathcal{N}_p(\mathbf{0}_p,\sigma_0^2I_0)$$
  • write a short note
  • a quick derivation or full conditional posteriors for the $T$-vector $\boldsymbol\epsilon$, $p$-vectors $\boldsymbol\epsilon_0$
  • an R function with the sampler
  • include your name in the author list

Conditional heteroskedasticity

  • present the extension of the full conditional posterior distributions for the parameters of the baseline model given that the shocks $\epsilon_t$ is heteroskedastic with conditional variances $\sigma_t^2$
  • write a short note
  • a quick derivation or full conditional posterior for $T$-vector $\tau$
  • an R function with the sampler for full conditional posterior for $\tau$
  • include your name in the author list

Bayesian forecasting with local-level model

  • present very concisely Bayesian forecasting with the local-level model
  • write a short note
  • one-period ahead predictive density presentation
  • an R function with the sampler
  • include your name in the author list

Cover sections (modify the titles if you will)

Predictive density

Sampling from the predictive density

Gibbs sampler

  • specify the full conditional posterior distributions for $\tau$, $\tau_0$, $\sigma^2$, and $\sigma^2_\eta$

Jimmy is about to join this task.

  • write a short note
  • a quick derivation or full conditional posterior presentation
  • an R function with the sampler
  • include your name in the author list

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.