2 Introduction To Data Mining

Data Warehousing and Data Mining · Unit 2 · 2 hrs

Introduction to Data Mining

Exam-focused notes for Introduction to Data Mining (Data Warehousing and Data Mining, CSC420): what the TU syllabus asks and how it has actually been tested, with 7 solved past questions from this unit.

Introduction to Data Mining in short

This unit introduces data mining itself: why it is used, what a data mining system looks like, the kinds of patterns it can extract, the KDD process it sits inside, how the objects it works on are described, and the practical issues and applications that surround it.

Introduction to Data Mining: notes

Motivation for data mining

The central motivation for data mining is that organizations accumulate huge volumes of data but still lack the information and knowledge that data implies, and that knowledge is what feeds decisions in business management, production control and beyond. Data mining did not appear in isolation; it is the natural next step in an evolutionary path the database industry had already been following, from data collection and database creation, through data management, to data analysis and understanding, of which mining is the most advanced stage.

Introduction to data mining system

Data mining is the process of extracting knowledge, that is, hidden and previously unknown patterns, from large amounts of data held in databases, data warehouses or other repositories. Many practitioners use the term as a synonym for Knowledge Discovery from Data (KDD), though it is more accurate to view mining as one essential step inside the broader KDD process; the data fed into that step may come from a database, a warehouse, the web, another repository, or a stream arriving dynamically.

A typical data mining system's architecture is built from several cooperating components. Data sources or repositories represent the databases, warehouses or other repositories being mined, on which cleaning and integration are performed before mining begins. The database server is responsible for fetching the data relevant to a given mining request. The knowledge base is domain knowledge used to guide the search or to judge the patterns eventually found. The data mining engine is the core of the system, a set of functional modules for tasks such as association analysis, classification, clustering and evolution analysis. The pattern evaluation module works closely with the mining engine to steer the search toward genuinely interesting patterns rather than a flood of trivial ones. Finally the graphical user interface is what lets a user interact with the whole system, submitting requests and viewing results.

Mining is not restricted to one kind of source. The most basic forms of data mined are database data, data warehouse data and transactional data, but the same techniques extend to data streams, graph or networked data, spatial data, text data, multimedia data and web data.

What this unit covers

  • Motivation for data mining
  • Introduction to data mining system
  • Data mining functionalities
  • KDD
  • Data object and attribute types
  • Statistical description of data
  • Issues and Applications

KDD

2080 · 5 marks

How KDD differs from data mining? Explain various stages of KDD with suitable block diagram. [5]

Show solved answer

KDD vs Data Mining and Stages of KDD

How KDD Differs from Data Mining

KDD (Knowledge Discovery from Data) is the overall process of discovering useful knowledge from raw data. It is a complete, iterative, multi-step process.

Data Mining is just one step within the larger KDD process, where intelligent methods (algorithms) are applied to extract patterns from prepared data.

BasisKDDData Mining
ScopeEntire process from raw data to knowledgeOnly the pattern extraction step
StepsMultiple stages (cleaning, integration, selection, transformation, mining, evaluation, presentation)A single core step
GoalKnowledge discoveryPattern extraction
NatureBroader, iterative processSpecific algorithmic task

As stated in the notes: "Data mining can be viewed as a step within a larger process called KDD."


Stages of KDD

The KDD process is an iterative sequence of the following steps:

Block Diagram

+------------------+
|   Raw Data       |
|  (Databases,     |
|   Files, etc.)   |
+--------+---------+
         |
         v
+------------------+
|  1. Data         |
|     Cleaning     |
+--------+---------+
         |
         v
+------------------+
|  2. Data         |
|     Integration  |
+--------+---------+
         |
         v
+------------------+
|  3. Data         |
|     Selection    |
+--------+---------+
         |
         v
+------------------+
|  4. Data         |
|     Transformation|
+--------+---------+
         |
         v
+------------------+
|  5. Data Mining  |  <--- Core Step
+--------+---------+
         |
         v
+------------------+
|  6. Pattern      |
|     Evaluation   |
+--------+---------+
         |
         v
+------------------+
|  7. Knowledge    |
|     Presentation |
+------------------+
         |
         v
+------------------+
|   Knowledge      |
+------------------+

(The process is iterative: feedback can go back to any earlier stage.)


Explanation of Each Stage

1. Data Cleaning

  • Process of removing noise and inconsistent data from the dataset.
  • Example: Filling missing values, removing duplicate records.

2. Data Integration

  • Process of combining multiple data sources into a coherent data store.
  • Example: Merging data from different databases or files.

3. Data Selection

  • Data relevant to the analysis task are retrieved from the database.
  • Only the useful subset of data is selected for further processing.

