SlideShare a Scribd company logo
ASSIGNMENT 2
MOHAMMED AMEEN UL ISLAM
1VE20CS088
DM&DW
18CS641
Data Warehouse
¹
• Data Warehouse: Basic Concepts
• Data Warehouse Modeling: Data Cube and OLAP
• Data Warehouse Design and Usage
• Data Warehouse Implementation
• Data Generalization by Attribute-Oriented Induction
• Summary
Data Warehousing
3
• Defined in many different ways, but not rigorously.
⚬ 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
• Data warehousing:
⚬ The process of constructing and using data warehouses
What is a Data Warehouse?
3
• 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
Data Warehouse—Subject-Oriented
3
• 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.
Data Warehouse—Integrated
3
• 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”
Data Warehouse—Time Variant
3
• 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
Data Warehouse—Nonvolatile
10
OLTP vs. OLAP
OLTP OLAP
users clerk, IT professional knowledge worker
function day to day operations decision support
DB design application-oriented subject-oriented
data
current, up-to-date
detailed, flat relational
isolated
historical,
summarized, multidimensional
integrated, consolidated
usage repetitive ad-hoc
access
read/write
index/hash on prim. key
lots of scans
unit of work short, simple transaction complex query
# records accessed tens millions
#users thousands hundreds
DB size 100MB-GB 100GB-TB
metric transaction throughput query throughput, response
10
Data Warehouse: A Multi-Tiered
Architecture
Data
Warehouse
Extract
Transform
Load
Refresh
Analysis
Query
Reports
Data mining
Monitor
&
Integrator
Metadata
Data Sources OLAP Engine Front-End
Tools
Serve
Data Marts
Operational
DBs
Other
sources
Data Storage
OLAP Server
2/11/2023 6:06:29 PM 10
Three Data Warehouse Models
2/11/2023 6:06:29 PM 10
• 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
■ Independent vs. dependent (directly from warehouse)
data
mart
• Virtual warehouse
⚬ A set of views over operational databases
⚬ Only some of the possible summary views may be materialized
Extraction, Transformation, and Loading
(ETL)
2/11/2023 6:06:29 PM 10
• Data extraction
⚬ get data from multiple, heterogeneous, and external sources
• Data cleaning
⚬ detect errors in the data and rectify them when possible
• Data transformation
⚬ convert data from legacy or host format to warehouse
format
• Load
⚬ sort, summarize, consolidate, compute views, check
integrity, and build indicies and partitions
• Refresh
⚬ propagate the updates from the data sources to the
warehouse
Metadata Repository
2/11/2023 6:06:29 PM 10
• Meta data is the data defining warehouse objects. It stores:
• Description of the structure of the data warehouse
⚬ schema, view, dimensions, hierarchies, derived data defn, data mart
locations and contents
• Operational meta-data
⚬ data lineage (history of migrated data and transformation path), currency
of data (active, archived, or purged), monitoring information (warehouse
usage statistics, error reports, audit trails)
• The algorithms used for summarization
• The mapping from operational environment to the data warehouse
• Data related to system performance
⚬ warehouse schema, view and derived data definitions
• Business data
⚬ business terms and definitions, ownership of data, charging policies
Data Warehouse Modeling: Data Cube and OLAP
2/11/2023 6:06:29 PM 10
• 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.
Conceptual Modeling of Data Warehouses
2/11/2023 6:06:29 PM 10
• Modeling data warehouses: dimensions & measures
⚬ Star schema: A fact table in the middle connected to a set
of dimension tables
⚬ Snowflake schema: A refinement of star schema where
some dimensional hierarchy is normalized into a set of
smaller dimension tables, forming a shape similar to
snowflake
⚬ Fact constellations: Multiple fact tables share dimension
tables, viewed as a collection of stars, therefore called
galaxy schema or fact constellation
Data Cube Measures: Three Categories
2/11/2023 6:06:29 PM 28
• Distributive: if the result derived by applying the function to n
aggregate values is the same as that derived by applying the
function on all the data without partitioning
⚬ E.g., count(), sum(), min(), max()
• Algebraic: if it can be computed by an algebraic function with M
arguments (where M is a bounded integer), each of which is
obtained by applying a distributive aggregate function
⚬ E.g., avg(), min_N(), standard_deviation()
• Holistic: if there is no constant bound on the storage size needed
to describe a subaggregate.
⚬ E.g., median(), mode(), rank()
View of Warehouses and Hierarchies
Specification of hierarchies
• Schema hierarchy
day < {month < quarter;
week} < year
• Set_grouping hierarchy
{1..10} < inexpensive
2/11/2023 6:06:29 PM 28
Typical OLAP Operations
2/11/2023 6:06:29 PM 28
• 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)
Design of Data Warehouse: A Business
Analysis Framework
2/11/2023 6:06:29 PM 28
• Four views regarding the design of a data warehouse
⚬ Top-down view
■ allows selection of the relevant information necessary for the data
warehouse
⚬ Data source view
■ exposes the information being captured, stored, and managed by
operational systems
⚬ Data warehouse view
■ consists of fact tables and dimension tables
⚬ Business query view
■ sees the perspectives of data in the warehouse from the view of end-
user
Data Warehouse Design
2/11/2023 6:06:29 PM 28
Process
• Top-down, bottom-up approaches or a combination of both
⚬ Top-down: Starts with overall design and planning (mature)
⚬ Bottom-up: Starts with experiments and prototypes (rapid)
• From software engineering point of view
⚬ Waterfall: structured and systematic analysis at each step before
proceeding to the next
⚬ Spiral: rapid generation of increasingly functional systems, short turn
around time, quick turn around
• Typical data warehouse design process
⚬ Choose a business process to model, e.g., orders, invoices, etc.
⚬ Choose the grain (atomic level of data) of the business process
⚬ Choose the dimensions that will apply to each fact table record
⚬ Choose the measure that will populate each fact table record
33
Data Warehouse Usage
• Three kinds of data warehouse applications
⚬ Information processing
■ supports querying, basic statistical analysis, and reporting
using crosstabs, tables, charts and graphs
⚬ Analytical processing
■ multidimensional analysis of data warehouse data
■ supports basic OLAP operations, slice-dice, drilling,
pivoting
⚬ Data mining
■ knowledge discovery from hidden patterns
■ supports associations, constructing analytical models,
performing classification and prediction, and presenting the
tools
OLAP Server Architectures
2/11/2023 6:06:29 PM 44
• Relational OLAP (ROLAP)
⚬ Use relational or extended-relational DBMS to store and manage
warehouse data and OLAP middle ware
⚬ Include optimization of DBMS backend, implementation of
aggregation navigation logic, and additional tools and services
⚬ Greater scalability
• Multidimensional OLAP (MOLAP)
⚬ Sparse array-based multidimensional storage engine
⚬ Fast indexing to pre-computed summarized data
• Hybrid OLAP (HOLAP) (e.g., Microsoft SQLServer)
⚬ Flexibility, e.g., low level: relational, high-level: array
• Specialized SQL servers (e.g., Redbricks)
⚬ Specialized support for SQL queries over star/snowflake schemas

More Related Content

Similar to data mining and data warehousing

Data warehouse system and its concepts
Data warehouse system and its conceptsData warehouse system and its concepts
Data warehouse system and its concepts
Gaurav Garg
 
Cs1011 dw-dm-1
Cs1011 dw-dm-1Cs1011 dw-dm-1
Cs1011 dw-dm-1
Aarti Goyal
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
SHIKHA GAUTAM
 
data warehousing
data warehousingdata warehousing
data warehousing
143sohil
 
Data warehousing and online analytical processing
Data warehousing and online analytical processingData warehousing and online analytical processing
Data warehousing and online analytical processing
VijayasankariS
 
BDA-Module-1.pptx
BDA-Module-1.pptxBDA-Module-1.pptx
BDA-Module-1.pptx
ASHWIN808488
 
Ch~2.pdf
Ch~2.pdfCh~2.pdf
mod 2.pdf
mod 2.pdfmod 2.pdf
Cognos datawarehouse
Cognos datawarehouseCognos datawarehouse
Cognos datawarehouse
ssuser7fc7eb
 
DATA WAREHOUSING.2.pptx
DATA WAREHOUSING.2.pptxDATA WAREHOUSING.2.pptx
DATA WAREHOUSING.2.pptx
GraceJoyMoleroCarwan
 
Dataware house multidimensionalmodelling
Dataware house multidimensionalmodellingDataware house multidimensionalmodelling
Dataware house multidimensionalmodelling
meghu123
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
AAKANKSHA JAIN
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
mekuanint sefi
 
1.4 data warehouse
1.4 data warehouse1.4 data warehouse
1.4 data warehouse
Krish_ver2
 
Module 1_Data Warehousing Fundamentals.pptx
Module 1_Data Warehousing Fundamentals.pptxModule 1_Data Warehousing Fundamentals.pptx
Module 1_Data Warehousing Fundamentals.pptx
nikshaikh786
 
11667 Bitt I 2008 Lect4
11667 Bitt I 2008 Lect411667 Bitt I 2008 Lect4
11667 Bitt I 2008 Lect4
ambujm
 

Similar to data mining and data warehousing (20)

Data warehouse system and its concepts
Data warehouse system and its conceptsData warehouse system and its concepts
Data warehouse system and its concepts
 
