🏠



An Elo-based Rating System for Topcoder Single Round Matches



Fred Batty

2026-02-21

arXiv:1905.00961v7




Abstract

This paper presents an Elo-based rating system for programming contests, specifically Topcoder's Single Round Matches (SRMs). We introduce a logarithmic rank-based performance metric that allows single-round, multi-player contest results to be incorporated into an Elo-style continuous rating framework. Model parameters and adjustment factors are calibrated empirically by minimizing absolute prediction error over historical data, accounting for experience level, initial ratings, and competition characteristics. The resulting system demonstrates improved rank predictions and rating progressions consistent with natural skill development over player careers.

Keywords: Elo rating system, rank performance, performance prediction, Topcoder SRM, competitive programming




Introduction

Single Round Matches (SRMs) were regular programming contests organized by Topcoder [TC] from 2001 to 2024. Topcoder developed its own rating system, a model of ranking and volatility [TCRating]. Players sometimes asked: What would SRM ratings be if they were Elo-based? This research addresses that question by developing and evaluating an Elo-based rating system for Topcoder SRMs.

The Elo rating system is a measurement of performance, developed in 1959 by Arpad Elo [Elo].

There is no standard method for applying Elo ratings to single-round, multi-player contests, where the observed data consist of a ranking rather than a set of pairwise results. Since Elo ratings operate on scores—scalar quantities measuring performance—the ranking must be translated into a score-equivalent measure before it can enter the rating formula. We derive such a quantity by counting the number of one-on-one wins implied by a given rank in an equivalent tournament. Consequently, an n-player game can be rated like a two-player game.

We adapt the rating change formula for Topcoder SRMs with the following objectives:




Performance

Rank performance

To adapt the Elo system for multi-player SRMs, we must assign a score to each rank. We therefore ask:

If the winner of a chess game scores one point, how many points should a player ranked $r$ in a round of $n$ players score?

We answer this by counting wins in an elimination tournament. Let $\mathit{RP}(n, r)$ denote the score assigned to rank $r$ among $n$ players.

In a tournament of $2^k$ players, the winner must win $k$ one-on-one rounds, so we have:

\begin{equation} \mathit{RP}(2^k, 1) = k \end{equation}

The runner-up, having lost only the final round, has one fewer win than the winner:

\begin{equation} \mathit{RP}(n, 2) = \mathit{RP}(n, 1) - 1 \end{equation}

In other situations, we observe:

\begin{equation} \begin{gathered} \mathit{RP}(n, n) = 0 \\ \mathit{RP}(2 n, n) = 1 \\ \mathit{RP}(n, r) = \mathit{RP}(n, 1) - \mathit{RP}(r, 1) \end{gathered} \end{equation}

These conditions uniquely determine the rank performance equation:

\begin{equation} \mathit{RP}(n, r) = \log_2{n} - \log_2{r} \end{equation}

This converts rankings into score-equivalent performance values suitable for Elo rating updates.



Expectations

We implement the standard Elo win rate equation [Elo §8.73, FIDE]. A rating $R_j$ outperforms a rating $R_i$ with probability $w_j$ given by:

\begin{equation} w_j = \frac{1}{1 + 10^{(R_i - R_j)/400}} \end{equation}

This is also known as the Bradley-Terry model.

Following SRM convention, new players start at rating 1200.



Ties

In programming contests like SRM, ties typically indicate a limitation of the problem set or scoring rather than truly equal performances of the tied players. We want ties to not adversely affect the ratings.

We experimented with several accounting methods and found the most effective is to split ties equally in both actual and expected ranks, assigning 0.5 to each tied position. Thus, we split ties equally.



Round performance

We have the results of a round, which may include multiple divisions and ties. We consider the results of each division separately. The result of a round is a list of raw scores $S$, where $s_i$ is the score achieved by player $i$.

We compute rank and expected rank for each player $i$ as follows:

