Read each explanation as one step in the course’s reasoning. The concept link follows its introduction; open it for detail or continue to the next paragraph. The summaries connect the supplied material, while source references and qualifications remain in the lecture and concept notes.
The Big Data Challenge
Follow observations from their source to a decision they might support. Each stage creates a question for the next: how to collect, store, prepare, analyze and interpret the evidence responsibly.
Begin where data comes from. Transactions, user activity and sensors generate observations; acquisition collects and transfers those observations into a usable system. Separating generation from collection helps identify missing coverage, delivery delays and preparation needs. Data Generation and Acquisition
Once collected, data can be difficult for several reasons. Volume concerns size, velocity concerns arrival rate, variety concerns formats, veracity concerns reliability, and value concerns useful outcomes. These dimensions explain why a large dataset alone does not define the whole challenge. Big Data and the Five Vs
Those challenges influence infrastructure choices. Storage holds the bytes, management systems organize access, and processing models determine how computations work over the data. Batch, stream and graph processing suit different tasks; moving computation toward data can reduce expensive transfers. Big Data Storage and Processing Models
Before choosing an algorithm, decide what the analysis should answer. Descriptive analysis summarizes what is present, predictive analysis estimates an outcome, and prescriptive analysis recommends an action under objectives and constraints. The same data can support these different questions. Descriptive Predictive and Prescriptive Analytics
To answer those questions, algorithms extract relationships represented as patterns, models or groups. Discovery produces something potentially useful, but usefulness still needs evaluation. A relationship appearing in data is not automatically a reliable explanation or a good basis for a decision. Data Mining and Patterns
This is why mining belongs inside a broader process. KDD connects selection, preprocessing, transformation, mining and interpretation, turning raw observations into assessed knowledge. Data science combines that preparation and analysis with the context needed to understand the result. Data Science and the KDD Process
Preparation must repair or account for problems in the inputs. Cleaning handles inconsistencies and noise; integration reconciles sources, identifiers, units and overlapping records. Outliers require investigation because an unusual value can represent either an error or an important event. Data Cleaning and Integration
With prepared data, one possible question is which items occur together. Association rules express co-occurrence: support measures how common a combination is overall, while confidence measures how often the consequent occurs among cases containing the antecedent. Neither establishes causation. Association Rules Support Confidence and Lift
Association-rule mining makes that question operational. Start with frequent itemsets, then form rules and compare support, confidence and lift. Apriori prunes candidates when an infrequent subset makes every larger set impossible; FP-growth compresses shared transaction prefixes into an FP-tree. Closed and maximal itemsets reduce redundant output, while taxonomies let analysis move between detailed tests and broader categories. Lecture 09 - Association Rules
A different question is what outcome to predict for a new observation. Classification predicts a category, while regression predicts a numeric quantity. In their usual supervised forms, both learn from examples with known targets, so target definition determines which problem we are solving. Classification and Regression
Classification makes the target explicit and learns a boundary or set of rules from labelled examples. Decision trees ask interpretable questions and use impurity measures to choose splits; pruning controls the risk of memorizing noise. Classification and Decision Trees
Other classifiers represent the same task differently. Random forests combine randomized trees, k-nearest neighbours vote among similar records, Naive Bayes compares class probabilities, SVMs maximize a separating margin and rule systems express conditions directly. Neural networks learn layered transformations, with CNNs suited to images and RNNs suited to sequences. Classification Methods and Model Tradeoffs Neural Networks for Classification
Evaluation must separate model construction from honest testing. Confusion matrices expose the kinds of mistakes, while precision, recall, F-measure and ROC analysis reveal trade-offs that overall accuracy can hide, especially for imbalanced classes. Classification Evaluation and Confusion Matrices
When target labels are unavailable or grouping is the goal, clustering finds similar observations. Outlier detection instead identifies unusual cases relative to a model or reference. Similarity depends on representation, and neither a cluster nor an outlier explains its own real-world cause. Clustering and Outlier Detection
Clustering can mean compact groups around centres, connected groups, nested groups or dense regions. K-means repeatedly assigns points to centroids, hierarchical methods build a merge tree whose linkage rule controls proximity, and DBSCAN connects dense core points while leaving isolated noise outside. Clustering Foundations and Cluster Types K-means Clustering and SSE Hierarchical Clustering and Linkage DBSCAN and Cluster Validity
Some relationships disappear if we ignore context. Sequence analysis preserves order, time-series analysis preserves temporal structure, and geospatial analysis considers location. Choosing a method therefore depends on whether changing order, timing or position changes the meaning of an observation. Sequence Time Series and Geospatial Mining
These methods need a project that connects them to a concrete decision. Define the question, scope, data, evaluation and maintenance needs, drawing on data, analytical, visualization, domain and business expertise. A technically successful model can still fail to answer the useful question. Data Science Project Design and Roles
Even a useful prediction needs careful interpretation. Explanations can describe a model globally or one prediction locally, but an observed association may reflect other influences. Confounding is a reason not to turn predictive relationships directly into claims about causes. Model Interpretability and Confounding
The evidence can also represent groups unevenly or encode existing inequalities. Collection, labels and modeling choices can produce systematically different outcomes, while proxy features can retain information about an omitted sensitive attribute. Evaluation must examine who the model works for and how. Algorithmic and Data Bias
Finally, useful patterns can disclose sensitive information. Removing names or publishing aggregates does not automatically prevent inferences about locations, activities or people. Privacy therefore belongs in collection, analysis and release decisions throughout the process. Privacy in Data Analytics
The full lecture develops these ideas with its own examples. Lecture 01 - The Big Data Challenge
Data Mining Process
The data-mining process makes the transition from prepared data to useful knowledge explicit. Data mining automatically extracts implicit, previously unknown and potentially useful information, represented as patterns. It is one stage inside KDD, not the whole process. Data Mining and Patterns
KDD proceeds through selection, preprocessing, transformation, data mining and interpretation. Selection chooses relevant observations; preprocessing repairs quality problems; transformation creates an analysis-ready representation; mining discovers patterns or builds models; interpretation decides whether the result is meaningful and useful. Data Science and the KDD Process
The source distinguishes descriptive methods, which summarize or describe existing data, from predictive methods, which use known variables to estimate unknown or future values. Association rules find co-occurrence, classification assigns known categories to new cases, and clustering discovers groups without predefined labels. Lecture 07 - Data Mining Process
The classification lecture develops this supervised-learning branch from decision trees to neural networks and then evaluates the resulting models. Lecture 10 - Classification
Data Preprocessing
Before mining, represent each object and attribute according to its meaning. Nominal attributes support equality, ordinal attributes add order, interval attributes add meaningful differences, and ratio attributes also support meaningful ratios. A number stored in a column does not automatically make that column a measurement. Data Types and Attribute Scales
Preparation handles noise, outliers, missing values, duplicates and incorrect values. Aggregation and sampling reduce volume; feature selection removes irrelevant or redundant columns; feature creation builds useful representations; discretization and binarization change the form of values; normalization makes scales comparable before distance calculations. Data Quality and Preparation
Similarity, distance and correlation answer different questions. Euclidean and Minkowski distances compare numeric vectors, Jaccard compares binary presence, cosine compares document-vector direction, and correlation measures linear association. A near-zero correlation does not rule out a strong nonlinear relationship, and correlation does not prove causation. Similarity Dissimilarity and Correlation
Introduction to Data Warehousing
Mining needs reliable, organized evidence. A warehouse provides the consistent historical foundation for repeated business analysis, separating it from day-to-day operations.
Operational systems record everyday business activity. Decision support asks broader questions across that activity, such as how demand changes over time. Business Intelligence (BI) turns business data into information for decisions; a separate warehouse supplies integrated historical data for that analysis. Decision Support BI and Data Warehouses
An analytical value needs context: revenue is a measure, while product, shop and time are dimensions. The grain defines exactly what one stored fact row represents. This choice determines both the detail available for analysis and what information is lost by summarizing. Dimensions Measures and Fact Grain
A relational star schema implements the dimensional view using tables. The central fact table stores measurements and references to their context; surrounding dimension tables describe products, shops and dates. Joining these tables lets an analyst group numerical results by meaningful business attributes. Star Schemas and Fact Tables
Once the grain is fixed, warehouse size depends on how many dimension combinations receive records. Many possible combinations may be empty, making the dataset sparse. Precomputed summaries can accelerate repeated analysis, but they require storage and maintenance and cannot replace detail needed for other questions. Warehouse Size Sparsity and Aggregation
With dimensions and measures in place, an analyst can calculate summaries and explore finer detail. OLAP supports this structured exploration, while data mining uses algorithms to discover patterns or build models. Locating a sales decline through drill-down helps focus investigation but does not establish its cause. OLAP Drill Down and Data Mining
Reliable comparisons require more than identical column layouts. ETL extracts source records, cleans and transforms them into agreed meanings and formats, then loads them into the warehouse. A common structure cannot fix incompatible revenue definitions or product identifiers without explicit reconciliation. ETL and Semantic Integration
An enterprise warehouse integrates information across the business, while a data mart focuses on a department or subject. A dependent mart draws from the warehouse; an independent mart draws directly from sources. Narrower scope can speed implementation, but separately chosen definitions make later integration harder. Data Warehouses and Data Marts
The analytical cube is a logical view rather than a requirement to store a literal array. ROLAP uses relational database structures, MOLAP uses specialized multidimensional storage, and HOLAP combines approaches. Data sparsity and access patterns help explain the implementation tradeoffs. ROLAP MOLAP and HOLAP
Stored values need definitions that explain their origin, transformations and intended use. Metadata describes this context as well as warehouse structures and query execution. It lets users and maintainers trace how a result was produced instead of assuming that a tidy number is trustworthy. Warehouse Metadata and Lineage
Separating analysis from transaction processing creates the source and warehouse levels. A three-level design adds a staging area that separates extraction and transformation from final loading. This intermediate workspace eases complex preparation but adds stored copies and management work. Two and Three Level Warehouse Architectures
The lecture develops the examples, source calculation and architectural tradeoffs. Lecture 02 - Introduction to Data Warehousing
Data Lakes
The warehouse provides curated historical evidence for recurring analytical questions. A data lake keeps broader source material available when future questions, formats and users are not known in advance. It can store relational data, CSV/JSON/XML, text, email, images, audio and transformed datasets. Data Lakes and Data Swamps
The key timing distinction is schema-on-write versus schema-on-read. A warehouse defines and reconciles structure before loading; a lake delays more interpretation until analysis. That flexibility supports discovery and machine learning, but it moves work toward cataloging, data wrangling, quality checking and semantic integration.
Operational data also depends on a DBMS that can store, retrieve and protect records. The optimizer chooses an access strategy, the buffer manager moves pages between storage and memory, concurrency control coordinates simultaneous work, and reliability management recovers from failures. DBMS Architecture and Query Processing
The optimizer’s choice depends on the physical access structure. Heap files support scans, ordered files preserve a sort key, B+-Trees support ordered equality and range access, hash indexes target exact equality, and bitmap indexes combine predicates on low-cardinality attributes. A clustered index keeps related data near the index order; an unclustered index follows pointers to data that may be scattered. Physical Access Structures and Access Methods Clustered and Unclustered Indexes Lecture 14 - Physical Access to Data
The DBMS can now choose how to execute the request. Query optimization checks the SQL, builds a relational-algebra tree, applies equivalent rewrites such as selection and projection pushdown, and compares physical plans using data profiles. Cost depends on page I/O, CPU work, access methods, join order and join algorithm. Query Optimization Pipeline and Relational Algebra Query Cost Estimation and Access Selection Join Algorithms and Execution Plan Selection Lecture 15 - Query Optimization
Choosing how tables and indexes actually live on disk turns those optimization plans into reliable everyday performance without breaking data independence. Physical design matches file structures, hash versus B⁺-Tree indexes, and outer/inner nested-loop index placement to the query and update workload while avoiding small-table, low-cardinality, and arithmetic-expression traps and updating database statistics before resorting to optimizer hints. Physical Design Workload and Index Selection Heuristics For heavy aggregations over joined tables, pushing GROUP BY down below joins shrinks intermediate row counts early by pre-aggregating on the join keys. Group-By Push Down Finally, unclustered covering indexes can satisfy queries without reading the base table, while composite indexes speed multi-predicate filters when equality keys precede range keys despite extra write overhead. Covering Indexes and Composite Index Design Lecture 16 - Physical Design
When many transactions run concurrently, a scheduler must coordinate their reads and writes to maximize throughput without producing lost updates, dirty reads, inconsistent reads or ghost updates. Serializability theory distinguishes view serializability from conflict serializability tested via acyclic conflict graphs. Concurrency Anomalies and Serializability Theory Because live conflict graphs are too costly at scale, DBMSs enforce serializability with Two-Phase Locking and prevent dirty reads with Strict 2PL, releasing locks only at commit or rollback. Two-Phase Locking and Strict 2PL Intention locks coordinate multi-granularity access, predicate locking blocks phantom inserts, and SQL2 isolation levels relax read locks while keeping exclusive write locks strict. Hierarchical Locking Predicate Locking and SQL2 Isolation Levels Because holding locks while waiting can create cycles, systems resolve deadlocks via timeouts, prevention schemes or wait-graph detection. Deadlock Handling in Concurrency Control Lecture 17 - Concurrency Control
Even when concurrent schedules are serializable, power cuts or disk failures can leave uncommitted pages on disk or lose committed updates still sitting in volatile RAM. The reliability manager pairs with the buffer manager to protect atomicity and durability using an append-only log in stable memory, state-based idempotent undo and redo records, periodic checkpoints, and offline dumps. Reliability Manager Log Records Undo Redo and Checkpoints Two ordering rules—Write-Ahead Logging for before-states and Commit Precedence for after-states—govern synchronous vs. asynchronous log writes across the before-commit, after-commit, and mixed disk-write protocols. Write-Ahead Logging Commit Precedence and Disk-Write Protocols After a system failure, warm restart builds UNDO and REDO lists from the last checkpoint, undoes backwards to the oldest uncommitted begin record, and redoes forwards from the oldest committed begin record, while media failures recover from the last dump via cold restart. Warm Restart Problem Solving and Cold Restart Lecture 18 - Reliability Management and Recovery
Scaling beyond a single machine distributes data and computation across autonomous DBMS servers via client/server tiers, replication, or horizontal and vertical fragmentation with non-redundant or redundant allocation schemas, exposing fragmentation, allocation, or language transparency to applications. Distributed Architectures Fragmentation Allocation and Transparency Depending on how SQL statements span nodes, workloads fall into remote requests, remote transactions, distributed transactions, or distributed requests, where global atomicity requires Two-Phase Commit (TM coordinator, RM participants, Ready loss of autonomy, uncertainty window, and extended READY-list crash recovery). Distributed Transaction Classification and Two-Phase Commit Across heterogeneous DBMSs, X-Open-DTP standardizes TM/XA interfaces with Presumed Abort, Read Only, and heuristic decisions, while parallel DBMSs use inter-query (OLTP) or intra-query (OLAP) execution evaluated with TPC benchmarks. X-Open-DTP Optimizations Parallel DBMS and TPC Benchmarks Lecture 19 - Distributed Database Management Systems
When semi-structured documents, massive horizontal scale, or join-free workloads outgrow fixed relational schemas, NoSQL systems trade native joins and rigid tables for key-value, column-family, graph, or document models queried via pure MapReduce views, using single immutable transaction documents to preserve bank balance atomicity without multi-document transactions. NoSQL Data Models MapReduce Rereduce and Views Across replicated clusters, the CAP theorem forces wide-area partitioned systems to trade single-copy consistency (CP) against high availability (AP) under BASE soft-state propagation and deterministic conflict resolution. Replication CAP Theorem ACID vs BASE and Conflict Resolution Modern applications pair specialized stores through Polyglot Persistence—combining engines such as MongoDB, ElasticSearch, and Cassandra—and process massive datasets over Hadoop (HDFS, YARN, MapReduce) or in-memory Apache Spark DAG pipelines. MongoDB Polyglot Persistence Hadoop and Apache Spark Lecture 21 - Beyond Relational Databases
Focusing directly on the leading document store, MongoDB stores nested, ordered BSON records (up to 16 MB, with GridFS for larger payloads and a unique non-array _id) inside schema-less collections manipulated via insertOne/insertMany, find, updateMany, and deleteMany. MongoDB BSON Documents Collections and CRUD Operations Visually exploring those collections through MongoDB Compass adds schema and geospatial $geoWithin filtering, Explain Plan index diagnostics, $jsonSchema validation, and multi-stage $match/$group aggregation pipelines corresponding to SQL WHERE, GROUP BY, and HAVING. MongoDB Compass and Aggregation Pipelines Lecture 22 - Introduction to MongoDB
For real-time full-text search and analytics across polyglot architectures, ElasticSearch stores immutable JSON documents in Lucene-backed inverted indexes, normalizing text identically at index and query time through 3-stage analyzers and distinguishing boolean exact filters from relevance-scoring Query DSL (match and bool). ElasticSearch Data Model Inverted Index Analyzers and Query DSL Ranking relies on TF/IDF weights and field-length normalization in the Vector Space Model via cosine similarity, extended by fixed-size dense semantic embeddings (such as BERT and CLIP) and Hybrid Search to capture meaning beyond literal tokens. ElasticSearch TF-IDF Vector Space Model Semantic Embeddings and Hybrid Search Horizontally, indices split into shards flushed every second into immutable Lucene segments across cluster nodes, while incrementing _version numbers preserves write order across parallel replica updates and enables optimistic concurrency control. ElasticSearch Sharding Clusters and Optimistic Concurrency Control Lecture 20 - ElasticSearch
Transactions group related reads and writes into an all-or-nothing unit. A bank transfer illustrates atomicity, while integrity constraints, concurrency control and recovery support consistency, isolation and durability. Transactions and ACID Properties Lecture 12 - Introduction to DBMS
Data stored in one lake is co-located, not automatically integrated. Without metadata, ownership, quality controls and clear meanings, a lake can become a data swamp that users cannot search or trust. The attached nine-page source recommends a manageable route to value rather than collecting everything without a purpose. Lecture 06 - Data Lakes
Data Warehouse Conceptual and Logical Design
The warehouse foundation now becomes a design: connect business questions to sufficient evidence, valid relationships and table structures that preserve the intended analysis.
Begin with business questions and available evidence rather than tables. Requirements define events, measures, dimensions, history and refresh needs. Reconciliation connects source meanings; conceptual, logical, physical and feeding design turn the agreed requirements into a warehouse that can actually support them. Warehouse Requirements and Design Lifecycle
The Dimensional Fact Model expresses facts, dimensions, measures and grouping paths before table implementation. Hierarchies assert functional dependencies from detailed members to broader levels, so a valid grouping path must reflect a real business relationship with unambiguous member identities. Dimensional Fact Model and Hierarchy Dependencies
A conceptual model also records when relationships may be absent, which attributes describe rather than group members, and when distinct paths must agree. These annotations keep missing relationships and inconsistent hierarchy assumptions from silently changing the meaning of analysis. DFM Optional Relationships Descriptive Attributes and Convergence
Grouping records does not by itself justify adding their measurements. Stream measures describe activity during periods, level measures describe snapshots, and unit measures are relative values. Whether SUM is meaningful depends on the dimension, compatible units and definitions, and non-overlapping contributions. Measure Additivity and Snapshot Semantics
Once an aggregation is meaningful, ask whether partial summaries retain enough information for a broader result. SUM, MIN and MAX combine directly; averages need supporting counts or sums; exact medians generally require richer information than partial medians and group sizes. Distributive Algebraic and Holistic Aggregates
A dimension may participate in distinct roles or admit simultaneous memberships. Shared hierarchies reuse one structure with role labels, while multiple edges represent several related members. A small stable set of categorical possibilities can instead be expressed as configuration flags. Shared Hierarchies Multiple Edges and Configuration Attributes
Some useful events have no stored numerical measurement. Factless schemas record occurrences that can be counted. To identify events that did not occur, additionally retain the expected or eligible combinations and compare them with actual occurrences at a matching grain and scope. Factless Facts and Coverage Sets
Facts preserve event dates, but changing descriptions also affect historical interpretation. Overwriting gives a current view; versioning connects facts to historical states. A stable direct fact reference, such as residence city at purchase, can sometimes preserve the specific context without versioning the entire customer. Historical Dimensions and Fact-Time Context
Storage and access choices depend on the expected queries, retained history and populated groups. Estimate fact counts, distinct dimension members and attribute sizes, including indexes and summaries. Aggregation changes occupancy, so detailed-level sparsity cannot simply be reused for every summary table. Warehouse Workload Volume and Aggregate Sparsity
Logical design translates the conceptual model into tables. A star keeps descriptive hierarchy attributes together; a snowflake separates selected dependencies into linked tables. Generated dimension keys can distinguish historical versions from source identity, while the fact key must respect the chosen grain. Star Snowflake Schemas and Surrogate Keys
A bridge keeps many-to-many membership separate from original facts, with optional allocation weights. Weighted queries distribute credit; impact queries report full activity associated with overlapping members. The query must preserve the distinction between allocated shares and distinct physical activity. Bridge Tables Allocation and Impact Queries
Some descriptive fields have no useful surrounding hierarchy. The lecture allows small values directly in the fact or combines several low-cardinality fields in a junk dimension. Each row describes a reusable combination of characteristics, not an individual event, and the combination domain must remain manageable. Degenerate Attributes and Junk Dimensions
The full lecture retains source pages, worked connections and terminology qualifications. Lecture 03 - Data Warehouse Conceptual and Logical Design