Saturday, October 01, 2016

Juvenile Finish Position Ratings

In horse-racing, 2yos are by definition the least exposed runners at the racetrack. In the context of handicapping 2yo races, we can create a simple model to generate race-specific ratings based solely on finishing positions and number of runners per race in each horse's past performances record. These ratings will guide our elimination process. Remember that, in handicapping, elimination of probable non-contenders is always preferred to the selection of possible contenders.
  • First, calculate "horses beaten" (n-f) and "horses beaten by" (f-1) from finishing positions (f) and number of runners (n) for each race in a horse's past performances. 
  • Then, sum across all races for wins (w=Σ(n-f)) and losses (l=Σ(f-1)) respectively.
  • Next, calculate a horse's posterior probability m=(w+α)/((w+α)+(l+β)). Prior wins (α) and losses (β) are derived from two full seasons of 2yo races and are equivalent to a horse finishing fourth of seven runners in a virtual race. Note that a first-time starter would automatically have a posterior probability of 0.50=(0+3)/((0+3)+(0+3))
  • Finally, convert probabilities to performance ratings (min:112=8-00, max:126=9-00) using the following formula: r=((a+(b-a))*((m-x)/(y-x))), where a=out.min, b=out.max, x=in.min, and y=in.max of all runners in the current race.
The final rank ordering of horses is important, not the absolute performance ratings.
In summary
, this finishing position rating system (fpr) does not take into account the strength of opposition, beaten lengths, weight carried, or finishing times; however, when it is based on a whole season of results, the fpr ranks correlate approximately 0.87 with the equivalent ranks from an Elo rating system.

As luck would have it, Sunday's Prix Marcel Boussac (Fillies' Group 1) - France's top 2yo fillies race - had a 0.92 correlation between fpr ranks and finishing positions, with the 10/1 winner (Wuheida) top-rated! Not scientific, nevertheless I get to keep the winnings.

Thursday, September 01, 2016

Speed-Stamina Fingerprints

In 1981, Peter Riegel formulated an equation for the relationship between distance and time of athletics world-records. In 1982, Steve Roman adapted Riegel's equation to try and resolve the Secretariat Preakness controversy.
In a similar vein, we can generate unique speed-stamina, power-law fingerprints for racecourses (and horses) based on the best times for various distances. The simplest interpretation of these racecourse fingerprints is to confirm our expectations of the demands imposed by similar distances for different course configurations (Epsom is faster than either Ascot or Newmarket (lower y-intercept); Ascot and Newmarket have similar stamina profiles (same slopes)). Another possible insight might be how these course fingerprints reflect the potential impact on horses with different pace profiles (early speed at Epsom). A further analysis might be on how to better baseline and equate speed figures at different racecourses (use standard course with own speed-stamina equation). Finally, more controversially, using speed-stamina fingerprints for classic-generation (3yos) horses to match with course fingerprints in the lead-up to Group 1 contests (Epsom Derby) or for comparing performances from different classic generations (Frankel vs Sea The Stars).

Note the graph only shows best times and power-law equations for five, six, and seven-furlong races at Ascot, Epsom, and Newmarket and are for illustrative purposes only.

Wednesday, August 03, 2016

Wisdom Of Crowd Market Index (WCMI)

WCMI Wisdom Of Crowd Market Index (WCMI)

In sports markets, the probabilities implied by the prices on offer are a proxy for the wisdom of the crowd for that particular event. By adapting Shannon's Entropy formula, we can generate our own "Wisdom Of Crowd Market Index" (WCMI) to represent this information on a scale from 0 - 1.

First, calculate implied probabilities of prices: x = 1.00 / d (where d = decimal odds). Next, calculate log probabilities: y = log(x, n) (where n = number of runners). Then, multiply probabilities by log probabilities: z = x * y. Finally, sum products and subtract from one for final index: wcmi = 1 - (-sum(z)).


Note that the index is at a minimum (0.00) when the market is completely uninformed about the outcome (all prices are the same) and at a maximum (1.00) when the market has closed (no price for winner and maximum price for all others). In the realistic exchange market above (snapshot of prices taken one minute before going in-play), the crowd is relatively uninformed (0.03) about the likely outcome and presents an excellent opportunity for the informed sports trader. Personally, I do not trade in any market with an index above 0.13 (approx).

