Docsity

VTU 7TH SEM CSE DATA WAREHOUSING & DATA MINING NOTES 10CS755, Study notes of Data Warehousing

Toggle sidebar
bg1
DATA WAREHOUSING AND DATA MINING
Subject Code: 10IS74/10CS755 I.A. Marks : 25
Hours/Week : 04 Exam Hours: 03
Total Hours : 52 Exam Marks: 100
PART โ€“ A
UNIT โ€“ 1 6 Hours
Data Warehousing: Introduction, Operational Data Stores (ODS), Extraction Transformation Loading (ETL), Data
Warehouses. Design Issues, Guidelines for Data Warehouse Implementation, Data Warehouse Metadata
UNIT โ€“ 2 6 Hours
Online Analytical Processing (OLAP): Introduction, Characteristics of OLAP systems, Multidimensional view and Data
cube, Data Cube Implementations, Data Cube operations, Implementation of OLAP and overview on OLAP Softwares.
UNIT โ€“ 3 6 Hours
Data Mining: Introduction, Challenges, Data Mining Tasks, Types of Data, Data Preprocessing, Measures of Similarity and
Dissimilarity, Data Mining Applications
UNIT โ€“ 4 8 Hours
Association Analysis: Basic Concepts and Algorithms: Frequent Itemset Generation, Rule Generation, Compact
Representation of Frequent Itemsets, Alternative methods for generating Frequent Itemsets, FP Growth Algorithm, Evaluation
of Association Patterns
PART - B
UNIT โ€“ 5 6 Hours
Classification -1 : Basics, General approach to solve classification problem, Decision Trees, Rule Based Classifiers, Nearest
Neighbor Classifiers.
UNIT โ€“ 6 6 Hours
Classification - 2 : Bayesian Classifiers, Estimating Predictive accuracy of classification methods, Improving accuracy of
clarification methods, Evaluation criteria for classification methods, Multiclass Problem.
UNIT โ€“ 7 8 Hours
Clustering Techniques: Overview, Features of cluster analysis, Types of Data and Computing Distance, Types of Cluster
Analysis Methods, Partitional Methods, Hierarchical Methods, Density Based Methods, Quality and Validity of Cluster
Analysis
UNIT โ€“ 8 6 Hours
Web Mining: Introduction, Web content mining, Text Mining, Unstructured Text, Text clustering, Mining Spatial and
Temporal Databases.
Text Books:
1. Pang-Ning Tan, Michael Steinbach, Vipin Kumar: Introduction to Data Mining, Addison-Wesley, 2005.
2. G. K. Gupta: Introduction to Data Mining with Case Studies, 3rd Edition, PHI, New Delhi, 2009.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
Discount

On special offer

Partial preview of the text

Download VTU 7TH SEM CSE DATA WAREHOUSING & DATA MINING NOTES 10CS755 and more Study notes Data Warehousing in PDF only on Docsity!

DATA WAREHOUSING AND DATA MINING

Subject Code: 10IS74/10CS755 I.A. Marks : 25 Hours/Week : 04 Exam Hours: 03 Total Hours : 52 Exam Marks: 100

PART โ€“ A

UNIT โ€“ 1 6 Hours Data Warehousing: Introduction, Operational Data Stores (ODS), Extraction Transformation Loading (ETL), Data Warehouses. Design Issues, Guidelines for Data Warehouse Implementation, Data Warehouse Metadata

UNIT โ€“ 2 6 Hours Online Analytical Processing (OLAP): Introduction, Characteristics of OLAP systems, Multidimensional view and Data cube, Data Cube Implementations, Data Cube operations, Implementation of OLAP and overview on OLAP Softwares.

UNIT โ€“ 3 6 Hours Data Mining: Introduction, Challenges, Data Mining Tasks, Types of Data, Data Preprocessing, Measures of Similarity and Dissimilarity, Data Mining Applications

UNIT โ€“ 4 8 Hours Association Analysis: Basic Concepts and Algorithms: Frequent Itemset Generation, Rule Generation, Compact Representation of Frequent Itemsets, Alternative methods for generating Frequent Itemsets, FP Growth Algorithm, Evaluation of Association Patterns

PART - B

UNIT โ€“ 5 6 Hours Classification -1 : Basics, General approach to solve classification problem, Decision Trees, Rule Based Classifiers, Nearest Neighbor Classifiers.

