SlideShare a Scribd company logo
Data Warehousing/Mining
Data Warehousing/Mining
Comp 150 DW
Chapter 4: Data Mining Primitives,
Languages, and System
Architectures
Instructor: Dan Hebert
Data Warehousing/Mining
Chapter 4: Data Mining Primitives,
Languages, and System Architectures
Data mining primitives: What defines a data
mining task?
A data mining query language
Design graphical user interfaces based on a
data mining query language
Architecture of data mining systems
Summary
Data Warehousing/Mining
Why Data Mining Primitives
and Languages?
Finding all the patterns autonomously in a database?
– unrealistic because the patterns could be too many but
uninteresting
Data mining should be an interactive process
– User directs what to be mined
Users must be provided with a set of primitives to be
used to communicate with the data mining system
Incorporating these primitives in a data mining query
language
– More flexible user interaction
– Foundation for design of graphical user interface
– Standardization of data mining industry and practice
Data Warehousing/Mining
What Defines a Data Mining Task ?
Task-relevant data
– Typically interested in only a subset of the entire
database
– Specify
the name of database/data warehouse
(AllElectronics_db)
names of tables/data cubes containing relevant data
(item, customer, purchases, items_sold)
conditions for selecting the relevant data (purchases
made in Canada for relevant year)
relevant attributes or dimensions (name and price from
item, income and age from customer)
Data Warehousing/Mining
What Defines a Data Mining Task ?
(continued)
Type of knowledge to be mined
– Concept description, association, classification,
prediction, clustering, and evolution analysis
Studying buying habits of customers, mine associations
between customer profile and the items they like to buy
– Use this info to recommend items to put on sale to increase
revenue
Studying real estate transactions, mine clusters to
determine house characteristics that make for fast sales
– Use this info to make recommendations to house sellers
who want/need to sell their house quickly
Study relationship between individual’s sport statistics
and salary
– Use this info to help sports agents and sports team owners
negotiate an individual’s salary
Data Warehousing/Mining
What Defines a Data Mining Task ?
(continued)
Type of knowledge to be mined
– Pattern templates that all discovered patterns must match
– P(X:Customer, W) and Q(X, Y) => buys(X, Z)
X is key of customer relation
P & Q are predicate variables, instantiated to relevant attributes
W & Z are object variables that can take on the value of their
respective predicates
– Search for association rules is confined to those matching
some set of rules, such as:
Age(X, “30..39”) & income (X, “40K..49K”) => buys (X, “VCR”)
[2.2%, 60%]
Customers in their thirties, with an annual income of 40-49K,
are likely (with 60% confidence) to purchase a VCR, and such
cases represent about 2.2% of the total number of transactions
Data Warehousing/Mining
What Defines a Data Mining Task ?
Task-relevant data
Type of knowledge to be mined
Background knowledge
Pattern interestingness measurements
Visualization of discovered patterns
Data Warehousing/Mining
Task-Relevant Data (Minable View)
Database or data warehouse name
Database tables or data warehouse cubes
Condition for data selection
Relevant attributes or dimensions
Data grouping criteria
Data Warehousing/Mining
Types of knowledge to be mined
Characterization
Discrimination
Association
Classification/prediction
Clustering
Outlier analysis
Other data mining tasks
Data Warehousing/Mining 1
Background Knowledge:
Concept Hierarchies
Allow discovery of knowledge at multiple levels of
abstraction
Represented as a set of nodes organized in a tree
– Each node represents a concept
– Special node, all, reserved for root of tree
Concept hierarchies allow raw data to be handled at a
higher, more generalized level of abstraction
Four major types of concept hierarchies, schema, set-
grouping, operation derived, rule based
Data Warehousing/Mining 1
A Concept Hierarchy: Dimension
(location)
Mexico
all
Europe North_America
CanadaSpainGermany
Vancouver
M. WindL. Chan
...
......
... ...
...
all
region
office
country
TorontoFrankfurtcity
Define a sequence of mappings from a set of low
level concepts to higher-level, more general concepts
Data Warehousing/Mining 1
Background Knowledge:
Concept Hierarchies
Schema hierarchy – total or partial order among
attributes in the database schema, formally expresses
existing semantic relationships between attributes
– Table address
create table address (street char (50), city char (30),
province_or_state char (30), country char (40));
– Concept hierarchy location
street < city < province_or_state < country
Set-grouping hierarchy – organizes values for a given
attribute or dimension into groups or constant range
values
– {young, middle_aged, senior} subset of all(age)
{20-39} = young
{40-59} = middle_aged
{60-89} = senior
Data Warehousing/Mining 1
Background Knowledge:
Concept Hierarchies
Operation-derived hierarchy – based on
operations specified by users, experts, or the
data mining system
– email address or a URL contains hierarchy info
relating departments, universities (or companies)
and countries
– E-mail address
dmbook@cs.sfu.ca
– Partial concept hierarchy
login-name < department < university < country
Data Warehousing/Mining 1
Background Knowledge:
Concept Hierarchies
Rule-based hierarchy – either a whole concept
hierarchy or a portion of it is defined by a set of rules
and is evaluated dynamically based on the current data
and rule definition
– Following rules used to categorize items as low profit margin,
medium profit margin and high profit margin
Low profit margin - < $50
Medium profit margin – between $50 & $250
High profit margin - > $250
– Rule based concept hierarchy
low_profit_margin (X) <= price(X, P1) and cost (X, P2) and (P1 -
P2) < $50
medium_profit_margin (X) <= price(X, P1) and cost (X, P2) and
(P1 - P2) >= $50 and (P1 – P2) <= $250
high_profit_margin (X) <= price(X, P1) and cost (X, P2) and (P1 -
P2) > $250
Data Warehousing/Mining 1
Measurements of Pattern
Interestingness
After specification of task relevant data and
kind of knowledge to be mined, data mining
process may still generate a large number of
patterns
Typically, only a small portion of these patterns
will actually be of interest to a user
The user needs to further confine the number of
uninteresting patterns returned by the data
mining process
– Utilize interesting measures
Four types: simplicity, certainty, utility, novelty
Data Warehousing/Mining 1
Measurements of Pattern
Interestingness (continued)
Simplicity – A factor contributing to interestingness of
pattern is overall simplicity for comprehension
– Objective measures viewed as functions of the pattern
structure or number of attributes or operators
– More complex a rule, more difficult it is to interpret, thus less
interesting
– Example measures: rule length or number of leaves in a
decision tree
Certainty – Measure of certainty associated with
pattern that assesses validity or trustworthiness
– Confidence (A=>B) = # tuples containing both A & B/ #tuples
containing A
– Confidence of 85% for association rule buys (X, computer) =>
buys (X, software) means 85% of all customers who bought a
computer bought software also
Data Warehousing/Mining 1
Measurements of Pattern
Interestingness (continued)
Utility – potential usefulness of a pattern is a
factor determining its interestingness
– Estimated by a utility function such as support –
percentage of task relevant data tuples for which
pattern is true
Support (A=>B) = # tuples containing both A & B/ total #
of tuples
Novelty – those patterns that contribute new
information or increased performance to the
pattern set
– not previously known, surprising
Data Warehousing/Mining 1
Visualization of Discovered Patterns
Different backgrounds/usages may require different
forms of representation
– E.g., rules, tables, crosstabs, pie/bar chart etc.
Concept hierarchy is also important
– Discovered knowledge might be more understandable when
represented at high level of abstraction
– Interactive drill up/down, pivoting, slicing and dicing provide
different perspective to data
Different kinds of knowledge require different
representation: association, classification, clustering, etc.
Data Warehousing/Mining 1
A Data Mining Query
Language (DMQL)
Motivation
– A DMQL can provide the ability to support ad-hoc and
interactive data mining
– By providing a standardized language like SQL
Hope to achieve a similar effect like that SQL has on relational
database
Foundation for system development and evolution
Facilitate information exchange, technology transfer,
commercialization and wide acceptance
Design
– DMQL is designed with the primitives described earlier
Data Warehousing/Mining 2
Syntax for DMQL
Syntax for specification of
– task-relevant data
– the kind of knowledge to be mined
– concept hierarchy specification
– interestingness measure
– pattern presentation and visualization
Putting it all together — a DMQL query
Data Warehousing/Mining 2
Syntax for task-relevant data
specification
use database database_name, or use data warehouse
data_warehouse_name
– directs the data mining task to the database or data warehouse
specified
from relation(s)/cube(s) [where condition]
– specify the database tables or data cubes involved and the
conditions defining the data to be retrieved
in relevance to att_or_dim_list
– Lists attributes or dimensions for exploration
Data Warehousing/Mining 2
Syntax for task-relevant data
specification
order by order_list
– Specifies the sorting order of the task relevant data
group by grouping_list
– Specifies criteria for grouping the data
having condition
– Specifies the condition by which groups of data are
considered relevant
Data Warehousing/Mining 2
Top Level Syntax of DMQL
(DMQL) ::= (DMQL_Statement);{(DMQL_Statement)
(DMQL_Statement) ::= (Data_Mining_Statement)
| (Concept_Hierarchy_Definition_Statement)
| (Visualization_and_Presentation)
Data Warehousing/Mining 2
Top Level Syntax of DMQL
(continued)
(Data_Mining_Statement) ::= use database (database_name)
| use data warehouse (data_warehouse_name)
{use hierarchy (hierarchy_name) for (attribute_or_dimension)}
(Mine_Knowledge_Specification)
in relevance to (attribute_or_dimension_list)
from (relation(s)/cube(s))
[where (condition)]
[order by (order_list)]
[group by (grouping_list)]
[having (condition)]
{with [(interest_measure_name)] threshold = (threshold_value)
[for (attribute(s))]}
Data Warehousing/Mining 2
Top Level Syntax of DMQL
(continued)
(Mine_Knowledge_Specification) ::= (Mine_Char) |
(Mine_Desc) | (Mine_Assoc) | (Mine_Class)
(Mine_Char) ::= mine characteristics [as (pattern_name)]
analyze (measure(s))
(Mine_Desc) ::= mine comparison [as (pattern_name)]
for (target_class) where (target_condition)
{versus (contrast_class_i) where (contrast_condition_i)]
analyze (measure(s))
Mine_Assoc) ::= mine association [as (pattern_name)]
[matching (metapattern)]
Data Warehousing/Mining 2
Top Level Syntax of DMQL
(continued)
(Mine_Class) ::= mine classification [as (pattern_name)]
analyze (classifying_attribute_or_dimension)
(Concept_Hierarchy_Definition_Statement) ::=
define hierarchy (hierarchy_name)
[for (attribute_or_dimension)]
on (relation_or_cube_or_hierarchy)
as (hierarchy_description)
[where (condition)]
(Visualization_and_Presentation) ::= display as
(result_form) | {(Multilevel_Manipulation)}
Data Warehousing/Mining 2
Top Level Syntax of DMQL
(continued)
(Multilevel_Manipulation) ::=
roll up on (attribute_or_dimension)
| drill down on (attribute_or_dimension)
| add (attribute_or_dimension)
| drop (attribute_or_dimension)
Data Warehousing/Mining 2
Specification of task-relevant data
Data Warehousing/Mining 2
Syntax for specifying the kind of
knowledge to be mined
Characterization
Mine_Knowledge_Specification  ::=
mine characteristics [as pattern_name]
analyze measure(s)
– Specifies that characteristic descriptions are to be
mined
– Analyze specifies aggregate measures
– Example: mine characteristics as customerPurchasing
analyze count%
Data Warehousing/Mining 3
Syntax for specifying the kind of
knowledge to be mined
Discrimination
Mine_Knowledge_Specification  ::=
mine comparison [as pattern_name]
for target_class where target_condition 
{versus contrast_class_i where contrast_condition_i} 
analyze measure(s)
– Specifies that discriminant descriptions are to be mined, compare
a given target class of objects with one or more contrasting classes
(thus referred to as comparison)
– Analyze specifies aggregate measures
– Example: mine comparison as purchaseGroups for bigSpenders
where avg(I.price) >= $100 versus budgetSpenders where
avg(I.price) < $100 analyze count
Data Warehousing/Mining 3
Syntax for specifying the kind of
knowledge to be mined
Association
Mine_Knowledge_Specification  ::=
mine associations [as pattern_name]
[matching (metapattern)]
– Specifies the mining of patterns of association
– Can provide templates (metapattern) with the
matching clause
– Example: mine associations as buyingHabits matching
P(X: customer, W) and Q(X, Y) => buys (X,Z)
Data Warehousing/Mining 3
Syntax for specifying the kind of
knowledge to be mined (cont.)
Classification
Mine_Knowledge_Specification  ::=
mine classification [as pattern_name]
analyze classifying_attribute_or_dimension
– Specifies that patterns for data classification are to be mined
– Analyze clause specifies that classification is performed
according to the values of (classifying_attribute_or_dimension)
– For categorical attributes or dimensions, each value represents
a class (such as low-risk, medium risk, high risk)
– For numeric attributes, each class defined by a range (such as
20-39, 40-59, 60-89 for age)
– Example: mine classifications as
classifyCustomerCreditRating analyze credit_rating
Data Warehousing/Mining 3
Syntax for concept hierarchy
specification
To specify what concept hierarchies to use
use hierarchy <hierarchy> for <attribute_or_dimension>
We use different syntax to define different type of hierarchies
– schema hierarchies
define hierarchy time_hierarchy on date as [date,month
quarter,year]
– set-grouping hierarchies
define hierarchy age_hierarchy for age on customer as
level1: {young, middle_aged, senior} < level0: all
level2: {20, ..., 39} < level1: young
level2: {40, ..., 59} < level1: middle_aged
level2: {60, ..., 89} < level1: senior
Data Warehousing/Mining 3
Syntax for concept hierarchy
specification (Cont.)
– operation-derived hierarchies
define hierarchy age_hierarchy for age on customer as
{age_category(1), ..., age_category(5)} := cluster(default, age,
5) < all(age)
– rule-based hierarchies
define hierarchy profit_margin_hierarchy on item as
level_1: low_profit_margin < level_0: all
if (price - cost)< $50
level_1: medium-profit_margin < level_0: all
if ((price - cost) > $50) and ((price - cost) <= $250))
level_1: high_profit_margin < level_0: all
if (price - cost) > $250
Data Warehousing/Mining 3
Syntax for interestingness measure
specification
Interestingness measures and thresholds can be
specified by the user with the statement:
with <interest_measure_name>  threshold =
threshold_value
Example:
with support threshold = 0.05
with confidence threshold = 0.7 
Data Warehousing/Mining 3
Syntax for pattern presentation and
visualization specification
We have syntax which allows users to specify the
display of discovered patterns in one or more forms
display as <result_form>
Result_form = Rules, tables, crosstabs, pie or bar
charts, decision trees, cubes, curves, or surfaces
To facilitate interactive viewing at different concept
level, the following syntax is defined:
Multilevel_Manipulation  ::=   roll up on attribute_or_dimension
| drill down on attribute_or_dimension
| add attribute_or_dimension
| drop attribute_or_dimension
Data Warehousing/Mining 3
Putting it all together: the full
specification of a DMQL query
use database AllElectronics_db
use hierarchy location_hierarchy for B.address
mine characteristics as customerPurchasing
analyze count%
in relevance to C.age, I.type, I.place_made
from customer C, item I, purchases P, items_sold S, works_at W,
branch
where I.item_ID = S.item_ID and S.trans_ID = P.trans_ID
and P.cust_ID = C.cust_ID and P.method_paid = ``AmEx''
and P.empl_ID = W.empl_ID and W.branch_ID =
B.branch_ID and B.address = ``Canada" and I.price >= 100
with noise threshold = 0.05
display as table
Data Warehousing/Mining 3
Other Data Mining Languages
& Standardization Efforts
Association rule language specifications
– MSQL (Imielinski & Virmani’99)
– MineRule (Meo Psaila and Ceri’96)
– Query flocks based on Datalog syntax (Tsur et al’98)
OLEDB for DM (Microsoft’2000)
– Based on OLE, OLE DB, OLE DB for OLAP
– Integrating DBMS, data warehouse and data mining
CRISP-DM (CRoss-Industry Standard Process for Data Mining)
– Providing a platform and process structure for effective data mining
– Emphasizing on deploying data mining technology to solve business
problems
Data Warehousing/Mining 3
Designing Graphical User Interfaces
based on a data mining query language
What tasks should be considered in the design
GUIs based on a data mining query language?
– Data collection and data mining query composition
– Presentation of discovered patterns
– Hierarchy specification and manipulation
– Manipulation of data mining primitives
– Interactive multilevel mining
– Other miscellaneous information
Data Warehousing/Mining 4
Data Mining System
Architectures
Coupling data mining system with DB/DW system
– No coupling—flat file processing, not recommended
– Loose coupling
Fetching data from DB/DW
– Semi-tight coupling—enhanced DM performance
Provide efficient implement a few data mining primitives in a
DB/DW system, e.g., sorting, indexing, aggregation, histogram
analysis, multiway join, precomputation of some stat functions
– Tight coupling—A uniform information processing environment
DM is smoothly integrated into a DB/DW system, mining query is
optimized based on mining query, indexing, query processing
methods, etc.
Data Warehousing/Mining 4
Summary
Five primitives for specification of a data mining task
– task-relevant data
– kind of knowledge to be mined
– background knowledge
– interestingness measures
– knowledge presentation and visualization techniques to be used
for displaying the discovered patterns
Data mining query languages
– DMQL, MS/OLEDB for DM, etc.
Data mining system architecture
– No coupling, loose coupling, semi-tight coupling, tight coupling

