Data Warehousing & Data Mining
OLAP vs OLTP architectures, ETL Data Pipeline, Schema Design, and Predictive Data Mining Algorithms.
- Differentiate between operational OLTP systems and OLAP analytical databases
- Map out the extraction, transformation, and loading (ETL) data pipeline
- Understand clustering, classification, and association rules in data mining
1. Data Warehousing
1.1 Introduction
Data warehousing is combining data from multiple sources into one comprehensive and easily manipulated database. The primary aim of data warehousing is to provide businesses with analytic results from data mining, OLAP, scorecarding, and reporting.
Definition:
A data warehouse is a subject-oriented, integrated, time-variant, and non-volatile collection of data in support of management's decision-making process.
| Property | Description |
|---|---|
| Subject Oriented | Data that gives information about a particular subject instead of about a company's ongoing operations |
| Integrated | Data gathered into the data warehouse from a variety of sources and merged into a coherent whole |
| Time Variant | All data in the data warehouse is identified with a particular time period |
| Non-Volatile | Data is stable in a data warehouse — more data is added, but data is never removed |
1.2 Benefits of Data Warehousing
- ⚡ Enhance Business Intelligence
- 🚀 Increased Query and System Performance
- 🌐 Business Intelligence from Multiple Sources
- ⏰ Timely Access to Data
- ✅ Enhanced Data Quality and Consistency
- 📜 Historical Intelligence
- 💰 High Return on Investment
1.3 Operational vs Informational Data
| Operational Data | Informational Data |
|---|---|
| Focuses on transactional functions such as bank card withdrawals and deposits | Focuses on providing answers to problems posed by decision makers |
| Detailed | Summarized |
| Updateable | Non-updateable |
| Reflects current data | — |
1.4 Important Terminology
| Term | Description |
|---|---|
| Enterprise Data Warehouse | Collects all information about subjects (customers, products, sale assets, personnel) that span the entire organization |
| Data Mart | Departmental subsets that focus on selected subjects — a segment of a data warehouse providing data for reporting/analysis on a section, unit, department, or operation (e.g., sales, payroll, production). Sometimes complete individual data warehouses, usually smaller than the corporate data warehouse |
| Decision Support System (DSS) | Information technology that helps the knowledge worker (executive, manager, analyst) make faster and better decisions |
| Drill-down | Traversing summarization levels from highly summarized data to the underlying current or old detail |
| Meta Data | Data about data — containing the location and description of warehouse system components: names, definitions, structure, etc. |
1.5 Data Warehouse Architecture
Data warehouse architecture is based on a relational database management system (RDBMS) server that functions as the central repository for informational data. Operational data and processing are completely separate from data warehouse processing.
Components of Data Warehouse Architecture:
- Data sourcing, cleanup, transformation, and migration tools
- Metadata repository
- Warehouse database technology
- Data marts
- Data query, reporting, analysis, and mining tools
- Data warehouse administration and management
- Information delivery system
◆ Note on Operational Data Store (ODS)
Operational Data Store (ODS) is an architecture concept to support day-to-day operational decision support, containing current value data propagated from operational applications.
| ODS shares with Data Warehouse | ODS differs from Data Warehouse |
|---|---|
| Subject-oriented, similar to a classic data warehouse | Volatile, while a data warehouse is non-volatile |
| Integrated, in the same sense as a data warehouse | Contains very current data only, while a data warehouse contains both current and historical data |
| — | Contains detailed data only (no precalculated summaries/aggregates), unlike a typical data warehouse |
1.6 Data Warehouse Design Approaches
| Approach | Description |
|---|---|
| Top-Down Approach (Bill Inmon) | Build a centralized repository to house corporate-wide business data — the Enterprise Data Warehouse (EDW). Data is stored in normalized form to avoid redundancy, maintaining one version of truth. Stored at the most detailed level to leverage flexibility for use by multiple departments and to cater to future requirements |
| Bottom-Up Approach (Ralph Kimball) | An incremental approach — build data marts separately at different points in time as specific subject-area requirements become clear. Data marts are integrated/combined using conformed dimensions and conformed facts to form the data warehouse. No need to wait for full requirements before starting |
Conformed Dimension — has consistent dimension keys, consistent attribute names, and consistent values across separate data marts; means the exact same thing when joined with every fact table.
Conformed Fact — has the same definition of measures, the same dimensions joined to it, and the same granularity across data marts.
The bottom-up approach helps incrementally build the warehouse by developing and integrating data marts as requirements become clear — without waiting to know the overall warehouse requirements upfront.
1.7 Meta Data
Meta data is data about data — used for maintaining, managing, and using the data warehouse. Classified into two types:
◆ Technical Meta Data
Contains information about data warehouse data, used by warehouse designers/administrators for development and management tasks. Includes:
- Info about data stores — transformation descriptions (mapping methods from operational DB to warehouse DB)
- Warehouse object and data structure definitions for target data
- The rules used to perform cleanup and data enhancement
- Data mapping operations
- Access authorization, backup history, archive history, info delivery history, data acquisition history, data access, etc.
◆ Business Meta Data
Contains info that gives users insight into what's stored in the data warehouse. Includes:
- Subject areas and info object types, including queries, reports, images, video, audio clips, etc.
- Internet home pages — info related to the info delivery system
- Data warehouse operational info such as ownerships, audit trails, etc.
Meta data helps users understand content and find data. It is stored in a separate data store known as the informational directory or metadata repository, which helps integrate, maintain, and view the contents of the data warehouse.
Metadata Repository — a database of data about data (metadata). Its purpose is to provide a consistent and reliable means of access to data. It may be stored in a physical location or may be a virtual database, drawing metadata from separate sources.
1.8 Access Tools in Data Warehouse
Their purpose is to provide info to business users for decision making. Five categories:
| # | Tool | Description |
|---|---|---|
| 1 | Data Query and Reporting Tools | Used to generate queries and reports |
| 2 | Application Development Tools | Used to generate SQL queries via a Meta layer between users and databases, offering point-and-click SQL statement creation |
| 3 | Executive Info System Tools (EIS) | A management information system emphasizing graphical display and easy-to-use, appealing interfaces — designed to support senior executives' information and decision-making needs |
| 4 | OLAP Tools | Based on multidimensional database concepts; allow sophisticated analysis via elaborate, multidimensional, complex views. Applications: product performance/profitability, sales/marketing campaign effectiveness, sales forecasting, capacity planning. Assumes data is organized in a multidimensional model, supported by a special multidimensional database or a relational database enabling multidimensional properties |
| 5 | Data Mining Tools | Used to discover knowledge from data warehouse data; also usable for data visualization and data correction |
1.9 Data Marts
A Data Mart is a subset of a data warehouse that supports the requirements of a particular department or business function.
The key characteristic differentiating data marts from data warehouses: a data mart focuses only on the requirements of users associated with one department or business function.
1.10 OLAP (Online Analytical Processing)
OLAP is an approach to answering multidimensional analytical queries — part of the broader category of business intelligence, which also encompasses relational databases, report writing, and data mining. OLAP tools enable users to analyze multidimensional data interactively from multiple perspectives.
OLAP databases are highly de-normalized, which makes files redundant and helps improve analytic performance. Processing speed can be slow — taking up to many hours depending on the data involved.
Types of OLAP:
- Relational OLAP (ROLAP)
- Multidimensional OLAP (MOLAP)
- Hybrid OLAP (HOLAP)
1.11 OLTP (Online Transaction Processing)
OLTP is a class of systems that facilitate and manage transaction-oriented applications, typically for data entry and retrieval transaction processing. It manages current data and stores all given data — characterized by a large number of short online transactions with quick real-time response.
The main purpose of an OLTP system is to control or run the fundamental business tasks.
1.12 OLAP vs OLTP
| OLAP | OLTP |
|---|---|
| Used to perform complex analysis of the data in a data warehouse | Used to perform updates on operational or transactional systems (e.g., Point of Sale system) |
| Holds historical and only relevant data | Holds current and all types of data |
| Has few concurrent users | Has many concurrent users |
| Used by knowledge workers such as executives, managers, and analysts | Used by clerks, DBAs, or database professionals |
| Provides summarized and multidimensional view of data | Provides detailed and flat relational view of data |
| Based on Star Schema, Snowflake Schema, and Fact Constellation Schema | Highly normalized with many tables |
2. Data Mining
Data mining is a process of extracting previously unknown, valid, and actionable information from a large set of data, then using that information to make crucial business decisions.
Data mining is concerned with the analysis of data and the use of software techniques for finding hidden and unexpected patterns and relationships in sets of data. The focus of data mining is to find information that is hidden and unexpected.
2.1 Data Mining Techniques
- Association
- Classification
- Clustering
- Prediction
- Sequential Patterns
- Decision Trees
- Combinations
2.2 Data Mining Applications
Various fields use data mining technologies because of fast access to data and valuable information from vast amounts of data. Data mining technologies have been applied successfully in many areas:
◆ Financial Data Analysis
The financial data in banking and financial industries is generally reliable and of high quality, facilitating systematic data analysis and data mining. Typical cases:
- Design and construction of data warehouses for multidimensional data analysis and data mining
- Loan payment prediction and customer credit policy analysis
- Classification and clustering of customers for targeted marketing
- Detection of money laundering and other financial crimes
◆ Retail Industry
Data Mining has great application in the retail industry because it collects large amounts of data on sales, customer purchasing history, goods transportation, consumption, and services. The quantity of data collected continues to expand rapidly due to increasing ease, availability, and popularity of the web.
Data Mining in Retail Industry helps identify customer buying patterns and trends — leading to improved quality of customer service, and better customer retention and satisfaction.
◆ Telecommunication Industry
Today the telecommunication industry is one of the most emerging industries, providing various services such as fax, pager, cellular phone, Internet messenger, images, email, web data transmission, etc. Due to the development of new computer and communication technologies, the industry is rapidly expanding.
Data Mining in Telecommunication industry helps identify telecommunication patterns, catch fraudulent activities, make better use of resources, and improve quality of service.
◆ Biological Data Analysis
Nowadays there is vast growth in the field of biology such as genomics, proteomics, functional genomics, and biomedical research. Biological data mining is a very important part of Bioinformatics. Aspects in which data mining contributes to biological data analysis:
- Semantic integration of heterogeneous, distributed genomic and proteomic databases
- Alignment, indexing, similarity search, and comparative analysis of multiple nucleotide sequences
- Discovery of structural patterns and analysis of genetic networks and protein pathways
◆ Other Scientific Applications
The applications discussed above tend to handle relatively small and homogeneous data sets for which statistical techniques are appropriate. Huge amounts of data have been collected from scientific domains such as geosciences, astronomy, etc. Large amounts of data sets are being generated because of fast numerical simulations in fields such as climate and ecosystem modeling, chemical engineering, fluid dynamics, etc.
2.3 Difference Between Data Warehousing and Data Mining
| Data Mining | Data Warehousing |
|---|---|
| A method for comparing large amounts of data for the purpose of finding patterns | The central repository for the data of several business systems in an enterprise |
| Normally used for models and forecasting | Data from various sources is extracted and organized selectively for analysis and accessibility |
| The process of finding correlations/patterns by sifting through large data repositories using pattern recognition techniques | Serves as the foundational data source that mining techniques are applied to |
Full Concept Map: Data Warehousing & Data Mining
Interactive Practice Quiz Deck
Test your mastery with our complete interactive multiple-choice assessment deck. Select an answer to evaluate your reasoning and reveal detailed explanatory feedback!
Q1. The data is stored, retrieved and updated in……..?
Q2. …………………… is a good alternative to the star schema.
Q3. ……. is an essential process where intelligent methods are applied to extract data patterns.
Q4. Strategic value of data mining is ………………….?
Q5. The type of relationship in star schema is ………?
Q6. The ……………… allows the selection of the relevant information necessary for the data warehouse.
Q7. Which of the following is not a component of a data warehouse?
Q8. Which of the following is not an ETL tool?
Q9. Which of the following is/are the Data mining tasks?
Q10. Which of the following is not a kind of data warehouse application?
Q11. The output of KDD is ………….?
Q12. The full form of OLAP is?
Q13. ……….. is a summarization of the general characteristics or features of a target class of data.
Q14. Which of the following should not be considered for each dimension attribute?
Q15. The full form of KDD is ………………
Q16. Which of the following is not a data mining functionality?
Q17. ……….. is the process of finding a model that describes and distinguishes data classes or concepts.
Q18. The process of removing the deficiencies and loopholes in the data is called as?
Q19. Concept description is the basic form of the?
Q20. An OLAP tool provides for
Q21. Which one manages both current and historic transactions?
Q22. Which of the following is the collection of data objects that are similar to one another within the same group?
Q23. Which of the following employees data mining techniques to analyze the intent of a user query, provided additional generalized or associ ated information relevant to the query?
Q24. Which of the following process includes data cleaning, data integration, data selection, data transformation, data mining, pattern evolution and knowledge presentation?
Q25. At which level we can create dimensional models?
Q26. Which of the following is not related to dimension table attributes?
Q27. Data warehouse bus matrix is a combination of
Q28. Which of the following is not the managing issue in the modeling process?
Q29. Data modeling technique used for data marts is
Q30. A warehouse architect is trying to determine what data must be included in the warehouse. A meeting has been arranged with a busi ness analyst to understand the data requirements, which of the following should be included in the agenda?
Q31. A Business Intelligence system requires data from:
Q32. Data mining application domains are
Q33. Which of the following project is a building a data mart for a business process/department that is very critical for your organization?
Q34. Which of the following tools a business intelligence system will have?
Q35. The Synonym for data mining is
Q36. The … … exposes the information being captured, stored, and managed by operational systems.
Q37. An ……… system is market-oriented and is used for data analysis by knowledge workers, including managers, executives, and analysts.
Q40. Most common kind of queries in a data warehouse
Q41. In a data warehouse, if D1 and D2 are two conformed dimensions, then
Q42. The generalization o f multidimensional attributes of a complex obje ct class can be performed by examining each attribute, generalizing each attribute to simple -value data and constructing a multidimensional data cube is called as
Q43. Which of the following statements is true?
Q44. What is/are the different types of Meta data? I. Administrative. II. Business. III. Operational.
Q45. Multiple Regression means
Q46. Biotope are-
Q47. Naive prediction is-
Q48. The apriori property means
Q49. Which of following form the set of data created to support a specific short lived business situation?
Q50. Which of the following is the most important when deciding on the data structure of a data mart?
Q51. The various aspects of data mining methodologie s is/are ……………….? i) Mining various and new kinds of knowledge ii) Mining knowledge in multidimensional space iii) Pattern evaluation and pattern or constraint-guided mining. iv) Handling uncertainty, noise, or incompleteness of data
Q52. Data mining can also applied to other forms such as …………….? i) Data streams ii) Sequence data iii) Networked data iv) Text data v) Spatial data
Q53. Classification accuracy is?
Q54. Learning algorithm referrers to?
Q55. Knowledge is referred to?
Q56. Machine learning is?
Q57. Query tools are?
Q58. Operational database is?
Q59. Projection pursuit is?
Q60. Case-based learning is?
Mastery check
How well can you recall this?
Finished this lesson?