Data Analytics for Data Warehousing

Context: FIT3003_MOC · the step after OLAP ➔ model the numerical fact measures of a Star Schema rather than summarise them · three techniques: regression (Linear and Polynomial Regression, Linear Regression in SQL), clustering (k-means Clustering, DBSCAN (Density-Based Clustering)), classification (Regression Tree Construction (SSR Splits))

Quick Revision

  • 🎯 Objective: traditional data mining assumes categorical items and labels; a fact table holds numerical measures ➔ adapt: regression, clustering, regression-tree classification.
  • ⚠️ Key Constraint: name which fact-table columns each technique consumes — regression pairs a timestamp dimension (or a second measure) with one measure; clustering and classification use only the measure columns.

📝 Core

  • Traditional data mining ➔ discovers patterns, correlations and knowledge in input data — association rules, sequential patterns, classification, clustering — each requiring a specific data structure.
  • Descriptive vs predictive ➔ descriptive summarises the data’s properties and correlations (association rules) · predictive builds a model from available data to predict new data (decision-tree classification).
  • Association rules misfit a star ➔ (1) need unnormalised data — an item basket per transaction · (2) no numerical fact measure · (3) one dimension — the item.
  • Rule confidence (slide basket) ➔ : 3 of the 4 bread baskets hold cereal · : all 3 cereal baskets hold bread ➔ a rule is directional.
  • Decision trees misfit a star ➔ (1) need categorical attributes, fact measures are numerical · (2) the target class is categorical, the warehouse target is a number.
  • Warehouse analytics ➔ analysis of the star’s numerical fact measures; dimensions supply only the context (timestamp, grouping).

⚖️ Core Decision Matrix

TechniqueFact-table columns usedTargetOutputDepth
Regression — time seriestimestamp dimension as one measure as the measure itselftrend line/curve; forecastLinear and Polynomial Regression · Linear Regression in SQL
Regression — non-time-seriestwo measures (Glucose ➔ Albumin)the second measuretrend line; near-line new data high accuracyLinear and Polynomial Regression
Centroid clusteringmeasures only, normalisednone — unsupervised disjoint clusters, every object assignedk-means Clustering
Density clusteringmeasures only, normalisednone — unsupervisedclusters outliers, not presetDBSCAN (Density-Based Clustering)
Regression-tree classificationmeasures as attributesa numerical measure, from a training setbinary tree; leaf mean targetRegression Tree Construction (SSR Splits)

When It Flips: a timestamp on the -axis ➔ time-series regression · a known numerical target ➔ regression tree · no target ➔ clustering, DBSCAN when is unknown or outliers matter.

⚠️ Common Mistakes

  • 💡 Proposing association rules for a fact table ➔ the fact holds measures, not item baskets; cite the three issues instead.
  • 💡 “Classification” means decision tree ➔ not in Chapter 21: attributes and target are numerical, so it classifies with a regression tree.

🧠 Active Recall