More Related Content

What's hot

Data warehousing unit 1
Data warehousing unit 1Data warehousing unit 1
Data warehousing unit 1
WE-IT TUTORIALS
 
Current trends in DBMS
Current trends in DBMSCurrent trends in DBMS
Current trends in DBMS
Swatanu Satpathy
 
Data warehouse
Data warehouseData warehouse
Data warehouse
Rishabh Dogra
 
Multimedia Database
Multimedia Database Multimedia Database
Multimedia Database
Avnish Patel
 
Real World Business Intelligence and Data Warehousing
Real World Business Intelligence and Data WarehousingReal World Business Intelligence and Data Warehousing
Real World Business Intelligence and Data Warehousing
ukc4
 
2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli
truongthuthuy47
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
Sayed Ahmed
 
Kendall_White Resume6
Kendall_White Resume6Kendall_White Resume6
Kendall_White Resume6
Kendall White
 
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
Insight Technology, Inc.
 
Automating Data Lakes, Data Warehouses and Data Stores
Automating Data Lakes, Data Warehouses and Data StoresAutomating Data Lakes, Data Warehouses and Data Stores
Automating Data Lakes, Data Warehouses and Data Stores
Profinit
 
Emilio Lopez Professional Resume Web Version
Emilio Lopez Professional Resume Web VersionEmilio Lopez Professional Resume Web Version
Emilio Lopez Professional Resume Web Version
emlope
 