It is very gratifying to note that FlatStats are now (29-Dec-2017) using our WCMI as a guide to those markets in which the crowd is less well-informed!

Sunday, July 03, 2016

Fano Plane Transylvania Lottery And Trifectas

Jordan Ellenberg, in his excellent book "How Not To Be Wrong: The Hidden Maths Of Everyday Life", relates how he derived a mathematical model probably used by an MIT team ("Random Strategies") to successfully master the Massachusetts State Lottery ("Cash Winfall") from 2005-2012 winning an estimated $3.5 million. He illustrates the approach using a Fano Plane to master a variant of the Transylvania Lottery. Using the following seven triads (123, 145, 167, 247, 256, 346, 357), he outlines how it is possible to always guarantee a winning outcome from each draw.
From a handicapping perspective, it would be interesting to check for a subset of seven runner races for which these particular (or equivalent) bet combinations would prove to be a successful trifecta strategy. At the very least, you would have bragging rights for always getting at least two selections correct on one or more tickets!
More generally, the field of Combinatorial Design may hold additional insights for other exotic bets.

Sunday, June 05, 2016

Proebstings Paradox - Price Is Right If Marked-To-Market

Proebsting's Paradox refers to a situation in which a sports trader makes successively increasing bets on the same selection in a single market, ostensibly using the Kelly Criterion to calculate the stakes while taking advantage of better and better odds, only to ultimately face ruin.                 
The difficulty arises because the sequence of bets appears to cost more in total bankroll percentage than the Kelly Criterion would recommend as a standalone bet at the highest odds in the sequence.
In the Todd Proebsting example, the sports trader initially bets 25% of his bankroll on a 2/1 selection with a 50% win probability. Some time later, he is offered 5/1 on the same selection and calculates his Kelly stake at 22.5% leading to a total wager of (250 + 225) = 475. The problem with this result is that the Kelly stake for a single bet at 5/1 (assuming 50% win probability) is only 40% of bankroll (400) - leading to the theoretical possibility of ruin from betting at successively more attractive odds on the same selection in a single market.
To resolve this paradox, both Ed Thorp and Aaron Brown recommend that the sports trader should "mark to market" his bankroll after the initial 2/1 bet (reducing it by 12.5% from 1000 to 875) and use this updated position to calculate the 5/1 stake. In fact, to stay within the upper limit (400) defined by the standalone 5/1 bet, the trader also needs to reduce his estimated win probability to 42.5%!
Using the above example, this would lead a sports trader to bet at most 146.25 = (16.71% * 875) at 5/1 giving a total wager of (250 + 146.25) = 396.25, which is roughly equivalent to the Kelly standalone stake (400) at 5/1 but with a lower upside!

Sunday, April 03, 2016

Thinking Fast And Slow

It is opening day of your favorite meeting on your local circuit and, having downloaded the past performances, the program automatically applies the decision rules you so painstakingly put in place after months of careful analysis. It automatically highlights the recommended selections, prices, and stakes. You are in total control.
As luck would have it, just before placing the wager, you decide to look at the connections of your selections for confirmation of the wisdom of your program choices. To your horror, you notice that a relatively unexposed colt trained by a promising, young handler with a 7/1 offering is excluded. You make an "executive decision" to overrule the program selections and immediately place a double-unit wager on the unexposed colt only to watch the program top selection romp home at 7/2.
Recognize the scenario or some variant thereof? Daniel Kahneman, in his excellent book Thinking Fast And Slow, would tell you that System 2 (careful analysis) has just been trumped by System 1 (good story)!
The key lesson here is not to berate yourself for being human but to set in place measures to protect yourself from this kind of ambush. Focus your expert handicapping skills into determining the key factors not fully reflected in the starting prices and then use some level of automation to rate and rank your selections. Avoid looking for a good, coherent story and no fine-tuning!

Tuesday, March 15, 2016

Dosage Late-Speed And Novice Hurdler Championship Race

As mentioned before, National Hunt racing is not my discipline. However, Cheltenham's four-day graded-stakes, championship meeting is a worthy challenge of one's handicapping skills. Effectively, this is the Breeders Cup of jumps racing. Lacking in-depth knowledge of this code, I seek to focus on novice races where historical, pedigree knowledge is as informative as current form. Turning to the Supreme Novices Hurdle (G1) and, given my working assumption that dosage is not factored into the starting prices, the following details are observed:
  • Dosage Comparison With Former Winners;
  • Past Performance Indicators Of Late Speed; and
  • Live Longshot Prices.
