Skip to content

Conversation

gahtan-syarif
Copy link
Contributor

@gahtan-syarif gahtan-syarif commented Apr 11, 2024

Overloaded the LLR function to provide pentanomial LLR when called with pentanomial results. This allows for pentanomial SPRT's. Also made the elo0 and elo1 bounds for SPRT use normalized elo instead of logistic elo to be consistent with Fishtest and Openbench.

@gahtan-syarif gahtan-syarif changed the title nelo bounds for SPRT Add Pentanomial LLR and use nelo bounds for SPRT Apr 11, 2024
@Disservin
Copy link
Owner

gonna trust you on the maths on this one :D Probably in the future the llr should just take a Stats object https://github.com/Disservin/fast-chess/blob/master/src/types/stats.hpp.
Btw did fishtest have any tests associated with these functions, would make sense to add them.

@Disservin Disservin merged commit 62f2f70 into Disservin:master Apr 11, 2024
@gahtan-syarif
Copy link
Contributor Author

gahtan-syarif commented Apr 11, 2024

for the penta llr i didn't take them from fishtest instead i used my own 5-nomial distribution code combined with the cpw llr formula that i used on my python elo and SPRT simulator here:
pentanomial_elo_model.txt
the results are exactly the same as fishtest tho i guarantee :)

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.

2 participants