\begin{equation} \begin{aligned} r_\mathit{ties} &= \frac{1}{2}|\{s_j \in S: j \neq i, s_j = s_i\}|, \\ r &= 1 + |\{s \in S: s > s_i\}| + r_\mathit{ties}, \\ \hat{r} &= 1 + \sum_{j: s_j \neq s_i}w_j + r_\mathit{ties}. \end{aligned} \end{equation}

The net performance of a player in the round is the difference between actual and expected rank performance:

\begin{equation} P = \mathit{RP}(n, r) - \mathit{RP}(n, \hat{r}) \end{equation}

Simplifying, we obtain:

\begin{equation} P(\hat{r}, r) = \log_2{\hat{r}} - \log_2{r} \end{equation}

The performance $P$ equals the number of wins above or below expectations in an equivalent tournament.

Thus, the n-player game can be effectively rated as a two-player game using the following formula:

\begin{equation} ΔR = K \cdot P \end{equation}

where $K$ is the rate of rating change, to be determined.



Accuracy

To evaluate the rating system, we measure how accurately it predicts contest outcomes. Given expected and observed ranks $(\hat{r}, r)$, we define the prediction error as the absolute difference in rank performance: \begin{equation} E(\hat{r},r) = \left| \log_2{\hat{r}} - \log_2{r} \right| \end{equation}

Our primary accuracy metric is the average error for all participants in all rated rounds, denoted $L_1$. This metric measures how accurately the expected ranks match the observed performances:

\begin{equation} L_1 = \frac{1}{n} \sum_{i=1}^{n} \left| \log_2{\hat{r_i}} - \log_2{r_i} \right| \end{equation} where \( r_i \) and \( \hat{r}_i \) are the actual and expected ranks, respectively, for each player \( i \) across all rounds, and \( n \) is the total number of player-round observations.

Secondary metrics include:



Properties


RankPerf
Figure 1: Rank performance


Rank performance is convex as a function of rank (Figure 1). The total performance scores of a set of ranks is maximal when the ranks are distinct, and minimal when the ranks are tied. Having split ties equally in actual and expected ranks, the expected ranks are at least as tied as the actual ranks. Thus, the performances in a round have a positive or zero sum:

\begin{equation} \sum{P} \ge 0 \end{equation}

Let $\overline{P}$ be the average performance in a round and $L_1$ the average absolute value. We find:

\begin{align*} \overline{P} & < \log_2{e} - 1 \approx 0.443 \\ L_1 & < 2 \end{align*}

These bounds enable meaningful cross-round comparisons and aggregation of statistics.


The regularized derivative of a player's expected performance with respect to rating is given by:

