3 ms·
Here is another way to show that the there are not meaningful differences in the position winrates. # calculate cumulative black/white wins for each positi
by oli5679 4y ago
Here is another way to show that the there are not meaningful differences in the position winrates.
# calculate cumulative black/white wins for each position
# ignoring current result
headers['cumul_white_points'] = headers.groupby('pos')['white_points'].cumsum().shift()
headers['cumul_black_points'] = headers.groupby('pos')['black_points'].cumsum().shift()
# calculate white's chance of winning given previous position results
headers['position_prior'] = (headers.cumul_white_points +1) / (headers.cumul_black_points + headers.cumul_white_points + 2)
# calulate difference in player ratings
headers['rating_difference'] = headers.WhiteElo - headers.BlackElo
headers[['white_points','position_prior','rating_difference']].corr()
- position_prior 0.000721
- rating_difference 0.401107
- alexmolas 4y agoI like how you computed the correlation between positions priors and rating differences, it's simple and right to the point. Thanks for sharing :)