Docsity

Data Mining: Transforming Data into Knowledge - Lecture Notes by Luke Huan at U. of Kansas, Study notes of Deductive Database Systems

Partial preview of the text

Download Data Mining: Transforming Data into Knowledge - Lecture Notes by Luke Huan at U. of Kansas and more Study notes Deductive Database Systems in PDF only on Docsity!

EECS 647: Introduction to

Database Systems

Instructor: Luke Huan

Spring 2009

4/26/

Luke Huan Univ. of Kansas

Administrative

z

I am trying to get supporting team to agree to keep yourpgSQL account for another semester (until Dec 2009).

z

Which means: z

Your on-line database application will be alive for a while

z

You could do a demon to your potential employers if theyare interested

z

A few things to keep in mind: z

No backup: students are responsible for their own data

z

No uptime/availability guarantee: system may be updatedin anytime. There is no access during update.

4/26/

Luke Huan Univ. of Kansas

Review: Database Design

4/26/

Luke Huan Univ. of Kansas

Review: DBMS Architecture

Query ExecutorBuffer ManagerStorage Manager

Storage

Transaction Manager

Logging &

Recovery

Lock Manager

Buffers

Lock Tables

Main Memory

User/Web Forms/Applications/DBA

query

transaction

Query RewriterQuery Optimizer

Query Parser

Files & Access Methods

4/26/

Luke Huan Univ. of Kansas

What Is Data Mining?

z

Data mining (knowledge discovery from data) z

Extraction of interesting

non-trivial, implicit, previously

unknown and potentially useful) patterns or knowledge fromhuge amount of data

z

Data mining: a misnomer?

z

Alternative names z

Knowledge discovery (mining) in databases (KDD), knowledgeextraction, data/pattern analysis, data archeology, data dredging,information harvesting, business intelligence, etc.

z

Watch out: Is everything “data mining”? z

Simple search and query processing

z

(Deductive) expert systems

4/26/

Luke Huan Univ. of Kansas

z

Lots of data is being collectedand warehoused

z

Web data, e-commerce

z

purchases at department/grocery stores

z

Bank/Credit Cardtransactions

z

Computers have become cheaper and more powerful

z

Competitive Pressure is Strong

z

Provide better, customized services for an

edge

(e.g. in Customer

Relationship Management)

Why Mine Data? Commercial Viewpoint

4/26/

Luke Huan Univ. of Kansas

Mining Large Data Sets - Motivation

z

There is often information

“

hidden

”

in the data that is

not readily evident

z

Human analysts may take weeks to discover usefulinformation

z

Much of the data is never analyzed at all

0

500, 4,000,0003,500,0003,000,0002,500,0002,000,0001,500,0001,000,

1995

1996

1997

1998

1999

The Data Gap

Total new disk (TB) since 1995

Number ofanalysts

From: R. Grossman, C. Kamath, V. Kumar, “Data Mining for Scientific and Engineering Applications”

4/26/

Luke Huan Univ. of Kansas

Knowledge Discovery (KDD) Process

z

Data mining

—

core of

knowledge discoveryprocess

Data Cleaning

Data Integration

Databases

Data Warehouse

Task-relevant Data

Selection

Data Mining

Pattern Evaluation

4/26/

Luke Huan Univ. of Kansas

z

Draws ideas from machine learning/AI, patternrecognition, statistics, and database systems

z

Traditional Techniquesmay be unsuitable due to z

Enormity of data

z

High dimensionalityof data

z

Heterogeneous,distributed natureof data

Origins of Data Mining

Machine Learning/

Pattern

Recognition

Statistics/

AI

Data Mining

Databasesystems

4/26/

Luke Huan Univ. of Kansas

Data Mining Tasks

z

Prediction Methods z

Use some variables to predict unknown or future valuesof other variables.

z

Underline assumption: we could not figure out completely

the mechanism that generates the data, but we

could find a

good approximation

, based on current

data

and previous

experience

, to a level that we could make

prediction

of the near future

z

Description Methods z

Find human-interpretable patterns that describe the data.

From [Fayyad, et.al.] Advances in Knowledge Discovery and Data Mining, 1996

4/26/

Luke Huan Univ. of Kansas

Classification: Definition

z

Given a collection of records (

training set

)

z

Each record contains a set of

attributes

, one of the attributes is

the

class

.

z

Find a

model

for class attribute as a function of the

values of other attributes.

z

Goal: previously unseen records should be assigned aclass as accurately as possible.

z

A

test set

is used to determine the accuracy of the model.

Usually, the given data set is divided into training and test sets,with training set used to build the model and test set used tovalidate it.

z

Also known as the supervised learning in machinelearning literatures

4/26/

Luke Huan Univ. of Kansas

Classification Example

Tid

Refund

MaritalStatus

TaxableIncome

Cheat

1

Yes

Single

125K

No

2

No

Married

100K

No

3

No

Single

70K

No

4

Yes

Married

120K

No

5

No

Divorced

95K

Yes

6

No

Married

60K

No

7

Yes

Divorced

220K

No

8

No

Single

85K

Yes

9

No

Married

75K

No

10

No

Single

90K

Yes

10

categorical

categorical

continuous

class

Refund

MaritalStatus

TaxableIncome

Cheat

No

Single

75K

?

Yes

Married

50K

?

No

Married

150K

?

Yes

Divorced

90K

?

No

Single

40K

?

No

Married

80K

?

10

TestSet

Training

Set

Model

Learn

Classifier

4/26/

Luke Huan Univ. of Kansas

Classification: Application 2

z

Fraud Detection

z

Goal: Predict fraudulent cases in credit card transactions.

z

Approach:

z

Use credit card transactions and the information on itsaccount-holder as attributes.

When does a customer buy, what does he buy, how oftenhe pays on time, etc

z

Label past transactions as fraud or fair transactions. Thisforms the class attribute.

z

Learn a model for the class of the transactions.

z

Use this model to detect fraud by observing credit cardtransactions on an account.

4/26/

Luke Huan Univ. of Kansas

Clustering Definition

z

Given a set of data points, each having a set ofattributes, and a similarity measure among them, findclusters such that

z

Data points in one cluster are more similar to one another.

z

Data points in separate clusters are less similar to oneanother.

z

Similarity Measures:

z

Euclidean Distance if attributes are continuous.

z

Other Problem-specific Measures.