100 items 100 baskets divisor association analysis problem












0












$begingroup$


I have the following exercise question:




Suppose there are 100 items, numbered 1 to 100, and also 100 baskets, also numbered 1 to 100. Item i is in basket b if and only if i divides b with no remainder. Thus, item 1 is in all the baskets, item 2 is in all fifty of the even-numbered baskets, etc. for example Basket 12 consists of items {1, 2, 3, 4, 6, 12}




Given this, I'm trying to solve the following 3 questions:




(a) If the support threshold is 5, which items are frequent?



(b) what is the confidence of the following association rules?



(1) {5, 7} → 2.



(2) {2, 3, 4}→ 5.




So I have tried to approach this question but I'm unsure if I'm doing it correctly as I was just introduced to this concept recently.



For question a, the conclusion I reached was everything up to 20 would be the answer, because those are the only numbers that can appear more than 5 times in the 100 baskets.



For question b1, I determine there are 50 baskets for 2, 10 baskets for 5 given 2, and 7 baskets of 7 given 2, the only common basket here I could find was 70, which is one basket which means the confidence factors is 1 in 50 which is 2%?



for b2, I did it similarly, noting the 20 baskets for 5, and finding the elements of 2 given 5, 3 given 5, and 4 given 5, and finding the common element in those, I only found the number 60 which would be 1/20 which is a confidence factor of 5%?



I just want to know if I'm doing this correctly, and if I'm even approaching it in the right way, if not, which way I should be approaching these types of questions?










share|improve this question







New contributor




deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$

















    0












    $begingroup$


    I have the following exercise question:




    Suppose there are 100 items, numbered 1 to 100, and also 100 baskets, also numbered 1 to 100. Item i is in basket b if and only if i divides b with no remainder. Thus, item 1 is in all the baskets, item 2 is in all fifty of the even-numbered baskets, etc. for example Basket 12 consists of items {1, 2, 3, 4, 6, 12}




    Given this, I'm trying to solve the following 3 questions:




    (a) If the support threshold is 5, which items are frequent?



    (b) what is the confidence of the following association rules?



    (1) {5, 7} → 2.



    (2) {2, 3, 4}→ 5.




    So I have tried to approach this question but I'm unsure if I'm doing it correctly as I was just introduced to this concept recently.



    For question a, the conclusion I reached was everything up to 20 would be the answer, because those are the only numbers that can appear more than 5 times in the 100 baskets.



    For question b1, I determine there are 50 baskets for 2, 10 baskets for 5 given 2, and 7 baskets of 7 given 2, the only common basket here I could find was 70, which is one basket which means the confidence factors is 1 in 50 which is 2%?



    for b2, I did it similarly, noting the 20 baskets for 5, and finding the elements of 2 given 5, 3 given 5, and 4 given 5, and finding the common element in those, I only found the number 60 which would be 1/20 which is a confidence factor of 5%?



    I just want to know if I'm doing this correctly, and if I'm even approaching it in the right way, if not, which way I should be approaching these types of questions?










    share|improve this question







    New contributor




    deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$















      0












      0








      0





      $begingroup$


      I have the following exercise question:




      Suppose there are 100 items, numbered 1 to 100, and also 100 baskets, also numbered 1 to 100. Item i is in basket b if and only if i divides b with no remainder. Thus, item 1 is in all the baskets, item 2 is in all fifty of the even-numbered baskets, etc. for example Basket 12 consists of items {1, 2, 3, 4, 6, 12}




      Given this, I'm trying to solve the following 3 questions:




      (a) If the support threshold is 5, which items are frequent?



      (b) what is the confidence of the following association rules?



      (1) {5, 7} → 2.



      (2) {2, 3, 4}→ 5.




      So I have tried to approach this question but I'm unsure if I'm doing it correctly as I was just introduced to this concept recently.



      For question a, the conclusion I reached was everything up to 20 would be the answer, because those are the only numbers that can appear more than 5 times in the 100 baskets.



      For question b1, I determine there are 50 baskets for 2, 10 baskets for 5 given 2, and 7 baskets of 7 given 2, the only common basket here I could find was 70, which is one basket which means the confidence factors is 1 in 50 which is 2%?



      for b2, I did it similarly, noting the 20 baskets for 5, and finding the elements of 2 given 5, 3 given 5, and 4 given 5, and finding the common element in those, I only found the number 60 which would be 1/20 which is a confidence factor of 5%?



      I just want to know if I'm doing this correctly, and if I'm even approaching it in the right way, if not, which way I should be approaching these types of questions?










      share|improve this question







      New contributor




      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I have the following exercise question:




      Suppose there are 100 items, numbered 1 to 100, and also 100 baskets, also numbered 1 to 100. Item i is in basket b if and only if i divides b with no remainder. Thus, item 1 is in all the baskets, item 2 is in all fifty of the even-numbered baskets, etc. for example Basket 12 consists of items {1, 2, 3, 4, 6, 12}




      Given this, I'm trying to solve the following 3 questions:




      (a) If the support threshold is 5, which items are frequent?



      (b) what is the confidence of the following association rules?



      (1) {5, 7} → 2.



      (2) {2, 3, 4}→ 5.




      So I have tried to approach this question but I'm unsure if I'm doing it correctly as I was just introduced to this concept recently.



      For question a, the conclusion I reached was everything up to 20 would be the answer, because those are the only numbers that can appear more than 5 times in the 100 baskets.



      For question b1, I determine there are 50 baskets for 2, 10 baskets for 5 given 2, and 7 baskets of 7 given 2, the only common basket here I could find was 70, which is one basket which means the confidence factors is 1 in 50 which is 2%?



      for b2, I did it similarly, noting the 20 baskets for 5, and finding the elements of 2 given 5, 3 given 5, and 4 given 5, and finding the common element in those, I only found the number 60 which would be 1/20 which is a confidence factor of 5%?



      I just want to know if I'm doing this correctly, and if I'm even approaching it in the right way, if not, which way I should be approaching these types of questions?







      data-mining market-basket-analysis






      share|improve this question







      New contributor




      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      deshawndeshawn

      1




      1




      New contributor




      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      deshawn is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          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: "557"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          deshawn is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f44746%2f100-items-100-baskets-divisor-association-analysis-problem%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          deshawn is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          deshawn is a new contributor. Be nice, and check out our Code of Conduct.













          deshawn is a new contributor. Be nice, and check out our Code of Conduct.












          deshawn is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Data Science 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%2fdatascience.stackexchange.com%2fquestions%2f44746%2f100-items-100-baskets-divisor-association-analysis-problem%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

          How to label and detect the document text images

          Vallis Paradisi

          Tabula Rosettana