









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Frequent Itemsets
Elephants and Troops
Exponentially Decaying Windows
Problem
: given a stream, which items
appear more than
times in the
window?
Possible solution
: think of the stream of
baskets as one binary stream per item.
1 = item present; 0 = not present.
Use DGIM to estimate counts of 1’s for allitems.
Elephants and troops
”: a heuristic
way to converge on unusually stronglyconnected itemsets.
Exponentially decaying windows
: a
heuristic for selecting likely frequentitemsets.
When Sergey Brin wasn’t worrying about Google, he tried the followingexperiment.
Goal
: find unusually correlated sets of
words.
“
High Correlation
” = frequency of
occurrence of set >> product of frequencyof members.
Find the most correlated sets counted.
Construct a new collection of itemsetsto count the next night.
All the most correlated sets (“
winners
”).
Pairs of a word in some winner and arandom word.
Winners combined in various ways.
Some random pairs.
The pair {“elephants”, “troops”} came up as the big winner.
Why
It turns out that Stanford
students were playing a Punic-Warsimulation game internationally, wheremoves were sent by Web pages.
Two different assumptions make a bigdifference.
Is the model
stationary
?
I.e., are the same statistics used throughoutall time to generate the stream?
Or does the frequency of generatinggiven items or itemsets change overtime?
We could:
Run periodic experiments, like E&T.
Like SON --- itemset is frequent if it is foundfrequent on any “day.”
Good for stationary statistics.
Frame the problem as finding all frequentitemsets in an “exponentially decayingwindow.”
Good for nonstationary statistics.
If each
i
is an “item” we can compute
the
of each
possible item
as an E.D.W.
That is:
i
= 1,2,…,
t
i
c
(
t
i
)
, where
i
if
i
, and 0 otherwise.
Call this sum the
weight
of item
x
.
Suppose we want to find those items of weight at least ½.
Important property
: sum over all
weights is
c
c
Thus: at most 2/
items have weight
at least ½.
Start a count for an itemset
if every
proper subset of
had a count prior to
arrival of basket
Example
: Start counting {
} iff both
and
were counted prior to seeing
Example
: Start counting {
} iff {
}, and {
} were all counted prior to
seeing
Counts for single items = (2/
) times the
average number of items in a basket.
Counts for larger itemsets = ??.
But we
are conservative about starting counts oflarge sets.
If we counted every set we saw, one basketof 20 items would initiate 1M counts.