+ Reply to Thread
Results 1 to 4 of 4

Calculating ELO Rating (UDF Query)

  1. #1
    Registered User
    Join Date
    10-20-2004
    Posts
    5

    Calculating ELO Rating (UDF Query)

    I'm putting together a UDF that returns an ELO rating for chess players, however I can't seem to get the probablity of winning section working. How would I write the formula (http://upload.wikimedia.org/math/b/2...06d0cb4ef0.png) as a UDF?

    If Ra = 1613 and Rb = 1609, the answer returned from the UDF should = 0.506 (example taken from http://en.wikipedia.org/wiki/ELO_rating_system). It might be something I am doing wrong with bracket positioning but I'm sure it's not.

    Ea = 1 / (1 + (10 * ((Rb - Ra) / 400)))

    This doen't return 0.506 like the example taken from http://en.wikipedia.org/wiki/ELO_rating_system. Can anyone see where I'm going wrong? Or is there a ELO UDF already out there? Thanks in advance.

  2. #2
    Niek Otten
    Guest

    Re: Calculating ELO Rating (UDF Query)

    Function ELO(Ra As Double, Rb As Double) As Double
    ELO = 1 / (1 + 10 ^ ((Rb - Ra) / 400))
    End Function


    --
    Kind regards,

    Niek Otten

    "d.i.barr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > I'm putting together a UDF that returns an ELO rating for chess players,
    > however I can't seem to get the probablity of winning section working.
    > How would I write the formula
    > (http://upload.wikimedia.org/math/b/2...06d0cb4ef0.png)
    > as a UDF?
    >
    > If Ra = 1613 and Rb = 1609, the answer returned from the UDF should =
    > 0.506 (example taken from
    > http://en.wikipedia.org/wiki/ELO_rating_system). It might be something
    > I am doing wrong with bracket positioning but I'm sure it's not.
    >
    > Ea = 1 / (1 + (10 * ((Rb - Ra) / 400)))
    >
    > This doen't return 0.506 like the example taken from
    > http://en.wikipedia.org/wiki/ELO_rating_system. Can anyone see where
    > I'm going wrong? Or is there a ELO UDF already out there? Thanks in
    > advance.
    >
    >
    > --
    > d.i.barr
    > ------------------------------------------------------------------------
    > d.i.barr's Profile:
    > http://www.excelforum.com/member.php...o&userid=15521
    > View this thread: http://www.excelforum.com/showthread...hreadid=518685
    >




  3. #3
    Registered User
    Join Date
    10-20-2004
    Posts
    5
    Thanks for your help Niek.

  4. #4
    Registered User
    Join Date
    12-16-2016
    Location
    waukesha
    MS-Off Ver
    2003
    Posts
    1

    Re: Calculating ELO Rating (UDF Query)

    ..........

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1