Lecture 4: From Data Cubes to ML

Slides:



Advertisements
Similar presentations
An overview of Data Warehousing and OLAP Technology Presented By Manish Desai.
Advertisements

Outline What is a data warehouse? A multi-dimensional data model Data warehouse architecture Data warehouse implementation Further development of data.
April 30, Data Warehousing and OLAP Technology: An Overview  What is a data warehouse?  Data warehouse architecture  From data warehousing to.
Data Warehousing.
Introduction to Data Warehousing CPS Notes 6.
1 Lecture 09: OLAP
ICS 421 Spring 2010 Data Warehousing (1) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 3/18/20101Lipyeow.
The Role of Data Warehousing and OLAP Technologies CS 536 – Data Mining These slides are adapted from J. Han and M. Kamber’s book slides (
Data Warehousing Xintao Wu. Evolution of Database Technology (See Fig. 1.1) 1960s: Data collection, database creation, IMS and network DBMS 1970s: Relational.
Dr. M. Sulaiman Khan Dept. of Computer Science University of Liverpool 2010 COMP207: Data Mining Data Warehousing COMP207: Data Mining.
© Tan,Steinbach, Kumar Introduction to Data Mining 8/05/ Data Warehouse and Data Cube Lecture Notes for Chapter 3 Introduction to Data Mining By.
Microsoft SQL Server 2012 Analysis Services (SSAS) Reporting Services (SSRS)
Ch3 Data Warehouse part2 Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009.
1 Data Warehousing and OLAP. 2 Data Warehousing & OLAP Defined in many different ways, but not rigorously.  A decision support database that is maintained.
CS346: Advanced Databases
Ch3 Data Warehouse Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2010.
1 Data Warehouses C hapter 2. 2 Chapter 2 Outline Chapter 2 Outline – Introduction –Data Warehouses –Data Warehouse in Organisation – OLTP vs. OLAP –Why.
OLAP OPERATIONS. OLAP ONLINE ANALYTICAL PROCESSING OLAP provides a user-friendly environment for Interactive data analysis. In the multidimensional model,
Dr. Bernard Chen Ph.D. University of Central Arkansas
8/20/ Data Warehousing and OLAP. 2 Data Warehousing & OLAP Defined in many different ways, but not rigorously. Defined in many different ways, but.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Decision Support Chapter 23.
Data Warehousing.
1 Cube Computation and Indexes for Data Warehouses CPS Notes 7.
OnLine Analytical Processing (OLAP)
Data warehousing and online analytical processing- Ref Chap 4) By Asst Prof. Muhammad Amir Alam.
Data Warehousing Xintao Wu. Can You Easily Answer These Questions? What are Personnel Services costs across all departments for all funding sources? What.
OLAP & DSS SUPPORT IN DATA WAREHOUSE By - Pooja Sinha Kaushalya Bakde.
Roadmap 1.What is the data warehouse, data mart 2.Multi-dimensional data modeling 3.Data warehouse design – schemas, indices 4.The Data Cube operator –
CISB594 – Business Intelligence
October 28, Data Warehouse Architecture Data Sources Operational DBs other sources Analysis Query Reports Data mining Front-End Tools OLAP Engine.
Dr. N. MamoulisAdvanced Database Technologies1 Topic 6: Data Warehousing & OLAP Defined in many different ways, but not rigorously. A decision support.
Ch3 Data Warehouse Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009.
CISB594 – Business Intelligence Data Warehousing Part I.
CISB594 – Business Intelligence Data Warehousing Part I.
Shilpa Seth.  Multidimensional Data Model Concepts Multidimensional Data Model Concepts  Data Cube Data Cube  Data warehouse Schemas Data warehouse.
Data Mining Data Warehouses.
CISB594 – Business Intelligence Data Warehousing Part I.
M. Sulaiman Khan Dept. of Computer Science University of Liverpool 2009 This is the full course notes, but not quite complete. You.
January 21, 2016Data Mining: Concepts and Techniques 1 Chapter 3: Data Warehousing and OLAP Technology: An Overview What is a data warehouse? A multi-dimensional.
Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support.
The Need for Data Analysis 2 Managers track daily transactions to evaluate how the business is performing Strategies should be developed to meet organizational.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Data Warehousing and Decision Support Chapter 25.
Data Mining and Data Warehousing: Concepts and Techniques What is a Data Warehouse? Data Warehouse vs. other systems, OLTP vs. OLAP Conceptual Modeling.
Chapter 4. Data Warehousing and On-line Analytical Processing (OLAP)
Data Mining: Data Warehousing
Introduction to Data Warehousing
Information Management course
Data Warehousing CIS 4301 Lecture Notes 4/20/2006.
A B D C G5b Date 1Qtr 2Qtr 3Qtr 4Qtr TV Product PC
Data warehouse and OLAP
Data Mining: Concepts and Techniques (3rd ed.) — Chapter 4 —
Information Management course
Data Warehouse—Subject‐Oriented
What is OLAP OLAP allows to model data in a multidimensional way like a data cube in order to look for the data from many perspectives.
Data storage is growing Future Prediction through historical data
OLAP Concepts and Techniques
Data Warehouse.
Data Mining Data Warehousing
Data Warehousing and OLAP Technology for Data Mining
Chapter 2: Data Warehousing and OLAP Technology for Data Mining
Data Warehouse and OLAP
Overview of Data Warehousing and OLAP
What is Data Warehouse? Defined in many different ways.
Data Warehousing and Decision Support Chapter 25
What is Data Warehouse? Defined in many different ways.
Dr. Bernard Chen Ph.D. University of Central Arkansas Fall 2009
Data Mining: Concepts and Techniques
Fundamentals of Data Cube & OLAP Operations
Data Warehouse and OLAP
Data Warehouse and OLAP Technology
Presentation transcript:

