[This article was first published on Milk Trader, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
This is a brain teaser. You’ve been warned.Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
The S&P 500 is in a bear market (defined as the 50-day MA being below the 200-day MA) 30.8% of the time. Also, the S&P 500 has experienced single-day 4% declines 0.242% of the time. Of the times we experienced single-day selloffs exceeding 4%, 75.7% of the time we were in a bear market.
How much more likely are we to experience single-day losses exceeding 4% now that we’re in a bear market?
Odds are you stopped reading this puzzle after the first three sentences. In the unlikely event that you’re still with me, I’ve created a link to some code that holds the answer. It’s a prolog script whose knowledge-base is derived from data-mining in R.
To leave a comment for the author, please follow the link and comment on their blog: Milk Trader.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.