I approach the task as follows using a process of elimination:

Note that I am not claiming any great insights and will be pleasantly surprised with a positive result.

Monday, February 29, 2016

Handicapping: Benford's Law, Shannon Entropy, And Twenty Questions

Imagine a horse-race (i.e. Benford Law Stakes) with the following distribution of win probabilities.

This toy example is not as unrealistic as you might expect at first glance. Look at the very good approximation by Benford's Law of Starting Price position for roughly 20,000 GB flat races 2004-2013 inclusive.

Then, in simplest terms, the inherent uncertainty of the Benford Law Stakes race outcome is best represented by Shannon's Entropy: H(x) = -SUM((x)*log(x)) = 2.87, which number also suggests (under optimal conditions) the minimum number of yes/no questions (i.e. 3) the handicapper should ask himself to identify a potential winner. Taking our lead from Shannon-Fano Coding, we should iteratively divide the entrants into two approximately equal groups of win probabilities (i.e. 50%) and use Pairwise Comparison to eliminate the non-contenders using at most five questions.
Once again, this restriction is not as unrealistic as it might first appear. Slovic And Corrigan (1973), in a study of expert handicappers, found that with only five items of information the handicappers' confidence was well calibrated with their accuracy but that they became overconfident as additional information was received. This finding was confirmed in a follow-up study by Tsai et al (2008).

Wednesday, November 11, 2015

Time-Value Vs Expected-Value Or Likely Poverty Vs Average Riches


In his excellent book, A Mathematician Plays The Stock Market, John Allen Paulos outlines a potentially disastrous, trading strategy that clearly illustrates the difference between expected value and time value summary statistics or, in his case, mean (expected value = +10% -> average riches) and median (time value = –16.43% -> likely poverty) performance.

This extreme example points to the obvious advantage of knowing the most likely outcome of an investment and raises the interesting question of how to summarize a trading portfolio in time value terms?
By way of illustration, assume a trading portfolio (illustration only) that includes just two sports, baseball and horse-racing, with the following profiles:



It is now immediately apparent that, even though both profiles have positive expected values, they are losing propositions as reflected by their evens-equivalent, negative time values.
In summary, expected value summarizes the average performance across all traders and is of critical importance to the bookmaker whereas time value best reflects the most likely, individual outcome and is of paramount value to the individual sports trader!

Monday, September 21, 2015

Ensemble Averages Vs Time Averages

Evaluating Gambles Using Dynamics outlines his idea of time averaging in contrast to ensemble averaging in a discussion of the St Petersburg Paradox. Note the parallels with volatility drag, median outcomes, and expected values!

Sunday, August 16, 2015

Doubling Rate Entropy And Kullback-Leibler Divergence

Cover and Thomas (2006) show that, in a horse race, a handicapper has an expected wealth growth-rate equal to that of an investor who wins every race minus a measure of uncertainty of the race and minus the difference in the win probability distribution used by the handicapper and the distribution of true win probabilities. Intuitively, this makes sense. To reduce the race uncertainty, we should focus on open betting markets with as few runners as possible. To reduce the win estimates difference, we should meld our betting line estimates with that of the crowd (Benter, 2004). In terms of a simplistic equation:

   Long-Term Profit = Clairvoyance – Race Uncertainty – Market Divergence.

My experience is that most handicappers focus too much on trying to become clairvoyant and not enough on selecting open races and factoring in the “wisdom of crowds”.

Friday, June 05, 2015

Euro-Style Handicapping

As a long-distance, handicapper of Euro races, I look for events in England, France, and Ireland (Grade 1 Horse-Racing Countries) with a high degree of chaos (I have entropy scores for all race-types). From this initial list, I have selected seven race-types that I focus on exclusively. Because of the high level of uncertainty in these races, the market (wisdom of crowds) is a less successful predictor. With a Bayesian-based, Elo-Class algorithm, I generate my own performance figures. Using the performance figures for all entrants in a chosen race, I run a Monte-Carlo simulation of 1000 races that automatically generates a realistic odds-line as final output. Critically, as long as there is at least one overlay (almost always) in the chosen race, I finally run a Haigh-like, Kelly-variant algorithm that selects the final contenders. (As I have stated elsewhere, this list may include both overlays and underlays).

