Merminโ€™s (1981) variant of Bell’s theorem – in R

Entanglement is the weirdest feature of quantum mechanics. David Mermin (1981) provides an accessible introduction to experiments showing that local determinism doesnโ€™t hold in the quantum world, simplifying Bellโ€™s theorem and tests thereof. This knitted Markdown file shows the sums in R. Itโ€™s probably only going to make sense if you have been here before, but hadnโ€™t got around to doing the sums yourself (that was me, before writing this today!).