GithubHelp home page GithubHelp logo

mjv2146 / stochastic-volatility Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.83 MB

Detecting unobservable changes in standard deviation of GDP

Python 0.03% Jupyter Notebook 99.97%
data-analysis forecasting pystan python time-series

stochastic-volatility's Introduction

Stochastic Volatility

Task

  • Economies frequently experience large downturn beyond the scope of a 'normal' downturn.
  • This project considers that the average size of a downturn can vary over time.
  • I estimate this using the model
$$\begin{align} \underbrace{\log y_t}_{\text{Observed}} &= \rho_y \log y_{t-1} + \exp(\sigma_{t-1}) \epsilon_t \\\ \underbrace{\sigma_t}_{\text{Unobserved}} &= (1-\rho_\sigma) \overline{\sigma} + \rho_{\sigma} \sigma_{t-1} + \sigma_\nu \nu_t \\\ \epsilon_t &\sim \mathcal{N}(0, 1) \\\ \nu_t &\sim \mathcal{N}(0, 1). \end{align}$$
  • $y_t$ is the (observed) GDP component.
  • $\sigma_t$ is unobserved and determines the standard deviation of GDP innovations. As $\sigma_t$ increases, the standard deviation of $y_t$ increases.

Data

Argentina Industrial Production - Global Economic Monitor

Notebooks

Notebook Description
Clean Data Clean raw industrial production series to separate cycle and trend components.
Main Estimate stochastic volatility process.

blah

Findings

  • Argentina features stochastic volatility - the standard deviation of GDP fluctuations changes over time.
  • The volatility of GDP increased during recessions such as the 1998-2002 Argentine Great Depression and the 2008 Global Financial Crisis.
  • Argentina experienced a 0.5% decline in GDP volatility following 1998-2002 Argentine Great Depression.

Tools

  • pandas - data wrangling
  • matplotlib/seaborn - visualizations
  • pystan - bayesian methods

stochastic-volatility's People

Contributors

mjv2146 avatar

Watchers

 avatar

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.