Big data Analytics
Big data AnalyticsBig data Analytics
Big data Analytics
ShivanandaVSeeri
 
IOUG93 - Technical Architecture for the Data Warehouse - Presentation
IOUG93 - Technical Architecture for the Data Warehouse - PresentationIOUG93 - Technical Architecture for the Data Warehouse - Presentation
IOUG93 - Technical Architecture for the Data Warehouse - Presentation
David Walker
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
Surbhi Panhalkar
 

What's hot (14)

Data warehousing unit 1
Data warehousing unit 1Data warehousing unit 1
Data warehousing unit 1
 
Current trends in DBMS
Current trends in DBMSCurrent trends in DBMS
Current trends in DBMS
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
Multimedia Database
Multimedia Database Multimedia Database
Multimedia Database
 
Real World Business Intelligence and Data Warehousing
Real World Business Intelligence and Data WarehousingReal World Business Intelligence and Data Warehousing
Real World Business Intelligence and Data Warehousing
 
2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli2 data warehouse life cycle golfarelli
2 data warehouse life cycle golfarelli
 
Data modeling star schema
Data modeling star schemaData modeling star schema
Data modeling star schema
 
Kendall_White Resume6
Kendall_White Resume6Kendall_White Resume6
Kendall_White Resume6
 
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
[db tech showcase Tokyo 2015] DATA WAREHOUSE BASICS by Wiliiam Inmon
 
