Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordle: Adjust expected_wins for bin size #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jobevers
Copy link

@jobevers jobevers commented Mar 7, 2022

Let M = 2315 (total number of possible answers) and n = the size of bin for pattern n.

In the original version

P(Guess in 2) = 1/M * Sum(Prob(Guess in 2 | Pattern))
              = 1/M * Sum(1 / n) 

But, by Total Probability, I believe the formula should be:

P(Guess in 2) = Sum(Prob(Guess in 2 | Pattern) * P(Pattern))
              = Sum(1 / n * n / M)
              = 1 / M * Sum(1)

The result is counter-intuitive to me, but the probability of a guess in 2 only depends on the number of (non-empty) bins/partitions that are created from a guess.

Credit to @fitzme for help verifying the math.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant