OLAP & DATA MINING CS561-SPRING 2012 WPI, MOHAMED ELTABAKH



Similar documents
OLAP and OLTP. AMIT KUMAR BINDAL Associate Professor M M U MULLANA

DATA WAREHOUSING - OLAP

BUILDING BLOCKS OF DATAWAREHOUSE. G.Lakshmi Priya & Razia Sultana.A Assistant Professor/IT

Data Warehousing & OLAP

Data Warehousing. Read chapter 13 of Riguzzi et al Sistemi Informativi. Slides derived from those by Hector Garcia-Molina

Part 22. Data Warehousing

BUSINESS ANALYTICS AND DATA VISUALIZATION. ITM-761 Business Intelligence ดร. สล ล บ ญพราหมณ

Introduction to Data Warehousing. Ms Swapnil Shrivastava

Overview of Data Warehousing and OLAP

Data Warehousing: Data Models and OLAP operations. By Kishore Jaladi

Data W a Ware r house house and and OLAP II Week 6 1

Week 3 lecture slides

DATA WAREHOUSING AND OLAP TECHNOLOGY

Multi-dimensional index structures Part I: motivation

Monitoring Genebanks using Datamarts based in an Open Source Tool

IST722 Data Warehousing

Week 13: Data Warehousing. Warehousing

When to consider OLAP?

OLAP and Data Mining. Data Warehousing and End-User Access Tools. Introducing OLAP. Introducing OLAP

Learning Objectives. Definition of OLAP Data cubes OLAP operations MDX OLAP servers