Automating Data Lakes, Data Warehouses and Data Stores
Automating Data Lakes, Data Warehouses and Data StoresAutomating Data Lakes, Data Warehouses and Data Stores
Automating Data Lakes, Data Warehouses and Data Stores
 
Emilio Lopez Professional Resume Web Version
Emilio Lopez Professional Resume Web VersionEmilio Lopez Professional Resume Web Version
Emilio Lopez Professional Resume Web Version
 
Big data Analytics
Big data AnalyticsBig data Analytics
Big data Analytics
 
IOUG93 - Technical Architecture for the Data Warehouse - Presentation
IOUG93 - Technical Architecture for the Data Warehouse - PresentationIOUG93 - Technical Architecture for the Data Warehouse - Presentation
IOUG93 - Technical Architecture for the Data Warehouse - Presentation
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
 

Viewers also liked

Ca 5011 1
Ca 5011 1Ca 5011 1
Ca 5011 1
neeraj365
 
ARIADNE: Final Report on Data Mining
ARIADNE: Final Report on Data MiningARIADNE: Final Report on Data Mining
ARIADNE: Final Report on Data Mining
ariadnenetwork
 
Data mining-primitives-languages-and-system-architectures2641
Data mining-primitives-languages-and-system-architectures2641Data mining-primitives-languages-and-system-architectures2641
Data mining-primitives-languages-and-system-architectures2641
Aiswaryadevi Jaganmohan
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, data
Salah Amean
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
saba khan
 
Data mining: Classification and prediction
Data mining: Classification and predictionData mining: Classification and prediction
Data mining: Classification and prediction
DataminingTools Inc
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
Jewel Refran
 
Project Report Format
Project Report FormatProject Report Format
Project Report Format
Vikram Thadeshvar
 
Cluster Analysis for Dummies
Cluster Analysis for DummiesCluster Analysis for Dummies
Cluster Analysis for Dummies
Venkata Reddy Konasani
 

Viewers also liked (9)

Ca 5011 1
Ca 5011 1Ca 5011 1
Ca 5011 1
 
ARIADNE: Final Report on Data Mining
ARIADNE: Final Report on Data MiningARIADNE: Final Report on Data Mining
ARIADNE: Final Report on Data Mining
 
Data mining-primitives-languages-and-system-architectures2641
Data mining-primitives-languages-and-system-architectures2641Data mining-primitives-languages-and-system-architectures2641
Data mining-primitives-languages-and-system-architectures2641
 
Data mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, dataData mining :Concepts and Techniques Chapter 2, data
Data mining :Concepts and Techniques Chapter 2, data
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Data mining: Classification and prediction
Data mining: Classification and predictionData mining: Classification and prediction
Data mining: Classification and prediction
 
