Skip to content

Instantly share code, notes, and snippets.

@gavinsykes
Created November 30, 2020 23:50
Show Gist options
  • Save gavinsykes/2880eeb70f8f806dde1943b2aa883682 to your computer and use it in GitHub Desktop.
Save gavinsykes/2880eeb70f8f806dde1943b2aa883682 to your computer and use it in GitHub Desktop.
const prob;
Where P(BB) = 1/2
P(BB) = (B/(B+R)) * ((B-1)/(B+R-1)) = 1/2
(B(B-1)) / ((B+R)(B+R-1)) = 1/2
2B(B-1) / (B+R)(B+R-1) = 1
2B(B-1) = (B+R)(B+R-1)
2B^2 - 2B = B^2 + BR - B + BR + R^2 - R
B^2 - B = 2BR + R^2 - R
B^2 - 2BR - B = R^2 - R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment