After reading an essay by Mike Bostock on the dangers of shuffling arrays in particular ways, I emulated his visualization in Excel.
I want to visualize whether a shuffle is truly random by visualizing the propensity for any given starting index to end up in another.
Here's what I came up with:
The problem is that I don't get what I expect, Fisher-Yates should show an even distribution (with a bit of noise). It doesn't.Please Login or Register to view this content.
What I don't know is whether this is a problem with my method (most likely), a problem with the shuffle (though I've tried a couple of Chip Pearsons implementations as well as my own - though they exhibit different behaviour), the way random numbers are generated in Excel or something else.
I've attached for perusal, would be good if someone could spot the error
Bookmarks