### David Robinson

Principal Data Scientist at Heap, works in R and Python.

#### Recommended

This is the homepage and blog of David Robinson. For more about me, see here.

## The 'circular random walk' puzzle: tidy simulation of stochastic processes in RNovember 23, 2020

Solving a puzzle from 538's The Riddler column: if you pass cranberry sauce randomly around a table of 20, who is most likely to be the last person to get it?

## The 'prisoner coin flipping' puzzle: tidy simulation in RMay 04, 2020

Solving a puzzle from 538's the Riddler column: if N prisoners have a choice to flip a coin, and go free as long as one coin is flipped and all coins are heads, what strategy should they take to maximize their chances? Another demonstration of probabilistic reasoning and tidy simulation.

## The 'spam comments' puzzle: tidy simulation of stochastic processes in RApril 13, 2020

Solving a puzzle from 538's The Riddler column: if new spam comments appear at an average rate of one per day, including on other spam comments, how many can we expect after three days?

## Feller's coin-tossing puzzle: tidy simulation in RJanuary 17, 2020

If you toss n coins, what's the probability there are no streaks of k heads?

## The 'Spelling Bee Honeycomb' puzzle: efficient computation in RJanuary 06, 2020

Solving a puzzle from 538's The Riddler column: what is the honeycomb (from the New York Times's Spelling Bee puzzle) that scores the highest?