Docsity

Stream Mining: Frequent Itemsets and Correlated Sets with 'Elephants and Troops', Slides of Data Mining

Partial preview of the text

Download Stream Mining: Frequent Itemsets and Correlated Sets with 'Elephants and Troops' and more Slides Data Mining in PDF only on Docsity!

Still More Stream-Mining

Frequent Itemsets

Elephants and Troops

Exponentially Decaying Windows

Counting Items

Problem

: given a stream, which items

appear more than

s

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.

Approaches

Elephants and troops

”: a heuristic

way to converge on unusually stronglyconnected itemsets.

Exponentially decaying windows

: a

heuristic for selecting likely frequentitemsets.

Elephants and Troops

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.

After Each Night’s Processing...

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.

After a Week...

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.

Stationarity

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?

Some Options

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.

Example

: Counting Items

If each

a

i

is an “item” we can compute

the

characteristic function

of each

possible item

x

as an E.D.W.

That is:

i

= 1,2,…,

t

i

e

c

(

t

i

)

, where

i

if

a

i

x

, and 0 otherwise.



Call this sum the

weight

of item

x

.

Counting Items --- (2)

Suppose we want to find those items of weight at least ½.

Important property

: sum over all

weights is

e

c

e

c

    1. or very close to

c

Thus: at most 2/

c

items have weight

at least ½.

Initiation of New Counts

Start a count for an itemset

S

B

if every

proper subset of

S

had a count prior to

arrival of basket

B

Example

: Start counting {

i

j

} iff both

i

and

j

were counted prior to seeing

B

Example

: Start counting {

i

j

k

} iff {

i

j

i, k

}, and {

j, k

} were all counted prior to

seeing

B

How Many Counts?

Counts for single items = (2/

c

) 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.