excel and chi-square tests

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • readerea
    SBR Rookie
    • 04-21-11
    • 1

    #1
    excel and chi-square tests
    I know there are some smart people on this forum, so I hope someone can pass judgement on the following.
    I have a large Excel file of flat races from the UK and Ireland. I run a number of VBA macros to simulate a variety of betting/laying strategies and then test the results. My most common test is use the chi-squared distribution to test that the ratio of wins to selections (strike rate) from a particular strategy is better than one that would be obtained by selecting a bet/lay at random.
    I tried to use the Excel ChiTest function but couldn’t make it work from a VBA macro. Has anyone ever managed to make this function work from VBA?
    To get round this I have approached the chi-squared test from the following angle. I calculate the square of the difference between the observed results (ratio of successful outcomes to selections) and the expected random results (ratio of successful outcome from randomly selected runner to number of randomly selected runners). I divide this by the expected outcome and then call the Excel ChiDist function with that value and 2 degrees of freedom, in order to determine the probability that the strike rate from the strategy is the sane as the strike rate from a random selection strategy.
    I choose 2 degrees of freedom as I have 4 pieces of data – success from strategy, number of selections from strategy, success from random choice, number of random choices – that produce two statistics – strike rate from strategy and strike rate from random selection. That gives me 4- 2 , =2 degrees of freedom.
    Would someone care to critique that approach?
    Thanks in advance.
  • yak merchant
    SBR High Roller
    • 11-04-10
    • 109

    #2
    Originally posted by readerea
    I know there are some smart people on this forum, so I hope someone can pass judgement on the following.
    I have a large Excel file of flat races from the UK and Ireland. I run a number of VBA macros to simulate a variety of betting/laying strategies and then test the results. My most common test is use the chi-squared distribution to test that the ratio of wins to selections (strike rate) from a particular strategy is better than one that would be obtained by selecting a bet/lay at random.
    I tried to use the Excel ChiTest function but couldn’t make it work from a VBA macro. Has anyone ever managed to make this function work from VBA?
    To get round this I have approached the chi-squared test from the following angle. I calculate the square of the difference between the observed results (ratio of successful outcomes to selections) and the expected random results (ratio of successful outcome from randomly selected runner to number of randomly selected runners). I divide this by the expected outcome and then call the Excel ChiDist function with that value and 2 degrees of freedom, in order to determine the probability that the strike rate from the strategy is the sane as the strike rate from a random selection strategy.
    I choose 2 degrees of freedom as I have 4 pieces of data – success from strategy, number of selections from strategy, success from random choice, number of random choices – that produce two statistics – strike rate from strategy and strike rate from random selection. That gives me 4- 2 , =2 degrees of freedom.
    Would someone care to critique that approach?
    Thanks in advance.
    I'm not qualified to analyze your Chi Square tests, but even if completely correct, without taking into account odds, I think you are testing against a incomplete and valueless model. Unless of course, this isn't a handicapping exercise, and is just stat class homework.

    There is a good discussion on Chi-Square Tests and problems with testing "odds lines" over at paceadvantage right now. There are some super smart guys over there.
    Comment
    • Wrecktangle
      SBR MVP
      • 03-01-09
      • 1524

      #3
      yak, can you show the link? I haven't found it yet. Thanks.
      Comment
      • uva3021
        SBR Wise Guy
        • 03-01-07
        • 537

        #4
        WorksheetFunction.ChiTest(.....)
        Comment
        • yak merchant
          SBR High Roller
          • 11-04-10
          • 109

          #5
          Originally posted by Wrecktangle
          yak, can you show the link? I haven't found it yet. Thanks.
          Sorry I conflated two threads in my mind.

          Here is the on one Chi Square, it kind of devolved but still worth a read.





          In this thread,



          It starts as a different discussion, but the ideas of calibrating an odds line comes up. in post 48 read the link provided by GT. It is by far the best explanation of the problems with creating your own odds line.


          Cheers
          Comment
          • ManBearPig
            SBR MVP
            • 12-04-08
            • 2473

            #6
            Thanks for sharing those links Yak, I've been recently trying to find how ChiSqrTst could be of best use to me so hopefully this will help answer some of those questions. Thanks
            Comment
            • bztips
              SBR Sharp
              • 06-03-10
              • 283

              #7
              You should check out this post by Ganchrow:

              Sports betting and handicapping forum: discuss picks, odds, and predictions for upcoming games and results on latest bets.
              Comment
              SBR Contests
              Collapse
              Top-Rated US Sportsbooks
              Collapse
              Working...