Skip to content
Menu
Meninder Purewal
  • Blogs
    • Data Meandering
    • Food for Thought
  • Publications
  • About
  • Contact
Meninder Purewal

538 Riddler: Ghostbusters

Posted on November 10, 2019January 17, 2021 by Meninder

A solution to the riddle on page 71 of The Riddler and also in the weekly column: Will You Be A Ghostbuster Or A World Destroyer?

There is a simple closed form solution, but I wanted to do a brute force Monte Carlo simulation. I randomly assigned two spots on the circle for the two ghostbusters (Abe and Betty) and then assigned two spots for the ghosts (Dan and Candace). Then ran multiple simulations and tracked of the streams crossed or not.

The convergence plot below shows how ~1k sims convergence to the solution of 33% chance that they cross streams.

See the Jupyter Notebook.

Follow Me

  • Twitter
  • LinkedIn
  • GitHub

Read My Latest Posts

  • Decisions and Quitting
  • Home Heating Oil and Scraping with Python
  • NoSQL
©2021 Meninder Purewal | Powered by SuperbThemes & WordPress