0

I'm facing the following predicament:

I can calculate the total stake by using the binomial coefficients to get the number of lines for any specific bet, for example if I had horses and a DBL: A B C D E

5! / 2!(5-2)! that would get me 10 lines for my cross doubles.

The issue arises when I have 2 horses from the same race, in which case it'd become something similar to:

A A B C D

This type of bet would have 9 lines rather than 10.

In which case calculating it using the same formula will give me the wrong result.

I'm not particularly good at combinatorics, this is for a personal programming project that I'm working on - I'm attempting to make a calculator for the stake based on the number of selections.

Any pointers or advice on how to proceed would be helpful, as at this point I'm mostly guessing and not getting anywhere.

  • You are using a lot of jargon associated with track betting. I doubt many users here will know what "lines" and "DBL" and "cross doubles" are. – lulu Feb 19 '22 at 14:01
  • Horse racing has doubles, trebles, accumulators. It's just how the selections are divided. A double finds all combinations with 2 selections, a treble finds all combinations with 3 selections and so on up until 25 accumulators. – walking frog Feb 19 '22 at 14:07
  • Glad to hear that. Though, again, you should not assume that users here are familiar with that vocabulary. – lulu Feb 19 '22 at 14:10

0 Answers0