Skip to content

Instantly share code, notes, and snippets.

@milktrader
Created April 25, 2013 01:44
Show Gist options
  • Save milktrader/5456916 to your computer and use it in GitHub Desktop.
Save milktrader/5456916 to your computer and use it in GitHub Desktop.
What is the chance we'll see a loss of 10 percent or more in the SPX return for a Thursday?
julia> log_return(indexdow(GSPC, 5)["Close"]);
julia> foo = ecdf(ans);
julia> foo(-0.10)
0.0012492192379762648
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment