Calculating average customer turnover

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











up vote
2
down vote

favorite
1












I am currently coding a script which displays data for a company intranet. I am stuck with a question that seemed pretty simple, but turned out to give me headaches.



We have the following scenario:



  • Store A has 70 male customers and 100 female customers - (170 total)

  • Store B has 50 male customers and 230 female customers - (280 total)

Now, I learned that in order to display the average male/female ratio I have to calculate:



$$fractextMale Store A + textMale Store B170 + 280 = X $$



$X * 100 = 28.9%$ for males, $71.1%$ for females



Yet when thinking it over, it doesn't show the real average, because the total number of clients isn't the same (170 vs 280).



So I did a second approach, which is first separating the percentage by store, and then calculating the average percentage:



  • Males, Store A: $cfrac70170 * 100 = 41.2%$

  • Males, Store B: $cfrac50280 * 100 = 17.9%$

And then divide it:



$$frac41.2% + 17.9%2 = 29.6% $$



So in the second case, rounded up, male ratio is 29.6% instead of 27.3%



Then I showed both calculations to somebody who is better in math then me, and he told me that both are wrong. He said I should use "weighted average", but when I do i get exactly the same average percentage like in the first calculation.



What am I doing wrong?



Background:
We have a lot of stores, each with a different number of female and male clients. I want to have a percentage of the average client gender, but taking into account the different amount of the guests in each store.







share|cite|improve this question


























    up vote
    2
    down vote

    favorite
    1












    I am currently coding a script which displays data for a company intranet. I am stuck with a question that seemed pretty simple, but turned out to give me headaches.



    We have the following scenario:



    • Store A has 70 male customers and 100 female customers - (170 total)

    • Store B has 50 male customers and 230 female customers - (280 total)

    Now, I learned that in order to display the average male/female ratio I have to calculate:



    $$fractextMale Store A + textMale Store B170 + 280 = X $$



    $X * 100 = 28.9%$ for males, $71.1%$ for females



    Yet when thinking it over, it doesn't show the real average, because the total number of clients isn't the same (170 vs 280).



    So I did a second approach, which is first separating the percentage by store, and then calculating the average percentage:



    • Males, Store A: $cfrac70170 * 100 = 41.2%$

    • Males, Store B: $cfrac50280 * 100 = 17.9%$

    And then divide it:



    $$frac41.2% + 17.9%2 = 29.6% $$



    So in the second case, rounded up, male ratio is 29.6% instead of 27.3%



    Then I showed both calculations to somebody who is better in math then me, and he told me that both are wrong. He said I should use "weighted average", but when I do i get exactly the same average percentage like in the first calculation.



    What am I doing wrong?



    Background:
    We have a lot of stores, each with a different number of female and male clients. I want to have a percentage of the average client gender, but taking into account the different amount of the guests in each store.







    share|cite|improve this question
























      up vote
      2
      down vote

      favorite
      1









      up vote
      2
      down vote

      favorite
      1






      1





      I am currently coding a script which displays data for a company intranet. I am stuck with a question that seemed pretty simple, but turned out to give me headaches.



      We have the following scenario:



      • Store A has 70 male customers and 100 female customers - (170 total)

      • Store B has 50 male customers and 230 female customers - (280 total)

      Now, I learned that in order to display the average male/female ratio I have to calculate:



      $$fractextMale Store A + textMale Store B170 + 280 = X $$



      $X * 100 = 28.9%$ for males, $71.1%$ for females



      Yet when thinking it over, it doesn't show the real average, because the total number of clients isn't the same (170 vs 280).



      So I did a second approach, which is first separating the percentage by store, and then calculating the average percentage:



      • Males, Store A: $cfrac70170 * 100 = 41.2%$

      • Males, Store B: $cfrac50280 * 100 = 17.9%$

      And then divide it:



      $$frac41.2% + 17.9%2 = 29.6% $$



      So in the second case, rounded up, male ratio is 29.6% instead of 27.3%



      Then I showed both calculations to somebody who is better in math then me, and he told me that both are wrong. He said I should use "weighted average", but when I do i get exactly the same average percentage like in the first calculation.



      What am I doing wrong?



      Background:
      We have a lot of stores, each with a different number of female and male clients. I want to have a percentage of the average client gender, but taking into account the different amount of the guests in each store.







      share|cite|improve this question














      I am currently coding a script which displays data for a company intranet. I am stuck with a question that seemed pretty simple, but turned out to give me headaches.



      We have the following scenario:



      • Store A has 70 male customers and 100 female customers - (170 total)

      • Store B has 50 male customers and 230 female customers - (280 total)

      Now, I learned that in order to display the average male/female ratio I have to calculate:



      $$fractextMale Store A + textMale Store B170 + 280 = X $$



      $X * 100 = 28.9%$ for males, $71.1%$ for females



      Yet when thinking it over, it doesn't show the real average, because the total number of clients isn't the same (170 vs 280).



      So I did a second approach, which is first separating the percentage by store, and then calculating the average percentage:



      • Males, Store A: $cfrac70170 * 100 = 41.2%$

      • Males, Store B: $cfrac50280 * 100 = 17.9%$

      And then divide it:



      $$frac41.2% + 17.9%2 = 29.6% $$



      So in the second case, rounded up, male ratio is 29.6% instead of 27.3%



      Then I showed both calculations to somebody who is better in math then me, and he told me that both are wrong. He said I should use "weighted average", but when I do i get exactly the same average percentage like in the first calculation.



      What am I doing wrong?



      Background:
      We have a lot of stores, each with a different number of female and male clients. I want to have a percentage of the average client gender, but taking into account the different amount of the guests in each store.









      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Feb 12 at 23:11









      Vedvart1

      597418




      597418










      asked Nov 7 '12 at 13:14









      George

      111




      111




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Okay, so I decided to stick to the weighted average method. Here is a good calculator to cross check your results:



          http://www.handymath.com/cgi-bin/average.cgi






          share|cite|improve this answer




















            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%2f232140%2fcalculating-average-customer-turnover%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            Okay, so I decided to stick to the weighted average method. Here is a good calculator to cross check your results:



            http://www.handymath.com/cgi-bin/average.cgi






            share|cite|improve this answer
























              up vote
              0
              down vote













              Okay, so I decided to stick to the weighted average method. Here is a good calculator to cross check your results:



              http://www.handymath.com/cgi-bin/average.cgi






              share|cite|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                Okay, so I decided to stick to the weighted average method. Here is a good calculator to cross check your results:



                http://www.handymath.com/cgi-bin/average.cgi






                share|cite|improve this answer












                Okay, so I decided to stick to the weighted average method. Here is a good calculator to cross check your results:



                http://www.handymath.com/cgi-bin/average.cgi







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Nov 14 '12 at 3:54









                George

                111




                111






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f232140%2fcalculating-average-customer-turnover%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    這個網誌中的熱門文章

                    How to combine Bézier curves to a surface?

                    Mutual Information Always Non-negative

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