Problem in calculation of daily expense












0












$begingroup$


I have a simple question.



Total amount = 50 USD



-----------------------------
- Expense | Remaining |
-----------------------------
- 20 | 30 |
-----------------------------
- 15 | 15 |
-----------------------------
- 9 | 6 |
-----------------------------
- 6 | 0 |
=============================
- 50 | 51 |
=============================


As you can see at the end value is not the same. If we calculate Expense and Remaining both value has changed. There is one more in Remaining balance.



Can you please let me know what is the problem, which I'm doing wrong.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
    $endgroup$
    – postmortes
    Dec 26 '18 at 16:36












  • $begingroup$
    What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
    $endgroup$
    – saulspatz
    Dec 26 '18 at 16:38










  • $begingroup$
    Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
    $endgroup$
    – David C. Ullrich
    Dec 26 '18 at 16:38
















0












$begingroup$


I have a simple question.



Total amount = 50 USD



-----------------------------
- Expense | Remaining |
-----------------------------
- 20 | 30 |
-----------------------------
- 15 | 15 |
-----------------------------
- 9 | 6 |
-----------------------------
- 6 | 0 |
=============================
- 50 | 51 |
=============================


As you can see at the end value is not the same. If we calculate Expense and Remaining both value has changed. There is one more in Remaining balance.



Can you please let me know what is the problem, which I'm doing wrong.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
    $endgroup$
    – postmortes
    Dec 26 '18 at 16:36












  • $begingroup$
    What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
    $endgroup$
    – saulspatz
    Dec 26 '18 at 16:38










  • $begingroup$
    Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
    $endgroup$
    – David C. Ullrich
    Dec 26 '18 at 16:38














0












0








0





$begingroup$


I have a simple question.



Total amount = 50 USD



-----------------------------
- Expense | Remaining |
-----------------------------
- 20 | 30 |
-----------------------------
- 15 | 15 |
-----------------------------
- 9 | 6 |
-----------------------------
- 6 | 0 |
=============================
- 50 | 51 |
=============================


As you can see at the end value is not the same. If we calculate Expense and Remaining both value has changed. There is one more in Remaining balance.



Can you please let me know what is the problem, which I'm doing wrong.










share|cite|improve this question











$endgroup$




I have a simple question.



Total amount = 50 USD



-----------------------------
- Expense | Remaining |
-----------------------------
- 20 | 30 |
-----------------------------
- 15 | 15 |
-----------------------------
- 9 | 6 |
-----------------------------
- 6 | 0 |
=============================
- 50 | 51 |
=============================


As you can see at the end value is not the same. If we calculate Expense and Remaining both value has changed. There is one more in Remaining balance.



Can you please let me know what is the problem, which I'm doing wrong.







algebra-precalculus arithmetic






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 26 '18 at 16:37









David C. Ullrich

61.7k44095




61.7k44095










asked Dec 26 '18 at 16:29









Azeem HaiderAzeem Haider

1032




1032








  • 1




    $begingroup$
    Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
    $endgroup$
    – postmortes
    Dec 26 '18 at 16:36












  • $begingroup$
    What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
    $endgroup$
    – saulspatz
    Dec 26 '18 at 16:38










  • $begingroup$
    Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
    $endgroup$
    – David C. Ullrich
    Dec 26 '18 at 16:38














  • 1




    $begingroup$
    Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
    $endgroup$
    – postmortes
    Dec 26 '18 at 16:36












  • $begingroup$
    What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
    $endgroup$
    – saulspatz
    Dec 26 '18 at 16:38










  • $begingroup$
    Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
    $endgroup$
    – David C. Ullrich
    Dec 26 '18 at 16:38








1




1




$begingroup$
Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
$endgroup$
– postmortes
Dec 26 '18 at 16:36






$begingroup$
Why are you adding up the Remaining column? If you spend $5$ lots of $10$ USD instead you'll have $40, 30, 20, 10 $ and $0$ in the Remaining column and adding them certainly won't give you $50$ (or even be only $1$ out)
$endgroup$
– postmortes
Dec 26 '18 at 16:36














