Answers.Body: <p>Let start by the concrete question, and follow talking about the general problem.</p>
  
  <p>a) </p>
  
  <p>The concrete question <em>"find items that are particularly frequently purchased through online stores by paying shipping fee"</em> needs few or none usage of applied AI, just a few of statistics.</p>
  
  <p>The question talks about "item purchased" and "buy method", thus, we have an information database with entries like:</p>
  
  <blockquote>
    <p>sale(online,item1).</p>
    
    <p>sale(shop,item2). </p>
    
    <p>sale(online,item2). </p>
    
    <p>sale(online,item2). </p>
    
    <p>...</p>
  </blockquote>
  
  <p>(note records can be repeated)</p>
  
  <p>the percentage of online sales of item "X" is defined as the fraction of sales online of this item, sale(online,X), over the total sales of this item, sale(_,X):</p>
  
  <p><a href="https://i.sstatic.net/QhUDO.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/QhUDO.png" alt="enter image description here"></a></p>
  
  <p>In the previous data examples, p(item1)=1/1, p(item2)=2/3.</p>
  
  <p>High p(X) means items that are preferred for online shopping.</p>
  
  <p>Other probabilities can be defined for similar cases.</p>
  
  <p>b)</p>
  
  <p>About the general case, we are talking about data mining. The are very good packages (open source, ...) for them: weka, IBM DWE, ... . By example, using Weka J48 over a database defined as:</p>
  
  <blockquote>
    <p>sale( purchase_identifier, buy method, item )</p>
  </blockquote>
  
  <p>where "purchase_identifier" must group item that has been purchased in a single buyout (cash ticket). J48 will then provide as answer rules as: <em>item "foo" is usually purchased in online shop when also item "bar" is purchased.</em></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-13T16:01:40.253Z
Answers.LastActivityDate: 2018-02-13T17:26:56.940Z
Answers.LastEditDate: 2018-02-13T17:26:56.940Z
Answers.UserDisplayName: pasaba por aqui
Body: <p>I have purchasing history data for grocery shopping. I am trying to get abnormally frequently purchased items under certain conditions. For instance, I am trying to find frequently purchased items, when customers shop online and are willing to pay an extra shipping fee.</p>
  
  <p>In order to find items that are particularly (or abnormally) frequently purchased under that situation (through online stores by paying shipping fee), how and what Machine Learning Algorithm  should I apply and identify those items?</p>
  
  <p>I found <code>arules</code> R package which is using the association rules with purchasing history and tried to apply it. But it seems the package might be based on different principle from my idea.</p>
  
  <p>Anyone has an idea about my problem? If there is an R package related to the problem, it would be perfect.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-13T17:01:15.620Z
Comments.Text: @DuttaA: the concrete question "find items that are particularly frequently purchased through online stores by paying shipping fee" doesn't seem complex, eve doesn't seems to need applied AI. About prediction of customer preferences, all big online shops has it. See by example Amazon's "customer who buy this item frequently ..."
Comments.UserDisplayName: pasaba por aqui
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-14T13:48:03.490Z
Comments.Text: Your could use clustering techniques such as DBSCAN to identify tendencies (clusters) in buying frequency. I'm not familiar with R, but [there's a package for that](https://cran.r-project.org/web/packages/dbscan/README.html).
Comments.UserDisplayName: lamontap
Tags: <machine-learning><unsupervised-learning><learning-algorithms><r>
Title: Predict frequently purchased items under certain conditions with customer purchasing history data
UserDisplayName: John legend2
ThreadText: # Predict frequently purchased items under certain conditions with customer purchasing history data
  
  (Asked by: username_0 on 2018-02-13)
  
  I have purchasing history data for grocery shopping. I am trying to get abnormally frequently purchased items under certain conditions. For instance, I am trying to find frequently purchased items, when customers shop online and are willing to pay an extra shipping fee.
  
  In order to find items that are particularly (or abnormally) frequently purchased under that situation (through online stores by paying shipping fee), how and what Machine Learning Algorithm should I apply and identify those items?
  
  I found `arules` R package which is using the association rules with purchasing history and tried to apply it. But it seems the package might be based on different principle from my idea.
  
  Anyone has an idea about my problem? If there is an R package related to the problem, it would be perfect.
  
  **Tags:** machine-learning, unsupervised-learning, learning-algorithms, r
  
  > **Comments:**
  > **username_1**: @DuttaA: the concrete question "find items that are particularly frequently purchased through online stores by paying shipping fee" doesn't seem complex, eve doesn't seems to need applied AI. About prediction of customer preferences, all big online shops has it. See by example Amazon's "customer who buy this item frequently ..."  
  > **username_2**: Your could use clustering techniques such as DBSCAN to identify tendencies (clusters) in buying frequency. I'm not familiar with R, but [there's a package for that](https://cran.r-project.org/web/packages/dbscan/README.html).  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-02-13. Score: 1
  
  Let start by the concrete question, and follow talking about the general problem.
  
  a)
  
  The concrete question *"find items that are particularly frequently purchased through online stores by paying shipping fee"* needs few or none usage of applied AI, just a few of statistics.
  
  The question talks about "item purchased" and "buy method", thus, we have an information database with entries like:
  
  > sale(online,item1).
  >
  > sale(shop,item2).
  >
  > sale(online,item2).
  >
  > sale(online,item2).
  >
  > ...
  
  (note records can be repeated)
  
  the percentage of online sales of item "X" is defined as the fraction of sales online of this item, sale(online,X), over the total sales of this item, sale(\_,X):
  
  [![enter image description here](https://i.sstatic.net/QhUDO.png)](https://i.sstatic.net/QhUDO.png)
  
  In the previous data examples, p(item1)=1/1, p(item2)=2/3.
  
  High p(X) means items that are preferred for online shopping.
  
  Other probabilities can be defined for similar cases.
  
  b)
  
  About the general case, we are talking about data mining. The are very good packages (open source, ...) for them: weka, IBM DWE, ... . By example, using Weka J48 over a database defined as:
  
  > sale( purchase\_identifier, buy method, item )
  
  where "purchase\_identifier" must group item that has been purchased in a single buyout (cash ticket). J48 will then provide as answer rules as: *item "foo" is usually purchased in online shop when also item "bar" is purchased.*
  
  
  ---
  
  