Cluster analysis
Cluster analysisCluster analysis
Cluster analysis
 
Project Report Format
Project Report FormatProject Report Format
Project Report Format
 
Cluster Analysis for Dummies
Cluster Analysis for DummiesCluster Analysis for Dummies
Cluster Analysis for Dummies
 

Similar to Mca i unit part 501 dm

Data Mining Presentation on Science Day 2023
Data Mining Presentation on Science Day 2023Data Mining Presentation on Science Day 2023
Data Mining Presentation on Science Day 2023
SakshiTiwari490123
 
Data-Mining-2.ppt
Data-Mining-2.pptData-Mining-2.ppt
Data-Mining-2.ppt
Lazher ZAIDI
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
Nit Hik
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
Arun Verma
 
Hdg geo discussion
Hdg geo discussionHdg geo discussion
Dma unit 1
Dma unit   1Dma unit   1
Dma unit 1
thamizh arasi
 
Unit i
Unit iUnit i
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
vivekjv
 
BI Chapter 04.pdf business business business business
BI Chapter 04.pdf business business business businessBI Chapter 04.pdf business business business business
BI Chapter 04.pdf business business business business
JawaherAlbaddawi
 
Dwdmunit1 a
Dwdmunit1 aDwdmunit1 a
Dwdmunit1 a
bhagathk
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dm
sumit621
 
U - 2 Emerging.pptx
U - 2 Emerging.pptxU - 2 Emerging.pptx
U - 2 Emerging.pptx
MulukenTamrat2
 
Chapter 2 - Intro to Data Sciences[2].pptx
Chapter 2 - Intro to Data Sciences[2].pptxChapter 2 - Intro to Data Sciences[2].pptx
Chapter 2 - Intro to Data Sciences[2].pptx
JethroDignadice2
 
LECTURE4.ppt
LECTURE4.pptLECTURE4.ppt
LECTURE4.ppt
jhunkriscristobal2
 
Data mining , Knowledge Discovery Process, Classification
Data mining , Knowledge Discovery Process, ClassificationData mining , Knowledge Discovery Process, Classification
Data mining , Knowledge Discovery Process, Classification
Dr. Abdul Ahad Abro
 
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionarySe 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
babak danyal
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
Girish. N. Raghavan
 
Unit-V-Introduction to Data Mining.pptx
Unit-V-Introduction to  Data Mining.pptxUnit-V-Introduction to  Data Mining.pptx
Unit-V-Introduction to Data Mining.pptx
Harsha Patel
 
Text mining and analytics v6 - p1
Text mining and analytics   v6 - p1Text mining and analytics   v6 - p1
Text mining and analytics v6 - p1
Dave King
 
MIS.pptx
MIS.pptxMIS.pptx

Similar to Mca i unit part 501 dm (20)

Data Mining Presentation on Science Day 2023
Data Mining Presentation on Science Day 2023Data Mining Presentation on Science Day 2023
Data Mining Presentation on Science Day 2023
 
Data-Mining-2.ppt
Data-Mining-2.pptData-Mining-2.ppt
Data-Mining-2.ppt
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
 
Data mining-2
Data mining-2Data mining-2
Data mining-2
 
Hdg geo discussion
Hdg geo discussionHdg geo discussion
Hdg geo discussion
 
Dma unit 1
Dma unit   1Dma unit   1
Dma unit 1
 
Unit i
Unit iUnit i
Unit i
 
Data Warehouse Modeling
Data Warehouse ModelingData Warehouse Modeling
Data Warehouse Modeling
 
BI Chapter 04.pdf business business business business
BI Chapter 04.pdf business business business businessBI Chapter 04.pdf business business business business
BI Chapter 04.pdf business business business business
 
Dwdmunit1 a
Dwdmunit1 aDwdmunit1 a
Dwdmunit1 a
 
Cssu dw dm
Cssu dw dmCssu dw dm
Cssu dw dm
 
U - 2 Emerging.pptx
U - 2 Emerging.pptxU - 2 Emerging.pptx
U - 2 Emerging.pptx
 
Chapter 2 - Intro to Data Sciences[2].pptx
Chapter 2 - Intro to Data Sciences[2].pptxChapter 2 - Intro to Data Sciences[2].pptx
Chapter 2 - Intro to Data Sciences[2].pptx
 
LECTURE4.ppt
LECTURE4.pptLECTURE4.ppt
LECTURE4.ppt
 
Data mining , Knowledge Discovery Process, Classification
Data mining , Knowledge Discovery Process, ClassificationData mining , Knowledge Discovery Process, Classification
Data mining , Knowledge Discovery Process, Classification
 
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionarySe 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
Se 381 - lec 21 - 23 - 12 may09 - df-ds and data dictionary
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
Unit-V-Introduction to Data Mining.pptx
Unit-V-Introduction to  Data Mining.pptxUnit-V-Introduction to  Data Mining.pptx
Unit-V-Introduction to Data Mining.pptx
 
Text mining and analytics v6 - p1
Text mining and analytics   v6 - p1Text mining and analytics   v6 - p1
Text mining and analytics v6 - p1
 
MIS.pptx
MIS.pptxMIS.pptx
MIS.pptx
 

Recently uploaded

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
Celine George
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 

Recently uploaded (20)

Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
How to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold MethodHow to Build a Module in Odoo 17 Using the Scaffold Method
How to Build a Module in Odoo 17 Using the Scaffold Method
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 

