
































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

































New Scheme Based On AICTE Flexible Curricula Computer Science and Engineering, VII-Semester Open Elective – CS703 (B) Data Mining and Warehousing COURSE OBJECTIVES Student should understand the value of Historical data and data mining in solving real-world problems. Student should become affluent with the basic Supervised and unsupervised learning algorithms commonly used in data mining. Student develops the skill in using data mining for solving real-world problems. Unit-I Syllabus Data Warehousing: Introduction, Delivery Process, Data warehouse Architecture, Data Preprocessing: Data cleaning, Data Integration and transformation, Data reduction. Data warehouse Design: Data warehouse schema, Partitioning strategy Data warehouse Implementation, Data Marts, Meta Data, Example of a Multidimensional Data model. Introduction to Pattern Warehousing. Data Warehousing A data warehouse is a relational database that is designed for query and analysis rather than for transaction processing. DW is combining data from multiple and usually varied sources in to one comprehensive and easily manipulated database. It usually contains historical data derived from transaction data, but it can include data from other sources. It separates analysis workload from transaction workload and enables an organization to consolidate data from several sources. DW is commonly used by companies to analyze trends over time. As compare to the relational database, a data warehouse environment includes an extraction, transportation, transformation, and loading (ETL) solution, an online analytical processing (OLAP) engine, client analysis tools, and other applications that manage the process of gathering data and delivering it to business users. “A warehouse is a subject-oriented, integrated, time-variant and non-volatile collection of data in support of management’s decision-making process” Understanding a Data Warehouse A data warehouse is a database, which is kept separate from the organization's operational database. There is no frequent updating done in a data warehouse. It possesses consolidated historical data, which helps the organization to analyze its business. A data warehouse helps executives to organize, understand, and use their data to take strategic decisions. Data warehouse systems help in the integration of diversity of application systems. A data warehouse system helps in consolidated historical data analysis. Data Warehouse Features The key features of a data warehouse are discussed below − Subject Oriented − A data warehouse is subject oriented because it provides information around a subject
rather than the organization's ongoing operations. These subjects can be product, customers, suppliers,
Figure 1: Stages in the delivery process Data Warehouse Architectures Data warehouses and their architectures vary depending upon the specifics of an organization's situation. Three common architectures are: Data Warehouse Architecture: Basic Data Warehouse Architecture with a Staging Area Data Warehouse Architecture: with a Staging Area and Data Marts Figure 2: Data Warehouse Architecture
Figure 3: Three-tier architecture of data warehouse Data warehouse systems and its Components: Data warehousing is typically used by larger companies analyzing larger sets of data for enterprise purposes. The data warehouse architecture is based on a relational database system server that functions as the central warehouse for informational data. Operational data and processing is purely based on data warehouse processing. This central information system is used some key components designed to make the entire environment for operational systems. It’s mainly created to support different analysis, queries that need extensive searching on a larger scale. Figure 4: Data Warehouse Components Operational Source System Operational systems are tuned for known transactions and workloads, while workload is not known a priori in a data warehouse. Traditionally data base system used for transaction processing systems which stores transaction data of the organizations business. Its generally used one record at any time not stores history of the information’s. Data Staging Area As soon as the data arrives into the Data staging area it is set of ETL process that extract data from source system. It is converted into an integrated structure and format.
2. Data Integration Data Integration is involved in data analysis task which combines data from multiple sources into a coherent data store, as in data warehousing. These sources may include multiple databases, data cubes, or flat files. The issue to be considered in Data Integration is schema integration. It is tricky. How can real-world entities from multiple data sources be ‘matched up’? This is referred as entity identification problem. For example, how can a data analyst be sure that customer_id in one database and cust_number in another refer to the same entity? The answer is metadata. Databases and data warehouses typically have metadata. Simply, metadata is data about data. Metadata is used to help avoiding errors in schema integration. Another important issue is redundancy. An attribute may be redundant, if it is derived from another table. Inconsistencies in attribute or dimension naming can also cause redundancies in the resulting data set. 3. Data Transformation Data are transformed into appropriate forms of mining. Data Transformation involves the following:
V. In Discretisation and Concept Hierarchy Generation, raw data values for attributes are replaced by ranges or higher conceptual levels. Concept hierarchies allow the mining of data at multiple levels of abstraction and are powerful tools for data mining. Design of Data Warehouse Design Methods Bottom-up design This architecture makes the data warehouse more of a virtual reality than a physical reality. In the bottom-up approach, starts with extraction of data from operational database into the staging area where it is processed and consolidated for specific business processes. The bottom-up approaches reverse the positions of the data warehouse and the data marts. These data marts can then be integrated to create a comprehensive data warehouse. Top-down design The data flow in the top down OLAP environment begins with data extraction from the operational data sources. The top-down approach is designed using a normalized enterprise data model. The results are obtained quickly if it is implemented with iterations. It is time consuming process with an iterative method and the failure risk is very high. Hybrid design The hybrid approach aims to harness the speed and user orientation of the bottom up approach to the integration of the top-down approach. To consolidate these various data models, and facilitate the extract transform load process, data warehouses often make use of an operational data store, the information from which is parsed into the actual DW. The hybrid approach begins with an ER diagram of the data mart and a gradual extension of the data marts to extend the enterprise model in a consistent linear fashion. It will provide rapid development within an enterprise architecture framework. Dimension and Measures Data warehouse consists of dimensions and measures. It is a logical design technique used for data warehouses. Dimensional model allow data analysis from many of the commercial OLAP products available today in the market. For example, time dimension could show you the breakdown of sales by year, quarter, month, day and hour. Measures are numeric representations of a set of facts that have occurred. The most common measures of data dispersion are range, the five number summery (based on quartiles), the inter- quartile range, and the standard deviation. Examples of measures include amount of sales, number of credit hours, store profit percentage, sum of operating expenses, number of past-due accounts and so forth. Types Conformed dimension Junk dimension Degenerate dimension Role-playing dimension Data Marts A data mart is a specialized system that brings together the data needed for a department or related applications. A data mart is a simple form of a data warehouse that is focused on a single subject (or functional area), such as educational, sales, operations, collections, finance or marketing data.
Figure 6: Independent Data Marts Hybrid Data Marts A hybrid data mart allows you to combine input from sources other than a data warehouse. This could be useful for many situations, especially when you need ad hoc integration, such as after a new group or product is added to the organization. Provides rapid development within an enterprise architecture framework. Figure 7 shows hybrid data mart. Figure 7: Hybrid Data Mart What is Metadata? Metadata is simply defined as data about data. The data that is used to represent other data is known as metadata. For example, the index of a book serves as a metadata for the contents in the book. In other words, we can say that metadata is the summarized data that leads us to detailed data. In terms of data warehouse, we can define metadata as follows. Metadata is the road-map to a data warehouse. Metadata in a data warehouse defines the warehouse objects. Metadata acts as a directory. This directory helps the decision support system to locate the contents of a data warehouse. Metadata includes the following:
Dimension tables are normalized split dimension table data into additional tables. But this may affect its performance as joins needs to be performed. Query performance would be degraded because of additional joins. (delay in processing) Fact Constellation: As its name implies, it is shaped like a constellation of stars (i.e. star schemas). Allow to share multiple fact tables with dimension tables. This schema is viewed as collection of stars hence called galaxy schema or fact constellation. Solution is very flexible, however it may be hard to manage and support. Sophisticated application requires such schema. Overview of Partitioning in Data Warehouses Data warehouses often contain very large tables and require techniques both for managing these large tables and for providing good query performance across them. An important tool for achieving this, as well as enhancing data access and improving overall application performance is partitioning.
Partitioning offers support for very large tables and indexes by letting you decompose them into smaller and more manageable pieces called partitions. This support is especially important for applications that access tables and indexes with millions of rows and many gigabytes of data. Partitioned tables and indexes facilitate administrative operations by enabling these operations to work on subsets of data. For example, you can add a new partition, organize an existing partition, or drop a partition with minimal to zero interruption to a read-only application. When adding or creating a partition, you have the option of deferring the segment creation until the data is first inserted, which is particularly valuable when installing applications that have a large footprint. Why is it Necessary to Partition? Partitioning is important for the following reasons − For easy management, To assist backup/recovery, To enhance performance. For Easy Management The fact table in a data warehouse can grow up to hundreds of gigabytes in size. This huge size of fact table is very hard to manage as a single entity. Therefore it needs partitioning. To Assist Backup/Recovery If we do not partition the fact table, then we have to load the complete fact table with all the data. Partitioning allows us to load only as much data as is required on a regular basis. It reduces the time to load and also enhances the performance of the system. Note − To cut down on the backup size, all partitions other than the current partition can be marked as read- only. We can then put these partitions into a state where they cannot be modified. Then they can be backed up. It means only the current partition is to be backed up. To Enhance Performance By partitioning the fact table into sets of data, the query procedures can be enhanced. Query performance is enhanced because now the query scans only those partitions that are relevant. It does not have to scan the whole data. Horizontal Partitioning There are various ways in which a fact table can be partitioned. In horizontal partitioning, we have to keep in mind the requirements for manageability of the data warehouse. Partitioning by Time into Equal Segments In this partitioning strategy, the fact table is partitioned on the basis of time period. Here each time period represents a significant retention period within the business. For example, if the user queries for month to date data then it is appropriate to partition the data into monthly segments. We can reuse the partitioned tables by removing the data in them. Partition by Time into Different-sized Segments
that provide a quantitative description of events. For example, receipts of sales, amount of shipment, product cost are measures. The multidimensional data model is an integral part of On-Line Analytical Processing, or OLAP. Because OLAP is on-line, it must provide answers quickly; analysts pose iterative queries during interactive sessions, not in batch jobs that run overnight. And because OLAP is also analytic, the queries are complex. Dimension tables support changing the attributes of the dimension without changing the underlying fact table. The multidimensional data model is designed to solve complex queries in real time. The multidimensional data model is important because it enforces simplicity. The multidimensional data model is composed of logical cubes, measures, dimensions, hierarchies, levels, and attributes. The simplicity of the model is inherent because it defines objects that represent real-world business entities. Analysts know which business measures they are interested in examining, which dimensions and attributes make the data meaningful, and how the dimensions of their business are organized into levels and hierarchies. Figure shows the relationships among the logical objects. Figure 10: Logical Multidimensional Model Aggregates In data warehouse huge amount of data is stored that makes analyses of data very difficult. This is the basic reason why selection and aggregation is required to examine specific part of data. Aggregations are the way by which information can be divided so queries can be run on the aggregated part and not the whole set of data. These are pre-calculated summaries derived from the most granular fact table. It is a process for information is gathered and expressed in a summary form, for purposes such as statistical analysis. A common aggregation purpose is to get more information about particular groups based on specific variables such as age, profession, or income. The information about such groups can then be used for web site personalization. Tables are always changing along with the needs of the users so it is important to define the aggregations according to what summary tables might be of use. Pattern Warehouse The patterns a data mining system discovers are stored in a Pattern Warehouse. Just as a data warehouse stores data, the Pattern Warehouse stores patterns - it is an information repository that stores relationships between data items, but not the data. While data items are stored in data warehouse, we use the Pattern Warehouse to store the patterns and relationships among them. The Pattern Warehouse is represented as a set of "pattern-tables" within a traditional relational database. This solves several potential issues regarding user access rights, security control, multi-
user access, etc. But obviously, we need a language to access and query the contents of Pattern Warehouses. SQL may be considered an obvious first candidate for this, but when SQL was designed over 30 years ago, data mining was not a major issue. SQL was designed to access data stored in databases. We need pattern-oriented languages to access Pattern Warehouses storing various types of exact and inexact patterns. Often, it is very hard to access these patterns with SQL. Hence a Pattern Warehouse cannot be conveniently queried in a direct way using a relational query language. Not only are some patterns not easily stored in a simple tabular format, but by just looking up influence factors in pattern-tables we may get incorrect results. We need a "pattern- kernel" that consistently manages and merges patterns. The pattern-kernel forms the heart of Pattern Query Language (PQL). The PQL, which does for decision support spaces what SQL, does for the data space. While SQL relies on the relational algebra, PQL uses the "pattern algebra". PQL was designed to access Pattern Warehouses just as SQL was designed to access databases. PQL was designed to be very similar to SQL. It allows knowledge-based queries just as SQL allows data based queries.
Filtering: Selecting specific data subsets based on criteria. Sorting: Arranging data in a specific order for analysis. Drill-down and Roll-up: Navigating between levels of data granularity. Pivoting: Changing the orientation of data axes for different views. Data Warehouse Hardware and Operational Design The hardware and operational aspects of data warehouses are critical for performance, security, and reliability. Key considerations include: Security Implementing security measures ensures data confidentiality, integrity, and access control. Techniques include user authentication, authorization, encryption, and audit trails to monitor data access and modifications. Backup and Recovery Robust backup and recovery strategies are essential to prevent data loss and ensure business continuity. These strategies involve: Regular backups: Full and incremental backups scheduled periodically. Recovery procedures: Clear steps to restore data from backups in case of failure or data corruption. Disaster recovery planning: Preparing for catastrophic events with off-site backups and recovery sites. Operational Design of Data Warehouses Designing operational aspects involves planning for data loading, indexing, partitioning, and maintenance tasks to optimize performance and manageability. This includes: Data loading processes: Extract, Transform, Load (ETL) procedures to populate the warehouse. Indexing strategies: Creating indexes to speed up query processing. Partitioning: Dividing large tables into manageable segments for efficient access. Monitoring and tuning: Regular performance assessments and adjustments to hardware and software configurations. Data Warehouse Hardware and Operational Design Hardware Architecture Data warehouse hardware must balance processing power, storage capacity, and network throughput to support large-scale analytics with predictable performance. Designing with clear separation of compute, storage, and client tiers allows each layer to scale independently, simplifies maintenance, and optimizes resource utilization. Compute Layer Deploy multi-core, high-frequency CPUs or specialized analytic processors to handle complex queries and parallel execution.
Provision ample RAM (hundreds of gigabytes or more) to enable in-memory aggregations, caching, and buffer pools. Consider scale-out architectures (MPP clusters) to distribute workloads across nodes and achieve linear performance growth. Storage Layer Use tiered storage: solid-state drives (SSD) for hot/active data and high-capacity HDD or object storage for cold/archive data. Implement RAID (e.g., RAID 10) or erasure coding to balance throughput, redundancy, and cost. Leverage columnar storage formats and data compression to reduce I/O and disk footprint. Storage Tier Media Type Use Case Characteristics Hot NVMe/SSD Active reporting Low latency, high IOPS, higher cost Warm SAS/SATA Periodic analysis Moderate cost, balanced performance Cold HDD/Object Historical/archive High capacity, higher latency Network Fabric Implement high-bandwidth, low-latency interconnects (10/25/40/100 GbE or InfiniBand) between compute and storage nodes. Use network segmentation (VLANs) to isolate management, client, and replication traffic. Ensure redundant switches and links to eliminate single points of failure. Client and BI Tier Host front-end BI servers, reporting engines, and dashboards on separate application servers or cloud instances. Cache frequently accessed result sets at the BI layer to offload bursts from the warehouse. Provide API gateways or middleware for secure, consistent access by multiple tools and services. Operational Design Operational design covers security measures and backup/recovery processes that protect data integrity, confidentiality, and availability across the warehouse lifecycle. Security Implement a defense-in-depth strategy encompassing physical, network, and data controls to mitigate risks and meet compliance requirements. Physical: Secure data center access with biometric controls, surveillance, and environmental monitoring. Network: Deploy firewalls, intrusion detection/prevention systems, and virtual private networks for external connections.