UNIT โ€“ 6 6 Hours Classification - 2 : Bayesian Classifiers, Estimating Predictive accuracy of classification methods, Improving accuracy of clarification methods, Evaluation criteria for classification methods, Multiclass Problem.

UNIT โ€“ 7 8 Hours Clustering Techniques: Overview, Features of cluster analysis, Types of Data and Computing Distance, Types of Cluster Analysis Methods, Partitional Methods, Hierarchical Methods, Density Based Methods, Quality and Validity of Cluster Analysis

UNIT โ€“ 8 6 Hours Web Mining: Introduction, Web content mining, Text Mining, Unstructured Text, Text clustering, Mining Spatial and Temporal Databases.

Text Books:

  1. Pang-Ning Tan, Michael Steinbach, Vipin Kumar: Introduction to Data Mining, Addison-Wesley, 2005.
  2. G. K. Gupta: Introduction to Data Mining with Case Studies, 3rd^ Edition, PHI, New Delhi, 2009.

TABLE OF CONTENTS

  • UNIT-1: DATA WAREHOUSING 1-
  • UNIT 2: ONLINE ANALYTICAL PROCESSING (OLAP) 11-
  • UNIT 3: DATA MINING 23-
  • UNIT 7: CLUSTERING TECHNIQUES 41-
  • UNIT 8: WEB MINING/TEMPORAL & SPATIAL DATA MINING 59-

Itโ€™s human nature not to appreciate all we have until it's lost.

ODS

  • ODS stands for Operational Data Store.
  • This is defined as a subject-oriented, integrated, volatile, current-valued data store, containing only corporate-detailed data. โ†’ ODS is subject-oriented i.e. it is organized around the major data-subjects of an enterprise โ†’ ODS is integrated i.e. it is a collection of data from a variety of systems to provide an enterprise-wide view of the data โ†’ ODS is volatile i.e. data in the ODS changes frequently as new information refreshes ODS โ†’ ODS is current-valued i.e. it is up-to-date and reflects the current status of the information โ†’ ODS is detailed i.e. it is detailed enough to serve needs of management-staff in enterprise
  • Benefits of ODS to an enterprise:
    1. An ODS is the unified-operational view of enterprise. It provides operational-managers improved access to important operational-data. This view may assist in better understanding of business & customer.
    2. The ODS can be much more effective in generating current reports without having to access the OLTP.
    3. The ODS can shorten the time required to implement & populate a data warehouse system.
  • An ODS may be of following types:
    1. An ODS that is essentially a reporting-tool for administrative purposes may be fairly simple. Such an ODS is usually updated daily. (It provides reports about business transactions for that day, such as sales totals or orders filled).
    2. An ODS may be designed to track more complex information such as product & location codes. Such an ODS is usually updated hourly.
    3. An ODS may be designed to support CRM (Customer Relationship Management).

ODS DESIGN & IMPLEMENTATION

  • The extraction of information from source databases needs to be efficient (Figure 7.1).
  • The quality of data needs to be maintained.
  • Suitable checks are required to ensure quality of data after each refresh.
  • An ODS would be required to satisfy normal integrity constraints, for example, โ†’ existential- & referential-integrity โ†’ appropriate action to deal with nulls
  • An ODS is a read only database. Users should not be allowed to update information in ODS.
  • Populating an ODS involves an acquisition process of extracting, transforming & loading data from source systems. This process is called ETL( Extraction, Transformation and Loading).
  • Checking for anomalies & testing for performance are necessary before an ODS system can go online.

Selfless service is the rent you pay for living on this wonderful planet.

WHY A SEPARATE DATABASE?

  • Q: Why an ODS should be separate from the operational-databases? Ans: Because from time to time, complex queries are likely to degrade performance of OLTP systems. The OLTP systems have to provide a quick response to operational-users as businesses cannot afford to have response time suffer when a manager is running a complex query.

