Calculate High/Low Winning Percentage

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I'm trying to build a simple odds calculator for a high/low game but my math is failing me.



Game Rules:
Aces are highest
1 Deck
Dealers card is shown, I have to guess if my card will be Higher or Lower.



This is what I was thinking for the odds calculation:



lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100


Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.



sameCardChance = (3 - sameCardsDiscarded) / (51) * 100

higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100


In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...










share|cite|improve this question

























    up vote
    0
    down vote

    favorite












    I'm trying to build a simple odds calculator for a high/low game but my math is failing me.



    Game Rules:
    Aces are highest
    1 Deck
    Dealers card is shown, I have to guess if my card will be Higher or Lower.



    This is what I was thinking for the odds calculation:



    lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100


    Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
    From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
    Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.



    sameCardChance = (3 - sameCardsDiscarded) / (51) * 100

    higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100


    In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...










    share|cite|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to build a simple odds calculator for a high/low game but my math is failing me.



      Game Rules:
      Aces are highest
      1 Deck
      Dealers card is shown, I have to guess if my card will be Higher or Lower.



      This is what I was thinking for the odds calculation:



      lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100


      Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
      From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
      Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.



      sameCardChance = (3 - sameCardsDiscarded) / (51) * 100

      higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100


      In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...










      share|cite|improve this question













      I'm trying to build a simple odds calculator for a high/low game but my math is failing me.



      Game Rules:
      Aces are highest
      1 Deck
      Dealers card is shown, I have to guess if my card will be Higher or Lower.



      This is what I was thinking for the odds calculation:



      lowerCardChance = (((dealersCard - 2) * 4) - lowerCardsDiscarded) / (51 - totalCardsDiscarded) * 100


      Deduct 2 from dealers card to start counting from the first card in the deck (2), multiply the remaining number of cards with 4 since there are 4 card colors.
      From the new number deduct the number of cards that are lower than the dealer's card and have been already discarded from the deck.
      Divide the remaining number of cards by the total number of cards in the deck without the total number of cards discarded.



      sameCardChance = (3 - sameCardsDiscarded) / (51) * 100

      higherCardChance = (((15 - dealersCard) * 4) - higherCardsDiscarded) / (51 - totalCardsDiscarded) * 100


      In some cases, the result is over 100%, generally when the card is lowest or highest. So obviously the math is wrong ... just not obvious to me ...







      game-theory






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Sep 8 at 9:13









      Trax

      1011




      1011

























          active

          oldest

          votes











          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "69"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2909447%2fcalculate-high-low-winning-percentage%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2909447%2fcalculate-high-low-winning-percentage%23new-answer', 'question_page');

          );

          Post as a guest













































































          這個網誌中的熱門文章

          How to combine Bézier curves to a surface?

          Carbon dioxide

          Why am i infinitely getting the same tweet with the Twitter Search API?