\begin{equation} \begin{gathered} \frac{dP}{dR} = \frac{P'}{K_0} \\ P' = \frac{1 + \sum_{j \neq i} w_j(1-w_j)}{1 + \sum_{j \neq i} w_j} \\ K_0 = \frac{400}{\log_2{10}} \approx 120 \end{gathered} \end{equation}

For \( P \approx 0 \), we can solve \( P = 0 \) with \( \Delta R = K_0 \cdot \frac{P}{P'} \).

We will use \( P' \) to improve the accuracy of $\Delta R$.




Proposed rating system

We computed a performance measure for each player in a SRM. The objective is to define rating changes \( \Delta R \) that improve the prediction of future performances and allow ratings to track long-term player proficiency.

The rating system is developed incrementally, introducing one factor at a time to address a distinct aspect of performance measurement. Each factor is theoretically motivated, and parameters are selected by minimizing the average prediction error (\(L_1\)) over the historical SRM dataset.

Throughout, factor selection is restricted to admissible mechanisms under which the rating scale retains a consistent interpretation as latent player proficiency. Models that improve predictive accuracy by violating this interpretation are excluded.



Initial factor

With a prior ratio of $1 : 1$, a performance value $P$ outperforms the expected performance level by a factor $1 : 2^P$. A rating difference $ΔR$ expects a better performance by a factor $1 : 10^{ΔR/400}$. Equating these two expressions converts performance units to rating units:

\begin{equation} \begin{gathered} ΔR = \frac{400}{\log_2{10}} P = K_0 \cdot P \\ K_0 \approx 120 \end{gathered} \end{equation}

If we expected the same performance in the next round and had no other information, this would be an appropriate $ΔR$.

We use this initial formulation to establish baseline statistics before customizing for SRM.



Fixed K


fixed_K
Figure 2: Fixed K


For a simple linear adjustment, we compute $\Delta R = K \cdot P$, where $K$ is chosen to minimize prediction error. We find the most accurate choice is $K = 65$ (Figure 2).

As we add factors into the calculation of $ΔR$, we re-optimize previous parameters to maintain accuracy, with the parameter $K$ serving as the base rate of rating change.



Experience factor


alpha
Figure 3: Experience factor


A player's rating represents accumulated evidence of skill, and greater experience should reduce the sensitivity of the rating to new observations. Let $W$ be an experience-based weight, such that $ΔR \propto 1/W$, and let $N$ denote the round number for the player. We tested multiple functional forms, and found the best results with $W = \sqrt{N}$. Figure 3 shows choices of $W = N^\alpha$, with $\alpha$ a parameter. Thus, we adopt $W = \sqrt{N}$.

\begin{equation} ΔR = \frac{K}{W} \cdot P \end{equation}

This scaling moderates rating fluctuations for experienced players, improving long-term stability.



Maximum factor

Extreme performances predict future outcomes less reliably than performances near expectation. We therefore limit the magnitude of $P$ to a maximum $M$ using a sigmoid function, maintaining symmetry and linearity around zero. We find the best results with:

\[ ΔR \propto \frac{P}{1+\frac{|P|}{M}} \]

M
Figure 4: Choice of $M$


The most accurate $M \approx 8.2$, as shown in Figure 4. Therefore, we set $M = 8.2$. The rating change formula is now:

\begin{equation} ΔR = \frac{K}{W} \cdot \frac{P}{1+\frac{|P|}{M}} \end{equation}

By bounding ∣P∣, we reduce the impact of uncharacteristic performances that are less predictive of long-term skill.



SRMFix

With the inclusion of these factors, the rating change formula is similar to SRM ratings. We will compare SRM ratings with this initial configuration, labeled SRMFix:

SRMFix: $K = 247; W = \sqrt{N}; M = 8.2$

This configuration serves as a baseline for subsequent refinements.



Competition factor

A player's observed rank may vary for reasons unrelated to their actual skill, such as round conditions or stochastic outcomes against opponents. We estimate this variability through \( P' \), defined earlier as:

\[ P' = \frac{1 + \sum w_j(1-w_j)}{1 + \sum w_j} \]

This expression captures the variance in expected rank and the sensitivity of performance to rank changes. The following limiting cases illustrate its interpretation:


C
Figure 5: Choice of $C$


We compute the competition factor as: \begin{equation} V = 1 + C \cdot P' \end{equation}

where \( C \) is a tunable parameter, illustrated in Figure 5.

The formula for the rating change becomes: \begin{equation} \Delta R = \frac{K}{W} \cdot \frac{P}{1 + \frac{|P|}{M}} \cdot \frac{1}{V} \end{equation}

By damping the noise present in performance measurements, this factor helps ensure that a player's underlying skill remains the primary driver of rating adjustments.



Stability

We have computed \( \Delta R \propto P \), improving predictive accuracy post-round. Each player is expected a performance of \( 0 \), resulting in an expected \( \Delta R = 0 \). Thus, players performing at their expected level have stable ratings.

However, several systematic effects influence rating dynamics:

This rate of inflation captures relative performance improvements during a round, but may not necessarily provide a full accounting of the players' performances yet. Following Elo's framework, the rating system's primary purpose is to measure player proficiency [Elo, §3.5]. Proficiency can also change between rounds, necessitating additional factors for a more accurate rating.

The remaining factors model proficiency change and function as deflation control processes [Elo, §3.7]. We introduce bias-correcting adjustments that align expected and observed performance (\(B, G\)), followed by stabilizing factors that regulate rating evolution as evidence accumulates (\(F, W_1\)).



Participation Bonus

While constrained by \( \Delta R \propto P \), the expected rating change of any participant remains zero. However, achieving the expected performance in a round is better than not participating. Players having practiced already have better proficiencies before the round. Thus, \( \Delta R = 0 \) in expectation underestimates actual proficiency gains.

We adjust the expectations to account for these improvements by simulating an increase in opponent ratings before the round. We choose a parameter \( B \) to represent the increase, then add the difference in expected performance to each player's performance:

\begin{equation} \Delta P = \frac{B}{K_0} \cdot P' \end{equation}

This aligns with Elo's principle [Elo, §3.53]:

A player whose proficiency improves while he is in the pool is entitled to additional rating points, but they may not properly be taken from players whose proficiency is not changing.

This factor alone provides little accuracy gains; its primary benefit emerges when combined with new-player baseline adjustment.



New Players

A key challenge in Elo systems is the appropriate entry point for newly joining players [Elo, §3.7]. Previously, we assigned a constant rating \( R_\text{init} = 1200 \) to new players. However, the proficiency of new players is not stationary. As existing players improve, SRMs become increasingly difficult, raising the barrier to entry for newcomers.

Before participating, potential players have opportunities to practice on recent rounds. Some may be experienced contestants coming from other platforms. Thus the proficiency of new players improves over time, requiring adjustment for inflation.

After experimentation, we opt for a linear increase in \( R_\text{init} \) over time:

\begin{equation} R_\text{init}(t) = 1200 + G \cdot (t - t_0) \end{equation} where \( t \) is the round date and \( t_0 \) the date of the first SRM, in years.

This adjustment allows initial ratings to reflect increasing SRM difficulty and participant proficiency over the 23-year SRM history.



Frequency Factor

A player's proficiency can change over time since the last measurement. Thus, players more recently rated tend to have more accurate ratings. Frequent participants have more stable proficiencies between rounds than infrequent participants. Therefore, we may further stabilize the ratings of recent and frequent participants for accuracy:

The rating change is stabilized by:

\begin{equation} \Delta R_{\text{adjusted}} = \Delta R \cdot \frac{1}{F} \end{equation} reducing volatility for consistently active players while allowing larger updates after periods of inactivity.

Revision of Experience Factor

Earlier we defined \( W = \sqrt{N} \) to stabilize ratings based on cumulative experience. However, \( N \) and \( N_r \) are highly correlated for active players, limiting accuracy gains from \( F \). We revise the formula to reduce this overlap:

\begin{equation} W = \sqrt{1 + W_1 (N-1)} \end{equation}

where \( W_1 \) reduces the weight of previous rounds relative to the current round.

This allows \( W \) and \( F \) to capture complementary aspects:



EloSRM

Optimizing all parameters jointly, we obtain approximately: \( K = 648, C = 3.9, M = 4.4, B = 42, G = 51, W_1 = .20, \gamma = 0.46, D = 112 \).

Exact values and implementation are given in the source code.

With these components, we define EloSRM, a rating system for SRMs intended to measure player proficiency over time.

Table 1 summarizes the components of EloSRM in the order they are applied. Together, they fully specify the rating update algorithm.

Component Definition Role
Performance \( P = \log_2{\hat{r}} - \log_2{r} \) Converts ranks to wins-equivalent score
Maximum factor \( P_M = \dfrac{P}{1 + |P|/M} \) Bounds influence of extreme performances
Performance sensitivity \( P' = \dfrac{1 + \sum w_j(1-w_j)}{1 + \sum w_j} \) Quantifies rating gradient and noise sensitivity
Participation bonus \( P_B = \dfrac{B}{K_0}\,P' \) Accounts for proficiency gains associated with participation and practice
Adjusted performance \( P_A = P_M + P_B \) Effective performance used for rating updates
Experience factor \( W = \sqrt{1 + W_1 (N-1)} \) Stabilizes ratings as evidence accumulates
Competition factor \( V = 1 + C\,P' \) Damps measurement noise
Frequency factor \( F = N_r^{\gamma} \) Accounts for participation frequency
Rating change \( \Delta R = \dfrac{K}{W\,V\,F}\,P_A \) Per-round rating update
New-player baseline \( R_\text{init}(t) = 1200 + G\,(t - t_0) \) Adjusts entry rating over time
Table 1: EloSRM components



Experimental results

Results include all rated SRM up to May 2024.

We first compare our SRMFix implementation to the original SRM ratings. Table 2 shows the average \( \Delta R \), performance, and prediction error, using our definitions.

ΔRperferr
PlayersratingsplayersSRMFixSRMSRMFixSRMSRMFixSRM
All8179698217417.6-20.90.2210.2970.75210.8273
First round821748217454.5-184.80.359-0.3620.80381.0691
2-7 rounds2091775292229.8-24.80.3000.2470.66980.7106
8-24 rounds2231762132112.210.90.2410.5090.74700.8177
25-74 rounds19998379864.74.50.1610.3930.76620.8232
75-199 rounds8865518910.5-0.70.0400.2830.86240.9009
200+ rounds14804202-0.7-1.8-0.0440.2430.85290.8929
Existing7357955292213.5-2.60.2060.3710.74630.8003
Division 1405158291629.3-1.80.1620.2410.69280.7200
Division 23306374339218.6-3.60.2590.5290.81180.8987
D1 H12025791533930.051.80.6210.7910.97251.0375
D1 H220257927808-11.3-55.5-0.296-0.3090.41320.4025
D2 H11653192773764.055.20.8901.3481.14481.3832
D2 H216531835962-26.8-62.5-0.371-0.2890.47890.4142
Table 2: Player statistics, SRMFix vs SRM

Table 3 shows round statistics.

For each metric, we compute the fraction of rounds where SRMFix better predicted the result than SRM ratings, splitting ties equally. Table 3 shows the percentages. Rows are grouped by division, then by round size.

SRMFix > SRM (%)
Rounds#taurhoL₁L₂
All218283.082.486.587.0
Division 1135673.472.679.581.6
Division 282698.898.597.995.9
2-16 players16751.552.454.853.0
17-99 players32364.662.468.467.8
100-199 players39480.179.188.585.4
200-399 players46988.788.392.894.0
400-599 players31791.591.893.196.5
600-799 players26895.995.996.398.9
800+ players24397.997.197.999.6
Table 3: Round statistics, SRMFix vs SRM

Next, we evaluate our EloSRM implementation in contrast to SRMFix. Tables 4 and 5 show the player and round statistics, respectively.

Table 6 summarizes the statistics and incremental contributions of each factor.

ΔRperferr
PlayersratingsplayersEloSRMSRMFixEloSRMSRMFixEloSRMSRMFix
All8179698217429.317.60.2180.2210.74490.7521
First round8217482174107.854.50.4580.3590.79800.8038
2-7 rounds2091775292245.429.80.2650.3000.66260.6698
8-24 rounds2231762132116.412.20.1940.2410.73760.7470
25-74 rounds19998379868.14.70.1740.1610.76070.7662
75-199 rounds8865518913.60.50.0830.0400.85550.8624
200+ rounds148042021.6-0.7-0.011-0.0440.84590.8529
Existing7357955292220.513.50.1910.2060.73900.7463
Division 14051582916215.79.30.1670.1620.68690.6928
Division 23306374339226.518.60.2220.2590.80280.8118
D1 H12025791533935.430.00.6280.6210.96360.9725
D1 H220257927808-4.0-11.3-0.295-0.2960.41010.4132
D2 H11653192773764.464.00.8400.8901.10501.1448
D2 H216531835962-11.4-26.8-0.397-0.3710.50060.4789
Table 4: Player statistics, EloSRM vs SRMFix

EloSRM > SRMFix (%)
Rounds#taurhoL₁L₂
All218272.668.276.173.7
Division 1135671.469.872.272.5
Division 282674.565.782.775.5
2-16 players16753.955.452.454.8
17-99 players32359.459.463.263.5
100-199 players39474.972.276.377.5
200-399 players46975.770.481.474.8
400-599 players31777.672.277.677.9
600-799 players26878.471.682.177.6
800+ players24380.269.190.981.9
Table 5: Round statistics, EloSRM vs SRMFix

errorΔRR
RatingL₁L₂TauRhoμσmaxinitmedianmax
EloSRM0.74491.12820.4190.57129.31051385237026054776
SRMFix0.75211.13550.4130.56517.6981096120015203810
SRM0.82731.22190.2940.398-20.91311185120011984107
constant0.98871.46720.0000.0000.000120012001200
initial0.78781.18790.3950.54422.11411202120014564663
K0.77601.17020.3940.54314.675642120013693962
W0.75381.13700.4120.56418.81031781120015153816
M0.75211.13550.4130.56517.6981096120015203810
C0.74891.13220.4150.56819.71031617120015503785
B0.74871.13280.4160.56820.91001518120015643853
G0.74731.13060.4170.56924.5991491204222574445
F0.74581.12890.4180.57027.31071451215624114606
W10.74491.12820.4190.57129.31051385237026054776
Table 6: Statistics, each factor



Interpretation

SRMFix improves prediction accuracy over traditional SRM ratings. Rank correlations (Kendall's τ, Spearman's ρ) show systematic gains despite not being directly optimized, indicating genuine improvements in ordering predictions.

EloSRM extends the prediction model by incorporating proficiency measurement. Rating progressions show large initial gains for newcomers tapering to small increases for veterans, consistent with skill development patterns Elo observed in chess [Elo, §3.8]. However, experienced players (200+ rounds) show continued positive changes beyond typical chess plateaus, which may reflect evolving SRM difficulty, self-selection of long-term participants, or other factors. While the models could be further refined, these patterns suggest EloSRM provides a stable measure of SRM proficiency over time.

Our metrics measure relative within-round performance and cannot identify absolute proficiency calibration from rankings alone. The inflation rate represents one plausible solution among those compatible with the data.



Adherence to Elo Principles

EloSRM incorporates the structural requirements of an Elo-based rating system:

As in classical Elo systems, rating integrity is evaluated empirically through monitoring of rating behavior over time, and may require periodic adjustment as the player pool evolves [Elo, §3.5, §3.6, §3.8].



Conclusion

We have presented an Elo-based rating system adapted to single-round, multi-player programming contests. Ranked outcomes are incorporated through a score-equivalent performance measure, with additional adjustments chosen to maintain predictive accuracy and rating-scale integrity. Although the specific forms and parameters are tailored to Topcoder Single Round Matches, the underlying approach is applicable to similar ranked contests.



Availability

The EloSRM implementation, dataset, and code reproducing the main results are available under the MIT license in the project repository [EloSRM_repo]. Additional experimental results and visualizations are posted on the project website [EloSRM_web].



Acknowledgements

We thank the competitive programming community for the historical contest data and the participants whose performances made this analysis possible.

We thank Dmitry Kamenetsky for contributions to initial document preparation and editing.




References


[TC] Topcoder.

[TCRating] Topcoder. Algorithm Competition Rating System

[Elo] Elo, Arpad E. (1978). The Rating of Chessplayers, Past and Present. ISBN 0-7134-1860-5.

[FIDE] FIDE Handbook. (2021). B.02. FIDE Rating Regulations. World Chess Federation.

[Kendall] Kendall (1970). Rank Correlation Methods.

[EloSRM_repo] EloSRM Repository. https://github.com/batty999/EloSRM

[EloSRM_web] EloSRM Project Website. https://tc.eloranked.com




Appendix A Source code

EloSRM.v7.h



Appendix B Rating progressions


SRM_200rounds
Figure 6: SRM ratings over time



SRMFix_200rounds
Figure 7: SRMFix ratings over time



EloSRM_200rounds
Figure 8: EloSRM ratings over time (stability)