4. Data Transformation

  • Data are transformed into forms appropriate for mining.
  • Example: Normalization, aggregation, or encoding of attributes.

5. Data Mining

  • The core step where intelligent methods are applied to extract data patterns.
  • Tasks include: association analysis, classification, clustering, evolution analysis, etc.

6. Pattern Evaluation

  • Identify the truly interesting patterns representing knowledge based on interestingness measures (e.g., support, confidence).
  • Filters out trivial or redundant patterns.

7. Knowledge Presentation

  • Visualization and knowledge representation techniques are used to present mined knowledge to users.
  • Example: Charts, graphs, decision trees, rules displayed to the end user.

Summary

KDD is the complete pipeline from raw data to actionable knowledge. Data mining is only step 5 in this pipeline. The entire KDD process is iterative, meaning results at any stage may require going back to a previous step to refine the outcome.

Open this answer on its own page →

2076 · 5 marks

Differentiate between KDD and data mining. [5]

Show solved answer

Difference Between KDD and Data Mining

Definition

KDD (Knowledge Discovery from Databases) is the overall process of discovering useful, valid, and understandable knowledge from large amounts of data. It is a complete, iterative, and interactive process.

Data Mining is a single step within the KDD process where intelligent methods (algorithms) are applied to extract patterns from data.

As stated in the notes: "Data mining can be viewed as a step within a larger process called KDD."


Key Differences

BasisKDDData Mining
ScopeBroad, end-to-end process of knowledge discoveryA single core step within the KDD process
NatureIterative sequence of multiple stepsApplication of intelligent algorithms to find patterns
GoalTo convert raw data into useful knowledgeTo extract interesting patterns from preprocessed data
Steps InvolvedIncludes cleaning, integration, selection, transformation, mining, evaluation, and presentationFocuses only on applying mining algorithms (association, classification, clustering, etc.)
User InvolvementInvolves user at multiple stagesPrimarily algorithmic and automated
OutputFinal knowledge presented to usersPatterns or models (not yet validated knowledge)
DependencyKDD cannot exist without data miningData mining can be studied independently

KDD Process Steps (from notes)

The KDD process consists of the following iterative steps:

  1. Data Cleaning: Removing noise and inconsistent data
  2. Data Integration: Combining multiple data sources
  3. Data Selection: Retrieving data relevant to the analysis task
  4. Data Transformation: Transforming data into forms appropriate for mining
  5. Data Mining: Applying intelligent methods to extract data patterns
  6. Pattern Evaluation: Identifying truly interesting patterns based on interestingness measures
  7. Knowledge Presentation: Using visualization and knowledge representation techniques to present mined knowledge to users

Summary

KDD is the complete pipeline from raw data to final knowledge, while data mining is the core engine inside that pipeline responsible for pattern extraction. Without the surrounding KDD steps (cleaning, transformation, evaluation), data mining alone cannot produce reliable and meaningful knowledge.

Open this answer on its own page →

2075 · 5 marks

How does KDD differ with data mining? Describe the stages of data mining. [5]

KDD (Knowledge Discovery from Data) is the overall process of discovering useful knowledge from raw data. Data Mining is just one step within this larger KDD process. Aspect KDD Data Mining --------- Scope Entire process from raw data to knowledge A single step within KDD Nature Iterative, multi-...

Open this answer on its own page →

Data object and attribute types

2079 · 5 marks

Discuss different types of attributes with suitable example of each. [5]

An attribute (also called a feature or variable) is a data field representing a characteristic or feature of a data object. Attributes can be of different types depending on the nature of their values. --- A nominal attribute has values that are names or labels of some kind of category, code, or ...

Open this answer on its own page →

Issues and Applications

2078 · 5 marks

When a pattern is said to be interesting? List the issues of data mining. [5]

A pattern is said to be interesting if it is: 1. Easily understood by humans 2. Valid on new or test data with some degree of certainty 3. Novel (previously unknown or validates a hypothesis) 4. Useful (can be acted upon to gain some advantage) 5. Non-trivial (not obvious from the data) A pattern...

Open this answer on its own page →

2076 · 5 marks

Are the information given by data mining is always useful? What are the issues in data warehousing and data mining? [5]

No, the information given by data mining is not always useful. Data mining may produce patterns or results that are: - Trivial - already known to domain experts and provide no new insight - Irrelevant - not applicable to the business problem at hand - Misleading - derived from noisy, incomplete, ...

Open this answer on its own page →

Motivation for data mining

2076 · 5 marks

Give a syntax and example of data mining query language. [5]

A data mining query is a structured specification that allows users to interactively communicate with the data mining system to direct the mining process. Data mining tasks can be specified in the form of a data mining query, which is defined in terms of data mining primitives. --- Data mining pr...

Open this answer on its own page →