DWfinal1
DWfinal1
1. Subject Oriented : Data is organized around subjects such as: Sales , Customer , Product Finance
Instead of applications. Example: Operational DB → Customer Orders ,Warehouse → Customer Analysis
2. Integrated : Data comes from multiple sources and is converted into a common [Link]: Date
format standardized , Currency standardized ,Naming conventions unified
3. Time Variant : Stores historical data over long periods. Example: Sales 2022 , Sales 2023 Sales 2024
Sales 2025 Operational DB generally stores only current data.
4. Non-Volatile: Once data enters warehouse it is: Read , Queried , Analyzed , It is generally not updated or
deleted. Operations: Load, Access , Not: Insert , Update Delete frequently.
Definition: Architecture describes the flow of data from source systems to end users for analysis.
Purpose: Used for trend analysis, forecasting, business reporting and decision support.
Characteristics of OLAP
1. Multidimensional View: Data is viewed from multiple dimensions such as Time, Product, Customer
and Region.
2. Fast Analysis: Provides quick response for complex analytical queries.
3. Historical Data Analysis: Mainly works on historical data stored in Data Warehouse.
4. Supports Decision Making: Helps managers identify trends and patterns.
5. Complex Queries: Supports aggregation, summarization and statistical analysis.
Types of OLAP
1. MOLAP (Multidimensional OLAP) : Stores data in multidimensional cubes., Fast query performance.
Requires more storage.
2. ROLAP (Relational OLAP) : Stores data in relational tables. Can handle huge datasets. Slower than
MOLAP.
3. HOLAP (Hybrid OLAP) : Combination of MOLAP and ROLAP. Combines speed and scalability.
Data Mart : A Data Mart is a subset of Data Warehouse designed for a specific department such as Sales,
HR or Finance.
Metadata: Metadata means "Data about Data" and contains source information, schema details, data
types and transformation rules.
3
1. Fact Table: Central table containing numerical measures and foreign keys to dimension tables.
Examples: Sales Amount, Profit, Quantity Sold.
2. Dimension Table: Contains descriptive information about facts. Examples: Product, Customer,
Time, Location.
3. Measure: Numerical values on which analysis is performed. Examples: Revenue, Cost, Profit,
Quantity Sold.
4. Data Cube: Multidimensional representation of data using dimensions and measures. Example: Sales
analyzed by Product × Time × Location. Diagram: Data Cube Diagram.
1. Roll-Up: Aggregates data by moving from lower level to higher level hierarchy. Example: City →
State → Country.
2. Drill-Down: Opposite of Roll-Up; moves from summary to detailed data. Example: Year → Month
→ Day.
3. Slice: Selects one value from a dimension to create a smaller cube. Example: Sales data for Year =
2025.
4. Dice: Selects multiple values from multiple dimensions. Example: Laptop and Mobile sales in Delhi
and Kolkata during 2025.
5. Pivot (Rotate): Rotates cube axes to provide different views of data. Example: Product vs Year →
Year vs Product.
1. Star Schema: One Fact Table directly connected to multiple Dimension Tables. Characteristics:
Simple design, fewer joins, fast query processing, high redundancy. Example: Sales Fact → Product,
Customer, Time, Location. Relationship: One-to-Many. Diagram: Star Schema Diagram.
2. Snowflake Schema: Extension of Star Schema where Dimension Tables are normalized into multiple
related tables. Characteristics: Less redundancy, less storage, more joins, slower queries. Example:
Product → Category → Department. Diagram: Snowflake Schema Diagram.
3. Fact Constellation Schema (Galaxy Schema): Contains multiple Fact Tables sharing Dimension
Tables. Characteristics: Complex design, supports multiple business processes, highly scalable.
Example: Sales Fact and Shipping Fact sharing Product and Time dimensions. Diagram: Fact
Constellation Schema Diagram.
ETL
ETL (Extract, Transform, Load) is the process of collecting data from multiple sources, converting it into a
suitable format and storing it into a Data Warehouse.
ETL Phases
1. Extract: Data is collected from various sources such as Databases, ERP Systems, CRM Systems, Files
and Web Sources.
2. Transform: Extracted data is cleaned, integrated and converted into a standard format. Operations
include Data Cleaning, Data Integration, Data Aggregation, Data Filtering and Data Conversion.
3. Load: Transformed data is loaded into the Data Warehouse for analysis and decision making.
Data Mining
Definition: Data Mining is the process of discovering useful patterns, relationships, trends and knowledge
from large amounts of data using statistical, machine learning and database techniques.
1. Classification: Assigns data into predefined classes. Example: Spam or Not Spam.
2. Prediction: Predicts future values based on existing data. Example: Stock Price Prediction.
3. Clustering: Groups similar data objects together. Example: Customer Segmentation.
4. Association Analysis: Finds relationships among items. Example: Bread → Butter.
5. Sequential Pattern Mining: Finds patterns occurring in sequence. Example: Buy Mobile → Buy Cover
→ Buy Earphones.
6. Outlier Analysis: Detects abnormal or unusual data. Example: Credit Card Fraud Detection.
7. Evolution Analysis: Finds trends and changes over time. Example: Sales Growth Analysis .
1. Frequent Itemset: Set of items that appear together frequently in transactions. Example: {Bread,
Butter}.
2. Sequential Pattern: Set of items occurring in a specific order. Example: Buy Mobile → Buy Cover →
Buy Earphones.
3. Structured Pattern: Frequent patterns in trees, graphs or networks. Example: Social Network
Connections.
Applications
Measure of Quality
Support
Definition: Support measures how frequently an itemset appears in the database.
Example: If Bread and Butter appear together in 20 out of 100 transactions then Support = 20/100 = 20%.
Confidence
Definition: Confidence measures the probability that Y is purchased when X is purchased.
Example: If 20 customers buy Bread and Butter together and 25 customers buy Bread then
Confidence(Bread→Butter) = 20/25 = 80%.
Lift
Definition: Lift measures the strength of association between two items.
Interpretation: Lift > 1 Positive Correlation, Lift = 1 Independent, Lift < 1 Negative Correlation
Correlation Analysis
Definition: Correlation Analysis measures the relationship between two variables or itemsets.
Types of Correlation
1. Positive Correlation: Increase in one variable increases the other. Example: Bread and Butter.
2. Negative Correlation: Increase in one variable decreases the other. Example: Umbrella and
Sunglasses.
3. No Correlation: Variables are independent.
7
Apriori Algorithm : Apriori Algorithm is a frequent itemset mining algorithm that generates candidate
itemsets level by level using the Apriori Property.
Apriori Property : If an itemset is frequent then all of its non-empty subsets must also be frequent.
Working Steps
Drawbacks of Apriori Algorithm
1. Find frequent 1-itemsets (L1).
2. Generate candidate 2-itemsets (C2). 1. Requires multiple database scans.
3. Remove infrequent itemsets using minimum support. 2. Generates large number of
4. Generate frequent 2-itemsets (L2). candidate itemsets.
5. Repeat until no new frequent itemsets are found. 3. High computational cost.
4. Poor performance for large datasets
Advantages
FP Growth (Frequent Pattern Growth) is a frequent itemset mining algorithm that uses an FP Tree instead
of candidate generation.
Advantages: No candidate generation. , Faster than Apriori. Requires fewer database scans. Disadvantages :
FP Tree construction can be complex. Requires additional memory for tree storage.
Classification
Definition: Classification is a supervised learning technique that assigns data objects to predefined classes
using a model built from training data.
Working of Classification
Classification Process : Training Dataset → Model Building → Testing Dataset → Predicted Class Label
Examples : Spam or Not Spam Email. , Loan Approved or Rejected. ,Disease Positive or Negative.
Prediction
Prediction is a supervised learning technique used to predict continuous or future values based on existing
data.
Prediction Process : Historical Data → Model Building → Prediction Model → Future Value Prediction
Examples
Evaluation of Classification
Evaluation of Classification is the process of measuring how accurately a classification model predicts class
labels for unseen data.
1. True Positive (TP): Model predicts Positive and actual class is also Positive.
2. True Negative (TN): Model predicts Negative and actual class is also Negative.
3. False Positive (FP): Model predicts Positive but actual class is Negative (Type-I Error).
4. False Negative (FN): Model predicts Negative but actual class is Positive (Type-II Error).
Confusion Matrix
Predicted Positive Predicted Negative
Actual Positive TP FN
Actual Negative FP TN
Accuracy Measure: Accuracy measures the percentage of correctly classified instances among all
instances.
Cluster Analysis
Cluster Analysis is an unsupervised learning technique that groups similar data objects into the same cluster
and dissimilar objects into different clusters.
Applications
Characteristics of Cluster Analysis
1. Customer Segmentation.
1. Objects within the same cluster are highly similar. 2. Document Classification.
2. Objects belonging to different clusters are highly dissimilar. 3. Image Processing.
3. Does not require predefined class labels. 4. Market Analysis.
5. Medical Diagnosis.
Types of Data in Cluster Analysis
1. Interval Scaled Data: Continuous numerical values measured on a scale. Example: Height, Weight,
Temperature.
2. Binary Data: Data having only two possible values. Example: Yes/No, Male/Female.
3. Nominal Data: Categorical data without ordering. Example: Color, City, Department.
4. Ordinal Data: Categorical data with ordering. Example: Small, Medium, Large.
5. Ratio Scaled Data: Numerical data with a meaningful zero point. Example: Age, Salary, Distance.
6. Mixed Data: Combination of multiple data types.
Partitioning Methods
Partitioning Methods divide a dataset of n objects into k clusters, where each object belongs to exactly one
cluster and k is predefined.
Characteristics
1. K-Means: Uses centroid (mean) of cluster as cluster center and assigns objects to nearest centroid.
2. K-Medoids: Uses an actual data object (medoid) as cluster center instead of mean and is less
sensitive to outliers.
Disadvantages
Advantages
1. Number of clusters must be predefined.
1. Simple and easy to implement. 2. Sensitive to noise and outliers (especially K-Means).
2. Efficient for large datasets. 3. May produce different results for different initial
3. Fast convergence. centroids.
Hierarchical Methods
Hierarchical Methods create a hierarchy of clusters represented by a tree-like structure called Dendrogram.
1. Agglomerative (Bottom-Up): Starts with each object as a separate cluster and repeatedly merges the
closest clusters until one cluster remains.
2. Divisive (Top-Down): Starts with all objects in one cluster and repeatedly splits clusters until each
object becomes a separate cluster.
Characteristics
Dendrogram
Definition: A tree-like diagram used to represent the merging or splitting process in hierarchical clustering.
Steps of K-Means Algorithm
Formula for Centroid : Centroid = (Sum of all data points in cluster) / (Number of data points in cluster)
11
Transactional Patterns
Definition: Transactional Patterns are patterns discovered from transaction databases that show
relationships among items purchased together in a transaction.
Definition: Temporal Frequent Patterns are frequent patterns that consider the time factor along with
occurrence frequency.
1. Periodic Patterns: Patterns repeating at regular intervals. Example: Increased umbrella sales during
monsoon every year.
2. Seasonal Patterns: Patterns occurring in specific seasons. Example: Woolen clothes sales in winter.
3. Trend Patterns: Long-term increase or decrease in data values. Example: Increasing smartphone
sales every year.
4. Cyclic Patterns: Patterns repeating over long but non-fixed intervals. Example: Economic growth
cycles.
Mining Time Series Data is the process of discovering useful patterns, trends, similarities and relationships
from data collected over time intervals.
1. Trend (T): Long term increase or decrease in data values. Example: Increasing smartphone sales
every year.
2. Seasonal Variation (S): Patterns repeated at fixed intervals within a year. Example: Ice cream sales
increase in summer.
3. Cyclic Variation (C): Patterns repeated over long but irregular periods. Example: Economic cycles.
4. Irregular Variation (I): Random and unpredictable fluctuations caused by unexpected events.
12
Additive Model: Y = T + S + C + I
Multiplicative Model: Y = T × S × C × I Challenges in Mining Time Series Data
Periodicity Analysis
Periodicity Analysis is the process of identifying patterns or events that repeat at regular time intervals in
time-series data.
Types of Periodicity
1. Full Periodicity: Entire pattern repeats at fixed intervals. Example: Monthly electricity bill
generation.
2. Partial Periodicity: Only some parts of the pattern repeat periodically. Example: Increased shopping
during weekends.
Applications
Advantages
1. Sales Forecasting.
1. Helps identify recurring events.
2. Weather Prediction.
2. Useful for forecasting future trends.
3. Stock Market Analysis.
3. Improves decision making.
4. Network Traffic Analysis.
5. Medical Monitoring.
1. Autocorrelation Analysis: Measures similarity between a time series and its delayed version to
detect repeating patterns.
2. Spectral Analysis: Uses frequency components to identify hidden periodic behavior in data.
3. Fourier Transform: Converts time-domain data into frequency-domain data for periodicity
detection.
Autocorrelation
Definition: Autocorrelation measures the correlation between observations of the same variable at different
time lags.
Example: Comparing today's sales with sales from 7 days ago to detect weekly patterns.
Spectral Analysis
Definition: Spectral Analysis identifies periodic patterns by analyzing the frequency components of time-
series data.
Application: Detection of seasonal and cyclic patterns.
13
Decomposition is the process of separating a time series into Trend, Seasonal, Cyclic and Irregular
components.
Trend Analysis
Definition: Trend Analysis is the process of identifying long-term increase, decrease or stable movement in
time-series data over a period of time.
Types of Trends
1. Upward Trend: Data values increase over time. Example: Growth of smartphone sales.
2. Downward Trend: Data values decrease over time. Example: Decline in DVD sales.
3. Horizontal Trend: Data values remain nearly constant over time. Example: Stable electricity
consumption.
Applications
1. Sales Forecasting.
2. Stock Market Analysis.
3. Population Growth Analysis.
4. Weather Prediction.
Purpose
Similarity Measures
Applications
Data Stream
A Data Stream is a continuous flow of data generated in real time which cannot be stored entirely before
processing.
Examples: Sensor Data, Network Traffic, Stock Market Data, Social Media Feeds, IoT Devices.
Systems designed to collect, process and analyze continuous streams of data in real time.
Characteristics
Examples
1. Real-time processing.
1. Apache Kafka
2. Low latency response.
2. Apache Storm
3. Scalability.
3. Apache Flink
4. Fault tolerance.
Apache Spark Streaming
Sliding Window Model
Definition: Technique that processes only recent data within a fixed time interval while discarding older
data.
Example: Analyze last 1 hour stock prices instead of all historical data.
Types
1. Fixed Window.
2. Sliding Window.
3. Landmark Window.
4. Damped Window.
15
Frequent Pattern Mining in Data Streams is the process of discovering frequently occurring items or itemsets
from continuously arriving stream data in real time.
Methods
Characteristics
1. Sliding Window Model: Mines patterns from recent
1. Single pass over data.
data only.
2. Limited memory usage.
2. Landmark Window Model: Considers data from a
3. Real-time processing.
fixed starting point.
4. Handles continuously changing data.
3. Damped Window Model: Gives more importance to
Challenges recent data and less to older data.
Sequential Pattern Mining in Data Streams discovers frequently occurring sequences from continuously
arriving stream data while preserving the order of events.
Classification of Dynamic Data Streams is the process of classifying continuously changing stream data in
real time.
Characteristics
Concept Drift
Definition: Concept Drift occurs when the statistical properties or patterns of stream data change over time causing
the existing model to become inaccurate.
Types
Example
Problems
Solutions
Example
Cancer Detection: Healthy = 95% Cancer Patients = 5% A model predicting everyone as healthy gives 95%
accuracy but is practically useless.
Modern technologies and approaches used to improve distributed storage and mining of large datasets.
Trends:
Graph Mining
Graph Mining is the process of discovering useful patterns, relationships and structures from graph data
consisting of vertices (nodes) and edges (links).
Components of Graph
Social Network Analysis is the study of relationships and interactions among people, groups or
organizations using graph structures.
Applications
Components
1. Friend
1. Node: Individual person or organization. Recommendation.
2. Edge: Relationship such as friendship, follow or communication. 2. Influencer Detection.
3. Community Detection.
Measures 4. Viral Marketing.
5. Fraud Detection.
1. Degree Centrality: Number of direct connections of a node.
2. Betweenness Centrality: Measures how often a node lies on shortest paths.
3. Closeness Centrality: Measures how close a node is to all other nodes.
4. Eigenvector Centrality: Measures influence of a node based on connected nodes.
Web Mining
Definition: Web Mining is the process of extracting useful information and knowledge from web data, web
documents and web services.
1. Web Content Mining: Extracts information from web pages, text, images, audio and video.
2. Web Structure Mining: Analyzes hyperlinks and document structure of web pages.
3. Web Usage Mining: Analyzes user browsing behavior using server logs and clickstreams.
Definition: Process of extracting information from page layout elements such as tables, frames and HTML
tags to understand page organization.
Process of analyzing hyperlinks among web pages to discover relationships and importance of pages.
Applications
1. Page Ranking.
2. Search Engines.
3. Community Detection.
Definition: Process of extracting patterns and information from images, videos, audio and multimedia
content available on the web.
Applications
1. Image Retrieval.
2. Video Recommendation.
3. Face Recognition.
Definition: Process of automatically assigning web documents to predefined categories using machine
learning techniques.
Applications
1. Spam Detection.
2. News Categorization.
3. Document Organization.
Definition: Process of discovering user access patterns from web logs and clickstream data.
Applications
1. Recommendation Systems.
2. Website Personalization.
3. Customer Behavior Analysis.
4. Targeted Advertising.
Distributed Data Mining is the process of performing data mining on data distributed across multiple
databases, locations or systems.
Challenges
Characteristics
1. Data integration.
1. Data stored at multiple locations. 2. Data heterogeneity.
2. Parallel processing. 3. Security and privacy issues.
3. Improved scalability. 4. Communication overhead.
4. Reduced communication cost. 5. Synchronization problems.
19
Page Topic
1 Data Warehouse Definition
1 Characteristics of Data Warehouse
1 Data Warehouse Architecture
2 Operational DB vs Data Warehouse
2 OLAP (Online Analytical Processing)
2 Types of OLAP (MOLAP, ROLAP, HOLAP)
2 Data Mart
2 Metadata
3 Multidimensional Data Model
3 Fact Table, Dimension Table, Measure
3 Data Cube
3 OLAP Operations (Roll-Up, Drill-Down, Slice, Dice, Pivot)
3 Star Schema
3 Snowflake Schema
3 Fact Constellation Schema
4 ETL
4 Transform Phase of ETL
5 Data Mining Introduction
5 Functions of Data Mining
5 KDD Process
5 Frequent Pattern Mining
6 Association Rule Mining
6 Support
6 Confidence
6 Lift
6 Correlation Analysis
7 Market Basket Analysis
7 Apriori Algorithm
7 FP Growth
7 Scalable Methods
8 Classification
8 Prediction
8 Evaluation of Classification
8 Confusion Matrix
8 Accuracy Measure
9 Precision, Recall, F1 Score
9 Cluster Analysis
9 Types of Data in Cluster Analysis
9 Types of Clustering Methods
9 Partitioning Methods
20
Page Topic
10 K-Means Algorithm
10 Hierarchical Clustering
10 Dendrogram
11 Transactional Patterns
11 Temporal Based Frequent Patterns
11 Mining Time Series Data
11 Components of Time Series
12 Periodicity Analysis
12 Autocorrelation
12 Spectral Analysis
12 Challenges in Time Series Mining
13 Decomposition in Time Series
13 Trend Analysis
13 Similarity Search in Time Series
14 Mining Data Streams
14 Stream Data Processing Methodologies
14 Stream Data Systems
14 Sliding Window Model
15 Frequent Pattern Mining in Data Streams
15 Sequential Pattern Mining in Data Streams
15 Classification of Dynamic Data Streams
16 Concept Drift
16 Class Imbalance Problem
16 Recent Trends in Distributed Warehousing and Data Mining
17 Graph Mining
17 Social Network Analysis
17 Web Mining
17 Mining Web Page Layout Structure
18 Mining Web Link Structure
18 Mining Multimedia Data on the Web
18 Automatic Classification of Web Documents
18 Web Usage Mining
18 Distributed Data Mining