Expanding on my previous post a bit...
The first and second posts at the top of this thread have to do with math in sql expressions to drive SQL UDMs.
The fourth and fifth posts in this thread deal with math/multiplication in UPR Tools when creating groupnames for UserFactors and/or UPR.
Note that math in UPR Tools requires using Behaviors that are programmed into JCapper...
And that this is a very different thing than using math in a sql expressions as the basis for UDMs.
It's actually pretty easy to multiply factor ranks together in a SQL UDM.
Example -- here I've created a JPR rank = 1 UDM with an additional constraint that rankf19 (Early Consensus) multiplied by rankf07 (Form Consensus) be less than or equal to 4:
query start: 9/25/2017 4:33:19 PM query end: 9/25/2017 4:33:20 PM elapsed time: 1 seconds
Data Window Settings: Connected to: C:\JCapper\exe\JCapper2.mdb 999 Divisor Odds Cap: None SQL UDM Plays Report: Hide
SQL: SELECT * FROM STARTERHISTORY WHERE RANKJPR=1 AND (RANKF19 * RANKF07) <= 4 AND [DATE] >= #09-01-2017# AND [DATE] <= #09-24-2017# ORDER BY [DATE], TRACK, RACE
Data Summary Win Place Show ----------------------------------------------------- Mutuel Totals 3565.80 3636.30 3492.40 Bet -3898.00 -3898.00 -3898.00 ----------------------------------------------------- P/L -332.20 -261.70 -405.60
Wins 585 969 1178 Plays 1949 1949 1949 PCT .3002 .4972 .6044
ROI 0.9148 0.9329 0.8959 Avg Mut 6.10 3.75 2.96
Compare the above results set to a rankJPR = 1 UDM with the converse constraint that rankf19 (Early Consensus) multiplied by rankf07 (Form Consensus) NOT be less than or equal to 4:
query start: 9/25/2017 4:39:56 PM query end: 9/25/2017 4:39:57 PM elapsed time: 1 seconds
Data Window Settings: Connected to: C:\JCapper\exe\JCapper2.mdb 999 Divisor Odds Cap: None SQL UDM Plays Report: Hide
SQL: SELECT * FROM STARTERHISTORY WHERE RANKJPR=1 AND NOT (RANKF19 * RANKF07) <= 4 AND [DATE] >= #09-01-2017# AND [DATE] <= #09-24-2017# ORDER BY [DATE], TRACK, RACE
Data Summary Win Place Show ----------------------------------------------------- Mutuel Totals 2153.10 2438.70 2430.20 Bet -2924.00 -2924.00 -2924.00 ----------------------------------------------------- P/L -770.90 -485.30 -493.80
Wins 352 648 844 Plays 1462 1462 1462 PCT .2408 .4432 .5773
ROI 0.7364 0.8340 0.8311 Avg Mut 6.12 3.76 2.88
So while you can't do factor rank multiplication in UPR Tools... You absolutely can do factor multiplication in SQL UDMs.
-jp
.
|