Coder Social home page Coder Social logo

sandy4321 / simulating_spx_returns Goto Github PK

View Code? Open in Web Editor NEW

This project forked from at-tan/simulating_spx_returns

0.0 1.0 0.0 1.29 MB

Simulating returns and crash risk for the S&P500 Index using long-run historical data, as published in Towards Data Science on Medium.com

Home Page: https://towardsdatascience.com/simulating-stock-market-crash-risk-85aae5abb197?sk=74d4b1172e97ee9d5c684d2818f9fb1f

Jupyter Notebook 100.00%

simulating_spx_returns's Introduction

Simulating Stock Market Returns & Crash Risk

Financial markets are a wellspring of quantifiable data, but the data generation process remains a deep mystery. Using daily stock market returns naively can lead to an underestimation of the risk of extended sell-offs similar to the February-March 2020 episode when the S&P 500 Index tumbled 34% over 23 trading days. An empirical analysis comparing the inferences gained from historical 1928-2019 daily, monthly & quarterly returns data of the S&P 500 Index.

The analysis reveals that the volatility clustering and aggregational normality phenomena suggest that historical daily returns statistics underestimate the risk of extended volatility spikes in the S&P 500 Index, and significant drawdowns of 30% or more over a month. Monthly 1928โ€“2019 historical data would have provided higher probabilities of a scenario akin to the February-March 2020 crash, than using historical daily returns data. More recent daily data from the 1990โ€“2019 period would have failed to foresee such an eventuality altogether.

This is the Python code used for the article published in: https://towardsdatascience.com/simulating-stock-market-crash-risk-85aae5abb197

simulating_spx_returns's People

Contributors

at-tan avatar

Watchers

James Cloos 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.