ZLE

  • ZLE stands for Zero Latency Enterprise.
  • This is used for near real-time integration of operational-data so that there is no significant delay in getting information from one system to another system in an enterprise.
  • The heart of a ZLE system is an ODS.
  • A ZLE data store(ZDS) is something like an ODS that is integrated & up-to-date.
  • Aim of a ZLE data store is to: โ†’ allow management a single view of enterprise-information by bringing together relevant data in real-time & โ†’ provide management a "360-degree" view of the customer
  • Characteristics of ZLE: โ†’ It has a unified view of the enterprise operational-data. โ†’ It has a high level of availability and it involves online refreshing of information.
  • Since a ZLE needs to support a large number of concurrent users (for example call centre users), a fast turnaround time for transactions and 24/7 availability is required.
  • Q: How does a ZLE data store fit into enterprise-information architecture? Ans: Either a ZLE data store can be used almost like an ODS that is refreshed in real-time or a ZLE can take over some of the roles of the data-warehouse. ETL
  • The ETL process involves extracting, transforming and loading data from multiple source-systems.
  • The process is much more complex and tedious. The process may require significant resources to implement.
  • Different data-sources tend to have โ†’ different conventions for coding information & โ†’ different standards for the quality of information
  • Building an ODS requires data filtering, data cleaning and integration.
  • Data-errors at least partly arise because of unmotivated data-entry staff.
  • Successful implementation of an ETL system involves resolving following issues:
    1. What are the source systems? These systems may include relational database systems, legacy systems.
    2. To what extent are the source systems and the target system interoperable? The more different the sources and target, the more complex the ETL process.
    3. What ETL technology will be used?
    4. How big is the ODS likely to be at the beginning and in the long term? Database systems tend to grow with time. Consideration may have to be given to whether some of the data โ†’ from the ODS will be archived regularly as the data becomes old and โ†’ is no longer needed in the ODS
    5. How frequently will the ODS be refreshed or reloaded?
    6. How will the quality and integrity of the data be monitored? Data cleaning will often required to deal with issues like missing values, data formats, code values, primary keys and referential integrity.
    7. How will a log be maintained? A dispute may arise about the origin of some data. It is therefore necessary to be able to not only log which information came from where but also when the information was last updated.
    8. How will recovery take place?
    9. Would the extraction process only copy data from the source systems and not delete the original data?
    10. How will the transformation be carried out? Transformation could be done in either source OLTP system, ODS or staging area.
    11. How will data be copied from non-relational legacy systems that are still operational?

Fear is the number one factor that causes people to live small, inauthentic lives.

DATA WAREHOUSE

  • This is an integrated subject-oriented & time-variant repository of information in support of management's decision making process.
  • In other words, it is a process of integrating enterprise-wide data, originating from a variety of sources, into a single repository.
  • ODS is a current-valued data store while a DW is a time-variant repository of data (Table: 7.6).
  • Benefits of implementing a data warehouse:
    1. To provide a single version of truth about enterprise information
    2. To speed up adhoc reports and queries that involves aggregations across many attributes
    3. To provide a system in which managers who do not have a strong technical background are able to run complex queries
    4. To provide a database that stores relatively clean data
    5. To provide a DB that stores historical data that may have been deleted from OLTP systems
  • Q: Why a data warehouse must be separate from OLTP systems? Ans: Complex queries involving number of aggregations are likely to degrade performance of systems.
  • Smaller data warehouse is called data marts (Figure: 7.3).
  • A data-mart stores information for a limited number of subject-areas.
  • The data-mart approach is attractive since beginning with a single data-mart is relatively inexpensive and easier to implement.

Focus on being great at what u do. Be truly outstanding in every element of ur professional and ur personal life.

ODS & DW ARCHITECTURE

  • The architecture involves โ†’ extracting information from source systems by using an ETL process and โ†’ then storing the information in a staging area (Figure: 7.4).
  • Staging area is a temporary database, separate from source systems and ODS where in the data is โ†’ copied from source systems โ†’then transformed and โ†’ finally copied to the ODS.
  • The daily changes also come to the staging area.
  • Another ETL process is used to transform information from the staging area to populate the ODS.
  • The ODS could then be used for producing a variety of reports for management.
  • The ODS is then used for supplying information via another ETL process to the data warehouse which in turn feeds a number of data marts that generate the reports required by management.

When you know better, you can do better.

Stop being a prisoner of your past & become architect of your future.

DW IMPLEMENTATION STEPS

