Given the transactions:

1 - SOAP, SOAP, BRUSH
2 - SOAP, SOAP, TOOTHPASTE
3 - SOAP, SOAP
4 - TOOTHPASTE, BRUSH
5 - TOOTHPASTE, SOAP

What is the support and confidence, respectively, of the SOAP rule -> TOOTHPASTE?

A. 40 and 40%
B. 40 and 50%
C. 50 and 40%
D. 50 and 50%

Respuesta :

Answer:

B. 40 and 50%

Explanation:

The support related to a rule is the total number of transactions that contain both X and Y. Whereas confidence is the total number of transactions that contain both X and Y by the total number of transactions that contain X.

Here X union Y= 2. Hence, percentage = 2/5 =40% (Support)

and Cardinality of X is 4

Confidence =2/4 = 50%

Hence, B. is the correct option.

B

i just did that .....