$begingroup$
What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
$endgroup$
– saulspatz
Dec 26 '18 at 16:38




$begingroup$
What makes you think they should be the same? The way to check this is that the beginning balance, minus the total expenditures, equals the last remaining balance. What would the sum of the remaining balances ever relate to in the real world?
$endgroup$
– saulspatz
Dec 26 '18 at 16:38












$begingroup$
Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
$endgroup$
– David C. Ullrich
Dec 26 '18 at 16:38




$begingroup$
Why do you think something's wrong? There's simply no reason that the sum of the "remaining" amounts should be the sum of the expenditures.
$endgroup$
– David C. Ullrich
Dec 26 '18 at 16:38










2 Answers
2






active

oldest

votes


















1












$begingroup$

The short answer is that althought the difference of the 2 sums is only 1, it is because the sum in the second column does not represent the same fact as the sum in the first column. In fact, as explained below, the sum in the second column has no meaning relevant to the issue at hand.



To find the "Total Expenses", we sum each expense as you did in column 1:



$E=-e1-e2-e3-e4 = -50$



Now, for the column you named "Remaining" the sum has no mathematical meaning or significance. Why? Let me explain. Let's go back to what is calculated in the sum "Remaining" column, the sum can be written as follows:



$S=50-e1 + [50-e1]-e2 + [50-e1-e2] -e3 + [(50-e1)-e2-e3]-e4$



$S=4*50 - 4*e1 - 3*e2 - 2*e3 - 1*e4 = $



$4*(50)+4*(-20)+3*(-15)+2*(-9)+1*(-6)=51$



Notice that the above formula has no meaning or significance. It clearly does not represent the total expense, so it is no wonder that it differs from the correct total expense.



The fact that the absolute difference is only by value of $1$ from the sum of the left column is by chance! Had you started with an amount of 200 and applied the same calculations, the first column sum would still give $-50$ but the right (bogus) sum would give $651$. I hope this is now clear.






share|cite|improve this answer