1) Requirements Analysis & Capacity Planning

  • The first step involves โ†’ defining enterprise needs โ†’ defining architecture โ†’ carrying out capacity planning and โ†’ selecting the hardware and software tools
  • This step also involves consulting โ†’ with senior management & โ†’ with the various stakeholders 2) Hardware Integration
  • Both hardware and software need to be put together by integrating โ†’ servers โ†’ storage devices & โ†’ client software tools 3) Modeling
  • This involves designing the warehouse schema and views. This may involve using a modeling tool if the data warehouse is complex. 4) Physical Modeling
  • This involves designing โ†’ data warehouse organization โ†’ data placement โ†’ data partitioning โ†’ deciding on access methods and indexing 5) Sources
  • This involves identifying and connecting the sources using gateways. 6) ETL
  • This involves โ†’identifying a suitable ETL tool vendor and โ†’purchasing and implementing the tool
  • This may include customizing the tool to suit the needs of the enterprise. 7) Populate DW
  • This involves testing the required ETL tools, perhaps using a staging area. Then, ETL tools may be used in populating the warehouse. 8) User Applications
  • This involves designing and implementing applications required by the end users. 9) Roll-out the DW and Applications

DW METADATA

  • Metadata is data about data or documentation about the data that is needed by the users.
  • This is not the actual data warehouse, but answers the "who, what, where, when, why and how" questions about the data warehouse.
  • This describes the characteristics of a resource.
  • Metadata may be classified into two groups: back room metadata and front room metadata.
    1. Much important information is included in the back room metadata that is process related, for example, the ETL processes. Furthermore, this could include โ†’ data extraction, cleaning and loading specifications โ†’ dates on which the ETL process was carried out and โ†’ a list of data that were loaded
    2. The front room metadata is more descriptive and could include information needed by the users, for example, โ†’ user security privileges โ†’ various statistics about usage

What we do have enormous control over is the way we respond to what life sends our way.

UNIT 2: ONLINE ANALYTICAL PROCESSING (OLAP)

INTRODUCTION

  • A dimension is an attribute within a multidimensional model consisting of a list of values (called members).
  • A fact is defined by a combination of dimension values for which a non-null value exists.
  • The non-null values of facts are the numerical values stored in each data cube cell. They are called measures.
  • A data cube computes aggregates over all subsets of dimensions specified in the cube.

OLAP

  • OLAP stands for Online Transaction Processing Systems.
  • This is primarily a software-technology concerned with fast analysis of enterprise-information.
  • In other words, OLAP is the dynamic enterprise analysis required to create, manipulate, animate & synthesize information from exegetical, contemplative and formulaic data analysis models.
  • Business-Intelligence(BI) is used to mean both data-warehousing and OLAP.
  • In other words, BI is defined as a user-centered process of โ†’ exploring data, data-relationships and trends โ†’ thereby helping to improve overall decision-making.

MOTIVATIONS FOR USING OLAP

1) Understanding and Improving Sales

  • For an enterprise that has many products and many channels for selling the products, OLAP can assist in finding the most popular products & the most popular channels.
  • In some cases, it may be possible to find the most profitable customers.
  • Analysis of business-data can assist in improving the enterprise-business. 2) Understanding and Reducing Costs of doing Business
  • OLAP can assist in โ†’ analyzing the costs associated with sales & โ†’ controlling the costs as much as possible without affecting sales
  • In some cases, it may also be possible to identify expenditures that produce a high ROI (return on investment).

Actions have consequences and to reap the harvest you dream of, you must sow the seeds.

CHARACTERISTICS OF OLAP SYSTEMS

1) Users

  • OLTP systems are designed for office-workers (100-1000 users). Whereas, OLAP systems are designed for decision-makers(few business-users). 2) Functions
  • OLTP systems are mission-critical. They support an enterprise's day-to-day operations. They are mostly performance-driven. Whereas, OLAP systems are management-critical. They support an enterprise's decision- functions using analytical-investigations. 3) Nature
  • OLTP systems are designed to process one record at a time, for ex, a record related to the customer. Whereas, OLAP systems involve queries that deal with many records at a time and provide aggregate data to a manager. 4) Design
  • OLTP systems are designed to be application-oriented. Whereas, OLAP systems are designed to be subject-oriented.
  • OLTP systems view the enterprise-data as a collection of tables (based on ER model). Whereas, OLAP systems view enterprise-information as multidimensional model. 5) Data
  • OLTP systems normally deal only with the current-status of information. The old information may have been archived and may not be accessible online. Whereas, OLAP systems require historical-data over several years. 6) Kind of use
  • OLTP systems are used for read & write operations. Whereas, OLAP systems normally do not update the data.

Learning should be fun, memorable and moving.

