For more information email here.

For accompanying Excel and code samples go here.

Sorry, the Chinese version - 計得精彩 - 賽馬的統計及數學方法 is no longer available.

Updated 17 June 2011

If readers try to use R to calculate MLR which is introduced in Chapter 6, the following error message may occur:

Error in `row.names<-.data.frame ... (some data afterwards)

duplicate 'row.names' are not allowed

This error is a problem of current version of R (which released in April 2011). The MLR will run only if the number of 'rows' ('runners' in our case) is the same in every race. Therefore one of the way is making some 'dummy horses' so that every race has 14 runners. Instead of making dummy runners, readers may either wait for R to solve this problem, or try some way to download an earlier version (I am using 2.9.1).

Thanks for readers 'Brian', 'Peter' and 'Saito' who discussed this problem with me and contributed the solution.