CSEP 546 Data Mining: Instructor: Pedro Domingos
CSEP 546 Data Mining: Instructor: Pedro Domingos
Data Mining
Instructor: Pedro Domingos
Todays Program
Logistics
Assignments
Two projects
Individual
First project: Clickstream mining (20%)
Second project: Text classification
(20%)
Three homeworks
Individual
20% each
4
Source Materials
Related Disciplines
Machine learning
Databases
Statistics
Information retrieval
Visualization
High-performance computing
Etc.
E-commerce
Marketing and retail
Finance
Telecoms
Drug design
Process control
Space and earth sensing
Etc.
8
Classification
Regression
Probability estimation
Clustering
Association detection
Summarization
Trend and deviation detection
Etc.
10
Inductive Learning
Widely-used Approaches
Decision trees
Rule induction
Bayesian learning
Neural networks
Genetic algorithms
Instance-based learning
Etc.
12
13
Representation
Evaluation
Search
Data management
User interface
14
15
Model ensembles
Instance-based learning
Learning theory
Association rules
Clustering
16
Data WarehouseSubjectOriented
Data WarehouseIntegrated
21
Data WarehouseNon-Volatile
22
23
OLAP
users
clerk, IT professional
knowledge worker
function
decision support
DB design
application-oriented
subject-oriented
data
current, up-to-date
detailed, flat relational
isolated
repetitive
historical,
summarized, multidimensional
integrated, consolidated
ad-hoc
lots of scans
unit of work
read/write
index/hash on prim. key
short, simple transaction
# records accessed
tens
millions
#users
thousands
hundreds
DB size
100MB-GB
100GB-TB
metric
transaction throughput
usage
access
complex query
25
Cube: A Lattice of
Cuboids
all
time
time,item
0-D(apex) cuboid
item
time,location
location
item,location
time,supplier
time,item,location
supplier
location,supplier
item,supplier
time,location,supplier
time,item,supplier
1-D cuboids
2-D cuboids
3-D cuboids
item,location,supplier
4-D(base) cuboid
time, item, location, supplier
29
Conceptual Modeling
of Data Warehouses
time
time_key
day
day_of_the_week
month
quarter
year
branch
branch_key
branch_name
branch_type
location_key
units_sold
dollars_sold
avg_sales
item_key
item_name
brand
type
supplier_type
location
location_key
street
city
province_or_street
country
Measures
31
time
time_key
day
day_of_the_week
month
quarter
year
item
Sales Fact Table
time_key
item_key
branch_key
branch
location_key
branch_key
branch_name
branch_type
units_sold
dollars_sold
avg_sales
Measures
item_key
item_name
brand
type
supplier_key
supplier
supplier_key
supplier_type
location
location_key
street
city_key
city
city_key
city
province_or_street
country
32
Example of Fact
Constellation
time
time_key
day
day_of_the_week
month
quarter
year
item
Sales Fact Table
time_key
item_key
item_key
item_name
brand
type
supplier_type
branch_key
location_key
branch
branch_key
branch_name
branch_type
units_sold
dollars_sold
avg_sales
Measures
location
to_location
location_key
street
city
province_or_street
country
dollars_cost
units_shipped
shipper
shipper_key
shipper_name
location_key
shipper_type 33
Measures: Three
Categories
34
all
Europe
region
country
city
office
Germany
Frankfurt
...
...
...
Spain
North_America
Canada
Vancouver ...
L. Chan
...
...
Mexico
Toronto
M. Wind
35
Specification of Hierarchies
Schema hierarchy
day < {month < quarter; week} < year
Set_grouping hierarchy
{1..10} < inexpensive
36
Multidimensional Data
Sales volume as a function of product,
month, and region
Re
gi
on
Industry Region
Year
Product
City
Office
Month Week
Day
Month
37
Pr
od
u
TV
PC
VCR
sum
1Qtr
2Qtr
Date
3Qtr
4Qtr
sum
Country
ct
sum
38
date
country
product,country
1-D cuboids
date, country
2-D cuboids
3-D(base) cuboid
39
Visualization
OLAP capabilities
Interactive manipulation
40
Pivot (rotate):
Other operations
Shipping Method
Customer
CONTRACTS
AIR-EXPRESS
ORDER
TRUCK
Time
PRODUCT LINE
ANNUALY QTRLY
DAILY
CITY
PRODUCT ITEM
Product
PRODUCT GROUP
SALES PERSON
COUNTRY
DISTRICT
REGION
Location
Each circle is
called a
footprint
DIVISION
Promotion
Organization
42
44
Multi-Tiered Architecture
other
Metadata
source
s
Operational
DBs
Extract
Transform
Load
Refresh
Monitor
&
Integrator
Data
Warehouse
OLAP Server
Serve
Analysis
Query
Reports
Data mining
Data Marts
Data Sources
Data Storage
Enterprise warehouse
collects all of the information about subjects spanning
the entire organization
Data Mart
a subset of corporate-wide data that is of value to a
specific groups of users. Its scope is confined to
specific, selected groups, such as marketing data mart
Virtual warehouse
A set of views over operational databases
Only some of the possible summary views may be
materialized
46
Data Warehouse
Development: A
Recommended Approach
Multi-Tier Data
Warehouse
Distributed
Data Marts
Data
Mart
Data
Mart
Model refinement
Enterprise
Data
Warehouse
Model refinement
Cube Operation
()
(year)
(item, year)
Metadata Repository
Operational meta-data
Data extraction:
Data cleaning:
Load:
Data transformation:
Refresh
Discovery-Driven Exploration of
Data Cubes
57
Continuing the last example, among the max price tuples, find
the min and max shelf life, and find the fraction of the total sales
due to tuple that have min shelf life within the set of all max price
tuples
58
Information processing
Analytical processing
Data mining
Architecture of OLAM
61
An OLAM Architecture
Mining query
Mining result
Layer4
User Interface
OLAM
Engine
OLAP
Engine
Layer3
OLAP/OLAM
MDDB
Filtering&Integration
Database API
MDDB
Meta
Data
Filtering
Layer1
Databases
Data cleaning
Data
Data integration Warehouse
Data
Repository
62
Summary
Data warehouse