How to find the minimum support in Apriori algorithm

前端 未结 6 2284
北海茫月
北海茫月 2021-02-19 18:27

When the percentage values of support and confidence is given how can I find the minimum support in Apriori algorithm. For an example when support and confidence is given as 60%

相关标签:
6条回答
  • 2021-02-19 18:53

    I'm not sure your question makes sense. From your example if you have at least one rule returned with Support and Confidence of 60% you can be sure that the Minimum-Support is at least 60% but it could be more.

    Minimum-Support is a parameter supplied to the Apriori algorithm in order to prune candidate rules by specifying a minimum lower bound for the Support measure of resulting association rules. There is a corresponding Minimum-Confidence pruning parameter as well.

    Each rule produced by the algorithm has it's own Support and Confidence measures. Roughly, Support is the ratio of instances for which the rule is true out of all instances. Confidence is the ratio of instances for which the rule is true out of the number of instances for which the antecedent (LHS of the implication) is true.

    Check out Wikipedia for more rigorous definitions.

    0 讨论(0)
  • 2021-02-19 18:57

    Minimum support count is the % of the all transaction.suppose you have 60% support count and 5 is the total transaction then in number the min_support will be 5*60/100=3.

    0 讨论(0)
  • 2021-02-19 19:00

    You have to use the minimum support count to compare the candidate's support count . If you are given the minimum support count as "%" value you have to find the number of transactions first and do the following .

    FOR EXAMPLE, you have 10 number of transactions in your Database.

    minimum support count is 70%. Now, to get the number as Min. Sup.count = number of transactions * (minimum support count% / 100)

    So, min.sup.count= 10 * 70/100

    Answer is 7.

    This is how you have to calculate min.sup.count

    0 讨论(0)
  • 2021-02-19 19:01

    The support and confidence are measures to measure how interesting a rule is.

    The minimum support and minimum confidence are set by the users, and are parameters of the Apriori algorithm for association rule generation. These parameters are used to exclude rules in the result that have a support or a confidence lower than the minimum support and minimum confidence respectively.

    So to answer your question, when you say that: "For an example when support and confidence is given as 60% and 60% respectively what is the minimum support?" you probably mean that you have set the minimum support and confidence to 60 %.

    I think that you are just confused by the terms.

    0 讨论(0)
  • 2021-02-19 19:02

    My answer is coming a little too late, but I guess what Chanikag is asking is - "How to minimum support count when the support threshold is given as 60%". The Minimum Support Count would be count of transactions, so it would be 60% of the total number of transactions. If the number of transactions is 5, your minimum support count would be 5*60/100 = 3.

    0 讨论(0)
  • 2021-02-19 19:06

    Check out the full explanation of Apriori algorithm with live usable example here:

    http://www.codeding.com/articles/apriori-algorithm

    You can add new items and enter the minimum support threshold and minimum confidence threshold and see the resultant large itemsets generated instantly in the demo Silverlight widget.

    0 讨论(0)
提交回复
热议问题