Show example transaction data where the rule for X → Y: (a) Both support and confidence are high. (b) Support is high and confidence is low. (c) Support is low and confidence is high. (d) Both support and confidence are low.
solution:
given data:
An association rule consists of an antecedent and a consequence. The implication is co-occurrence, not causality. For a given rule, the item set is a list of all items in the antecedent and the consequent.
Bread, Egg (antecedent)->Milk (Consequent)
Support: This gives you an idea of how frequent an item set is in all transaction. Consider item set 1 =bread and item set 2 = shampoo.
There will be more transactions containing bread than shampoo. Bread will have higher support than shampoo.
Mathematically the support is the fraction of the total number of transactions in which the item set occurs.
Support X-> Y=Transaction Contain both X&Y/ number of transactions
Confidence: The likeliness of occurrence of a consequent on the cart considering the cart already has antecedents. "Confidence is the conditional probability of occurrence of consequent given the antecedent."
Confidence X -> Y=Transaction Contain both X&Y/ Transactions containing X
a)
Both support and confidence are high.
X=milk
Y= Diapers
Milk X -> Y Diapers
Support=3/5=60%
Confidence=3/4=75%
Likelihood of person buying milk with diapers is high
b)
Support is high and confidence is low.
X=milk
Y= cola
Milk X ->Y Cola
Support=2/5=40%
Confidence=2/4=50%
Both are beverages one is healthy other is sugary
c)
Support is low and confidence is high.
X=eggs
Y= Diapers
Eggs X -> Y Diapers
Support=1/5=20%
Confidence=1/1=100%
There is no connection between the two activities.
d)
Both support and confidence are low
X=Bread
Y= Eggs
Bread X -> Y Eggs
Support=1/5=20%
Confidence=1/4=25%
Likelihood of person buying bread and eggs is high, both staple foods.
please give me thumb up
Show example transaction data where the rule for X → Y: (a) Both support and confidence...
(1) set the minimum support criterion at 0.6, identify the frequent 2-itemsets; Transaction Item Purchased 1 A B C 2 A C D 3 B C D 4 A D E 5 B C E 1 item set Support 2 itemset Support Frequent 2 Itemsets calculate lift ratio for below rules and interpret the results Rule Support of Antecedent {a} Support of Consequent {c} Support of {a & c} The confidence of the Rule Lift Ratio of the Rule Interpretation...
Question in Data mining : Apply Apriori algorithm on the grocery store example with support threshold s = 33.34% and confidence threshold c = 60%, where H, B, K, C and P are different items purchased by customers. Show all final frequent itemsets. Specify the association rules that are generated. Show final association rules sorted by confidence. Represent the transactions as graph.
ANSWER BOTH PARTS » Suppose that u depends on z and w, while z and w depend on x and y, where both x and y depend on t. Draw a tree diagram and write the chain rule for computing อน ot ·Explain why the direction of maximal ascent coincides with the direction of the gradient » Suppose that u depends on z and w, while z and w depend on x and y, where both x and y depend...
Please explain both questions. Show work. 7. Suppose X and Y are the random variables with joint PMF given by: 10.16 0.24 2 0.2 0.3 3 0.04 0.06 Are X and Y independent? (a) Yes Answer: Ta (b) No 8. Let X and Y be two random variables such that where Z is independent of X and Z N(0, ?2). A random sample of n 25 pairs (Xi, Yi),..., (Xn,Yn) resulted in the following statistics: X=-0.14; Y-5.04 x-x)2-220.11 (xi-X)Y, 100.23...
(b) If y = uv, where u and v are functions of x, show that the nth derivative of y with respect to x is given by nn - 1) yn) = uv(n) + nu'v(n-1) + - u"un-2) 2! non - 1)(n-2)...",(n-3) + + umu. 31 This is known as Leibniz' rule.
Consider the transactional database shown in the following table. Transaction ID Items Bought T100 Plum, Apple, Peach, Orange, Pear, Banana T200 Cherry, Apple, Peach, Orange, Pear, Banana T300 Plum, Mango, Orange, Pear, Kiwi, Strawberry T400 Plum, Watermelon, Avocado, Orange, Banana T500 Avocado, Apple, Orange, Lemon, Pear CONDITION: The minimum support is 60% and minimum confidence is 70%. Based on the CONDITION above, answer the following five questions. (1) Find all frequent itemsets using the Apriori algorithm. Show how the algorithm...
We have a dataset where we're considering the rule "if Professor Kimmer then Disposition- Mean". There are 1000 instances in the dataset. 400 of them have Professor Kimmer (he gets around) and 600 of them have Disposition-Mean. 300 instances have both Professor-Kimmer and Disposition Mean. A. What is the confidence of the rule "if Professor Kimmer then Disposition Mean"? B. What is the support of the consequent "Disposition Mean"? C. What is the lift of the rule "if Professor Kimmer...
Show the following rule for MVD's. The attributes are arbitrary sets X, Y, Z and the other unnamed attributes of the relation in which these dependencies hold. The Difference Rule. If X? Y, and Z are sets of attributes, X - > - > Y, and X - > - > Z, then X - > - > (Y-Z).
Topic: Data Analytics Give a short example to show that items in a strong association rule may actually be negatively correlated.
A statistical program is recommended. Consider the following data for two variables, x and y. x 9 32 18 15 26 y 11 19 20 16 22 (a) Develop an estimated regression equation for the data of the form ŷ = b0 + b1x. (Round b0 to two decimal places and b1 to three decimal places.) ŷ = Comment on the adequacy of this equation for predicting y. (Use α = 0.05.) The high p-value and low coefficient of determination...