Cs1011 dw-dm-1
Cs1011 dw-dm-1Cs1011 dw-dm-1
Cs1011 dw-dm-1
 
Data Warehousing
Data WarehousingData Warehousing
Data Warehousing
 
data warehousing
data warehousingdata warehousing
data warehousing
 
Data warehousing and online analytical processing
Data warehousing and online analytical processingData warehousing and online analytical processing
Data warehousing and online analytical processing
 
BDA-Module-1.pptx
BDA-Module-1.pptxBDA-Module-1.pptx
BDA-Module-1.pptx
 
Ch~2.pdf
Ch~2.pdfCh~2.pdf
Ch~2.pdf
 
mod 2.pdf
mod 2.pdfmod 2.pdf
mod 2.pdf
 
Cognos datawarehouse
Cognos datawarehouseCognos datawarehouse
Cognos datawarehouse
 
Datawarehouse and OLAP
Datawarehouse and OLAPDatawarehouse and OLAP
Datawarehouse and OLAP
 
DATA WAREHOUSING.2.pptx
DATA WAREHOUSING.2.pptxDATA WAREHOUSING.2.pptx
DATA WAREHOUSING.2.pptx
 
Dataware house multidimensionalmodelling
Dataware house multidimensionalmodellingDataware house multidimensionalmodelling
Dataware house multidimensionalmodelling
 
Data Mining & Data Warehousing
Data Mining & Data WarehousingData Mining & Data Warehousing
Data Mining & Data Warehousing
 
Data warehouse
Data warehouseData warehouse
Data warehouse
 
Introduction to Data Warehousing
Introduction to Data WarehousingIntroduction to Data Warehousing
Introduction to Data Warehousing
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
1.4 data warehouse
1.4 data warehouse1.4 data warehouse
1.4 data warehouse
 
Module 1_Data Warehousing Fundamentals.pptx
Module 1_Data Warehousing Fundamentals.pptxModule 1_Data Warehousing Fundamentals.pptx
Module 1_Data Warehousing Fundamentals.pptx
 
Data mining notes
Data mining notesData mining notes
Data mining notes
 
11667 Bitt I 2008 Lect4
11667 Bitt I 2008 Lect411667 Bitt I 2008 Lect4
11667 Bitt I 2008 Lect4
 

Recently uploaded

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 

Recently uploaded (20)

Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 