$endgroup$





















    0












    $begingroup$

    Generally speaking, your expenses are $a_1, a_2, ldots, a_n$ and must add up to $sum_{k=1}^n a_k = T,$ your total amount. If you look at the sum in the other column, it is actually summing the partial sums of the first one, so it is $sum_{k=1}^{n-1} s_k$ where $s_k = sum_{i=1}^k a_i$. In other words, you get
    $$
    sum_{k=1}^{n-1} sum_{i=1}^k a_i
    = sum_{i=1}^{n-1} (n-i)a_i
    = n sum_{i=1}^{n-1} a_i - sum_{i=1}^{n-1}ia_i
    = nT - sum_{i=1}^{n-1}ia_i,
    $$

    and there is absolutely no reason why that expression should equal $T$...






    share|cite|improve this answer









    $endgroup$














      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',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      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%2f3053082%2fproblem-in-calculation-of-daily-expense%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1












      $begingroup$

      The short answer is that althought the difference of the 2 sums is only 1, it is because the sum in the second column does not represent the same fact as the sum in the first column. In fact, as explained below, the sum in the second column has no meaning relevant to the issue at hand.



      To find the "Total Expenses", we sum each expense as you did in column 1:



      $E=-e1-e2-e3-e4 = -50$



      Now, for the column you named "Remaining" the sum has no mathematical meaning or significance. Why? Let me explain. Let's go back to what is calculated in the sum "Remaining" column, the sum can be written as follows:



      $S=50-e1 + [50-e1]-e2 + [50-e1-e2] -e3 + [(50-e1)-e2-e3]-e4$



      $S=4*50 - 4*e1 - 3*e2 - 2*e3 - 1*e4 = $



      $4*(50)+4*(-20)+3*(-15)+2*(-9)+1*(-6)=51$



      Notice that the above formula has no meaning or significance. It clearly does not represent the total expense, so it is no wonder that it differs from the correct total expense.



      The fact that the absolute difference is only by value of $1$ from the sum of the left column is by chance! Had you started with an amount of 200 and applied the same calculations, the first column sum would still give $-50$ but the right (bogus) sum would give $651$. I hope this is now clear.






      share|cite|improve this answer











      $endgroup$


















        1












        $begingroup$

        The short answer is that althought the difference of the 2 sums is only 1, it is because the sum in the second column does not represent the same fact as the sum in the first column. In fact, as explained below, the sum in the second column has no meaning relevant to the issue at hand.



        To find the "Total Expenses", we sum each expense as you did in column 1:



        $E=-e1-e2-e3-e4 = -50$



        Now, for the column you named "Remaining" the sum has no mathematical meaning or significance. Why? Let me explain. Let's go back to what is calculated in the sum "Remaining" column, the sum can be written as follows:



        $S=50-e1 + [50-e1]-e2 + [50-e1-e2] -e3 + [(50-e1)-e2-e3]-e4$



        $S=4*50 - 4*e1 - 3*e2 - 2*e3 - 1*e4 = $



        $4*(50)+4*(-20)+3*(-15)+2*(-9)+1*(-6)=51$



        Notice that the above formula has no meaning or significance. It clearly does not represent the total expense, so it is no wonder that it differs from the correct total expense.



        The fact that the absolute difference is only by value of $1$ from the sum of the left column is by chance! Had you started with an amount of 200 and applied the same calculations, the first column sum would still give $-50$ but the right (bogus) sum would give $651$. I hope this is now clear.






        share|cite|improve this answer











        $endgroup$
















          1












          1








          1





          $begingroup$

          The short answer is that althought the difference of the 2 sums is only 1, it is because the sum in the second column does not represent the same fact as the sum in the first column. In fact, as explained below, the sum in the second column has no meaning relevant to the issue at hand.



          To find the "Total Expenses", we sum each expense as you did in column 1:



          $E=-e1-e2-e3-e4 = -50$



          Now, for the column you named "Remaining" the sum has no mathematical meaning or significance. Why? Let me explain. Let's go back to what is calculated in the sum "Remaining" column, the sum can be written as follows:



          $S=50-e1 + [50-e1]-e2 + [50-e1-e2] -e3 + [(50-e1)-e2-e3]-e4$



          $S=4*50 - 4*e1 - 3*e2 - 2*e3 - 1*e4 = $



          $4*(50)+4*(-20)+3*(-15)+2*(-9)+1*(-6)=51$



          Notice that the above formula has no meaning or significance. It clearly does not represent the total expense, so it is no wonder that it differs from the correct total expense.



          The fact that the absolute difference is only by value of $1$ from the sum of the left column is by chance! Had you started with an amount of 200 and applied the same calculations, the first column sum would still give $-50$ but the right (bogus) sum would give $651$. I hope this is now clear.






          share|cite|improve this answer











          $endgroup$



          The short answer is that althought the difference of the 2 sums is only 1, it is because the sum in the second column does not represent the same fact as the sum in the first column. In fact, as explained below, the sum in the second column has no meaning relevant to the issue at hand.



          To find the "Total Expenses", we sum each expense as you did in column 1:



          $E=-e1-e2-e3-e4 = -50$



          Now, for the column you named "Remaining" the sum has no mathematical meaning or significance. Why? Let me explain. Let's go back to what is calculated in the sum "Remaining" column, the sum can be written as follows:



          $S=50-e1 + [50-e1]-e2 + [50-e1-e2] -e3 + [(50-e1)-e2-e3]-e4$



          $S=4*50 - 4*e1 - 3*e2 - 2*e3 - 1*e4 = $



          $4*(50)+4*(-20)+3*(-15)+2*(-9)+1*(-6)=51$



          Notice that the above formula has no meaning or significance. It clearly does not represent the total expense, so it is no wonder that it differs from the correct total expense.



          The fact that the absolute difference is only by value of $1$ from the sum of the left column is by chance! Had you started with an amount of 200 and applied the same calculations, the first column sum would still give $-50$ but the right (bogus) sum would give $651$. I hope this is now clear.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Dec 27 '18 at 9:54

























          answered Dec 26 '18 at 20:45









          NoChanceNoChance

          3,76621321




          3,76621321























              0












              $begingroup$

              Generally speaking, your expenses are $a_1, a_2, ldots, a_n$ and must add up to $sum_{k=1}^n a_k = T,$ your total amount. If you look at the sum in the other column, it is actually summing the partial sums of the first one, so it is $sum_{k=1}^{n-1} s_k$ where $s_k = sum_{i=1}^k a_i$. In other words, you get
              $$
              sum_{k=1}^{n-1} sum_{i=1}^k a_i
              = sum_{i=1}^{n-1} (n-i)a_i
              = n sum_{i=1}^{n-1} a_i - sum_{i=1}^{n-1}ia_i
              = nT - sum_{i=1}^{n-1}ia_i,
              $$

              and there is absolutely no reason why that expression should equal $T$...






              share|cite|improve this answer









              $endgroup$


















                0












                $begingroup$

                Generally speaking, your expenses are $a_1, a_2, ldots, a_n$ and must add up to $sum_{k=1}^n a_k = T,$ your total amount. If you look at the sum in the other column, it is actually summing the partial sums of the first one, so it is $sum_{k=1}^{n-1} s_k$ where $s_k = sum_{i=1}^k a_i$. In other words, you get
                $$
                sum_{k=1}^{n-1} sum_{i=1}^k a_i
                = sum_{i=1}^{n-1} (n-i)a_i
                = n sum_{i=1}^{n-1} a_i - sum_{i=1}^{n-1}ia_i
                = nT - sum_{i=1}^{n-1}ia_i,
                $$

                and there is absolutely no reason why that expression should equal $T$...






                share|cite|improve this answer









                $endgroup$
















                  0












                  0








                  0





                  $begingroup$

                  Generally speaking, your expenses are $a_1, a_2, ldots, a_n$ and must add up to $sum_{k=1}^n a_k = T,$ your total amount. If you look at the sum in the other column, it is actually summing the partial sums of the first one, so it is $sum_{k=1}^{n-1} s_k$ where $s_k = sum_{i=1}^k a_i$. In other words, you get
                  $$
                  sum_{k=1}^{n-1} sum_{i=1}^k a_i
                  = sum_{i=1}^{n-1} (n-i)a_i
                  = n sum_{i=1}^{n-1} a_i - sum_{i=1}^{n-1}ia_i
                  = nT - sum_{i=1}^{n-1}ia_i,
                  $$

                  and there is absolutely no reason why that expression should equal $T$...






                  share|cite|improve this answer









                  $endgroup$



                  Generally speaking, your expenses are $a_1, a_2, ldots, a_n$ and must add up to $sum_{k=1}^n a_k = T,$ your total amount. If you look at the sum in the other column, it is actually summing the partial sums of the first one, so it is $sum_{k=1}^{n-1} s_k$ where $s_k = sum_{i=1}^k a_i$. In other words, you get
                  $$
                  sum_{k=1}^{n-1} sum_{i=1}^k a_i
                  = sum_{i=1}^{n-1} (n-i)a_i
                  = n sum_{i=1}^{n-1} a_i - sum_{i=1}^{n-1}ia_i
                  = nT - sum_{i=1}^{n-1}ia_i,
                  $$

                  and there is absolutely no reason why that expression should equal $T$...







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Dec 26 '18 at 16:42









                  gt6989bgt6989b

                  35.8k22557




                  35.8k22557






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3053082%2fproblem-in-calculation-of-daily-expense%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Bundesstraße 106

                      Verónica Boquete

                      Ida-Boy-Ed-Garten