Lecture 4: From Data Cubes to ML Credit: Slides by Jogklekar et al. and Kahng et al.

Today’s Lecture Data Cubes and OLAP Data Cube Operations Data Cubes and ML

Section 1 1. Data Cubes and OLAP

Data Warehouses What is a data warehouse (informally)? Section 1 Data Warehouses What is a data warehouse (informally)? A decision support database that is maintained separately from the organization’s operational database Support information processing by providing a solid platform of consolidated, historical data for analysis. “A data warehouse is a subject-oriented, integrated, time-variant, and nonvolatile collection of data in support of management’s decision-making process.”—W. H. Inmon English physician and a leader in the adoption of anaesthesia and medical hygiene

Data Warehouses – Subject Oriented Section 1 Data Warehouses – Subject Oriented Organized around major subjects, such as customer, product, sales Focusing on the modeling and analysis of data for decision makers, not on daily operations or transaction processing Provide a simple and concise view around particular subject issues by excluding data that are not useful in the decision support process English physician and a leader in the adoption of anaesthesia and medical hygiene

Data Warehouses – Integrated Section 1 Data Warehouses – Integrated Constructed by integrating multiple, heterogeneous data sources relational databases, flat files, on-line transaction records Data cleaning and data integration techniques are applied. Ensure consistency in naming conventions, encoding structures, attribute measures, etc. among different data sources E.g., Hotel price: currency, tax, breakfast covered, etc. When data is moved to the warehouse, it is converted. English physician and a leader in the adoption of anaesthesia and medical hygiene

Data Warehouses – Time Variant Section 1 Data Warehouses – Time Variant The time horizon for the data warehouse is significantly longer than that of operational systems Operational database: current value data Data warehouse data: provide information from a historical perspective (e.g., past 5-10 years) Every key structure in the data warehouse Contains an element of time, explicitly or implicitly But the key of operational data may or may not contain “time element” English physician and a leader in the adoption of anaesthesia and medical hygiene

Data Warehouses – Nonvolatile Section 1 Data Warehouses – Nonvolatile A physically separate store of data transformed from the operational environment Operational update of data does not occur in the data warehouse environment Does not require transaction processing, recovery, and concurrency control mechanisms Requires only two operations in data accessing: initial loading of data and access of data English physician and a leader in the adoption of anaesthesia and medical hygiene

Section 1 OLTP vs OLAP English physician and a leader in the adoption of anaesthesia and medical hygiene

From Tables to Data Cubes Section 1 From Tables to Data Cubes A data warehouse is based on a multidimensional data model which views data in the form of a data cube A data cube, such as sales, allows data to be modeled and viewed in multiple dimensions Dimension tables, such as item (item_name, brand, type), or time(day, week, month, quarter, year) Fact table contains measures (such as dollars_sold) and keys to each of the related dimension tables In data warehousing literature, an n-D base cube is called a base cuboid. The top most 0-D cuboid, which holds the highest-level of summarization, is called the apex cuboid. The lattice of cuboids forms a data cube. English physician and a leader in the adoption of anaesthesia and medical hygiene

Cube: A Lattice of Cuboids Section 1 Cube: A Lattice of Cuboids all time item location supplier time,location time,supplier item,location item,supplier location,supplier time,item,supplier time,location,supplier item,location,supplier 0-D (apex) cuboid 1-D cuboids 2-D cuboids 3-D cuboids 4-D (base) cuboid time,item English physician and a leader in the adoption of anaesthesia and medical hygiene time,item,location time, item, location, supplier

Concept Hierarchies Example: Location all all Europe ... North_America Section 1 Concept Hierarchies Example: Location all all Europe ... North_America region Germany ... Spain Canada ... United States country English physician and a leader in the adoption of anaesthesia and medical hygiene Vancouver ... city Frankfurt ... Toronto L. Chan ... M. Wind office