data mining and data warehousing

  • 1. ASSIGNMENT 2 MOHAMMED AMEEN UL ISLAM 1VE20CS088 DM&DW 18CS641 Data Warehouse ¹
  • 2. • Data Warehouse: Basic Concepts • Data Warehouse Modeling: Data Cube and OLAP • Data Warehouse Design and Usage • Data Warehouse Implementation • Data Generalization by Attribute-Oriented Induction • Summary Data Warehousing 3
  • 3. • Defined in many different ways, but not rigorously. ⚬ 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 • Data warehousing: ⚬ The process of constructing and using data warehouses What is a Data Warehouse? 3
  • 4. • 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 Data Warehouse—Subject-Oriented 3
  • 5. • 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. Data Warehouse—Integrated 3
  • 6. • 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” Data Warehouse—Time Variant 3
  • 7. • 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 Data Warehouse—Nonvolatile 10
  • 8. OLTP vs. OLAP OLTP OLAP users clerk, IT professional knowledge worker function day to day operations decision support DB design application-oriented subject-oriented data current, up-to-date detailed, flat relational isolated historical, summarized, multidimensional integrated, consolidated usage repetitive ad-hoc access read/write index/hash on prim. key lots of scans unit of work short, simple transaction complex query # records accessed tens millions #users thousands hundreds DB size 100MB-GB 100GB-TB metric transaction throughput query throughput, response 10
  • 9. Data Warehouse: A Multi-Tiered Architecture Data Warehouse Extract Transform Load Refresh Analysis Query Reports Data mining Monitor & Integrator Metadata Data Sources OLAP Engine Front-End Tools Serve Data Marts Operational DBs Other sources Data Storage OLAP Server 2/11/2023 6:06:29 PM 10
  • 10. Three Data Warehouse Models 2/11/2023 6:06:29 PM 10 • 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 ■ Independent vs. dependent (directly from warehouse) data mart • Virtual warehouse ⚬ A set of views over operational databases ⚬ Only some of the possible summary views may be materialized
  • 11. Extraction, Transformation, and Loading (ETL) 2/11/2023 6:06:29 PM 10 • Data extraction ⚬ get data from multiple, heterogeneous, and external sources • Data cleaning ⚬ detect errors in the data and rectify them when possible • Data transformation ⚬ convert data from legacy or host format to warehouse format • Load ⚬ sort, summarize, consolidate, compute views, check integrity, and build indicies and partitions • Refresh ⚬ propagate the updates from the data sources to the warehouse
  • 12. Metadata Repository 2/11/2023 6:06:29 PM 10 • Meta data is the data defining warehouse objects. It stores: • Description of the structure of the data warehouse ⚬ schema, view, dimensions, hierarchies, derived data defn, data mart locations and contents • Operational meta-data ⚬ data lineage (history of migrated data and transformation path), currency of data (active, archived, or purged), monitoring information (warehouse usage statistics, error reports, audit trails) • The algorithms used for summarization • The mapping from operational environment to the data warehouse • Data related to system performance ⚬ warehouse schema, view and derived data definitions • Business data ⚬ business terms and definitions, ownership of data, charging policies
  • 13. Data Warehouse Modeling: Data Cube and OLAP 2/11/2023 6:06:29 PM 10 • 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.
  • 14. Conceptual Modeling of Data Warehouses 2/11/2023 6:06:29 PM 10 • Modeling data warehouses: dimensions & measures ⚬ Star schema: A fact table in the middle connected to a set of dimension tables ⚬ Snowflake schema: A refinement of star schema where some dimensional hierarchy is normalized into a set of smaller dimension tables, forming a shape similar to snowflake ⚬ Fact constellations: Multiple fact tables share dimension tables, viewed as a collection of stars, therefore called galaxy schema or fact constellation
  • 15. Data Cube Measures: Three Categories 2/11/2023 6:06:29 PM 28 • Distributive: if the result derived by applying the function to n aggregate values is the same as that derived by applying the function on all the data without partitioning ⚬ E.g., count(), sum(), min(), max() • Algebraic: if it can be computed by an algebraic function with M arguments (where M is a bounded integer), each of which is obtained by applying a distributive aggregate function ⚬ E.g., avg(), min_N(), standard_deviation() • Holistic: if there is no constant bound on the storage size needed to describe a subaggregate. ⚬ E.g., median(), mode(), rank()
  • 16. View of Warehouses and Hierarchies Specification of hierarchies • Schema hierarchy day < {month < quarter; week} < year • Set_grouping hierarchy {1..10} < inexpensive 2/11/2023 6:06:29 PM 28
  • 17. Typical OLAP Operations 2/11/2023 6:06:29 PM 28 • 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)
  • 18. Design of Data Warehouse: A Business Analysis Framework 2/11/2023 6:06:29 PM 28 • Four views regarding the design of a data warehouse ⚬ Top-down view ■ allows selection of the relevant information necessary for the data warehouse ⚬ Data source view ■ exposes the information being captured, stored, and managed by operational systems ⚬ Data warehouse view ■ consists of fact tables and dimension tables ⚬ Business query view ■ sees the perspectives of data in the warehouse from the view of end- user
  • 19. Data Warehouse Design 2/11/2023 6:06:29 PM 28 Process • Top-down, bottom-up approaches or a combination of both ⚬ Top-down: Starts with overall design and planning (mature) ⚬ Bottom-up: Starts with experiments and prototypes (rapid) • From software engineering point of view ⚬ Waterfall: structured and systematic analysis at each step before proceeding to the next ⚬ Spiral: rapid generation of increasingly functional systems, short turn around time, quick turn around • Typical data warehouse design process ⚬ Choose a business process to model, e.g., orders, invoices, etc. ⚬ Choose the grain (atomic level of data) of the business process ⚬ Choose the dimensions that will apply to each fact table record ⚬ Choose the measure that will populate each fact table record
  • 20. 33 Data Warehouse Usage • Three kinds of data warehouse applications ⚬ Information processing ■ supports querying, basic statistical analysis, and reporting using crosstabs, tables, charts and graphs ⚬ Analytical processing ■ multidimensional analysis of data warehouse data ■ supports basic OLAP operations, slice-dice, drilling, pivoting ⚬ Data mining ■ knowledge discovery from hidden patterns ■ supports associations, constructing analytical models, performing classification and prediction, and presenting the tools
  • 21. OLAP Server Architectures 2/11/2023 6:06:29 PM 44 • Relational OLAP (ROLAP) ⚬ Use relational or extended-relational DBMS to store and manage warehouse data and OLAP middle ware ⚬ Include optimization of DBMS backend, implementation of aggregation navigation logic, and additional tools and services ⚬ Greater scalability • Multidimensional OLAP (MOLAP) ⚬ Sparse array-based multidimensional storage engine ⚬ Fast indexing to pre-computed summarized data • Hybrid OLAP (HOLAP) (e.g., Microsoft SQLServer) ⚬ Flexibility, e.g., low level: relational, high-level: array • Specialized SQL servers (e.g., Redbricks) ⚬ Specialized support for SQL queries over star/snowflake schemas