REGLAS DE ASOCIACIÓN
Grupo 13
30 de julio de 2020
## order_id product_name
## 1 2 Organic Egg Whites
## 2 2 Michigan Organic Kale
## 3 2 Garlic Powder
## 4 2 Coconut Butter
## 5 2 Natural Sweetener
## 6 2 Carrots
## [1] "100" "1000" "1002"
## [1] "#2 Coffee Filters"
## [2] "#4 Natural Brown Coffee Filters"
## [3] "& Go! Hazelnut Spread + Pretzel Sticks"
## transactions in sparse format with
## 12500 transactions (rows) and
## 17917 items (columns)
## items transactionID
## [1] {Soda,
## Spring Water} 100
## [2] {Cacao Sweet Raw Chocolate Nibs,
## Jazz Apple,
## No. 01 Organic Vegan Cold Pressed Juice Kale Spinach Romaine Celery Cucumber Apple Lemon,
## Organic Baby Kale Mix,
## Organic Unsweetened Almond Milk,
## Pitted Dates,
## Whole Chia Seeds} 1000
## tamano
## 1 2
## 2 7
## 3 33
## 4 11
## 5 1
## 6 3
## tamano
## Min. : 1.000
## 1st Qu.: 4.000
## Median : 8.000
## Mean : 9.354
## 3rd Qu.:13.000
## Max. :68.000
## #2 Coffee Filters
## 0.00024
## #4 Natural Brown Coffee Filters
## 0.00008
## & Go! Hazelnut Spread + Pretzel Sticks
## 0.00016
## \\"Darn Good\\" Chili Mix
## 0.00008
## \\"Mokaccino\\" Milk + Blue Bottle Coffee Chocolate
## 0.00016
## 0 Calorie Acai Raspberry Water Beverage
## 0.00008
## [1] 11733 17917
## [1] 0.001022756
## [1] 0.75
El soporte obtenido corresponde al 0,10%.
## set of 3658 itemsets
##
## most frequent items:
## Banana Bag of Organic Bananas Organic Strawberries
## 315 276 212
## Organic Baby Spinach Organic Hass Avocado (Other)
## 203 198 4664
##
## element (itemset/transaction) length distribution:sizes
## 1 2 3 4
## 1670 1769 216 3
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.000 1.000 2.000 1.604 2.000 4.000
##
## summary of quality measures:
## support count
## Min. :0.001108 Min. : 13.00
## 1st Qu.:0.001278 1st Qu.: 15.00
## Median :0.001705 Median : 20.00
## Mean :0.002826 Mean : 33.16
## 3rd Qu.:0.002727 3rd Qu.: 32.00
## Max. :0.145743 Max. :1710.00
##
## includes transaction ID lists: FALSE
##
## mining info:
## data ntransactions support confidence
## transacciones 11733 0.001022756 1
## items support count
## [1] {Banana} 0.14574278 1710
## [2] {Bag of Organic Bananas} 0.11957726 1403
## [3] {Organic Strawberries} 0.08003068 939
## [4] {Organic Baby Spinach} 0.07628058 895
## [5] {Organic Hass Avocado} 0.06878036 807
## [6] {Organic Avocado} 0.05284241 620
## [7] {Large Lemon} 0.04866616 571
## [8] {Strawberries} 0.04338191 509
## [9] {Limes} 0.04304100 505
## [10] {Organic Raspberries} 0.04218870 495
## items support count
## [1] {Bag of Organic Bananas,Organic Hass Avocado} 0.01968806 231
## [2] {Bag of Organic Bananas,Organic Strawberries} 0.01815392 213
## [3] {Banana,Organic Baby Spinach} 0.01713117 201
## [4] {Banana,Organic Strawberries} 0.01704594 200
## [5] {Bag of Organic Bananas,Organic Baby Spinach} 0.01670502 196
## [6] {Banana,Organic Avocado} 0.01585272 186
## [7] {Bag of Organic Bananas,Organic Raspberries} 0.01329583 156
## [8] {Organic Hass Avocado,Organic Strawberries} 0.01286968 151
## [9] {Organic Baby Spinach,Organic Strawberries} 0.01201739 141
## [10] {Banana,Large Lemon} 0.01176170 138
## [1] "Reglas generadas: 8"
## set of 8 rules
##
## rule length distribution (lhs + rhs):sizes
## 2 3 4
## 1 6 1
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2 3 3 3 3 4
##
## summary of quality measures:
## support confidence lift count
## Min. :0.001108 Min. :0.7500 Min. : 6.602 Min. :13.00
## 1st Qu.:0.001342 1st Qu.:0.7619 1st Qu.: 33.937 1st Qu.:15.75
## Median :0.001364 Median :0.7771 Median :167.611 Median :16.00
## Mean :0.001385 Mean :0.7973 Mean :173.504 Mean :16.25
## 3rd Qu.:0.001385 3rd Qu.:0.8024 3rd Qu.:320.646 3rd Qu.:16.25
## Max. :0.001790 Max. :0.9412 Max. :335.229 Max. :21.00
##
## mining info:
## data ntransactions support confidence
## transacciones 11733 0.001022756 0.75
## lhs rhs support confidence lift count
## [1] {Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001789824 0.7500000 258.816176 21
## [2] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.788927 16
## [3] {Blueberry Whole Milk Yogurt Pouch,
## Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} => {Yotoddler Organic Pear Spinach Mango Yogurt} 0.001363675 0.8000000 335.228571 16
## [4] {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Blueberry Whole Milk Yogurt Pouch} 0.001363675 0.7619048 319.265306 16
## [5] {Total 2% Lowfat Greek Strained Yogurt With Blueberry,
## Total 2% Lowfat Greek Strained Yogurt with Peach} => {Total 2% with Strawberry Lowfat Greek Strained Yogurt} 0.001363675 0.7619048 76.405372 16
## [6] {Pure Sparkling Water,
## Sparkling Lemon Water} => {Sparkling Water Grapefruit} 0.001107986 0.7647059 32.508312 13
## [7] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.413561 17
## [8] {Organic Baby Spinach,
## Organic Hass Avocado,
## Organic Raspberries} => {Bag of Organic Bananas} 0.001278445 0.7894737 6.602206 15
## set of 0 rules
## lhs rhs support confidence lift count
## [1] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.788927 16
## [2] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.413561 17
## [3] {Blueberry Whole Milk Yogurt Pouch,
## Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} => {Yotoddler Organic Pear Spinach Mango Yogurt} 0.001363675 0.8000000 335.228571 16
## [4] {Organic Baby Spinach,
## Organic Hass Avocado,
## Organic Raspberries} => {Bag of Organic Bananas} 0.001278445 0.7894737 6.602206 15
## [5] {Pure Sparkling Water,
## Sparkling Lemon Water} => {Sparkling Water Grapefruit} 0.001107986 0.7647059 32.508312 13
## [6] {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Blueberry Whole Milk Yogurt Pouch} 0.001363675 0.7619048 319.265306 16
## [7] {Total 2% Lowfat Greek Strained Yogurt With Blueberry,
## Total 2% Lowfat Greek Strained Yogurt with Peach} => {Total 2% with Strawberry Lowfat Greek Strained Yogurt} 0.001363675 0.7619048 76.405372 16
## [8] {Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001789824 0.7500000 258.816176 21
## lhs rhs support confidence lift count
## [1] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.7889 16
## lhs rhs support confidence lift count
## [1] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.41356 17
## set of 7 rules
## lhs rhs support confidence lift count
## [1] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.788927 16
## [2] {Blueberry Whole Milk Yogurt Pouch,
## Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} => {Yotoddler Organic Pear Spinach Mango Yogurt} 0.001363675 0.8000000 335.228571 16
## [3] {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Blueberry Whole Milk Yogurt Pouch} 0.001363675 0.7619048 319.265306 16
## [4] {Total 2% Lowfat Greek Strained Yogurt With Blueberry,
## Total 2% Lowfat Greek Strained Yogurt with Peach} => {Total 2% with Strawberry Lowfat Greek Strained Yogurt} 0.001363675 0.7619048 76.405372 16
## [5] {Pure Sparkling Water,
## Sparkling Lemon Water} => {Sparkling Water Grapefruit} 0.001107986 0.7647059 32.508312 13
## [6] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.413561 17
## [7] {Organic Baby Spinach,
## Organic Hass Avocado,
## Organic Raspberries} => {Bag of Organic Bananas} 0.001278445 0.7894737 6.602206 15
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 81.12 526.16 3151.20 2914.89 5228.79 5421.83
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.000e+00 0.000e+00 0.000e+00 4.139e-12 0.000e+00 3.312e-11
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.09187 0.21492 0.49131 0.43873 0.66817 0.68061
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.7500 0.7619 0.7771 0.7973 0.8024 0.9412
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 6.602 33.937 167.611 173.504 320.646 335.229
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.4001 0.4281 0.5580 0.5541 0.6843 0.7059
## Eclat
##
## parameter specification:
## tidLists support minlen maxlen target ext
## FALSE 0.001022756 1 5 frequent itemsets FALSE
##
## algorithmic control:
## sparse sort verbose
## 7 -2 TRUE
##
## Absolute minimum support count: 12
##
## create itemset ...
## set transactions ...[17746 item(s), 11733 transaction(s)] done [0.52s].
## sorting and recoding items ... [1670 item(s)] done [0.01s].
## creating sparse bit matrix ... [1670 row(s), 11733 column(s)] done [0.02s].
## writing ... [3658 set(s)] done [1.91s].
## Creating S4 object ... done [0.00s].
## set of 3658 itemsets
## set of 3658 itemsets
##
## most frequent items:
## Banana Bag of Organic Bananas Organic Strawberries
## 315 276 212
## Organic Baby Spinach Organic Hass Avocado (Other)
## 203 198 4664
##
## element (itemset/transaction) length distribution:sizes
## 1 2 3 4
## 1670 1769 216 3
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.000 1.000 2.000 1.604 2.000 4.000
##
## summary of quality measures:
## support count
## Min. :0.001108 Min. : 13.00
## 1st Qu.:0.001278 1st Qu.: 15.00
## Median :0.001705 Median : 20.00
## Mean :0.002826 Mean : 33.16
## 3rd Qu.:0.002727 3rd Qu.: 32.00
## Max. :0.145743 Max. :1710.00
##
## includes transaction ID lists: FALSE
##
## mining info:
## data ntransactions support
## transacciones 11733 0.001022756
## set of 8 rules
## set of 8 rules
##
## rule length distribution (lhs + rhs):sizes
## 2 3 4
## 1 6 1
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2 3 3 3 3 4
##
## summary of quality measures:
## support confidence lift itemset
## Min. :0.001108 Min. :0.7500 Min. : 6.602 Min. : 9.0
## 1st Qu.:0.001342 1st Qu.:0.7619 1st Qu.: 33.937 1st Qu.: 9.0
## Median :0.001364 Median :0.7771 Median :167.611 Median : 74.0
## Mean :0.001385 Mean :0.7973 Mean :173.504 Mean : 365.4
## 3rd Qu.:0.001385 3rd Qu.:0.8024 3rd Qu.:320.646 3rd Qu.: 415.5
## Max. :0.001790 Max. :0.9412 Max. :335.229 Max. :1910.0
##
## mining info:
## data ntransactions support confidence
## transacciones 11733 0.001022756 0.75
## lhs rhs support confidence lift itemset
## [1] {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Blueberry Whole Milk Yogurt Pouch} 0.001363675 0.7619048 319.265306 9
## [2] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.788927 9
## [3] {Blueberry Whole Milk Yogurt Pouch,
## Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} => {Yotoddler Organic Pear Spinach Mango Yogurt} 0.001363675 0.8000000 335.228571 9
## [4] {Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001789824 0.7500000 258.816176 13
## [5] {Total 2% Lowfat Greek Strained Yogurt With Blueberry,
## Total 2% Lowfat Greek Strained Yogurt with Peach} => {Total 2% with Strawberry Lowfat Greek Strained Yogurt} 0.001363675 0.7619048 76.405372 135
## [6] {Pure Sparkling Water,
## Sparkling Lemon Water} => {Sparkling Water Grapefruit} 0.001107986 0.7647059 32.508312 412
## [7] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.413561 426
## [8] {Organic Baby Spinach,
## Organic Hass Avocado,
## Organic Raspberries} => {Bag of Organic Bananas} 0.001278445 0.7894737 6.602206 1910
## set of 0 rules
## lhs rhs support confidence lift itemset
## [1] {Blueberry Whole Milk Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001363675 0.9411765 324.788927 9
## [2] {Lime Sparkling Water,
## Pure Sparkling Water} => {Sparkling Water Grapefruit} 0.001448905 0.8095238 34.413561 426
## [3] {Blueberry Whole Milk Yogurt Pouch,
## Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} => {Yotoddler Organic Pear Spinach Mango Yogurt} 0.001363675 0.8000000 335.228571 9
## [4] {Organic Baby Spinach,
## Organic Hass Avocado,
## Organic Raspberries} => {Bag of Organic Bananas} 0.001278445 0.7894737 6.602206 1910
## [5] {Pure Sparkling Water,
## Sparkling Lemon Water} => {Sparkling Water Grapefruit} 0.001107986 0.7647059 32.508312 412
## [6] {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch,
## Yotoddler Organic Pear Spinach Mango Yogurt} => {Blueberry Whole Milk Yogurt Pouch} 0.001363675 0.7619048 319.265306 9
## [7] {Total 2% Lowfat Greek Strained Yogurt With Blueberry,
## Total 2% Lowfat Greek Strained Yogurt with Peach} => {Total 2% with Strawberry Lowfat Greek Strained Yogurt} 0.001363675 0.7619048 76.405372 135
## [8] {Yotoddler Organic Pear Spinach Mango Yogurt} => {Organic Whole Milk Strawberry Beet Berry Yogurt Pouch} 0.001789824 0.7500000 258.816176 13
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.000e+00 0.000e+00 0.000e+00 4.139e-12 0.000e+00 3.312e-11
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 0.4001 0.4281 0.5580 0.5541 0.6843 0.7059