Monday, March 09, 2015

Cheltenham Supreme Novices Hurdle (G1)

Though not my discipline (National Hunt Racing), Cheltenham's four-day graded stakes meeting is an exception. Effectively, this is the Breeders Cup of jumps racing. Lacking the in-depth expertise required to handicap this form of thoroughbred racing, I seek to focus on novice races where historical knowledge is as informative as current form. To that end, the Supreme Novices Hurdle has many similarities to the Kentucky Derby - young horses, many attempting a graded stakes, championship race for the first-time with little form in the book. Using dosage analysis of the "in-the-money" finishers over the last ten years and ranking the current field against this metric to identify "live" outsiders, shortlisted two interesting contenders - Shaneshill (14/1) and Tell Us More (25/1). Though not necessarily the most likely winners, these two selections are the best matched to previous contenders on dosage and, therefore, worthy of punting in both the win and show markets!

Friday, October 24, 2014

Analytical (Kelly) And Numerical (Solver) Solutions

Many sports trading problems yield to both an analytical and a numerical solution.

imageimage

In the above example, the numerical solution (using Solver in Excel) to minimizing the difference between expected value and volatility drag over a sequence of similar bets equals the analytical solution (using Kelly) for the same sequence!

Thursday, October 16, 2014

Equivalent Single Bet

With multiple bets (illustration only) in a single win market, what is the equivalent single bet that best summarizes the overall position?

image

As the worst win-loss outcomes are to either win only the minimum profit or lose the total stake, then the most informative summary position is a combination of both scenarios.

Saturday, October 04, 2014

Volatility Drag

Aaron Brown, author of The Poker Face Of Wall Street, makes a strong case for the negative impact of volatility drag on expected value with respect to the Kelly Criterion in the following posts:
  * Short-Term Variance
  * Risk Of Ruin And Kelly Betting
  * Bankroll Performance Simulator
  * Betting Strategy
.

Volatility_Drag_IVolatility_Drag_II

The above before and after illustrations show a worked example of setting stakes to match a zero difference between expected value and volatility drag.

Monday, October 21, 2013

Time Distance And Fatigue

Notwithstanding the strengths and weaknesses of the dosage approach to handicapping, it is worth reviewing the excellent article by Steven Roman on speed-stamina profiling. Looking forward to the Breeders Cup at Santa Anita, one could consider generating dirt and turf course profiles (based on track records at different distances) to provide insights into the challenges faced by European shippers. Going further, one could profile those shippers (based on best performances at equivalent distances in Europe) to identify live-longshots for exotic plays. Obviously, I am glossing over the difficulties of generating meaningful numbers using winner final times, beaten lengths, varying track configurations, and qualitative track conditions. Nevertheless, our goal should be to look for live contenders to fill tickets and not on demanding mathematical accuracy!

Friday, August 09, 2013

Beta-Binomial (Wins And Losses)

In trading sports events, it is necessary to continually update one's opinions conditioned on new information. In many sports, the only information available is in the form of wins and losses. In that context, two technical articles worth reviewing include the following excellent contributions - Regression To The Mean And Beta Distributions, and Market Efficiency and Bayesian Probability Estimation via the Beta Distribution.

Tuesday, April 16, 2013

Scripsi Exposui Feci

As the Latin triple asserts: Scripsi, Exposui, Feci ("I wrote, I explained, I did"), the trading posts below are not ivory tower musings but are the product of real-world experiences, though obviously not in that order.

Tuesday, March 19, 2013

Antifragile Trading (Small Losses, Big Gains)

Nassim Taleb’s latest book, Antifragile: Things That Gain from Disorder, defines a new concept, Antifragility. Operationalizing this concept in the world of sports trading would mean creating an approach that is explicitly designed to benefit from market volatility. In other words, an antifragile trading system would be characterized by a procession of small losses periodically punctuated by large gains - for example, live longshots. However, nobel laureate Daniel Kahnemann, Thinking, Fast And Slow, would point out that the pain endured by a succession of small losses will not be emotionally compensated by an iteration-ending large gain. Obviously, most humans are too fragile to handle antifragility!