#R Markdown
Content - This dataset contains details of more than 9000 viewers watching TV shows. Each rows represent the TV shows they have watched together.
Inspiration - The dataset was heavily inspired from the famous groceries dataset which is used to learn association rule learning.
In this dataset there are 32 columns and 9589 rows. It means that at least one person watched 32 different movies together. Totally we have data for 9589 viewers.
#Firstly, let's download a required package.
library(arules)
## Loading required package: Matrix
##
## Attaching package: 'arules'
## The following objects are masked from 'package:base':
##
## abbreviate, write
Here we create a sparse matrix suitable for transactional data.
## Warning in asMethod(object): removing duplicated items in transactions
Let’s inspect the dataset now. As we can see from the results, the most frequents movies watched are Sex Education (2477 times), Ozark(1877), Two and a half men(1779), Outer Banks(1696), Atypical(1356). In the sizes section we can see that how many movies people watched totally. At least one person watched 32 movies.
summary(tvshows)
## transactions as itemMatrix in sparse format with
## 9690 rows (elements/itemsets/transactions) and
## 156 columns (items) and a density of 0.02827194
##
## most frequent items:
## Sex Education Ozark Two and a half men Outer Banks
## 2477 1877 1779 1696
## Atypical (Other)
## 1356 33552
##
## element (itemset/transaction) length distribution:
## sizes
## 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
## 2133 1611 1281 989 842 637 536 433 343 242 185 112 76 75 54 47
## 17 18 19 20 21 22 23 24 26 27 28 29 32
## 30 12 14 10 11 3 6 1 1 1 3 1 1
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 1.00 2.00 3.00 4.41 6.00 32.00
##
## includes extended item information - examples:
## labels
## 1 12 Monkeys
## 2 24
## 3 Absentia
length(tvshows)
## [1] 9690
Here we see some simple statistics about relative frequency of all movies. Movie names are showed with alphabetical order. In first, we see 12 Monkeys. The frequency of 12 Monkeys is 0.0586171311. Again we see that Sex Education is watched more frequently than others (0.2556243550).
itemFrequency(tvshows, type="relative")
## 12 Monkeys 24
## 0.0586171311 0.0043343653
## Absentia Alice in Borderland
## 0.0770897833 0.0247678019
## Altered Carbon American Gods
## 0.0033023736 0.0025799794
## Another Life Archer
## 0.0022703818 0.0577915377
## Arrow Atypical
## 0.0261093911 0.1399380805
## Banshee Berlin Station
## 0.0381836945 0.0555211558
## Better Call Saul Big Little Lies
## 0.0128998968 0.0326109391
## Billions Black Clover
## 0.0030959752 0.0145510836
## Bojack Horseman Breaking Bad
## 0.0050567595 0.0167182663
## Brooklyn Nine Nine Chernobyl
## 0.0272445820 0.0522187822
## Cobra Kai Constantine
## 0.0830753354 0.0371517028
## Daredevil Dark
## 0.0939112487 0.0891640867
## Death Note Deception
## 0.0016511868 0.0482972136
## Demon Slayer Designated Survivor
## 0.0754385965 0.0306501548
## Dexter Doctor Who
## 0.0075335397 0.0282765738
## Dr Stone Dr. House
## 0.0084623323 0.0635706914
## Elementary Elite
## 0.0065015480 0.0040247678
## Emily in Paris Euphoria
## 0.0259029928 0.0009287926
## Family Guy Friends
## 0.0715170279 0.0056759546
## Fringe Game of thrones
## 0.0081527348 0.0173374613
## Goliath Good Omens
## 0.0059855521 0.0006191950
## Gotham Grey's Anatomy
## 0.0092879257 0.0172342621
## Grimm Hanna
## 0.0015479876 0.0591331269
## Haven Heros
## 0.0132094943 0.0013415893
## His Dark Materials Homeland
## 0.0004127967 0.0070175439
## House of Cards How I met your mother
## 0.0147574819 0.0803921569
## How to get away with murder Hunters
## 0.0380804954 0.0106295150
## Inhumans Inside Job
## 0.0050567595 0.0050567595
## Into the night Invincible
## 0.0082559340 0.0049535604
## Iron Fist Jack Ryan
## 0.0004127967 0.0537667699
## Kingdom Locke & Key
## 0.0650154799 0.0266253870
## Loki Lost
## 0.0031991744 0.0333333333
## Lost in Space Love Death Robots
## 0.0178534572 0.0026831785
## Lucifer Lupin
## 0.0979360165 0.0179566563
## Madmen Mare of Easttown
## 0.0112487100 0.0285861713
## Mindhunter Mirzapur
## 0.0091847265 0.0070175439
## Modern Family Mr. Robot
## 0.0034055728 0.1093911249
## Narcos Naruto
## 0.0033023736 0.0028895769
## Nine Perfect Strangers One Piece
## 0.0085655315 0.0578947368
## Only Murders in the building Orphan Black
## 0.0281733746 0.0055727554
## Outer Banks Outlander
## 0.1750257998 0.0090815273
## Ozark Peaky Blinders
## 0.1937048504 0.0175438596
## Perception Person of Interest
## 0.0192982456 0.0160990712
## Preacher Prison Break
## 0.0396284830 0.0102167183
## Punisher Queen of the South
## 0.0178534572 0.0526315789
## Ragnarok Rick And Morty
## 0.0140350877 0.0332301342
## Riverdale Rome
## 0.0040247678 0.0188854489
## Sacred Games Schitts Creek
## 0.0057791538 0.0035087719
## Sense 8 Sex Education
## 0.0103199174 0.2556243550
## Shadow and Bone Sherlock
## 0.0498452012 0.0062951496
## Shooter Sneaky Pete
## 0.0108359133 0.0008255934
## Sons of Anarchy Sopranos
## 0.0043343653 0.0120743034
## South Park Space Force
## 0.0010319917 0.0022703818
## Spartacus Squid Game
## 0.0389060888 0.0030959752
## Startup Stranger Things
## 0.0084623323 0.1104231166
## Succession Suits
## 0.0313725490 0.0073271414
## Supergirl Supernatural
## 0.0116615067 0.0019607843
## Teen Wolf The 100
## 0.0007223942 0.0111455108
## The Alienist The Big Bang Theory
## 0.0209494324 0.0069143447
## The Blacklist The Boys
## 0.1048503612 0.0223942208
## The Expanse The Flash
## 0.0105263158 0.0241486068
## The Good Doctor The Handmaid's Tale
## 0.0056759546 0.0027863777
## The Innocent The IT Crowd
## 0.0108359133 0.0113519092
## The man in the high castle The Mentalist
## 0.0084623323 0.0725490196
## The Nevers The Newsroom
## 0.0054695562 0.0078431373
## The Night Manager The Office
## 0.0300309598 0.0024767802
## The Originals The Outsider
## 0.0012383901 0.0250773994
## The Queen's Gambit The Stranger
## 0.0053663571 0.0430340557
## The Tick The Umbrella Academy
## 0.0176470588 0.0094943240
## The Vampire Diaries The Walking Dead
## 0.0052631579 0.0886480908
## The Wheel of Time The White Lotus
## 0.0058823529 0.0060887513
## The Wilds The Wire
## 0.0028895769 0.0657378741
## The Witcher Travellers
## 0.0231166151 0.0280701754
## True Detective Two and a half men
## 0.0092879257 0.1835913313
## Upload Vikings
## 0.0106295150 0.0337461300
## Watchmen Westworld
## 0.0015479876 0.0045407637
## White Collar X-Files
## 0.0327141383 0.0066047472
## You Young Sheldon
## 0.0036119711 0.0011351909
And here we see simple statistics about absolute frequency of all movies. People watched 12 Monkeys for 568 times. And the most watched movie is Sex Education(2477).
itemFrequency(tvshows, type="absolute")
## 12 Monkeys 24
## 568 42
## Absentia Alice in Borderland
## 747 240
## Altered Carbon American Gods
## 32 25
## Another Life Archer
## 22 560
## Arrow Atypical
## 253 1356
## Banshee Berlin Station
## 370 538
## Better Call Saul Big Little Lies
## 125 316
## Billions Black Clover
## 30 141
## Bojack Horseman Breaking Bad
## 49 162
## Brooklyn Nine Nine Chernobyl
## 264 506
## Cobra Kai Constantine
## 805 360
## Daredevil Dark
## 910 864
## Death Note Deception
## 16 468
## Demon Slayer Designated Survivor
## 731 297
## Dexter Doctor Who
## 73 274
## Dr Stone Dr. House
## 82 616
## Elementary Elite
## 63 39
## Emily in Paris Euphoria
## 251 9
## Family Guy Friends
## 693 55
## Fringe Game of thrones
## 79 168
## Goliath Good Omens
## 58 6
## Gotham Grey's Anatomy
## 90 167
## Grimm Hanna
## 15 573
## Haven Heros
## 128 13
## His Dark Materials Homeland
## 4 68
## House of Cards How I met your mother
## 143 779
## How to get away with murder Hunters
## 369 103
## Inhumans Inside Job
## 49 49
## Into the night Invincible
## 80 48
## Iron Fist Jack Ryan
## 4 521
## Kingdom Locke & Key
## 630 258
## Loki Lost
## 31 323
## Lost in Space Love Death Robots
## 173 26
## Lucifer Lupin
## 949 174
## Madmen Mare of Easttown
## 109 277
## Mindhunter Mirzapur
## 89 68
## Modern Family Mr. Robot
## 33 1060
## Narcos Naruto
## 32 28
## Nine Perfect Strangers One Piece
## 83 561
## Only Murders in the building Orphan Black
## 273 54
## Outer Banks Outlander
## 1696 88
## Ozark Peaky Blinders
## 1877 170
## Perception Person of Interest
## 187 156
## Preacher Prison Break
## 384 99
## Punisher Queen of the South
## 173 510
## Ragnarok Rick And Morty
## 136 322
## Riverdale Rome
## 39 183
## Sacred Games Schitts Creek
## 56 34
## Sense 8 Sex Education
## 100 2477
## Shadow and Bone Sherlock
## 483 61
## Shooter Sneaky Pete
## 105 8
## Sons of Anarchy Sopranos
## 42 117
## South Park Space Force
## 10 22
## Spartacus Squid Game
## 377 30
## Startup Stranger Things
## 82 1070
## Succession Suits
## 304 71
## Supergirl Supernatural
## 113 19
## Teen Wolf The 100
## 7 108
## The Alienist The Big Bang Theory
## 203 67
## The Blacklist The Boys
## 1016 217
## The Expanse The Flash
## 102 234
## The Good Doctor The Handmaid's Tale
## 55 27
## The Innocent The IT Crowd
## 105 110
## The man in the high castle The Mentalist
## 82 703
## The Nevers The Newsroom
## 53 76
## The Night Manager The Office
## 291 24
## The Originals The Outsider
## 12 243
## The Queen's Gambit The Stranger
## 52 417
## The Tick The Umbrella Academy
## 171 92
## The Vampire Diaries The Walking Dead
## 51 859
## The Wheel of Time The White Lotus
## 57 59
## The Wilds The Wire
## 28 637
## The Witcher Travellers
## 224 272
## True Detective Two and a half men
## 90 1779
## Upload Vikings
## 103 327
## Watchmen Westworld
## 15 44
## White Collar X-Files
## 317 64
## You Young Sheldon
## 35 11
Let’s look at the contents of a sparse matrix.
inspect(tvshows[1:10])
## items
## [1] {12 Monkeys,
## Cobra Kai,
## Lupin,
## Sherlock}
## [2] {12 Monkeys,
## Big Little Lies,
## Chernobyl,
## Fringe,
## Game of thrones,
## House of Cards,
## Jack Ryan,
## Lost,
## The Alienist,
## The Flash,
## The Mentalist,
## Vikings}
## [3] {Dr. House,
## Kingdom,
## Sex Education,
## The Walking Dead}
## [4] {Constantine,
## Ozark,
## Preacher,
## Sex Education,
## The Tick,
## Vikings}
## [5] {Naruto}
## [6] {Sex Education}
## [7] {Locke & Key}
## [8] {Lupin}
## [9] {Fringe,
## How to get away with murder,
## Shooter}
## [10] {Better Call Saul,
## Peaky Blinders,
## Queen of the South}
Now we check the support level for the first five items in the tvshows data.
itemFrequency(tvshows[, 1:5])
## 12 Monkeys 24 Absentia Alice in Borderland
## 0.058617131 0.004334365 0.077089783 0.024767802
## Altered Carbon
## 0.003302374
The items in the sparse matrix are sorted in columns by alphabetical order
We set the minimum support at 10%. From the results, we can see again that Sex Education is watched more frequently, while Mr. Robot and The Blacklist are watched less frequently (0.1).
itemFrequencyPlot(tvshows, support = 0.1)
Let’s limit the plot to a specific number of items (e.g. 10 ones). Here we describe the frequency of the top 10 movies in descending order. Daredevil is the least watched movie here.
itemFrequencyPlot(tvshows, topN = 10)
Now we visualize the sparse matrix for the first 5 items.
image(tvshows[1:5])
Let’s look at random selection of 100 movies.
image(sample(tvshows, 100))
We need to find the association rules using the apriori algorithm.
Support at 0.6% (very low) and confidence at 25%, minimum length of a rule is 2 elements.
tvrules <- apriori(tvshows, parameter = list(support = 0.006, confidence = 0.25, minlen = 2))
## Apriori
##
## Parameter specification:
## confidence minval smax arem aval originalSupport maxtime support minlen
## 0.25 0.1 1 none FALSE TRUE 5 0.006 2
## maxlen target ext
## 10 rules TRUE
##
## Algorithmic control:
## filter tree heap memopt load sort verbose
## 0.1 TRUE TRUE FALSE TRUE 2 TRUE
##
## Absolute minimum support count: 58
##
## set item appearances ...[0 item(s)] done [0.00s].
## set transactions ...[156 item(s), 9690 transaction(s)] done [0.00s].
## sorting and recoding items ... [108 item(s)] done [0.00s].
## creating transaction tree ... done [0.00s].
## checking subsets of size 1 2 3 4 done [0.00s].
## writing ... [484 rule(s)] done [0.00s].
## creating S4 object ... done [0.00s].
summary(tvrules)
## set of 484 rules
##
## rule length distribution (lhs + rhs):sizes
## 2 3 4
## 150 314 20
##
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 2.000 2.000 3.000 2.731 3.000 4.000
##
## summary of quality measures:
## support confidence coverage lift
## Min. :0.006089 Min. :0.2500 Min. :0.01011 Min. :0.9884
## 1st Qu.:0.007018 1st Qu.:0.2979 1st Qu.:0.01824 1st Qu.:1.6482
## Median :0.008617 Median :0.3571 Median :0.02472 Median :1.9406
## Mean :0.011446 Mean :0.3797 Mean :0.03228 Mean :2.0416
## 3rd Qu.:0.012384 3rd Qu.:0.4518 3rd Qu.:0.03457 3rd Qu.:2.3609
## Max. :0.075129 Max. :0.6600 Max. :0.25562 Max. :3.9262
## count
## Min. : 59.0
## 1st Qu.: 68.0
## Median : 83.5
## Mean :110.9
## 3rd Qu.:120.0
## Max. :728.0
##
## mining info:
## data ntransactions support confidence
## tvshows 9690 0.006 0.25
## call
## apriori(data = tvshows, parameter = list(support = 0.006, confidence = 0.25, minlen = 2))
We look at specific rules.
inspect(tvrules[1:10])
## lhs rhs support confidence coverage
## [1] {The Tick} => {Ozark} 0.006088751 0.3450292 0.01764706
## [2] {Peaky Blinders} => {Sex Education} 0.007017544 0.4000000 0.01754386
## [3] {House of Cards} => {Sex Education} 0.006191950 0.4195804 0.01475748
## [4] {Person of Interest} => {Mr. Robot} 0.006914345 0.4294872 0.01609907
## [5] {Person of Interest} => {Ozark} 0.007739938 0.4807692 0.01609907
## [6] {Person of Interest} => {Sex Education} 0.007843137 0.4871795 0.01609907
## [7] {Breaking Bad} => {Sex Education} 0.007120743 0.4259259 0.01671827
## [8] {Lupin} => {Sex Education} 0.007223942 0.4022989 0.01795666
## [9] {Emily in Paris} => {Sex Education} 0.006604747 0.2549801 0.02590299
## [10] {Perception} => {Ozark} 0.006398349 0.3315508 0.01929825
## lift count
## [1] 1.7812112 59
## [2] 1.5647961 68
## [3] 1.6413945 60
## [4] 3.9261611 67
## [5] 2.4819680 75
## [6] 1.9058414 76
## [7] 1.6662181 69
## [8] 1.5737892 70
## [9] 0.9974796 64
## [10] 1.7116288 62
We reorder the rules so that we are able to inspect the most meaningful ones. We inspect tvrules by lift.
inspect(sort(tvrules, by = "lift")[1:5])
## lhs rhs support
## [1] {Person of Interest} => {Mr. Robot} 0.006914345
## [2] {Rick And Morty} => {Family Guy} 0.009184727
## [3] {Ozark, Sex Education, The Blacklist} => {Mr. Robot} 0.007120743
## [4] {Ozark, Queen of the South} => {Mr. Robot} 0.008049536
## [5] {Ozark, The Blacklist} => {Demon Slayer} 0.009597523
## confidence coverage lift count
## [1] 0.4294872 0.01609907 3.926161 67
## [2] 0.2763975 0.03323013 3.864779 89
## [3] 0.4131737 0.01723426 3.777031 69
## [4] 0.4041451 0.01991744 3.694496 78
## [5] 0.2680115 0.03581011 3.552711 93
Here we inspect tvrules by confidence.
inspect(sort(tvrules, by = "confidence")[1:5])
## lhs rhs support confidence
## [1] {Berlin Station, Family Guy} => {Sex Education} 0.006811146 0.6600000
## [2] {Berlin Station, Mr. Robot} => {Sex Education} 0.008255934 0.6451613
## [3] {Atypical, Berlin Station} => {Sex Education} 0.009391125 0.6408451
## [4] {Jack Ryan, The Blacklist} => {Sex Education} 0.006501548 0.6300000
## [5] {Berlin Station, The Blacklist} => {Sex Education} 0.006295150 0.6224490
## coverage lift count
## [1] 0.01031992 2.581914 66
## [2] 0.01279670 2.523865 80
## [3] 0.01465428 2.506980 91
## [4] 0.01031992 2.464554 63
## [5] 0.01011352 2.435014 61
Here we inspect tvrules by support.
inspect(sort(tvrules, by = "support")[1:5])
## lhs rhs support confidence coverage
## [1] {Ozark} => {Sex Education} 0.07512900 0.3878530 0.1937049
## [2] {Sex Education} => {Ozark} 0.07512900 0.2939039 0.2556244
## [3] {Two and a half men} => {Sex Education} 0.05655315 0.3080382 0.1835913
## [4] {Atypical} => {Sex Education} 0.05614035 0.4011799 0.1399381
## [5] {Mr. Robot} => {Sex Education} 0.04891641 0.4471698 0.1093911
## lift count
## [1] 1.517277 728
## [2] 1.517277 728
## [3] 1.205043 548
## [4] 1.569412 544
## [5] 1.749324 474
Finally, here we inspect tvrules by count.
inspect(sort(tvrules, by = "count")[1:5])
## lhs rhs support confidence coverage
## [1] {Ozark} => {Sex Education} 0.07512900 0.3878530 0.1937049
## [2] {Sex Education} => {Ozark} 0.07512900 0.2939039 0.2556244
## [3] {Two and a half men} => {Sex Education} 0.05655315 0.3080382 0.1835913
## [4] {Atypical} => {Sex Education} 0.05614035 0.4011799 0.1399381
## [5] {Mr. Robot} => {Sex Education} 0.04891641 0.4471698 0.1093911
## lift count
## [1] 1.517277 728
## [2] 1.517277 728
## [3] 1.205043 548
## [4] 1.569412 544
## [5] 1.749324 474
Let’s analyze data specifically. What drives people to watch Mr. Robot? We can see from the results that people who watched the movies in lhs section decides to watch also Mr. Robot. From the lists we mostly see the name of Ozark. We can conclude that people who watched Ozark are most likely going to watch Mr. Robot.
rules.mrrobot<-apriori(data=tvshows, parameter=list(supp=0.01,conf = 0.005),
appearance=list(default="lhs", rhs="Mr. Robot"), control=list(verbose=F))
rules.mrrobot.byconf<-sort(rules.mrrobot, by="confidence", decreasing=TRUE)
inspect(head(rules.mrrobot.byconf))
## lhs rhs support confidence coverage
## [1] {Cobra Kai, Ozark} => {Mr. Robot} 0.01042312 0.3607143 0.02889577
## [2] {Ozark, The Blacklist} => {Mr. Robot} 0.01248710 0.3487032 0.03581011
## [3] {Queen of the South} => {Mr. Robot} 0.01733746 0.3294118 0.05263158
## [4] {Ozark, Sex Education} => {Mr. Robot} 0.02311662 0.3076923 0.07512900
## [5] {Atypical, Ozark} => {Mr. Robot} 0.01300310 0.2971698 0.04375645
## [6] {Ozark, Two and a half men} => {Mr. Robot} 0.01238390 0.2891566 0.04282766
## lift count
## [1] 3.297473 101
## [2] 3.187673 121
## [3] 3.011321 168
## [4] 2.812772 224
## [5] 2.716581 126
## [6] 2.643328 120
On the opposite - what else will people watch if they watched Mr. Robot? We see that after watching Mr. Robot, people are going to watch the list of movies in rhs section. We mostly see the name of Sex Education and Ozark. In conclusion, we can say that after watching Mr. Robot, people are most likely going to watch Sex Education or Ozark.
rules.mrrobotopp<-apriori(data=tvshows, parameter=list(supp=0.01,conf = 0.005),
appearance=list(default="rhs", lhs="Mr. Robot"), control=list(verbose=F))
rules.mrrobotopp.byconf<-sort(rules.mrrobotopp, by="confidence", decreasing=TRUE)
inspect(head(rules.mrrobotopp.byconf))
## lhs rhs support confidence coverage
## [1] {Mr. Robot} => {Sex Education} 0.04891641 0.4471698 0.1093911
## [2] {Mr. Robot} => {Ozark} 0.04757482 0.4349057 0.1093911
## [3] {} => {Sex Education} 0.25562436 0.2556244 1.0000000
## [4] {Mr. Robot} => {Atypical} 0.02590299 0.2367925 0.1093911
## [5] {Mr. Robot} => {Two and a half men} 0.02456140 0.2245283 0.1093911
## [6] {} => {Ozark} 0.19370485 0.1937049 1.0000000
## lift count
## [1] 1.749324 474
## [2] 2.245198 461
## [3] 1.000000 2477
## [4] 1.692123 251
## [5] 1.222979 238
## [6] 1.000000 1877
Let’s look at a specific show. I chose Ozark to analyze.
ozarkrules <- subset(tvrules, items %in% "Ozark")
inspect(head(ozarkrules))
## lhs rhs support confidence coverage lift
## [1] {The Tick} => {Ozark} 0.006088751 0.3450292 0.01764706 1.781211
## [2] {Person of Interest} => {Ozark} 0.007739938 0.4807692 0.01609907 2.481968
## [3] {Perception} => {Ozark} 0.006398349 0.3315508 0.01929825 1.711629
## [4] {Lost in Space} => {Ozark} 0.006398349 0.3583815 0.01785346 1.850142
## [5] {Game of thrones} => {Ozark} 0.006191950 0.3571429 0.01733746 1.843748
## [6] {Punisher} => {Ozark} 0.007430341 0.4161850 0.01785346 2.148552
## count
## [1] 59
## [2] 75
## [3] 62
## [4] 62
## [5] 60
## [6] 72
Now we can look at some plots of our results. In the first plot, we see the absolute frequency of movies in descending order.
library(arulesViz)
## Warning in register(): Can't find generic `scale_type` in package ggplot2 to
## register S3 method.
itemFrequencyPlot(tvshows, topN=10, type="absolute", main="Movie Frequency")
Secondly, we see the relative frequency of movies in descending order.
itemFrequencyPlot(tvshows, topN=10, type="relative", main="Movie Frequency")
Let’s look at the scatter plot of tvrules. We see that mostly if the confidence ans support is lower, then the list is higher in those movies.
plot(tvrules)
## To reduce overplotting, jitter is added! Use jitter = 0 to prevent jitter.
plot(rules.mrrobot)
plot(tvrules, method="matrix", measure="lift")
## Itemsets in Antecedent (LHS)
## [1] "{Ozark,Sex Education,The Blacklist}"
## [2] "{Mr. Robot,Sex Education,The Blacklist}"
## [3] "{Ozark,The Blacklist}"
## [4] "{Sex Education,Succession}"
## [5] "{Family Guy,The Blacklist}"
## [6] "{Atypical,Mr. Robot,Sex Education}"
## [7] "{Ozark,Sex Education,Two and a half men}"
## [8] "{Person of Interest}"
## [9] "{Ozark,Queen of the South}"
## [10] "{Mr. Robot,The Blacklist}"
## [11] "{How I met your mother,Mr. Robot}"
## [12] "{Ozark,The Mentalist}"
## [13] "{Atypical,Ozark,Sex Education}"
## [14] "{Demon Slayer,Ozark}"
## [15] "{Deception,Ozark}"
## [16] "{Lucifer,Mr. Robot}"
## [17] "{Atypical,Demon Slayer}"
## [18] "{Lucifer,Two and a half men}"
## [19] "{Atypical,Sex Education,The Blacklist}"
## [20] "{Berlin Station,Family Guy}"
## [21] "{Dr. House,Ozark}"
## [22] "{Berlin Station,Mr. Robot}"
## [23] "{Atypical,Family Guy}"
## [24] "{Cobra Kai,Sex Education}"
## [25] "{Mr. Robot,Sex Education,Two and a half men}"
## [26] "{Cobra Kai,Mr. Robot}"
## [27] "{Berlin Station,Ozark}"
## [28] "{Preacher,Sex Education}"
## [29] "{Cobra Kai,Ozark}"
## [30] "{Demon Slayer,Sex Education}"
## [31] "{Family Guy,Mr. Robot}"
## [32] "{Queen of the South,Sex Education}"
## [33] "{Ozark,Sex Education}"
## [34] "{Dr. House,Mr. Robot}"
## [35] "{Family Guy,Sex Education}"
## [36] "{Mr. Robot,The Mentalist}"
## [37] "{Jack Ryan,The Blacklist}"
## [38] "{Demon Slayer,Mr. Robot}"
## [39] "{Sex Education,The Stranger}"
## [40] "{Deception,Sex Education}"
## [41] "{Berlin Station,Sex Education}"
## [42] "{Family Guy,Ozark}"
## [43] "{Berlin Station,The Blacklist}"
## [44] "{Deception,Mr. Robot}"
## [45] "{Atypical,Ozark,The Blacklist}"
## [46] "{Dr. House,The Blacklist}"
## [47] "{Atypical,Berlin Station}"
## [48] "{One Piece,Ozark}"
## [49] "{Jack Ryan,Ozark}"
## [50] "{Mr. Robot,The Wire}"
## [51] "{Jack Ryan,Sex Education}"
## [52] "{Atypical,Mr. Robot,Ozark}"
## [53] "{Atypical,Mr. Robot}"
## [54] "{Mr. Robot,One Piece}"
## [55] "{Rick And Morty}"
## [56] "{How I met your mother,Ozark}"
## [57] "{Sex Education,The Mentalist}"
## [58] "{Mr. Robot,Ozark,Sex Education}"
## [59] "{Mr. Robot,Two and a half men}"
## [60] "{Ozark,Vikings}"
## [61] "{Cobra Kai,Family Guy}"
## [62] "{Family Guy,Two and a half men}"
## [63] "{Mr. Robot,Ozark,The Blacklist}"
## [64] "{Jack Ryan,Mr. Robot}"
## [65] "{Succession}"
## [66] "{One Piece,Sex Education}"
## [67] "{Atypical,Ozark}"
## [68] "{Lost,Sex Education}"
## [69] "{Dr. House,Sex Education}"
## [70] "{Daredevil,Mr. Robot}"
## [71] "{Sex Education,The Blacklist}"
## [72] "{Atypical,The Wire}"
## [73] "{Atypical,Cobra Kai}"
## [74] "{One Piece,Two and a half men}"
## [75] "{Alice in Borderland}"
## [76] "{Atypical,Sex Education}"
## [77] "{Grey's Anatomy}"
## [78] "{Atypical,The Mentalist}"
## [79] "{Atypical,Hanna}"
## [80] "{Sex Education,Vikings}"
## [81] "{Daredevil,Lucifer}"
## [82] "{Cobra Kai,The Blacklist}"
## [83] "{Ozark,Stranger Things}"
## [84] "{Atypical,Preacher}"
## [85] "{12 Monkeys,Two and a half men}"
## [86] "{The Blacklist,The Mentalist}"
## [87] "{Mr. Robot,Queen of the South}"
## [88] "{Punisher}"
## [89] "{Atypical,Dr. House}"
## [90] "{Atypical,The Blacklist}"
## [91] "{Demon Slayer,The Blacklist}"
## [92] "{Ozark,The Wire}"
## [93] "{Stranger Things,The Blacklist}"
## [94] "{Ozark,Two and a half men}"
## [95] "{Mr. Robot,Stranger Things}"
## [96] "{Sex Education,The Wire}"
## [97] "{Atypical,Jack Ryan}"
## [98] "{Atypical,Ozark,Two and a half men}"
## [99] "{Daredevil,The Blacklist}"
## [100] "{Chernobyl,Sex Education}"
## [101] "{The Stranger}"
## [102] "{The Blacklist,The Walking Dead}"
## [103] "{Hanna,Sex Education}"
## [104] "{Atypical,Stranger Things}"
## [105] "{Outer Banks,Two and a half men}"
## [106] "{Mr. Robot}"
## [107] "{Mr. Robot,Sex Education}"
## [108] "{The Boys}"
## [109] "{Atypical,Sex Education,Two and a half men}"
## [110] "{Queen of the South}"
## [111] "{Mr. Robot,Ozark,Two and a half men}"
## [112] "{Atypical,The Walking Dead}"
## [113] "{Demon Slayer}"
## [114] "{Queen of the South,Two and a half men}"
## [115] "{The Blacklist,Two and a half men}"
## [116] "{Mr. Robot,Outer Banks}"
## [117] "{Family Guy}"
## [118] "{Daredevil,Sex Education}"
## [119] "{Jack Ryan}"
## [120] "{Kingdom,Sex Education}"
## [121] "{Kingdom,Ozark}"
## [122] "{Dark,Sex Education}"
## [123] "{12 Monkeys,Sex Education}"
## [124] "{Lucifer,Ozark}"
## [125] "{Mr. Robot,Ozark}"
## [126] "{Atypical,Chernobyl}"
## [127] "{Atypical,Kingdom}"
## [128] "{12 Monkeys,Atypical}"
## [129] "{Ozark,Preacher}"
## [130] "{Berlin Station,Two and a half men}"
## [131] "{The Wire,Two and a half men}"
## [132] "{Atypical,Deception}"
## [133] "{Berlin Station}"
## [134] "{Preacher}"
## [135] "{Chernobyl,Ozark}"
## [136] "{Daredevil,Ozark}"
## [137] "{Atypical,Two and a half men}"
## [138] "{Game of thrones}"
## [139] "{Atypical,Daredevil}"
## [140] "{Outer Banks,Ozark}"
## [141] "{Archer,Ozark}"
## [142] "{Outer Banks,The Blacklist}"
## [143] "{12 Monkeys,Ozark}"
## [144] "{Ozark,The Walking Dead}"
## [145] "{Dr. House}"
## [146] "{Ozark,The Stranger}"
## [147] "{Outer Banks,Sex Education}"
## [148] "{The Flash}"
## [149] "{Ozark,Succession}"
## [150] "{Sex Education,Two and a half men}"
## [151] "{Deception}"
## [152] "{Hanna,Ozark}"
## [153] "{Atypical,Outer Banks}"
## [154] "{Dark,Ozark}"
## [155] "{The Blacklist}"
## [156] "{Travellers}"
## [157] "{Lost,Ozark}"
## [158] "{The Tick}"
## [159] "{Demon Slayer,Two and a half men}"
## [160] "{Lost}"
## [161] "{Perception}"
## [162] "{Archer,Sex Education}"
## [163] "{One Piece}"
## [164] "{Lost in Space}"
## [165] "{Arrow}"
## [166] "{Only Murders in the building}"
## [167] "{Cobra Kai}"
## [168] "{Cobra Kai,Two and a half men}"
## [169] "{Vikings}"
## [170] "{Stranger Things,Two and a half men}"
## [171] "{Sex Education,The Walking Dead}"
## [172] "{Dr. House,Two and a half men}"
## [173] "{Sex Education,Stranger Things}"
## [174] "{The Wire}"
## [175] "{Atypical,How I met your mother}"
## [176] "{Breaking Bad}"
## [177] "{Dark,Two and a half men}"
## [178] "{House of Cards}"
## [179] "{Constantine}"
## [180] "{The Witcher}"
## [181] "{Lucifer,Sex Education}"
## [182] "{Atypical}"
## [183] "{Daredevil,Outer Banks}"
## [184] "{12 Monkeys}"
## [185] "{Lupin}"
## [186] "{The Mentalist}"
## [187] "{Peaky Blinders}"
## [188] "{The Walking Dead,Two and a half men}"
## [189] "{Dark,Stranger Things}"
## [190] "{How I met your mother,Sex Education}"
## [191] "{Outer Banks,The Walking Dead}"
## [192] "{Big Little Lies}"
## [193] "{Hanna}"
## [194] "{Sex Education}"
## [195] "{Ozark}"
## [196] "{Brooklyn Nine Nine}"
## [197] "{Kingdom}"
## [198] "{How I met your mother,Two and a half men}"
## [199] "{Daredevil,Two and a half men}"
## [200] "{Daredevil}"
## [201] "{Mare of Easttown}"
## [202] "{Locke & Key}"
## [203] "{Chernobyl}"
## [204] "{Lucifer}"
## [205] "{Banshee}"
## [206] "{Outer Banks,Stranger Things}"
## [207] "{Shadow and Bone}"
## [208] "{The Walking Dead}"
## [209] "{The Night Manager}"
## [210] "{Stranger Things}"
## [211] "{Doctor Who}"
## [212] "{How I met your mother}"
## [213] "{Spartacus}"
## [214] "{How to get away with murder}"
## [215] "{Outer Banks,The Mentalist}"
## [216] "{Archer}"
## [217] "{Lucifer,Outer Banks}"
## [218] "{Two and a half men}"
## [219] "{Designated Survivor}"
## [220] "{Dark}"
## [221] "{Emily in Paris}"
## Itemsets in Consequent (RHS)
## [1] "{Outer Banks}" "{Two and a half men}" "{Sex Education}"
## [4] "{Ozark}" "{Atypical}" "{Stranger Things}"
## [7] "{Mr. Robot}" "{The Blacklist}" "{Daredevil}"
## [10] "{Cobra Kai}" "{Demon Slayer}" "{Family Guy}"
plot(tvrules, measure=c("support","lift"), shading="confidence")
## To reduce overplotting, jitter is added! Use jitter = 0 to prevent jitter.
plot(tvrules, shading="order", control=list(main="Two-key plot"))
## To reduce overplotting, jitter is added! Use jitter = 0 to prevent jitter.
In this plot we see the lists of movies and their lift and support levels to see if people watch movies in rhs list after watching those movies.
plot(tvrules, method="grouped")
In this plot we see the lists of movies and their lift and support levels to see if people watch Mr. Robot after watching those movies.
plot(rules.mrrobot, method="grouped")
Here is another type of plot for tvrules data.
plot(tvrules, method="graph")
## Warning: Too many rules supplied. Only plotting the best 100 using
## 'lift' (change control parameter max if needed).
plot(rules.mrrobot, method="graph")
In this plot, we cleary can see that poeple after watching Sex Education mostly watch Ozark and then they watch Mr. Robot. In the secodn place, we see that people fter watching Jack Ryan, watch Ozark and then watch Mr. Robot. Let’s look at the least amount. People after watching Queen of the South, are watching Ozark more than Sex Education and then they watch Mr. Robot.
plot(rules.mrrobot, method="paracoord", control=list(reorder=TRUE))
Now let’s use the ECLAT algorithm.
freq.items<-eclat(tvshows, parameter=list(supp=0.006, maxlen=15))
## Eclat
##
## parameter specification:
## tidLists support minlen maxlen target ext
## FALSE 0.006 1 15 frequent itemsets TRUE
##
## algorithmic control:
## sparse sort verbose
## 7 -2 TRUE
##
## Absolute minimum support count: 58
##
## create itemset ...
## set transactions ...[156 item(s), 9690 transaction(s)] done [0.00s].
## sorting and recoding items ... [108 item(s)] done [0.00s].
## creating sparse bit matrix ... [108 row(s), 9690 column(s)] done [0.00s].
## writing ... [777 set(s)] done [0.01s].
## Creating S4 object ... done [0.00s].
inspect(freq.items)
## items support count
## [1] {Ozark,
## The Tick} 0.006088751 59
## [2] {Peaky Blinders,
## Sex Education} 0.007017544 68
## [3] {House of Cards,
## Sex Education} 0.006191950 60
## [4] {Person of Interest,
## Sex Education} 0.007843137 76
## [5] {Ozark,
## Person of Interest} 0.007739938 75
## [6] {Mr. Robot,
## Person of Interest} 0.006914345 67
## [7] {Breaking Bad,
## Sex Education} 0.007120743 69
## [8] {Lupin,
## Sex Education} 0.007223942 70
## [9] {Emily in Paris,
## Sex Education} 0.006604747 64
## [10] {Outer Banks,
## The Outsider} 0.006088751 59
## [11] {Perception,
## Sex Education} 0.008978328 87
## [12] {Ozark,
## Perception} 0.006398349 62
## [13] {Lost in Space,
## Sex Education} 0.007223942 70
## [14] {Lost in Space,
## Ozark} 0.006398349 62
## [15] {Game of thrones,
## Sex Education} 0.008255934 80
## [16] {Game of thrones,
## Ozark} 0.006191950 60
## [17] {Punisher,
## Sex Education} 0.009391125 91
## [18] {Ozark,
## Punisher} 0.007430341 72
## [19] {Grey's Anatomy,
## Sex Education} 0.007636739 74
## [20] {Grey's Anatomy,
## Ozark} 0.007223942 70
## [21] {Atypical,
## Grey's Anatomy} 0.006088751 59
## [22] {Brooklyn Nine Nine,
## Sex Education} 0.006604747 64
## [23] {Brooklyn Nine Nine,
## Outer Banks} 0.007223942 70
## [24] {Mare of Easttown,
## Sex Education} 0.007017544 68
## [25] {Mare of Easttown,
## Outer Banks} 0.007430341 72
## [26] {Sex Education,
## The Boys} 0.007430341 72
## [27] {Ozark,
## The Boys} 0.009081527 88
## [28] {The Blacklist,
## The Boys} 0.006088751 59
## [29] {Sex Education,
## The Witcher} 0.008668731 84
## [30] {Ozark,
## The Witcher} 0.006604747 64
## [31] {Atypical,
## The Witcher} 0.006088751 59
## [32] {Designated Survivor,
## Sex Education} 0.008049536 78
## [33] {Designated Survivor,
## Ozark} 0.006191950 60
## [34] {Designated Survivor,
## Outer Banks} 0.006398349 62
## [35] {Locke & Key,
## Sex Education} 0.008565531 83
## [36] {Locke & Key,
## Ozark} 0.008771930 85
## [37] {Doctor Who,
## Sex Education} 0.009803922 95
## [38] {Doctor Who,
## Ozark} 0.007327141 71
## [39] {Atypical,
## Doctor Who} 0.006295150 61
## [40] {Doctor Who,
## Outer Banks} 0.006191950 60
## [41] {Sex Education,
## The Flash} 0.009803922 95
## [42] {Ozark,
## The Flash} 0.009391125 91
## [43] {Atypical,
## The Flash} 0.006398349 62
## [44] {Sex Education,
## The Night Manager} 0.008359133 81
## [45] {Ozark,
## The Night Manager} 0.006914345 67
## [46] {The Night Manager,
## Two and a half men} 0.007120743 69
## [47] {Outer Banks,
## The Night Manager} 0.008771930 85
## [48] {Sex Education,
## Travellers} 0.011558308 112
## [49] {Ozark,
## Travellers} 0.010319917 100
## [50] {Travellers,
## Two and a half men} 0.007636739 74
## [51] {Atypical,
## Travellers} 0.008462332 82
## [52] {Arrow,
## Sex Education} 0.011661507 113
## [53] {Arrow,
## Ozark} 0.009184727 89
## [54] {Arrow,
## Two and a half men} 0.007017544 68
## [55] {Arrow,
## Atypical} 0.006707946 65
## [56] {Alice in Borderland,
## Sex Education} 0.010835913 105
## [57] {Alice in Borderland,
## Ozark} 0.009081527 88
## [58] {Alice in Borderland,
## Two and a half men} 0.007739938 75
## [59] {Alice in Borderland,
## Atypical} 0.008152735 79
## [60] {Alice in Borderland,
## Daredevil} 0.007120743 69
## [61] {Ozark,
## White Collar} 0.007946336 77
## [62] {Two and a half men,
## White Collar} 0.006191950 60
## [63] {Atypical,
## White Collar} 0.007327141 71
## [64] {Outer Banks,
## White Collar} 0.007636739 74
## [65] {Stranger Things,
## White Collar} 0.007223942 70
## [66] {Only Murders in the building,
## Sex Education} 0.011455108 111
## [67] {Only Murders in the building,
## Ozark} 0.010010320 97
## [68] {Mr. Robot,
## Only Murders in the building} 0.007017544 68
## [69] {Rick And Morty,
## Sex Education} 0.011867905 115
## [70] {Ozark,
## Rick And Morty} 0.010423117 101
## [71] {Rick And Morty,
## Two and a half men} 0.006707946 65
## [72] {Atypical,
## Rick And Morty} 0.010629515 103
## [73] {Outer Banks,
## Rick And Morty} 0.007430341 72
## [74] {Mr. Robot,
## Rick And Morty} 0.006604747 64
## [75] {Rick And Morty,
## The Blacklist} 0.006811146 66
## [76] {Family Guy,
## Rick And Morty} 0.009184727 89
## [77] {Ozark,
## Sex Education,
## Succession} 0.006707946 65
## [78] {Sex Education,
## Succession} 0.012280702 119
## [79] {Ozark,
## Succession} 0.014344685 139
## [80] {Succession,
## Two and a half men} 0.006811146 66
## [81] {Atypical,
## Succession} 0.007327141 71
## [82] {Mr. Robot,
## Succession} 0.009597523 93
## [83] {Big Little Lies,
## Sex Education} 0.012796698 124
## [84] {Big Little Lies,
## Ozark} 0.009597523 93
## [85] {Atypical,
## Big Little Lies} 0.007223942 70
## [86] {Big Little Lies,
## Outer Banks} 0.007120743 69
## [87] {Big Little Lies,
## The Blacklist} 0.006707946 65
## [88] {Big Little Lies,
## Chernobyl} 0.006088751 59
## [89] {Lost,
## Ozark,
## Sex Education} 0.006398349 62
## [90] {Lost,
## Sex Education} 0.014860681 144
## [91] {Lost,
## Ozark} 0.014035088 136
## [92] {Lost,
## Two and a half men} 0.008668731 84
## [93] {Atypical,
## Lost} 0.006501548 63
## [94] {Lost,
## Mr. Robot} 0.006295150 61
## [95] {Ozark,
## Sex Education,
## Vikings} 0.006191950 60
## [96] {Sex Education,
## Vikings} 0.014963880 145
## [97] {Ozark,
## Vikings} 0.010732714 104
## [98] {Two and a half men,
## Vikings} 0.007120743 69
## [99] {Atypical,
## Vikings} 0.007017544 68
## [100] {Outer Banks,
## Vikings} 0.007327141 71
## [101] {Mr. Robot,
## Vikings} 0.006295150 61
## [102] {How to get away with murder,
## Sex Education} 0.011145511 108
## [103] {How to get away with murder,
## Ozark} 0.010732714 104
## [104] {Atypical,
## How to get away with murder} 0.006295150 61
## [105] {How to get away with murder,
## Outer Banks} 0.009494324 92
## [106] {How to get away with murder,
## Lucifer} 0.006088751 59
## [107] {How to get away with murder,
## The Mentalist} 0.006088751 59
## [108] {Constantine,
## Sex Education} 0.013828689 134
## [109] {Constantine,
## Ozark} 0.011558308 112
## [110] {Constantine,
## Two and a half men} 0.006811146 66
## [111] {Atypical,
## Constantine} 0.009907121 96
## [112] {Constantine,
## Outer Banks} 0.010010320 97
## [113] {Constantine,
## The Blacklist} 0.006295150 61
## [114] {Constantine,
## Lucifer} 0.006191950 60
## [115] {Sex Education,
## Spartacus} 0.012899897 125
## [116] {Ozark,
## Spartacus} 0.010113519 98
## [117] {Spartacus,
## Two and a half men} 0.009287926 90
## [118] {Atypical,
## Spartacus} 0.007636739 74
## [119] {Outer Banks,
## Spartacus} 0.009700722 94
## [120] {Mr. Robot,
## Spartacus} 0.006707946 65
## [121] {Spartacus,
## The Blacklist} 0.006191950 60
## [122] {Spartacus,
## The Walking Dead} 0.007017544 68
## [123] {Banshee,
## Sex Education} 0.013828689 134
## [124] {Banshee,
## Ozark} 0.010629515 103
## [125] {Banshee,
## Two and a half men} 0.008152735 79
## [126] {Atypical,
## Banshee} 0.008978328 87
## [127] {Banshee,
## Outer Banks} 0.008152735 79
## [128] {Banshee,
## The Blacklist} 0.006604747 64
## [129] {Banshee,
## The Mentalist} 0.006398349 62
## [130] {Absentia,
## Sex Education} 0.008771930 85
## [131] {Absentia,
## Ozark} 0.009081527 88
## [132] {Absentia,
## Two and a half men} 0.011455108 111
## [133] {Absentia,
## Outer Banks} 0.013828689 134
## [134] {Absentia,
## Stranger Things} 0.007946336 77
## [135] {Absentia,
## Daredevil} 0.006191950 60
## [136] {Absentia,
## Lucifer} 0.011248710 109
## [137] {Atypical,
## Preacher,
## Sex Education} 0.006707946 65
## [138] {Ozark,
## Preacher,
## Sex Education} 0.006707946 65
## [139] {Preacher,
## Sex Education} 0.016511868 160
## [140] {Ozark,
## Preacher} 0.013622291 132
## [141] {Preacher,
## Two and a half men} 0.009803922 95
## [142] {Atypical,
## Preacher} 0.012383901 120
## [143] {Outer Banks,
## Preacher} 0.006914345 67
## [144] {Mr. Robot,
## Preacher} 0.007533540 73
## [145] {Preacher,
## The Blacklist} 0.007120743 69
## [146] {Demon Slayer,
## Preacher} 0.006088751 59
## [147] {Family Guy,
## Preacher} 0.006501548 63
## [148] {Ozark,
## Sex Education,
## The Stranger} 0.008462332 82
## [149] {Sex Education,
## The Stranger} 0.017750258 172
## [150] {Ozark,
## The Stranger} 0.018059856 175
## [151] {The Stranger,
## Two and a half men} 0.009597523 93
## [152] {Atypical,
## The Stranger} 0.008359133 81
## [153] {Outer Banks,
## The Stranger} 0.008255934 80
## [154] {Mr. Robot,
## The Stranger} 0.010939112 106
## [155] {The Blacklist,
## The Stranger} 0.006398349 62
## [156] {Cobra Kai,
## The Stranger} 0.006914345 67
## [157] {Family Guy,
## The Stranger} 0.007120743 69
## [158] {Dr. House,
## The Stranger} 0.006088751 59
## [159] {Deception,
## The Stranger} 0.006811146 66
## [160] {Sex Education,
## Shadow and Bone} 0.016718266 162
## [161] {Ozark,
## Shadow and Bone} 0.012487100 121
## [162] {Shadow and Bone,
## Two and a half men} 0.011764706 114
## [163] {Atypical,
## Shadow and Bone} 0.009391125 91
## [164] {Outer Banks,
## Shadow and Bone} 0.013725490 133
## [165] {Mr. Robot,
## Shadow and Bone} 0.006398349 62
## [166] {Shadow and Bone,
## The Blacklist} 0.008255934 80
## [167] {Daredevil,
## Shadow and Bone} 0.006707946 65
## [168] {Lucifer,
## Shadow and Bone} 0.008152735 79
## [169] {Cobra Kai,
## Shadow and Bone} 0.006501548 63
## [170] {Shadow and Bone,
## The Walking Dead} 0.008152735 79
## [171] {Demon Slayer,
## Shadow and Bone} 0.006088751 59
## [172] {Shadow and Bone,
## The Mentalist} 0.006811146 66
## [173] {Berlin Station,
## Shadow and Bone} 0.006191950 60
## [174] {Archer,
## Ozark,
## Sex Education} 0.006191950 60
## [175] {Archer,
## Sex Education} 0.018472652 179
## [176] {Archer,
## Ozark} 0.013106295 127
## [177] {Archer,
## Two and a half men} 0.010939112 106
## [178] {Archer,
## Atypical} 0.009803922 95
## [179] {Archer,
## Outer Banks} 0.010010320 97
## [180] {Archer,
## Mr. Robot} 0.007223942 70
## [181] {Archer,
## The Blacklist} 0.007223942 70
## [182] {Archer,
## Stranger Things} 0.007223942 70
## [183] {Archer,
## Daredevil} 0.006914345 67
## [184] {Archer,
## Lucifer} 0.009184727 89
## [185] {Archer,
## Cobra Kai} 0.006501548 63
## [186] {Archer,
## The Walking Dead} 0.006914345 67
## [187] {Archer,
## Demon Slayer} 0.007017544 68
## [188] {Archer,
## Family Guy} 0.006088751 59
## [189] {Deception,
## Mr. Robot,
## Sex Education} 0.006295150 61
## [190] {Deception,
## Mr. Robot,
## Ozark} 0.006191950 60
## [191] {Atypical,
## Deception,
## Sex Education} 0.006191950 60
## [192] {Deception,
## Ozark,
## Sex Education} 0.009597523 93
## [193] {Deception,
## Sex Education} 0.020536636 199
## [194] {Deception,
## Ozark} 0.017750258 172
## [195] {Deception,
## Two and a half men} 0.010319917 100
## [196] {Atypical,
## Deception} 0.012590299 122
## [197] {Deception,
## Outer Banks} 0.008771930 85
## [198] {Deception,
## Mr. Robot} 0.011661507 113
## [199] {Deception,
## The Blacklist} 0.008771930 85
## [200] {Deception,
## Stranger Things} 0.006191950 60
## [201] {Daredevil,
## Deception} 0.006088751 59
## [202] {Cobra Kai,
## Deception} 0.006604747 64
## [203] {Deception,
## Demon Slayer} 0.007223942 70
## [204] {Deception,
## Family Guy} 0.007946336 77
## [205] {Deception,
## The Mentalist} 0.007946336 77
## [206] {Deception,
## One Piece} 0.006398349 62
## [207] {Mr. Robot,
## Queen of the South,
## Sex Education} 0.008049536 78
## [208] {Mr. Robot,
## Ozark,
## Queen of the South} 0.008049536 78
## [209] {Queen of the South,
## Sex Education,
## Two and a half men} 0.006914345 67
## [210] {Ozark,
## Queen of the South,
## Sex Education} 0.009287926 90
## [211] {Queen of the South,
## Sex Education} 0.021362229 207
## [212] {Ozark,
## Queen of the South} 0.019917441 193
## [213] {Queen of the South,
## Two and a half men} 0.013622291 132
## [214] {Atypical,
## Queen of the South} 0.011558308 112
## [215] {Outer Banks,
## Queen of the South} 0.008255934 80
## [216] {Mr. Robot,
## Queen of the South} 0.017337461 168
## [217] {Queen of the South,
## The Blacklist} 0.007739938 75
## [218] {Queen of the South,
## Stranger Things} 0.006191950 60
## [219] {Cobra Kai,
## Queen of the South} 0.008565531 83
## [220] {Queen of the South,
## The Walking Dead} 0.006398349 62
## [221] {Family Guy,
## Queen of the South} 0.006707946 65
## [222] {Dr. House,
## Queen of the South} 0.006088751 59
## [223] {How I met your mother,
## Queen of the South} 0.006501548 63
## [224] {12 Monkeys,
## Queen of the South} 0.006295150 61
## [225] {One Piece,
## Queen of the South} 0.007636739 74
## [226] {Atypical,
## Chernobyl,
## Sex Education} 0.006191950 60
## [227] {Chernobyl,
## Ozark,
## Sex Education} 0.006914345 67
## [228] {Chernobyl,
## Sex Education} 0.019607843 190
## [229] {Chernobyl,
## Ozark} 0.014447884 140
## [230] {Chernobyl,
## Two and a half men} 0.011455108 111
## [231] {Atypical,
## Chernobyl} 0.012487100 121
## [232] {Chernobyl,
## Outer Banks} 0.012177503 118
## [233] {Chernobyl,
## Mr. Robot} 0.009907121 96
## [234] {Chernobyl,
## The Blacklist} 0.010010320 97
## [235] {Chernobyl,
## Stranger Things} 0.008462332 82
## [236] {Chernobyl,
## Daredevil} 0.006707946 65
## [237] {Chernobyl,
## Lucifer} 0.007120743 69
## [238] {Chernobyl,
## Cobra Kai} 0.007636739 74
## [239] {Chernobyl,
## The Walking Dead} 0.007017544 68
## [240] {Chernobyl,
## Demon Slayer} 0.006604747 64
## [241] {Chernobyl,
## Family Guy} 0.007223942 70
## [242] {Chernobyl,
## The Mentalist} 0.007017544 68
## [243] {Chernobyl,
## Dr. House} 0.006088751 59
## [244] {Chernobyl,
## How I met your mother} 0.006191950 60
## [245] {Jack Ryan,
## Sex Education,
## The Blacklist} 0.006501548 63
## [246] {Jack Ryan,
## Mr. Robot,
## Sex Education} 0.006295150 61
## [247] {Atypical,
## Jack Ryan,
## Sex Education} 0.010216718 99
## [248] {Atypical,
## Jack Ryan,
## Ozark} 0.006088751 59
## [249] {Jack Ryan,
## Ozark,
## Sex Education} 0.010010320 97
## [250] {Jack Ryan,
## Sex Education} 0.026418989 256
## [251] {Jack Ryan,
## Ozark} 0.017337461 168
## [252] {Jack Ryan,
## Two and a half men} 0.010113519 98
## [253] {Atypical,
## Jack Ryan} 0.017440660 169
## [254] {Jack Ryan,
## Outer Banks} 0.008152735 79
## [255] {Jack Ryan,
## Mr. Robot} 0.011042312 107
## [256] {Jack Ryan,
## The Blacklist} 0.010319917 100
## [257] {Jack Ryan,
## Stranger Things} 0.006088751 59
## [258] {Daredevil,
## Jack Ryan} 0.007739938 75
## [259] {Cobra Kai,
## Jack Ryan} 0.007223942 70
## [260] {Jack Ryan,
## The Walking Dead} 0.007636739 74
## [261] {Demon Slayer,
## Jack Ryan} 0.007946336 77
## [262] {Family Guy,
## Jack Ryan} 0.010629515 103
## [263] {Dr. House,
## Jack Ryan} 0.006604747 64
## [264] {Berlin Station,
## Jack Ryan} 0.006914345 67
## [265] {12 Monkeys,
## Jack Ryan} 0.006398349 62
## [266] {Mr. Robot,
## One Piece,
## Sex Education} 0.006811146 66
## [267] {Mr. Robot,
## One Piece,
## Ozark} 0.007017544 68
## [268] {One Piece,
## Sex Education,
## Two and a half men} 0.006191950 60
## [269] {One Piece,
## Ozark,
## Sex Education} 0.010216718 99
## [270] {One Piece,
## Sex Education} 0.022291022 216
## [271] {One Piece,
## Ozark} 0.021775026 211
## [272] {One Piece,
## Two and a half men} 0.011248710 109
## [273] {Atypical,
## One Piece} 0.009597523 93
## [274] {One Piece,
## Outer Banks} 0.011971104 116
## [275] {Mr. Robot,
## One Piece} 0.013519092 131
## [276] {One Piece,
## The Blacklist} 0.008462332 82
## [277] {One Piece,
## Stranger Things} 0.007120743 69
## [278] {Daredevil,
## One Piece} 0.006604747 64
## [279] {Lucifer,
## One Piece} 0.006501548 63
## [280] {Cobra Kai,
## One Piece} 0.006604747 64
## [281] {One Piece,
## The Walking Dead} 0.006398349 62
## [282] {Demon Slayer,
## One Piece} 0.006191950 60
## [283] {Family Guy,
## One Piece} 0.008255934 80
## [284] {One Piece,
## The Wire} 0.006398349 62
## [285] {How I met your mother,
## One Piece} 0.006707946 65
## [286] {12 Monkeys,
## One Piece} 0.006501548 63
## [287] {Atypical,
## Hanna,
## Sex Education} 0.006088751 59
## [288] {Hanna,
## Ozark,
## Sex Education} 0.007533540 73
## [289] {Hanna,
## Sex Education} 0.020433437 198
## [290] {Hanna,
## Ozark} 0.016305470 158
## [291] {Hanna,
## Two and a half men} 0.019401445 188
## [292] {Atypical,
## Hanna} 0.011145511 108
## [293] {Hanna,
## Outer Banks} 0.011455108 111
## [294] {Hanna,
## Mr. Robot} 0.010216718 99
## [295] {Hanna,
## The Blacklist} 0.009391125 91
## [296] {Hanna,
## Stranger Things} 0.007327141 71
## [297] {Daredevil,
## Hanna} 0.010216718 99
## [298] {Hanna,
## Lucifer} 0.008049536 78
## [299] {Cobra Kai,
## Hanna} 0.006501548 63
## [300] {Hanna,
## The Walking Dead} 0.008359133 81
## [301] {Demon Slayer,
## Hanna} 0.007327141 71
## [302] {Family Guy,
## Hanna} 0.006191950 60
## [303] {Dr. House,
## Hanna} 0.007017544 68
## [304] {Hanna,
## The Wire} 0.008255934 80
## [305] {12 Monkeys,
## Hanna} 0.006398349 62
## [306] {Hanna,
## Kingdom} 0.007017544 68
## [307] {Atypical,
## Kingdom,
## Sex Education} 0.007120743 69
## [308] {Kingdom,
## Ozark,
## Sex Education} 0.009494324 92
## [309] {Kingdom,
## Sex Education} 0.025386997 246
## [310] {Kingdom,
## Ozark} 0.018885449 183
## [311] {Kingdom,
## Two and a half men} 0.012693498 123
## [312] {Atypical,
## Kingdom} 0.014447884 140
## [313] {Kingdom,
## Outer Banks} 0.012590299 122
## [314] {Kingdom,
## Mr. Robot} 0.010113519 98
## [315] {Kingdom,
## The Blacklist} 0.010732714 104
## [316] {Kingdom,
## Stranger Things} 0.008255934 80
## [317] {Daredevil,
## Kingdom} 0.010835913 105
## [318] {Kingdom,
## Lucifer} 0.009287926 90
## [319] {Cobra Kai,
## Kingdom} 0.008462332 82
## [320] {Kingdom,
## The Walking Dead} 0.009494324 92
## [321] {Demon Slayer,
## Kingdom} 0.007739938 75
## [322] {Kingdom,
## The Mentalist} 0.008359133 81
## [323] {Dr. House,
## Kingdom} 0.006811146 66
## [324] {Kingdom,
## The Wire} 0.008152735 79
## [325] {How I met your mother,
## Kingdom} 0.007739938 75
## [326] {12 Monkeys,
## Kingdom} 0.006398349 62
## [327] {12 Monkeys,
## Atypical,
## Sex Education} 0.007017544 68
## [328] {12 Monkeys,
## Sex Education,
## Two and a half men} 0.008049536 78
## [329] {12 Monkeys,
## Ozark,
## Sex Education} 0.009287926 90
## [330] {12 Monkeys,
## Sex Education} 0.024251806 235
## [331] {12 Monkeys,
## Ozark} 0.019711042 191
## [332] {12 Monkeys,
## Two and a half men} 0.014860681 144
## [333] {12 Monkeys,
## Atypical} 0.014241486 138
## [334] {12 Monkeys,
## Outer Banks} 0.010216718 99
## [335] {12 Monkeys,
## Mr. Robot} 0.011248710 109
## [336] {12 Monkeys,
## The Blacklist} 0.009391125 91
## [337] {12 Monkeys,
## Stranger Things} 0.010319917 100
## [338] {12 Monkeys,
## Daredevil} 0.007120743 69
## [339] {12 Monkeys,
## Cobra Kai} 0.008049536 78
## [340] {12 Monkeys,
## The Walking Dead} 0.006707946 65
## [341] {12 Monkeys,
## Demon Slayer} 0.008668731 84
## [342] {12 Monkeys,
## Family Guy} 0.006914345 67
## [343] {12 Monkeys,
## The Mentalist} 0.006088751 59
## [344] {12 Monkeys,
## Dr. House} 0.008359133 81
## [345] {12 Monkeys,
## How I met your mother} 0.007120743 69
## [346] {12 Monkeys,
## Dark} 0.008049536 78
## [347] {12 Monkeys,
## Berlin Station} 0.006811146 66
## [348] {Berlin Station,
## Family Guy,
## Sex Education} 0.006811146 66
## [349] {Berlin Station,
## Sex Education,
## The Blacklist} 0.006295150 61
## [350] {Berlin Station,
## Mr. Robot,
## Sex Education} 0.008255934 80
## [351] {Berlin Station,
## Mr. Robot,
## Ozark} 0.006501548 63
## [352] {Atypical,
## Berlin Station,
## Sex Education} 0.009391125 91
## [353] {Atypical,
## Berlin Station,
## Ozark} 0.006501548 63
## [354] {Berlin Station,
## Sex Education,
## Two and a half men} 0.006707946 65
## [355] {Berlin Station,
## Ozark,
## Sex Education} 0.011558308 112
## [356] {Berlin Station,
## Sex Education} 0.027554180 267
## [357] {Berlin Station,
## Ozark} 0.020123839 195
## [358] {Berlin Station,
## Two and a half men} 0.013622291 132
## [359] {Atypical,
## Berlin Station} 0.014654283 142
## [360] {Berlin Station,
## Outer Banks} 0.008978328 87
## [361] {Berlin Station,
## Mr. Robot} 0.012796698 124
## [362] {Berlin Station,
## The Blacklist} 0.010113519 98
## [363] {Berlin Station,
## Stranger Things} 0.008875129 86
## [364] {Berlin Station,
## Daredevil} 0.008771930 85
## [365] {Berlin Station,
## Cobra Kai} 0.009184727 89
## [366] {Berlin Station,
## The Walking Dead} 0.007739938 75
## [367] {Berlin Station,
## Demon Slayer} 0.007430341 72
## [368] {Berlin Station,
## Family Guy} 0.010319917 100
## [369] {Berlin Station,
## The Mentalist} 0.008049536 78
## [370] {Berlin Station,
## Dr. House} 0.009700722 94
## [371] {Berlin Station,
## The Wire} 0.007017544 68
## [372] {Berlin Station,
## Dark} 0.006914345 67
## [373] {Dark,
## Sex Education,
## Stranger Things} 0.006501548 63
## [374] {Dark,
## Sex Education,
## Two and a half men} 0.006295150 61
## [375] {Dark,
## Ozark,
## Sex Education} 0.008462332 82
## [376] {Dark,
## Sex Education} 0.023219814 225
## [377] {Dark,
## Ozark} 0.018369453 178
## [378] {Dark,
## Two and a half men} 0.014963880 145
## [379] {Atypical,
## Dark} 0.010526316 102
## [380] {Dark,
## Outer Banks} 0.017956656 174
## [381] {Dark,
## Mr. Robot} 0.011248710 109
## [382] {Dark,
## The Blacklist} 0.009700722 94
## [383] {Dark,
## Stranger Things} 0.016408669 159
## [384] {Daredevil,
## Dark} 0.008978328 87
## [385] {Cobra Kai,
## Dark} 0.007533540 73
## [386] {Dark,
## The Walking Dead} 0.006088751 59
## [387] {Dark,
## Demon Slayer} 0.006914345 67
## [388] {Dark,
## The Mentalist} 0.007739938 75
## [389] {Dark,
## The Wire} 0.006398349 62
## [390] {How I met your mother,
## Mr. Robot,
## Ozark} 0.006088751 59
## [391] {Atypical,
## How I met your mother,
## Sex Education} 0.006604747 64
## [392] {How I met your mother,
## Sex Education,
## Two and a half men} 0.007636739 74
## [393] {How I met your mother,
## Ozark,
## Sex Education} 0.008462332 82
## [394] {How I met your mother,
## Sex Education} 0.027554180 267
## [395] {How I met your mother,
## Ozark} 0.019401445 188
## [396] {How I met your mother,
## Two and a half men} 0.019814241 192
## [397] {Atypical,
## How I met your mother} 0.015479876 150
## [398] {How I met your mother,
## Outer Banks} 0.014654283 142
## [399] {How I met your mother,
## Mr. Robot} 0.011661507 113
## [400] {How I met your mother,
## The Blacklist} 0.011867905 115
## [401] {How I met your mother,
## Stranger Things} 0.011248710 109
## [402] {Daredevil,
## How I met your mother} 0.008049536 78
## [403] {How I met your mother,
## Lucifer} 0.007017544 68
## [404] {Cobra Kai,
## How I met your mother} 0.008359133 81
## [405] {How I met your mother,
## The Walking Dead} 0.008565531 83
## [406] {Demon Slayer,
## How I met your mother} 0.006811146 66
## [407] {Family Guy,
## How I met your mother} 0.007327141 71
## [408] {How I met your mother,
## The Mentalist} 0.008359133 81
## [409] {Dr. House,
## How I met your mother} 0.006914345 67
## [410] {How I met your mother,
## The Wire} 0.006295150 61
## [411] {Mr. Robot,
## Sex Education,
## The Wire} 0.006914345 67
## [412] {Mr. Robot,
## Ozark,
## The Wire} 0.006398349 62
## [413] {Atypical,
## Sex Education,
## The Wire} 0.007017544 68
## [414] {Atypical,
## Ozark,
## The Wire} 0.006295150 61
## [415] {Sex Education,
## The Wire,
## Two and a half men} 0.006398349 62
## [416] {Ozark,
## Sex Education,
## The Wire} 0.009597523 93
## [417] {Sex Education,
## The Wire} 0.026418989 256
## [418] {Ozark,
## The Wire} 0.022497420 218
## [419] {The Wire,
## Two and a half men} 0.013003096 126
## [420] {Atypical,
## The Wire} 0.013828689 134
## [421] {Outer Banks,
## The Wire} 0.015170279 147
## [422] {Mr. Robot,
## The Wire} 0.012693498 123
## [423] {The Blacklist,
## The Wire} 0.011455108 111
## [424] {Stranger Things,
## The Wire} 0.007120743 69
## [425] {Daredevil,
## The Wire} 0.012074303 117
## [426] {Lucifer,
## The Wire} 0.010423117 101
## [427] {Cobra Kai,
## The Wire} 0.007739938 75
## [428] {The Walking Dead,
## The Wire} 0.007946336 77
## [429] {Demon Slayer,
## The Wire} 0.008771930 85
## [430] {Family Guy,
## The Wire} 0.008462332 82
## [431] {The Mentalist,
## The Wire} 0.010216718 99
## [432] {Dr. House,
## The Wire} 0.008668731 84
## [433] {Dr. House,
## Sex Education,
## The Blacklist} 0.007017544 68
## [434] {Dr. House,
## Mr. Robot,
## Sex Education} 0.008565531 83
## [435] {Dr. House,
## Mr. Robot,
## Ozark} 0.007327141 71
## [436] {Atypical,
## Dr. House,
## Sex Education} 0.007636739 74
## [437] {Dr. House,
## Sex Education,
## Two and a half men} 0.006707946 65
## [438] {Dr. House,
## Ozark,
## Sex Education} 0.012383901 120
## [439] {Dr. House,
## Sex Education} 0.030134159 292
## [440] {Dr. House,
## Ozark} 0.022394221 217
## [441] {Dr. House,
## Two and a half men} 0.015686275 152
## [442] {Atypical,
## Dr. House} 0.014241486 138
## [443] {Dr. House,
## Outer Banks} 0.012383901 120
## [444] {Dr. House,
## Mr. Robot} 0.014447884 140
## [445] {Dr. House,
## The Blacklist} 0.011351909 110
## [446] {Dr. House,
## Stranger Things} 0.009287926 90
## [447] {Daredevil,
## Dr. House} 0.009494324 92
## [448] {Dr. House,
## Lucifer} 0.008978328 87
## [449] {Cobra Kai,
## Dr. House} 0.010423117 101
## [450] {Dr. House,
## The Walking Dead} 0.009184727 89
## [451] {Demon Slayer,
## Dr. House} 0.008668731 84
## [452] {Dr. House,
## Family Guy} 0.010010320 97
## [453] {Dr. House,
## The Mentalist} 0.008049536 78
## [454] {Sex Education,
## The Blacklist,
## The Mentalist} 0.006088751 59
## [455] {Ozark,
## The Blacklist,
## The Mentalist} 0.006707946 65
## [456] {Mr. Robot,
## Sex Education,
## The Mentalist} 0.006501548 63
## [457] {Mr. Robot,
## Ozark,
## The Mentalist} 0.006604747 64
## [458] {Outer Banks,
## Sex Education,
## The Mentalist} 0.006191950 60
## [459] {Atypical,
## Sex Education,
## The Mentalist} 0.009494324 92
## [460] {Atypical,
## Ozark,
## The Mentalist} 0.008359133 81
## [461] {Ozark,
## Sex Education,
## The Mentalist} 0.010526316 102
## [462] {Sex Education,
## The Mentalist} 0.026728586 259
## [463] {Ozark,
## The Mentalist} 0.021155831 205
## [464] {The Mentalist,
## Two and a half men} 0.014551084 141
## [465] {Atypical,
## The Mentalist} 0.018782250 182
## [466] {Outer Banks,
## The Mentalist} 0.018679051 181
## [467] {Mr. Robot,
## The Mentalist} 0.012074303 117
## [468] {The Blacklist,
## The Mentalist} 0.013828689 134
## [469] {Stranger Things,
## The Mentalist} 0.014344685 139
## [470] {Daredevil,
## The Mentalist} 0.010010320 97
## [471] {Lucifer,
## The Mentalist} 0.010629515 103
## [472] {Cobra Kai,
## The Mentalist} 0.010526316 102
## [473] {The Mentalist,
## The Walking Dead} 0.008462332 82
## [474] {Demon Slayer,
## The Mentalist} 0.009700722 94
## [475] {Family Guy,
## The Mentalist} 0.009184727 89
## [476] {Cobra Kai,
## Family Guy,
## Sex Education} 0.006191950 60
## [477] {Family Guy,
## Sex Education,
## The Blacklist} 0.008049536 78
## [478] {Family Guy,
## Ozark,
## The Blacklist} 0.007946336 77
## [479] {Atypical,
## Family Guy,
## The Blacklist} 0.006191950 60
## [480] {Family Guy,
## Mr. Robot,
## Sex Education} 0.009391125 91
## [481] {Family Guy,
## Mr. Robot,
## Ozark} 0.008462332 82
## [482] {Atypical,
## Family Guy,
## Mr. Robot} 0.006398349 62
## [483] {Atypical,
## Family Guy,
## Sex Education} 0.010835913 105
## [484] {Atypical,
## Family Guy,
## Ozark} 0.010216718 99
## [485] {Family Guy,
## Sex Education,
## Two and a half men} 0.007946336 77
## [486] {Family Guy,
## Ozark,
## Two and a half men} 0.006811146 66
## [487] {Family Guy,
## Ozark,
## Sex Education} 0.014654283 142
## [488] {Family Guy,
## Sex Education} 0.032301342 313
## [489] {Family Guy,
## Ozark} 0.029102167 282
## [490] {Family Guy,
## Two and a half men} 0.014757482 143
## [491] {Atypical,
## Family Guy} 0.020743034 201
## [492] {Family Guy,
## Outer Banks} 0.011661507 113
## [493] {Family Guy,
## Mr. Robot} 0.016924665 164
## [494] {Family Guy,
## The Blacklist} 0.013828689 134
## [495] {Family Guy,
## Stranger Things} 0.008771930 85
## [496] {Daredevil,
## Family Guy} 0.009081527 88
## [497] {Family Guy,
## Lucifer} 0.007739938 75
## [498] {Cobra Kai,
## Family Guy} 0.010732714 104
## [499] {Family Guy,
## The Walking Dead} 0.007636739 74
## [500] {Demon Slayer,
## Family Guy} 0.009287926 90
## [501] {Demon Slayer,
## Sex Education,
## The Blacklist} 0.008565531 83
## [502] {Demon Slayer,
## Ozark,
## The Blacklist} 0.009597523 93
## [503] {Atypical,
## Demon Slayer,
## The Blacklist} 0.006501548 63
## [504] {Demon Slayer,
## Mr. Robot,
## Sex Education} 0.008875129 86
## [505] {Demon Slayer,
## Mr. Robot,
## Ozark} 0.008152735 79
## [506] {Atypical,
## Demon Slayer,
## Sex Education} 0.009494324 92
## [507] {Atypical,
## Demon Slayer,
## Ozark} 0.008152735 79
## [508] {Demon Slayer,
## Sex Education,
## Two and a half men} 0.006295150 61
## [509] {Demon Slayer,
## Ozark,
## Sex Education} 0.013519092 131
## [510] {Demon Slayer,
## Sex Education} 0.030134159 292
## [511] {Demon Slayer,
## Ozark} 0.026109391 253
## [512] {Demon Slayer,
## Two and a half men} 0.013828689 134
## [513] {Atypical,
## Demon Slayer} 0.018059856 175
## [514] {Demon Slayer,
## Outer Banks} 0.013106295 127
## [515] {Demon Slayer,
## Mr. Robot} 0.015583075 151
## [516] {Demon Slayer,
## The Blacklist} 0.020639835 200
## [517] {Demon Slayer,
## Stranger Things} 0.010629515 103
## [518] {Daredevil,
## Demon Slayer} 0.010732714 104
## [519] {Demon Slayer,
## Lucifer} 0.009391125 91
## [520] {Cobra Kai,
## Demon Slayer} 0.013725490 133
## [521] {Demon Slayer,
## The Walking Dead} 0.010629515 103
## [522] {Sex Education,
## The Blacklist,
## The Walking Dead} 0.006811146 66
## [523] {Outer Banks,
## Sex Education,
## The Walking Dead} 0.008359133 81
## [524] {Atypical,
## Sex Education,
## The Walking Dead} 0.009287926 90
## [525] {Atypical,
## Ozark,
## The Walking Dead} 0.006707946 65
## [526] {Sex Education,
## The Walking Dead,
## Two and a half men} 0.008668731 84
## [527] {Ozark,
## The Walking Dead,
## Two and a half men} 0.006191950 60
## [528] {Ozark,
## Sex Education,
## The Walking Dead} 0.010732714 104
## [529] {Sex Education,
## The Walking Dead} 0.033539732 325
## [530] {Ozark,
## The Walking Dead} 0.022394221 217
## [531] {The Walking Dead,
## Two and a half men} 0.021052632 204
## [532] {Atypical,
## The Walking Dead} 0.017853457 173
## [533] {Outer Banks,
## The Walking Dead} 0.021362229 207
## [534] {Mr. Robot,
## The Walking Dead} 0.011145511 108
## [535] {The Blacklist,
## The Walking Dead} 0.013209494 128
## [536] {Stranger Things,
## The Walking Dead} 0.009081527 88
## [537] {Daredevil,
## The Walking Dead} 0.012590299 122
## [538] {Lucifer,
## The Walking Dead} 0.011764706 114
## [539] {Cobra Kai,
## The Walking Dead} 0.009803922 95
## [540] {Cobra Kai,
## Sex Education,
## The Blacklist} 0.009184727 89
## [541] {Cobra Kai,
## Ozark,
## The Blacklist} 0.009184727 89
## [542] {Atypical,
## Cobra Kai,
## The Blacklist} 0.006398349 62
## [543] {Cobra Kai,
## Mr. Robot,
## Sex Education} 0.009184727 89
## [544] {Cobra Kai,
## Mr. Robot,
## Ozark} 0.010423117 101
## [545] {Atypical,
## Cobra Kai,
## Sex Education} 0.010113519 98
## [546] {Atypical,
## Cobra Kai,
## Ozark} 0.007636739 74
## [547] {Cobra Kai,
## Sex Education,
## Two and a half men} 0.007327141 71
## [548] {Cobra Kai,
## Ozark,
## Sex Education} 0.013106295 127
## [549] {Cobra Kai,
## Sex Education} 0.030650155 297
## [550] {Cobra Kai,
## Ozark} 0.028895769 280
## [551] {Cobra Kai,
## Two and a half men} 0.016924665 164
## [552] {Atypical,
## Cobra Kai} 0.021568627 209
## [553] {Cobra Kai,
## Outer Banks} 0.012796698 124
## [554] {Cobra Kai,
## Mr. Robot} 0.017750258 172
## [555] {Cobra Kai,
## The Blacklist} 0.020227038 196
## [556] {Cobra Kai,
## Stranger Things} 0.013622291 132
## [557] {Cobra Kai,
## Daredevil} 0.011248710 109
## [558] {Cobra Kai,
## Lucifer} 0.009700722 94
## [559] {Daredevil,
## Lucifer,
## Two and a half men} 0.006088751 59
## [560] {Lucifer,
## Mr. Robot,
## Ozark} 0.006501548 63
## [561] {Lucifer,
## Outer Banks,
## Sex Education} 0.006811146 66
## [562] {Lucifer,
## Outer Banks,
## Two and a half men} 0.006398349 62
## [563] {Lucifer,
## Ozark,
## Sex Education} 0.007533540 73
## [564] {Lucifer,
## Sex Education} 0.024355005 236
## [565] {Lucifer,
## Ozark} 0.022807018 221
## [566] {Lucifer,
## Two and a half men} 0.019504644 189
## [567] {Atypical,
## Lucifer} 0.015067079 146
## [568] {Lucifer,
## Outer Banks} 0.024664603 239
## [569] {Lucifer,
## Mr. Robot} 0.012796698 124
## [570] {Lucifer,
## The Blacklist} 0.013622291 132
## [571] {Lucifer,
## Stranger Things} 0.010939112 106
## [572] {Daredevil,
## Lucifer} 0.015583075 151
## [573] {Daredevil,
## Sex Education,
## The Blacklist} 0.007327141 71
## [574] {Daredevil,
## Mr. Robot,
## Sex Education} 0.007739938 75
## [575] {Daredevil,
## Mr. Robot,
## Ozark} 0.006811146 66
## [576] {Daredevil,
## Outer Banks,
## Sex Education} 0.006707946 65
## [577] {Daredevil,
## Outer Banks,
## Ozark} 0.007223942 70
## [578] {Daredevil,
## Outer Banks,
## Two and a half men} 0.009597523 93
## [579] {Atypical,
## Daredevil,
## Sex Education} 0.008771930 85
## [580] {Atypical,
## Daredevil,
## Ozark} 0.008152735 79
## [581] {Atypical,
## Daredevil,
## Two and a half men} 0.006088751 59
## [582] {Daredevil,
## Sex Education,
## Two and a half men} 0.009391125 91
## [583] {Daredevil,
## Ozark,
## Two and a half men} 0.008978328 87
## [584] {Daredevil,
## Ozark,
## Sex Education} 0.010216718 99
## [585] {Daredevil,
## Sex Education} 0.030030960 291
## [586] {Daredevil,
## Ozark} 0.026934985 261
## [587] {Daredevil,
## Two and a half men} 0.030650155 297
## [588] {Atypical,
## Daredevil} 0.019711042 191
## [589] {Daredevil,
## Outer Banks} 0.024355005 236
## [590] {Daredevil,
## Mr. Robot} 0.015067079 146
## [591] {Daredevil,
## The Blacklist} 0.014035088 136
## [592] {Daredevil,
## Stranger Things} 0.012074303 117
## [593] {Sex Education,
## Stranger Things,
## The Blacklist} 0.007739938 75
## [594] {Ozark,
## Stranger Things,
## The Blacklist} 0.006295150 61
## [595] {Atypical,
## Stranger Things,
## The Blacklist} 0.007223942 70
## [596] {Mr. Robot,
## Sex Education,
## Stranger Things} 0.007120743 69
## [597] {Mr. Robot,
## Ozark,
## Stranger Things} 0.006914345 67
## [598] {Outer Banks,
## Sex Education,
## Stranger Things} 0.007327141 71
## [599] {Outer Banks,
## Stranger Things,
## Two and a half men} 0.006811146 66
## [600] {Atypical,
## Outer Banks,
## Stranger Things} 0.007430341 72
## [601] {Atypical,
## Sex Education,
## Stranger Things} 0.009700722 94
## [602] {Atypical,
## Ozark,
## Stranger Things} 0.008255934 80
## [603] {Atypical,
## Stranger Things,
## Two and a half men} 0.007120743 69
## [604] {Sex Education,
## Stranger Things,
## Two and a half men} 0.008565531 83
## [605] {Ozark,
## Stranger Things,
## Two and a half men} 0.007430341 72
## [606] {Ozark,
## Sex Education,
## Stranger Things} 0.010732714 104
## [607] {Sex Education,
## Stranger Things} 0.034158927 331
## [608] {Ozark,
## Stranger Things} 0.024974200 242
## [609] {Stranger Things,
## Two and a half men} 0.024045408 233
## [610] {Atypical,
## Stranger Things} 0.023013416 223
## [611] {Outer Banks,
## Stranger Things} 0.028998968 281
## [612] {Mr. Robot,
## Stranger Things} 0.015376677 149
## [613] {Stranger Things,
## The Blacklist} 0.018266254 177
## [614] {Mr. Robot,
## Ozark,
## Sex Education,
## The Blacklist} 0.007120743 69
## [615] {Mr. Robot,
## Sex Education,
## The Blacklist} 0.011971104 116
## [616] {Mr. Robot,
## Ozark,
## The Blacklist} 0.012487100 121
## [617] {Atypical,
## Mr. Robot,
## The Blacklist} 0.008255934 80
## [618] {Outer Banks,
## Sex Education,
## The Blacklist} 0.007739938 75
## [619] {Outer Banks,
## Ozark,
## The Blacklist} 0.007327141 71
## [620] {Atypical,
## Outer Banks,
## The Blacklist} 0.006707946 65
## [621] {Atypical,
## Ozark,
## Sex Education,
## The Blacklist} 0.007739938 75
## [622] {Atypical,
## Sex Education,
## The Blacklist} 0.015376677 149
## [623] {Atypical,
## Ozark,
## The Blacklist} 0.012487100 121
## [624] {Atypical,
## The Blacklist,
## Two and a half men} 0.008875129 86
## [625] {Sex Education,
## The Blacklist,
## Two and a half men} 0.010835913 105
## [626] {Ozark,
## The Blacklist,
## Two and a half men} 0.007946336 77
## [627] {Ozark,
## Sex Education,
## The Blacklist} 0.017234262 167
## [628] {Sex Education,
## The Blacklist} 0.042311662 410
## [629] {Ozark,
## The Blacklist} 0.035810114 347
## [630] {The Blacklist,
## Two and a half men} 0.024664603 239
## [631] {Atypical,
## The Blacklist} 0.029618163 287
## [632] {Outer Banks,
## The Blacklist} 0.020949432 203
## [633] {Mr. Robot,
## The Blacklist} 0.021052632 204
## [634] {Mr. Robot,
## Outer Banks,
## Sex Education} 0.008152735 79
## [635] {Mr. Robot,
## Outer Banks,
## Ozark} 0.008255934 80
## [636] {Atypical,
## Mr. Robot,
## Ozark,
## Sex Education} 0.007843137 76
## [637] {Atypical,
## Mr. Robot,
## Sex Education} 0.014551084 141
## [638] {Atypical,
## Mr. Robot,
## Ozark} 0.013003096 126
## [639] {Atypical,
## Mr. Robot,
## Two and a half men} 0.007327141 71
## [640] {Mr. Robot,
## Ozark,
## Sex Education,
## Two and a half men} 0.006295150 61
## [641] {Mr. Robot,
## Sex Education,
## Two and a half men} 0.012796698 124
## [642] {Mr. Robot,
## Ozark,
## Two and a half men} 0.012383901 120
## [643] {Mr. Robot,
## Ozark,
## Sex Education} 0.023116615 224
## [644] {Mr. Robot,
## Sex Education} 0.048916409 474
## [645] {Mr. Robot,
## Ozark} 0.047574819 461
## [646] {Mr. Robot,
## Two and a half men} 0.024561404 238
## [647] {Atypical,
## Mr. Robot} 0.025902993 251
## [648] {Mr. Robot,
## Outer Banks} 0.018782250 182
## [649] {Atypical,
## Outer Banks,
## Sex Education} 0.010423117 101
## [650] {Atypical,
## Outer Banks,
## Ozark} 0.008359133 81
## [651] {Atypical,
## Outer Banks,
## Two and a half men} 0.008771930 85
## [652] {Outer Banks,
## Sex Education,
## Two and a half men} 0.008875129 86
## [653] {Outer Banks,
## Ozark,
## Two and a half men} 0.010010320 97
## [654] {Outer Banks,
## Ozark,
## Sex Education} 0.014035088 136
## [655] {Outer Banks,
## Sex Education} 0.040144479 389
## [656] {Outer Banks,
## Ozark} 0.033023736 320
## [657] {Outer Banks,
## Two and a half men} 0.038390093 372
## [658] {Atypical,
## Outer Banks} 0.027554180 267
## [659] {Atypical,
## Ozark,
## Sex Education,
## Two and a half men} 0.006088751 59
## [660] {Atypical,
## Sex Education,
## Two and a half men} 0.015789474 153
## [661] {Atypical,
## Ozark,
## Two and a half men} 0.011661507 113
## [662] {Atypical,
## Ozark,
## Sex Education} 0.022394221 217
## [663] {Atypical,
## Sex Education} 0.056140351 544
## [664] {Atypical,
## Ozark} 0.043756450 424
## [665] {Atypical,
## Two and a half men} 0.034571723 335
## [666] {Ozark,
## Sex Education,
## Two and a half men} 0.018163055 176
## [667] {Sex Education,
## Two and a half men} 0.056553148 548
## [668] {Ozark,
## Two and a half men} 0.042827657 415
## [669] {Ozark,
## Sex Education} 0.075128999 728
## [670] {Sex Education} 0.255624355 2477
## [671] {Ozark} 0.193704850 1877
## [672] {Two and a half men} 0.183591331 1779
## [673] {Atypical} 0.139938080 1356
## [674] {Outer Banks} 0.175025800 1696
## [675] {Mr. Robot} 0.109391125 1060
## [676] {The Blacklist} 0.104850361 1016
## [677] {Stranger Things} 0.110423117 1070
## [678] {Daredevil} 0.093911249 910
## [679] {Lucifer} 0.097936017 949
## [680] {Cobra Kai} 0.083075335 805
## [681] {The Walking Dead} 0.088648091 859
## [682] {Demon Slayer} 0.075438596 731
## [683] {Family Guy} 0.071517028 693
## [684] {The Mentalist} 0.072549020 703
## [685] {Dr. House} 0.063570691 616
## [686] {The Wire} 0.065737874 637
## [687] {How I met your mother} 0.080392157 779
## [688] {Dark} 0.089164087 864
## [689] {Berlin Station} 0.055521156 538
## [690] {12 Monkeys} 0.058617131 568
## [691] {Kingdom} 0.065015480 630
## [692] {Hanna} 0.059133127 573
## [693] {One Piece} 0.057894737 561
## [694] {Jack Ryan} 0.053766770 521
## [695] {Chernobyl} 0.052218782 506
## [696] {Queen of the South} 0.052631579 510
## [697] {Deception} 0.048297214 468
## [698] {Archer} 0.057791538 560
## [699] {Shadow and Bone} 0.049845201 483
## [700] {The Stranger} 0.043034056 417
## [701] {Preacher} 0.039628483 384
## [702] {Absentia} 0.077089783 747
## [703] {Banshee} 0.038183695 370
## [704] {Spartacus} 0.038906089 377
## [705] {Constantine} 0.037151703 360
## [706] {How to get away with murder} 0.038080495 369
## [707] {Vikings} 0.033746130 327
## [708] {Lost} 0.033333333 323
## [709] {Big Little Lies} 0.032610939 316
## [710] {Succession} 0.031372549 304
## [711] {Rick And Morty} 0.033230134 322
## [712] {Only Murders in the building} 0.028173375 273
## [713] {White Collar} 0.032714138 317
## [714] {Alice in Borderland} 0.024767802 240
## [715] {Arrow} 0.026109391 253
## [716] {Travellers} 0.028070175 272
## [717] {The Night Manager} 0.030030960 291
## [718] {The Flash} 0.024148607 234
## [719] {Doctor Who} 0.028276574 274
## [720] {Locke & Key} 0.026625387 258
## [721] {Designated Survivor} 0.030650155 297
## [722] {The Witcher} 0.023116615 224
## [723] {The Boys} 0.022394221 217
## [724] {Mare of Easttown} 0.028586171 277
## [725] {Brooklyn Nine Nine} 0.027244582 264
## [726] {Grey's Anatomy} 0.017234262 167
## [727] {Punisher} 0.017853457 173
## [728] {Game of thrones} 0.017337461 168
## [729] {Lost in Space} 0.017853457 173
## [730] {Perception} 0.019298246 187
## [731] {The Outsider} 0.025077399 243
## [732] {Emily in Paris} 0.025902993 251
## [733] {Lupin} 0.017956656 174
## [734] {Breaking Bad} 0.016718266 162
## [735] {Person of Interest} 0.016099071 156
## [736] {House of Cards} 0.014757482 143
## [737] {Black Clover} 0.014551084 141
## [738] {The Alienist} 0.020949432 203
## [739] {Peaky Blinders} 0.017543860 170
## [740] {Sopranos} 0.012074303 117
## [741] {The Tick} 0.017647059 171
## [742] {Haven} 0.013209494 128
## [743] {Ragnarok} 0.014035088 136
## [744] {Supergirl} 0.011661507 113
## [745] {Sense 8} 0.010319917 100
## [746] {Shooter} 0.010835913 105
## [747] {Rome} 0.018885449 183
## [748] {Better Call Saul} 0.012899897 125
## [749] {True Detective} 0.009287926 90
## [750] {The Innocent} 0.010835913 105
## [751] {Upload} 0.010629515 103
## [752] {The IT Crowd} 0.011351909 110
## [753] {Hunters} 0.010629515 103
## [754] {Madmen} 0.011248710 109
## [755] {Into the night} 0.008255934 80
## [756] {Mindhunter} 0.009184727 89
## [757] {Startup} 0.008462332 82
## [758] {The man in the high castle} 0.008462332 82
## [759] {The Expanse} 0.010526316 102
## [760] {Outlander} 0.009081527 88
## [761] {Dr Stone} 0.008462332 82
## [762] {Fringe} 0.008152735 79
## [763] {Prison Break} 0.010216718 99
## [764] {Nine Perfect Strangers} 0.008565531 83
## [765] {The Big Bang Theory} 0.006914345 67
## [766] {Homeland} 0.007017544 68
## [767] {Suits} 0.007327141 71
## [768] {The Umbrella Academy} 0.009494324 92
## [769] {X-Files} 0.006604747 64
## [770] {Dexter} 0.007533540 73
## [771] {The White Lotus} 0.006088751 59
## [772] {Sherlock} 0.006295150 61
## [773] {The 100} 0.011145511 108
## [774] {The Newsroom} 0.007843137 76
## [775] {Elementary} 0.006501548 63
## [776] {Mirzapur} 0.007017544 68
## [777] {Gotham} 0.009287926 90
Here is the basic statistics with reference to confidence.
freq.rules<-ruleInduction(freq.items, tvshows, confidence=0.5)
freq.rules
## set of 71 rules
freq.items<-eclat(tvshows, parameter=list(supp=0.05, maxlen=15))
## Eclat
##
## parameter specification:
## tidLists support minlen maxlen target ext
## FALSE 0.05 1 15 frequent itemsets TRUE
##
## algorithmic control:
## sparse sort verbose
## 7 -2 TRUE
##
## Absolute minimum support count: 484
##
## create itemset ...
## set transactions ...[156 item(s), 9690 transaction(s)] done [0.00s].
## sorting and recoding items ... [29 item(s)] done [0.00s].
## creating sparse bit matrix ... [29 row(s), 9690 column(s)] done [0.00s].
## writing ... [32 set(s)] done [0.00s].
## Creating S4 object ... done [0.00s].
Here is the frequency of watching the movies. Again we see mostly Sex Education.
freq.rules<-ruleInduction(freq.items, tvshows, confidence=0.1)
freq.rules
## set of 6 rules
inspect(freq.rules)
## lhs rhs support confidence lift
## [1] {Sex Education} => {Atypical} 0.05614035 0.2196205 1.569412
## [2] {Atypical} => {Sex Education} 0.05614035 0.4011799 1.569412
## [3] {Two and a half men} => {Sex Education} 0.05655315 0.3080382 1.205043
## [4] {Sex Education} => {Two and a half men} 0.05655315 0.2212354 1.205043
## [5] {Sex Education} => {Ozark} 0.07512900 0.2939039 1.517277
## [6] {Ozark} => {Sex Education} 0.07512900 0.3878530 1.517277
## itemset
## [1] 1
## [2] 1
## [3] 2
## [4] 2
## [5] 3
## [6] 3
THANK YOU!