Mca i unit part 501 dm

  • 1. Data Warehousing/Mining Data Warehousing/Mining Comp 150 DW Chapter 4: Data Mining Primitives, Languages, and System Architectures Instructor: Dan Hebert
  • 2. Data Warehousing/Mining Chapter 4: Data Mining Primitives, Languages, and System Architectures Data mining primitives: What defines a data mining task? A data mining query language Design graphical user interfaces based on a data mining query language Architecture of data mining systems Summary
  • 3. Data Warehousing/Mining Why Data Mining Primitives and Languages? Finding all the patterns autonomously in a database? – unrealistic because the patterns could be too many but uninteresting Data mining should be an interactive process – User directs what to be mined Users must be provided with a set of primitives to be used to communicate with the data mining system Incorporating these primitives in a data mining query language – More flexible user interaction – Foundation for design of graphical user interface – Standardization of data mining industry and practice
  • 4. Data Warehousing/Mining What Defines a Data Mining Task ? Task-relevant data – Typically interested in only a subset of the entire database – Specify the name of database/data warehouse (AllElectronics_db) names of tables/data cubes containing relevant data (item, customer, purchases, items_sold) conditions for selecting the relevant data (purchases made in Canada for relevant year) relevant attributes or dimensions (name and price from item, income and age from customer)
  • 5. Data Warehousing/Mining What Defines a Data Mining Task ? (continued) Type of knowledge to be mined – Concept description, association, classification, prediction, clustering, and evolution analysis Studying buying habits of customers, mine associations between customer profile and the items they like to buy – Use this info to recommend items to put on sale to increase revenue Studying real estate transactions, mine clusters to determine house characteristics that make for fast sales – Use this info to make recommendations to house sellers who want/need to sell their house quickly Study relationship between individual’s sport statistics and salary – Use this info to help sports agents and sports team owners negotiate an individual’s salary
  • 6. Data Warehousing/Mining What Defines a Data Mining Task ? (continued) Type of knowledge to be mined – Pattern templates that all discovered patterns must match – P(X:Customer, W) and Q(X, Y) => buys(X, Z) X is key of customer relation P & Q are predicate variables, instantiated to relevant attributes W & Z are object variables that can take on the value of their respective predicates – Search for association rules is confined to those matching some set of rules, such as: Age(X, “30..39”) & income (X, “40K..49K”) => buys (X, “VCR”) [2.2%, 60%] Customers in their thirties, with an annual income of 40-49K, are likely (with 60% confidence) to purchase a VCR, and such cases represent about 2.2% of the total number of transactions
  • 7. Data Warehousing/Mining What Defines a Data Mining Task ? Task-relevant data Type of knowledge to be mined Background knowledge Pattern interestingness measurements Visualization of discovered patterns
  • 8. Data Warehousing/Mining Task-Relevant Data (Minable View) Database or data warehouse name Database tables or data warehouse cubes Condition for data selection Relevant attributes or dimensions Data grouping criteria
  • 9. Data Warehousing/Mining Types of knowledge to be mined Characterization Discrimination Association Classification/prediction Clustering Outlier analysis Other data mining tasks
  • 10. Data Warehousing/Mining 1 Background Knowledge: Concept Hierarchies Allow discovery of knowledge at multiple levels of abstraction Represented as a set of nodes organized in a tree – Each node represents a concept – Special node, all, reserved for root of tree Concept hierarchies allow raw data to be handled at a higher, more generalized level of abstraction Four major types of concept hierarchies, schema, set- grouping, operation derived, rule based
  • 11. Data Warehousing/Mining 1 A Concept Hierarchy: Dimension (location) Mexico all Europe North_America CanadaSpainGermany Vancouver M. WindL. Chan ... ...... ... ... ... all region office country TorontoFrankfurtcity Define a sequence of mappings from a set of low level concepts to higher-level, more general concepts
  • 12. Data Warehousing/Mining 1 Background Knowledge: Concept Hierarchies Schema hierarchy – total or partial order among attributes in the database schema, formally expresses existing semantic relationships between attributes – Table address create table address (street char (50), city char (30), province_or_state char (30), country char (40)); – Concept hierarchy location street < city < province_or_state < country Set-grouping hierarchy – organizes values for a given attribute or dimension into groups or constant range values – {young, middle_aged, senior} subset of all(age) {20-39} = young {40-59} = middle_aged {60-89} = senior
  • 13. Data Warehousing/Mining 1 Background Knowledge: Concept Hierarchies Operation-derived hierarchy – based on operations specified by users, experts, or the data mining system – email address or a URL contains hierarchy info relating departments, universities (or companies) and countries – E-mail address dmbook@cs.sfu.ca – Partial concept hierarchy login-name < department < university < country
  • 14. Data Warehousing/Mining 1 Background Knowledge: Concept Hierarchies Rule-based hierarchy – either a whole concept hierarchy or a portion of it is defined by a set of rules and is evaluated dynamically based on the current data and rule definition – Following rules used to categorize items as low profit margin, medium profit margin and high profit margin Low profit margin - < $50 Medium profit margin – between $50 & $250 High profit margin - > $250 – Rule based concept hierarchy low_profit_margin (X) <= price(X, P1) and cost (X, P2) and (P1 - P2) < $50 medium_profit_margin (X) <= price(X, P1) and cost (X, P2) and (P1 - P2) >= $50 and (P1 – P2) <= $250 high_profit_margin (X) <= price(X, P1) and cost (X, P2) and (P1 - P2) > $250
  • 15. Data Warehousing/Mining 1 Measurements of Pattern Interestingness After specification of task relevant data and kind of knowledge to be mined, data mining process may still generate a large number of patterns Typically, only a small portion of these patterns will actually be of interest to a user The user needs to further confine the number of uninteresting patterns returned by the data mining process – Utilize interesting measures Four types: simplicity, certainty, utility, novelty
  • 16. Data Warehousing/Mining 1 Measurements of Pattern Interestingness (continued) Simplicity – A factor contributing to interestingness of pattern is overall simplicity for comprehension – Objective measures viewed as functions of the pattern structure or number of attributes or operators – More complex a rule, more difficult it is to interpret, thus less interesting – Example measures: rule length or number of leaves in a decision tree Certainty – Measure of certainty associated with pattern that assesses validity or trustworthiness – Confidence (A=>B) = # tuples containing both A & B/ #tuples containing A – Confidence of 85% for association rule buys (X, computer) => buys (X, software) means 85% of all customers who bought a computer bought software also
  • 17. Data Warehousing/Mining 1 Measurements of Pattern Interestingness (continued) Utility – potential usefulness of a pattern is a factor determining its interestingness – Estimated by a utility function such as support – percentage of task relevant data tuples for which pattern is true Support (A=>B) = # tuples containing both A & B/ total # of tuples Novelty – those patterns that contribute new information or increased performance to the pattern set – not previously known, surprising
  • 18. Data Warehousing/Mining 1 Visualization of Discovered Patterns Different backgrounds/usages may require different forms of representation – E.g., rules, tables, crosstabs, pie/bar chart etc. Concept hierarchy is also important – Discovered knowledge might be more understandable when represented at high level of abstraction – Interactive drill up/down, pivoting, slicing and dicing provide different perspective to data Different kinds of knowledge require different representation: association, classification, clustering, etc.
  • 19. Data Warehousing/Mining 1 A Data Mining Query Language (DMQL) Motivation – A DMQL can provide the ability to support ad-hoc and interactive data mining – By providing a standardized language like SQL Hope to achieve a similar effect like that SQL has on relational database Foundation for system development and evolution Facilitate information exchange, technology transfer, commercialization and wide acceptance Design – DMQL is designed with the primitives described earlier
  • 20. Data Warehousing/Mining 2 Syntax for DMQL Syntax for specification of – task-relevant data – the kind of knowledge to be mined – concept hierarchy specification – interestingness measure – pattern presentation and visualization Putting it all together — a DMQL query
  • 21. Data Warehousing/Mining 2 Syntax for task-relevant data specification use database database_name, or use data warehouse data_warehouse_name – directs the data mining task to the database or data warehouse specified from relation(s)/cube(s) [where condition] – specify the database tables or data cubes involved and the conditions defining the data to be retrieved in relevance to att_or_dim_list – Lists attributes or dimensions for exploration
  • 22. Data Warehousing/Mining 2 Syntax for task-relevant data specification order by order_list – Specifies the sorting order of the task relevant data group by grouping_list – Specifies criteria for grouping the data having condition – Specifies the condition by which groups of data are considered relevant
  • 23. Data Warehousing/Mining 2 Top Level Syntax of DMQL (DMQL) ::= (DMQL_Statement);{(DMQL_Statement) (DMQL_Statement) ::= (Data_Mining_Statement) | (Concept_Hierarchy_Definition_Statement) | (Visualization_and_Presentation)
  • 24. Data Warehousing/Mining 2 Top Level Syntax of DMQL (continued) (Data_Mining_Statement) ::= use database (database_name) | use data warehouse (data_warehouse_name) {use hierarchy (hierarchy_name) for (attribute_or_dimension)} (Mine_Knowledge_Specification) in relevance to (attribute_or_dimension_list) from (relation(s)/cube(s)) [where (condition)] [order by (order_list)] [group by (grouping_list)] [having (condition)] {with [(interest_measure_name)] threshold = (threshold_value) [for (attribute(s))]}
  • 25. Data Warehousing/Mining 2 Top Level Syntax of DMQL (continued) (Mine_Knowledge_Specification) ::= (Mine_Char) | (Mine_Desc) | (Mine_Assoc) | (Mine_Class) (Mine_Char) ::= mine characteristics [as (pattern_name)] analyze (measure(s)) (Mine_Desc) ::= mine comparison [as (pattern_name)] for (target_class) where (target_condition) {versus (contrast_class_i) where (contrast_condition_i)] analyze (measure(s)) Mine_Assoc) ::= mine association [as (pattern_name)] [matching (metapattern)]
  • 26. Data Warehousing/Mining 2 Top Level Syntax of DMQL (continued) (Mine_Class) ::= mine classification [as (pattern_name)] analyze (classifying_attribute_or_dimension) (Concept_Hierarchy_Definition_Statement) ::= define hierarchy (hierarchy_name) [for (attribute_or_dimension)] on (relation_or_cube_or_hierarchy) as (hierarchy_description) [where (condition)] (Visualization_and_Presentation) ::= display as (result_form) | {(Multilevel_Manipulation)}
  • 27. Data Warehousing/Mining 2 Top Level Syntax of DMQL (continued) (Multilevel_Manipulation) ::= roll up on (attribute_or_dimension) | drill down on (attribute_or_dimension) | add (attribute_or_dimension) | drop (attribute_or_dimension)
  • 29. Data Warehousing/Mining 2 Syntax for specifying the kind of knowledge to be mined Characterization Mine_Knowledge_Specification  ::= mine characteristics [as pattern_name] analyze measure(s) – Specifies that characteristic descriptions are to be mined – Analyze specifies aggregate measures – Example: mine characteristics as customerPurchasing analyze count%
  • 30. Data Warehousing/Mining 3 Syntax for specifying the kind of knowledge to be mined Discrimination Mine_Knowledge_Specification  ::= mine comparison [as pattern_name] for target_class where target_condition  {versus contrast_class_i where contrast_condition_i}  analyze measure(s) – Specifies that discriminant descriptions are to be mined, compare a given target class of objects with one or more contrasting classes (thus referred to as comparison) – Analyze specifies aggregate measures – Example: mine comparison as purchaseGroups for bigSpenders where avg(I.price) >= $100 versus budgetSpenders where avg(I.price) < $100 analyze count
  • 31. Data Warehousing/Mining 3 Syntax for specifying the kind of knowledge to be mined Association Mine_Knowledge_Specification  ::= mine associations [as pattern_name] [matching (metapattern)] – Specifies the mining of patterns of association – Can provide templates (metapattern) with the matching clause – Example: mine associations as buyingHabits matching P(X: customer, W) and Q(X, Y) => buys (X,Z)
  • 32. Data Warehousing/Mining 3 Syntax for specifying the kind of knowledge to be mined (cont.) Classification Mine_Knowledge_Specification  ::= mine classification [as pattern_name] analyze classifying_attribute_or_dimension – Specifies that patterns for data classification are to be mined – Analyze clause specifies that classification is performed according to the values of (classifying_attribute_or_dimension) – For categorical attributes or dimensions, each value represents a class (such as low-risk, medium risk, high risk) – For numeric attributes, each class defined by a range (such as 20-39, 40-59, 60-89 for age) – Example: mine classifications as classifyCustomerCreditRating analyze credit_rating
  • 33. Data Warehousing/Mining 3 Syntax for concept hierarchy specification To specify what concept hierarchies to use use hierarchy <hierarchy> for <attribute_or_dimension> We use different syntax to define different type of hierarchies – schema hierarchies define hierarchy time_hierarchy on date as [date,month quarter,year] – set-grouping hierarchies define hierarchy age_hierarchy for age on customer as level1: {young, middle_aged, senior} < level0: all level2: {20, ..., 39} < level1: young level2: {40, ..., 59} < level1: middle_aged level2: {60, ..., 89} < level1: senior
  • 34. Data Warehousing/Mining 3 Syntax for concept hierarchy specification (Cont.) – operation-derived hierarchies define hierarchy age_hierarchy for age on customer as {age_category(1), ..., age_category(5)} := cluster(default, age, 5) < all(age) – rule-based hierarchies define hierarchy profit_margin_hierarchy on item as level_1: low_profit_margin < level_0: all if (price - cost)< $50 level_1: medium-profit_margin < level_0: all if ((price - cost) > $50) and ((price - cost) <= $250)) level_1: high_profit_margin < level_0: all if (price - cost) > $250
  • 35. Data Warehousing/Mining 3 Syntax for interestingness measure specification Interestingness measures and thresholds can be specified by the user with the statement: with <interest_measure_name>  threshold = threshold_value Example: with support threshold = 0.05 with confidence threshold = 0.7 
  • 36. Data Warehousing/Mining 3 Syntax for pattern presentation and visualization specification We have syntax which allows users to specify the display of discovered patterns in one or more forms display as <result_form> Result_form = Rules, tables, crosstabs, pie or bar charts, decision trees, cubes, curves, or surfaces To facilitate interactive viewing at different concept level, the following syntax is defined: Multilevel_Manipulation  ::=   roll up on attribute_or_dimension | drill down on attribute_or_dimension | add attribute_or_dimension | drop attribute_or_dimension
  • 37. Data Warehousing/Mining 3 Putting it all together: the full specification of a DMQL query use database AllElectronics_db use hierarchy location_hierarchy for B.address mine characteristics as customerPurchasing analyze count% in relevance to C.age, I.type, I.place_made from customer C, item I, purchases P, items_sold S, works_at W, branch where I.item_ID = S.item_ID and S.trans_ID = P.trans_ID and P.cust_ID = C.cust_ID and P.method_paid = ``AmEx'' and P.empl_ID = W.empl_ID and W.branch_ID = B.branch_ID and B.address = ``Canada" and I.price >= 100 with noise threshold = 0.05 display as table
  • 38. Data Warehousing/Mining 3 Other Data Mining Languages & Standardization Efforts Association rule language specifications – MSQL (Imielinski & Virmani’99) – MineRule (Meo Psaila and Ceri’96) – Query flocks based on Datalog syntax (Tsur et al’98) OLEDB for DM (Microsoft’2000) – Based on OLE, OLE DB, OLE DB for OLAP – Integrating DBMS, data warehouse and data mining CRISP-DM (CRoss-Industry Standard Process for Data Mining) – Providing a platform and process structure for effective data mining – Emphasizing on deploying data mining technology to solve business problems
  • 39. Data Warehousing/Mining 3 Designing Graphical User Interfaces based on a data mining query language What tasks should be considered in the design GUIs based on a data mining query language? – Data collection and data mining query composition – Presentation of discovered patterns – Hierarchy specification and manipulation – Manipulation of data mining primitives – Interactive multilevel mining – Other miscellaneous information
  • 40. Data Warehousing/Mining 4 Data Mining System Architectures Coupling data mining system with DB/DW system – No coupling—flat file processing, not recommended – Loose coupling Fetching data from DB/DW – Semi-tight coupling—enhanced DM performance Provide efficient implement a few data mining primitives in a DB/DW system, e.g., sorting, indexing, aggregation, histogram analysis, multiway join, precomputation of some stat functions – Tight coupling—A uniform information processing environment DM is smoothly integrated into a DB/DW system, mining query is optimized based on mining query, indexing, query processing methods, etc.
  • 41. Data Warehousing/Mining 4 Summary Five primitives for specification of a data mining task – task-relevant data – kind of knowledge to be mined – background knowledge – interestingness measures – knowledge presentation and visualization techniques to be used for displaying the discovered patterns Data mining query languages – DMQL, MS/OLEDB for DM, etc. Data mining system architecture – No coupling, loose coupling, semi-tight coupling, tight coupling

Editor's Notes

  1. The slides for this text are organized into several modules. Each lecture contains about enough material for a 1.25 hour class period. (The time estimate is very approximate--it will vary with the instructor, and lectures also differ in length; so use this as a rough guideline.) This lecture is the first of two in Module (1). Module (1): Introduction (DBMS, Relational Model) Module (2): Storage and File Organizations (Disks, Buffering, Indexes) Module (3): Database Concepts (Relational Queries, DDL/ICs, Views and Security) Module (4): Relational Implementation (Query Evaluation, Optimization) Module (5): Database Design (ER Model, Normalization, Physical Design, Tuning) Module (6): Transaction Processing (Concurrency Control, Recovery) Module (7): Advanced Topics