Treatment of Missing Values

  • The system should ignore all missing-values regardless of their source. Generic Dimensionality
  • The system should treat each dimension as equivalent in both its structure and operational capabilities. Unlimited Dimensions and Aggregation Levels
  • The system should allow unlimited dimensions and aggregation levels.
  • In practice, number of dimensions is rarely more than 10 and number of hierarchies rarely more than 6.

MULTIDIMENSIONAL VIEW AND DATA CUBE

  • The multidimensional view of data is in some ways a natural view of any enterprise for managers โ€ข The triangle shows that as we go higher in the triangle hierarchy the managers need for detailed information declines (Figure 8.1).
  • The multidimensional view of data by using an example of a simple OLTP database consists of the three tables: student(Student_id, Student_name, Country, DOB, Address) enrolment(Student_id, Degree_id, SSemester) degree(Degree_id, Degree_name, Degree_length, Fee, Department)

Experience is always the best teacher.

  • It is clear that the information given in Tables 8.3, 8.4 and 8.5, although suitable for a student enrolment OLTP system, is not suitable for efficient management decision making.
  • The managers do not need information about the individual students, the degree they are enrolled in, and the semester they joined the university.
  • What the managers needs the trends in student numbers in different degree programs and from different countries.
  • We first consider only two dimensions. Let us say we are primarily interested in finding out how many students from each country came to do a particular degree (Table: 8.6). Therefore we may visualize the data as two-dimensional, i.e., Country x Degree
  • Using this two-dimensional view we are able to find the number of students joining any degree from any country (only for semester 2000-01). Other queries that we are quickly able to answer are: โ†’How many students started BIT in 2000-01? โ†’How many students joined from Singapore in 2000-01?

Asking the right question is often 90% of finding the right answer.

DATA CUBE IMPLEMENTATION

Pre-compute and store all

  • Millions of aggregates need to be computed and stored.
  • This is the best solution as far as query response-time is concerned.
  • This solution is impractical for a large data-cube, since resources required to compute & store the aggregates will be prohibitively large
  • Indexing large amounts of data is also expensive. Pre-compute(and store) none
  • The aggregates are computed on-the-fly using the raw data whenever a query is posed.
  • This approach does not require additional space for storing the cube.
  • The query response-time is likely to be very poor for large data-cubes. Pre-compute and store some
  • We pre-compute and store the most frequently queried aggregates and compute others as the need arises.
  • We may also be able to derive some of the remaining aggregates using the aggregates that have already been computed (Figure 8.3)..
  • The more aggregates we are able to pre-compute, the better the query performance
  • Data-cube products use different techniques for pre-computing aggregates and storing them. They are generally based on one of two implementation models. i) ROLAP (relational OLAP) ii) MOLAP (multidimensional OLAP)

Life is short and you donโ€™t know when it's going to end.

ROLAP

  • This uses relational or extended-relational DBMS to store and manage warehouse data.
  • This may be considered a bottom-up approach to OLAP.
  • This is typically based on using a data warehouse that has been designed using a star scheme.
  • The data warehouse provides the multidimensional capabilities by representing data in fact-table and dimension-tables.
  • The fact-table contains one column for each dimension and one column for each measure and every row of the table provides one fact.
  • A fact then is represented as with the last column as 30. An OLAP tool is then provided to manipulate the data in these data warehouse tables.
  • This tool essentially groups the fact-table to find aggregates and uses some of the aggregates already computed to find new aggregates.
  • Advantages: โ†’ This is more easily used with existing relational DBMS and โ†’ The data can be stored efficiently using tables. โ†’ Greater scalability
  • Disadvantage: โ†’ Poor query performance
  • Some products in this category are Oracle OLAP mode and OLAP Discoverer.

MOLAP

  • This is based on using a multidimensional DBMS rather than a data-warehouse to store and access data.
  • This may be considered as a top-down approach to OLAP.
  • This does not have a standard approach to storing and maintaining their data.
  • This often uses special-purpose file systems or indexes that store pre-computation of all aggregations in the cube.
  • Advantages: โ†’ Implementation is usually exceptionally efficient โ†’ Easier to use and therefore may be more suitable for inexperienced users โ†’ Fast indexing to pre-computed summarized-data
  • Disadvantages: โ†’ More expensive than ROLAP โ†’ Data is not always current โ†’ Difficult to scale a MOLAP system for very large OLAP problems โ†’ Storage utilization may be low if the data-set is sparse
  • Some MOLAP products are Hyperion Essbase and Applix iTM1.