Multidimensional Data Section 1 Multidimensional Data Sales volume as a function of product, month, and region Dimensions: Product, Location, Time Hierarchical summarization paths Region Industry Region Year Category Country Quarter Product City Month Week Office Day English physician and a leader in the adoption of anaesthesia and medical hygiene Product Month

A Sample Data Cube Date Product Country Total annual sales Section 1 A Sample Data Cube Total annual sales of TVs in U.S.A. Date Product Country sum TV VCR PC 1Qtr 2Qtr 3Qtr 4Qtr U.S.A Canada Mexico English physician and a leader in the adoption of anaesthesia and medical hygiene

Types of Aggregates Section 1 English physician and a leader in the adoption of anaesthesia and medical hygiene

Section 2 2. Data Cube Operations

Typical operations by climbing up hierarchy or by dimension reduction Section 1 Typical operations Roll up (drill-up): summarize data by climbing up hierarchy or by dimension reduction Drill down (roll down): reverse of roll-up from higher level summary to lower level summary or detailed data, or introducing new dimensions Slice and dice: project and select Pivot (rotate): reorient the cube, visualization, 3D to series of 2D planes Other operations drill across: involving (across) more than one fact table drill through: through the bottom level of the cube to its back-end relational tables (using SQL)

Section 1 Typical operations Harinarayan et al. Implementing Data Cubes Efficiently, SIGMOD 1996

OLAP Drill-Down Limitations: (1) Too many values, (2) Single column Section 1 OLAP Drill-Down Limitations: (1) Too many values, (2) Single column

Section 3 3. Modern Data Cubes

What you will learn about in this section Smart Drill Down Data Cubes and ML

Smart Drill-Down Present k most interesting rules (patterns) Section 3 Smart Drill-Down Present k most interesting rules (patterns) Find interesting portions faster User tunable Interactive Instantiate multiple columns Complementary functionality!

Section 3 Example

Section 3 Example

Example Summary Display best list of k (= 3) rules Preference for Section 3 Example Summary Display best list of k (= 3) rules Preference for Higher Count Higher Weight Low overlap

Definitions Rule: Tuple of values and *’s Section 3 Definitions Rule: Tuple of values and *’s Count(r): Number of tuples satisfying rule r Size(r): Number of non-star values in r Rule-List: Ordered list of rules MCount(r,R): In a list R, number of tuples satisfying r but no rule before r

Definitions (cont’d) Subrule(r1,r2): Strictly more specific rule Section 3 Definitions (cont’d) Subrule(r1,r2): Strictly more specific rule e.g. (a,b,*) is a subrule of (a,*,*) Weight W: User-defined interestingess W(r) ≥ 0 Monotone: Subrule(r1,r2) => W(r1) >= W(r2)

Smart Drill Down: Formal Problem Section 3 Smart Drill Down: Formal Problem

Ordering Rules Optimally Section 3 Ordering Rules Optimally Theorem: Let R, R’ be rule-lists with same set of rules, where rules in R are sorted by weight (decreasing). Then

Ordering Rules Optimally Section 3 Ordering Rules Optimally Theorem: Let R, R’ be rule-lists with same set of rules, where rules in R are sorted by weight (decreasing). Then Thus, always sort rules by weight! Find best set rather than list. Still NP-Hard

Submodularity Define Then Score is submodular Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Then Score is submodular i.e. let Whenever

Submodularity Define Submodular Maximization: Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Submodular Maximization: Maximize Score(S) such that |S| = k

r1 = argmaxr (MarginalValue(r,S)) Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Submodular Maximization: Maximize Score(S) such that |S| = k Greedy Algorithm S = {} r1 = argmaxr (MarginalValue(r,S))

r2 = argmaxr (MarginalValue(r,S)) Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Submodular Maximization: Maximize Score(S) such that |S| = k Greedy Algorithm S = {r1} r2 = argmaxr (MarginalValue(r,S))

r3 = argmaxr (MarginalValue(r,S)) Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Submodular Maximization: Maximize Score(S) such that |S| = k Greedy Algorithm S = {r1, r2} r3 = argmaxr (MarginalValue(r,S))

Submodularity Define Submodular Maximization: Section 3 Submodularity Define where S is rule-set, R is weight-sorted rule-list Submodular Maximization: Maximize Score(S) such that |S| = k Theorem: Greedy algorithm achieves a approximation

Find best marginal rule Section 3 Find best marginal rule Brute-force: Compute marginal value for all rules? Too expensive Key Insight If r2 is sub-rule of r1,

Find best marginal rule Section 3 Find best marginal rule Brute-force: Compute marginal value for all rules? Too expensive Max Weight Parameter mw A Priori-like algorithm Evaluate all size 1, then 2, and so on Only evaluate higher size rules that have a chance of being the best

Explore and choose models not only data! Data Cubes and ML Explore and choose models not only data!

Feature Subsets with MLCube

Subset definition