User:Johkey3/sandbox

The World Ice Hockey Elo Ratings is a ranking system for men's national ice hockey teams that is published by the website eloratings.net. It is based on the Elo rating system but includes modifications to take various ice hockey-specific variables into account, like the margin of victory, importance of a match, and home rink advantage. Other implementations of the Elo rating system are possible and there is no single nor any official Elo ranking for ice hockey teams. The IIHF World Ranking, not based on the Elo method, is the official national teams rating system used by the international governing body of ice hockey and is therefore more prevalent.

The ratings consider all official international matches for which results are available. Ratings tend to converge on a team's true strength relative to its competitors after about 30 matches. Ratings for teams with fewer than 30 matches are considered provisional.

Ratings
The following table shows teams in the World Ice Hockey Elo Ratings as they were on 24 May 2018, using data from the World Ice Hockey Elo Ratings web site.

Each national team's IIHF World Ranking is shown as per the latest release on 24 May 2018.

Note 1: IIHF Associate members. Note 2: IIHF Affiliate members. Note 3: Not IIHF members. Note 4: Former team. Note 5: Haven't played 30 matches against other Elo-ranked teams, so Elo Rating is provisional.

List of number one teams
The following is the list of nations who have achieved the number one position in the World Ice Hockey Elo Ratings since 1910.

Rankings by days as leader
Days spent as co-leaders are counted by half.

All-time highest ratings
The following is a list of national ice hockey teams ranked by their highest Elo score ever reached. The team in each division that has achieved the highest rank is shown in color.

All-time highest ranking
The following is a list of national ice hockey teams ranked by their highest Elo ranking ever reached.

The biggest point gap

The biggest point gap between 1st and 2nd national team was between 10 September and 11 September 1984, when Soviet Union (at 2993) led by 504 points over 2nd ranked Czechoslovakia (at 2489).

Average ratings
Time averaged Elo or Elo-like scores are routinely used to compare chess player strengths. The following is a list of the national teams with the highest average Elo score from 1 January 1970 to 1 January 2018.

Averages by decade
The table below shows the teams with the best average Elo score per decade (Jan 1 XXX0 - Dec 31 XXX9).

Highest rated matches
A list of the 25 matches between teams with the highest combined Elo ratings (the nations' points before the matches are given).

Biggest upsets
This is a list of matches with the biggest point exchange. Since the importance of the match, the goal differential and the perceived home team advantage are factored in the exchange, these are not necessarily the most surprising wins as expressed by the difference in Elo rating. The nations' points before the matches are given.

History
The Elo system, developed by Hungarian-American mathematician Dr. Árpád Élő, is used by FIDE, the international chess federation, to rate chess players, and by the European Go Federation, to rate Go players. In 1997 Bob Runyan adapted the Elo rating system to international football and posted the results on the Internet. He was also the first maintainer of the World Football Elo Ratings web site, now maintained by Kirill Bulygin. In 2018, the web site included to have the international ice hockey.

Overview
The Elo system was adapted for ice hockey by adding a weighting for the kind of match, an adjustment for the home team advantage, and an adjustment for goal difference in the match result.

The factors taken into consideration when calculating a team's new rating are:


 * The team's old rating
 * The considered weight of the tournament
 * The goal difference of the match
 * The result of the match
 * The expected result of the match

The different weights of competitions in descending order are:


 * Olympic Finals
 * World and Continental Championship finals and major Intercontinental tournaments
 * Olympic, World Championship and Continental qualifiers and major tournaments
 * All other tournaments
 * Friendly matches

These ratings take into account all international "A" matches for which results could be found. Ratings tend to converge on a team's true strength relative to its competitors after about 30 matches. Ratings for teams with fewer than 30 matches should be considered provisional.

Basic calculation principles
The basic principle behind the Elo ratings is only in its simplest form similar to that of a league; who effectively run their table as a normal league table but with weightings to take into account the other factors, the Elo system has its one formula which takes into account the factors mentioned above.

The ratings are based on the following formulae:


 * $$R_n = R_o + KG(W-W_e)$$

or


 * $$P=KG(W-W_e)$$

Where;

The number of Points Change is rounded to the nearest integer before updating the team rating.

Status of match
The status of the match is incorporated by the use of a weight constant. The constant reflects the importance of a match, which, in turn, is determined entirely by which tournament the match is in; the weight constant for each major tournament is given in the table below:

Number of goals
The number of goals is taken into account by use of a goal difference index.

If the game is a draw or is won by one goal


 * $$ G = 1$$

If the game is won by two goals


 * $$G = \frac{13}{10}$$

If the game is won by three or more goals


 * Where N is the goal difference


 * $$G = \frac{6}{5}+\frac{N}{10}$$

Table of examples:

Result of match
W is the result of the game (1 for a win, 0.5 for a draw, and 0 for a loss). This also holds when a game is won or lost in overtime or shootout.

Expected result of match
We is the expected result (win expectancy with a draw counting as 0.5) from the following formula:


 * $$W_e = \frac{1}{10^{-dr/400} + 1}$$

where dr equals the difference in ratings (add 100 points for the home team). So dr of 0 gives 0.5, of 120 gives 0.666 to the higher-ranked team and 0.334 to the lower, and of 800 gives 0.99 to the higher-ranked team and 0.01 to the lower.

Examples
Some actual examples should help to make the methods of calculation clear. In this instance it is assumed that three teams of different strengths are involved in a small friendly tournament on neutral territory.

Before the tournament the three teams have the following point totals. Thus, team A is by some distance the highest ranked of the three: The following table shows the points allocations based on three possible outcomes of the match between the strongest team A, and the somewhat weaker team B:

Example 1
Team A versus Team B (Team A stronger than Team B)

Example 2
Team B versus Team C (both teams approximately the same strength)

When the difference in strength between the two teams is less, so also will be the difference in points allocation. The following table illustrates how the points would be divided following the same results as above, but with two roughly equally ranked teams, B and C, being involved:

Note that Team B drops more ranking points by losing to Team C, which is approximately the same strength, than by losing to Team A, which is considerably better than Team B.