BUG - Forecast bug in Runner_Metadata

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayBee
    Junior Member
    • Oct 2010
    • 114

    #1

    BUG - Forecast bug in Runner_Metadata

    The numerator and denominator for odds greater than 30 is wrong compared with the Timeform forecast odds.

    If the forecast is less than 30 then you have to divide the numerator by the denominator and add 1 to get the same forecast as Timeform displays.

    e.g.

    numerator = 2 & denominator = 3 (for forecast odds 1.67)

    1 + (2 / 3) = 1.67

    However, if you do the same when the decimals odds >= 30 then the metadata is incorrect.

    e.g.

    numerator is 30 & denominator = 1

    1 + (30 / 1) = 31 (when Timeform says the forecast is 30)

    It would make more sense to leave the forecast values for odds over 30 as they are to avoid adding 1.

    Therefore the numbers given for forecast odds less than 30 are wrong. i.e. For forecast odds of 1.67 the numerator should be 5 and the denominator should be 3 and not 2 and 3 as they are now.

    For the time being I am making forecast = numerator if numerator >= 30 else 1 + (numerator / denominator)
    Last edited by JayBee; 02-12-2013, 08:29 PM.
Working...
X