Published by: PIONEER RESEARCH & DEVELOPMENT GROUP ( 28

Data Warehousing and OLAP Technology for Knowledge Discovery

Database Applications. Advanced Querying. Transaction Processing. Transaction Processing. Data Warehouse. Decision Support. Transaction processing

Lecture 2: Introduction to Business Intelligence. Introduction to Business Intelligence

1. OLAP is an acronym for a. Online Analytical Processing b. Online Analysis Process c. Online Arithmetic Processing d. Object Linking and Processing

2074 : Designing and Implementing OLAP Solutions Using Microsoft SQL Server 2000

Anwendersoftware Anwendungssoftwares a. Data-Warehouse-, Data-Mining- and OLAP-Technologies. Online Analytic Processing

14. Data Warehousing & Data Mining

Outline. Data Warehousing. What is a Warehouse? What is a Warehouse?

Data Warehousing. Outline. From OLTP to the Data Warehouse. Overview of data warehousing Dimensional Modeling Online Analytical Processing

CHAPTER 4 Data Warehouse Architecture

Data Warehousing. Overview, Terminology, and Research Issues. Joachim Hammer. Joachim Hammer

DATA WAREHOUSING APPLICATIONS: AN ANALYTICAL TOOL FOR DECISION SUPPORT SYSTEM

Designing a Dimensional Model

Data warehousing. Han, J. and M. Kamber. Data Mining: Concepts and Techniques Morgan Kaufmann.

Analytics on Big Data

Fluency With Information Technology CSE100/IMT100

Building Data Cubes and Mining Them. Jelena Jovanovic

Data Warehousing and OLAP

CS2032 Data warehousing and Data Mining Unit II Page 1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 29-1

This tutorial will help computer science graduates to understand the basic-toadvanced concepts related to data warehousing.

Data Warehousing and OLAP Technology

A Technical Review on On-Line Analytical Processing (OLAP)

Data Warehouse: Introduction

OLAP. Business Intelligence OLAP definition & application Multidimensional data representation

Turkish Journal of Engineering, Science and Technology

Data Warehousing and Data Mining. A.A Datawarehousing & Datamining 1

OLAP Theory-English version

Business Intelligence & Product Analytics

Data Warehousing, OLAP, and Data Mining

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Fall 2007 Lecture 16 - Data Warehousing

OLAP and Data Warehousing! Introduction!

DATA WAREHOUSE E KNOWLEDGE DISCOVERY

Data Mining for Knowledge Management. Data Warehouses

Chapter 3, Data Warehouse and OLAP Operations

Data Warehouse design

Chapter 20: Data Analysis

CSE 544 Principles of Database Management Systems. Magdalena Balazinska Winter 2009 Lecture 15 - Data Warehousing: Cubes

Lecture 2 Data warehousing

DATA CUBES E Jayant Haritsa Computer Science and Automation Indian Institute of Science. JAN 2014 Slide 1 DATA CUBES

Data Warehousing and Decision Support. Introduction. Three Complementary Trends. Chapter 23, Part A

Data Warehousing. Paper

Data Warehousing Systems: Foundations and Architectures

M Designing and Implementing OLAP Solutions Using Microsoft SQL Server Day Course

Data Warehouse. MIT-652 Data Mining Applications. Thimaporn Phetkaew. School of Informatics, Walailak University. MIT-652: DM 2: Data Warehouse 1

Namrata 1, Dr. Saket Bihari Singh 2 Research scholar (PhD), Professor Computer Science, Magadh University, Gaya, Bihar

II. OLAP(ONLINE ANALYTICAL PROCESSING)

Web Log Data Sparsity Analysis and Performance Evaluation for OLAP

Module 1: Introduction to Data Warehousing and OLAP

Optimizing Your Data Warehouse Design for Superior Performance

Data Warehousing OLAP

Business Intelligence Solutions. Cognos BI 8. by Adis Terzić

Data Warehousing and Online Analytical Processing

Overview. DW Source Integration, Tools, and Architecture. End User Applications (EUA) EUA Concepts. DW Front End Tools. Source Integration

New Approach of Computing Data Cubes in Data Warehousing

Review. Data Warehousing. Today. Star schema. Star join indexes. Dimension hierarchies

Decision Support. Chapter 23. Database Management Systems, 2 nd Edition. R. Ramakrishnan and J. Gehrke 1

Bussiness Intelligence and Data Warehouse. Tomas Bartos CIS 764, Kansas State University

A Critical Review of Data Warehouse

OLAP Systems and Multidimensional Expressions I

European Archival Records and Knowledge Preservation Database Archiving in the E-ARK Project

Data Warehousing and elements of Data Mining

LITERATURE SURVEY ON DATA WAREHOUSE AND ITS TECHNIQUES

ROLAP with Column Store Index Deep Dive. Alexei Khalyako SQL CAT Program Manager

Data W a Ware r house house and and OLAP Week 5 1


Ramesh Bhashyam Teradata Fellow Teradata Corporation

How to Enhance Traditional BI Architecture to Leverage Big Data

Data Mining: Concepts and Techniques. Jiawei Han. Micheline Kamber. Simon Fräser University К MORGAN KAUFMANN PUBLISHERS. AN IMPRINT OF Elsevier

1. What are the uses of statistics in data mining? Statistics is used to Estimate the complexity of a data mining problem. Suggest which data mining

Transcription:

OLAP & DATA MINING CS561-SPRING 2012 WPI, MOHAMED ELTABAKH 1

Online Analytic Processing OLAP 2

OLAP OLAP: Online Analytic Processing OLAP queries are complex queries that Touch large amounts of data Discover patterns and trends in the data Typically expensive queries that take long time Also called decision-support queries In contrast to OLAP: OLTP: Online Transaction Processing OLTP queries are simple queries, e.g., over banking or airline systems OLTP queries touch small amount of data for fast transactions 3

OLTP vs. OLAP On-Line Transaction Processing (OLTP): technology used to perform updates on operational or transactional systems (e.g., point of sale systems) On-Line Analytical Processing (OLAP): technology used to perform complex analysis of the data in a data warehouse OLAP is a category of software technology that enables analysts, managers, and executives to gain insight into data through fast, consistent, interactive access to a wide variety of possible views of information that has been transformed from raw data to reflect the dimensionality of the enterprise as understood by the user. [source: OLAP Council: www.olapcouncil.org] 4

OLAP AND DATA WAREHOUSE OLAP Server OLAP Internal Sources Reports Operational DBs Data Integration Component Data Warehouse Query and Analysis Component Data Mining External Sources Meta data Client Tools 5

OLAP AND DATA WAREHOUSE Typically, OLAP queries are executed over a separate copy of the working data Over data warehouse Data warehouse is periodically updated, e.g., overnight OLAP queries tolerate such out-of-date gaps Why run OLAP queries over data warehouse?? Warehouse collects and combines data from multiple sources Warehouse may organize the data in certain formats to support OLAP queries OLAP queries are complex and touch large amounts of data They may lock the database for long periods of time Negatively affects all other OLTP transactions 6

OLAP ARCHITECTURE 7

EXAMPLE OLAP APPLICATIONS Market Analysis Find which items are frequently sold over the summer but not over winter? Credit Card Companies Given a new applicant, does (s)he a credit-worthy? Need to check other similar applicants (age, gender, income, etc ) and observe how they perform, then do prediction for new applicant OLAP queries are also called decisionsupport queries 8

MULTI-DIMENSIONAL VIEW Location Data is typically viewed as points in multi-dimensional space bread Items NY MA CA 10 Raw data cubes (raw level without aggregation) Orange juice Milk 2%fat Milk 1%fat 47 30 12 3/1 3/2 3/3 3/4 Typical OLAP applications have many dimensions Time 9

"#'&#* ANOTHER EXAMPLE!"#!$$%&#'() 10

APPROACHES FOR OLAP Relational OLAP (ROLAP) Multi-dimensional OLAP (MOLAP) Hybrid OLAP (HOLAP) = ROLAP + MOLAP 11

RELATIONAL OLAP: ROLAP Data are stored in relational model (tables) Special schema called Star Schema One relation is the fact table, all the others are dimension tables Large table Product Model Type Color Channel Facts Product Region Time Channel Revenue Expenses Units Region Nation District Dealer Time Week Year Small tables 12

CUBE vs. STAR SCHEMA bread Items Dimension tables describe the dimensions NY MA CA 10 Location Product Model Type Color Channel Facts Product Region Time Channel Revenue Expenses Units Region Nation District Dealer Time Week Year Orange juice Milk 2%fat Milk 1%fat 47 30 12 Data inside the cube are the fact records 3/1 3/2 3/3 3/4 Time 13

ROLAP: EXTENSIONS TO DBMS Schema design Specialized scan, indexing and join techniques Handling of aggregate views (querying and materialization) Supporting query language extensions beyond SQL Complex query processing and optimization Data partitioning and parallelism 14

SLICING & DICING Dicing how each dimension in the cube is divided Different granularities When building the data cube Slicing Selecting slices of the data cube to answer the OLAP query When answering a query bread Orange juice Items Milk 2%fat Milk 1%fat NY MA CA 10 47 30 12 Dicing Location by state Location 3/1 3/2 3/3 3/4 Time Dicing Time by day 15

SLICING & DICING: EXAMPLE 1 Dicing Slicing Slicing operation in ROLAP is basically: -- Selection conditions on some attributes (WHERE clause) + -- Group by and aggregation 16

SLICING & DICING: EXAMPLE 2 17

SLICING & DICING: EXAMPLE 3 18

DRILL-DOWN & ROLL-UP Drill-down (Group by Nation) Region Sales variance Africa 105% Asia 57% Europe 122% North America 97% Pacific 85% South America 163% Roll-up (group by Region) Nation Sales variance China 123% Japan 52% India 87% Singapore 95% 19

ROLAP: DRILL-DOWN & ROLL-UP Drill-down Roll-up 20

MOLAP Unlike ROLAP, in MOLAP data are stored in special structures called Data Cubes (Array-bases storage) Data cubes pre-compute and aggregate the data Possibly several data cubes with different granularities Data cubes are aggregated materialized views over the data As long as the data does not change frequently, the overhead of data cubes is manageable Sales 1996 1997 Red blob Blue blob Every day, every item, every city Every week, every item category, every city 21

MOLAP: CUBE OPERATOR Aggregation over the Z axis Aggregation over the X,Y Aggregation over the Y axis Raw-data (fact table) Aggregation over the X axis 22

MOLAP & ROLAP Commercial offerings of both types are available In general, MOLAP is good for smaller warehouses and is optimized for canned queries In general, ROLAP is more flexible and leverages relational technology ROLAP May pay a performance penalty to realize flexibility 23

OLTP vs. OLAP OLTP OLAP User Function DB Design Data View Usage Unit of work Access Operations # Records accessed #Users Db size Metric Clerk, IT Professional Day to day operations Application-oriented (E-R based) Current, Isolated Detailed, Flat relational Structured, Repetitive Short, Simple transaction Read/write Index/hash on prim. Key Tens Thousands 100 MB-GB Trans. throughput Knowledge worker Decision support Subject-oriented (Star, snowflake) Historical, Consolidated Summarized, Multidimensional Ad hoc Complex query Read Mostly Lots of Scans Millions Hundreds 100GB-TB Query throughput, response Source: Datta, GT 24

OLAP: SUMMARY OLAP stands for Online Analytic Processing and used in decision support systems Usually runs on data warehouse In contrast to OLTP, OLAP queries are complex, touch large amounts of data, try to discover patterns or trends in the data OLAP Models Relational (ROLAP): uses relational star schema Multidimensional (MOLAP): uses data cubes 25

Overview on Data Mining Techniques 26

DATA MINING vs. OLAP OLAP - Online Analytical Processing Provides you with a very good view of what is happening, but can not predict what will happen in the future or why it is happening Data Mining is a combination of discovering techniques + prediction techniques 27

DATA MINING TECHNIQUES Clustering Classification Association Rules Frequent Itemsets Outlier Detection. 28

FREQUENT ITEMSET MINING Very common problem in Market-Basket applications Given a set of items I ={milk, bread, jelly, } Given a set of transactions where each transaction contains subset of items t1 = {milk, bread, water} t2 = {milk, nuts, butter, rice} What are the itemsets frequently sold together?? % of transactions in which the itemset appears >= α 29

EXAMPLE Assume α = 60%, what are the frequent itemsets {Bread} à 80% {PeanutButter} à 60% {Bread, PeanutButter} à 60% called Support All frequent itemsets given α = 60% 30

HOW TO FIND FREQUENT ITEMSETS Naïve Approach Enumerate all possible itemsets and then count each one All possible itemsets of size 1 All possible itemsets of size 2 All possible itemsets of size 3 All possible itemsets of size 4 31

CAN WE OPTIMIZE?? Assume α = 60%, what are the frequent itemsets {Bread} à 80% {PeanutButter} à 60% {Bread, PeanutButter} à 60% called Support Property For itemset S={X, Y, Z, } of size n to be frequent, all its subsets of size n-1 must be frequent as well 32

APRIORI ALGORITHM Executes in scans, each scan has two phases Given a list of candidate itemsets of size n, count their appearance and find frequent ones From the frequent ones generate candidates of size n+1 (previous property must hold) Start the algorithm where n =1, then repeat Use the property reduce the number of itemsets to check 33

APRIORI EXAMPLE 34

APRIORI EXAMPLE (CONT D) 35

DATA MINING TECHNIQUES Clustering Classification Association Rules Frequent Itemsets Outlier Detection. 36

ASSOCIATION RULES MINING What is the probability when a customer buys bread in a transaction, (s)he also buys milk in the same transaction? Implies? Bread ----------------------> milk Frequent itemsets cannot answer this question.but Association rules can General Form Association rule: x1, x2,, xn à y1, y2, ym Meaning: when the L.H.S appears (or occurs), the R.H.S also appears (or occurs) with certain probability Two measures for a given rule: 1- Support(L.H.S U R.H.S) > 2- Confidence C = Support(L.H.S U R.H.S)/ Support(L.H.S) 37

EXAMPLE Usually we search for rules: Support > Confidence > Rule: Bread à PeanutButter Support of rule = support(bread, PeanutButter) = 60% Confidence of rule = support(bread, PeanutButter)/support(Bread) = 75% Rule: Bread, Jelly à PeanutButter Support of rule = support(bread, Jelly, PeanutButter) = 20% Confidence of rule = support(bread, Jelly, PeanutButter) /support(bread, Jelly) = 100% 38