-
Notifications
You must be signed in to change notification settings - Fork 14
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
Expected result calculation? #2
Comments
As in the changes in rating/rd or as in win/loss probability? |
Win/loss probability.
```
def expected_result(player_rating, opponent_rating, opponent_rd):
q = math.log(10) / 400
g = 1 / math.sqrt(1 + 3 * (q ** 2) * opponent_rd ** 2 / (math.pi ** 2))
e = 1 / (1 + 10 ** (-g * (player_rating - opponent_rating) / 400))
return e
```
…On Sun, Apr 23, 2023 at 2:02 PM Alex Nordlund ***@***.***> wrote:
As in the changes in rating/rd or as in win/loss probability?
—
Reply to this email directly, view it on GitHub
<#2 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN2ZJJZSAT7M7V6HZLPPXLXCVVBVANCNFSM6AAAAAAXIU7S6M>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sounds good to me! I have another (unrelated) release I need to finish today and I've got a meeting on Monday but before Tuesday is over I should be able to get to it |
I should note I copied this code from ChatGPT. It looks right, but I can't read the mathematical notation in the wikipedia articles about how this is calculated and convert it to Python so you might want to double check it. |
is it in? Maybe close the issue if it is in. |
Correct me if I'm wrong, but the expected result is the method |
Can we get an expected result function?
The text was updated successfully, but these errors were encountered: