First exams 2027 · HL only

A3.4.3 · Alternative databases and data warehouses

OLAP and data mining for business intelligence

A3.4.2's warehouse can answer "what were last quarter's numbers." It cannot, on its own, answer "why did they change," "what will happen next," or "which of these ten thousand customers are secretly alike." That gap is exactly what OLAP and data mining exist to close.

HL only Command term: explain Builds on A3.4.2

Explainer

Bi

Business intelligence is the umbrella term for everything an organization does to turn scattered data into decisions: the tools that pull it together, the analysis that makes sense of it, and the dashboards and reports that put it in front of the people who actually decide things. OLAP and data mining are the two technologies this statement asks about, and they do different jobs within that umbrella.

OLAP lets a person explore data that is already there, from different angles, quickly. Data mining goes further: it searches for patterns a person would never think to look for, using statistics, machine learning and AI. One is exploration, the other is discovery, and a mature business intelligence setup genuinely needs both.

Explainer

OLAP's role: fast answers from many angles

Online analytical processing (OLAP) is what lets a person turn a warehouse's data over in their hands, viewed by time, by product, by region, or any combination, without waiting for someone else to build that specific view first. Because the totals it works from are already calculated in advance, a query that would otherwise mean scanning years of raw rows comes back almost instantly, fast enough for calculations like a year-over-year comparison, a chart, or a dashboard to feel interactive rather than requested. That speed is also what makes an ad hoc query possible at all: a manager can chase a question the moment it occurs to them, rather than filing a request and waiting for a predefined report.

One OLAP slice: Fernbridge Community Bank's loan volume by branch and quarter

BranchQ1 2027Q2 2027Q3 2027
Northgate1.8m2.1m2.4m
Riverside0.9m0.85m0.8m
Harborview3.2m3.1m3.6m

This is one slice of a larger cube that also has a Loan Type dimension. A manager can pivot the same underlying data to view it by Branch × Quarter (above), or instead by Loan Type × Quarter, without writing a new query each time, that pivoting is what "multidimensional" means in practice.

Wh

Why this counts as explaining OLAP's role, not just describing it: the pre-aggregated view exists so that a manager gets Riverside's declining trend in seconds rather than minutes, the ad hoc query capability exists so an analyst can chase a follow-up question (why did Harborview dip in Q2?) the moment it occurs, without submitting a request to a reporting team. Every OLAP feature traces back to making exploration fast enough to keep up with a human's train of thought.

Explainer

Data mining's role: finding what nobody asked to see

Data mining takes a different approach. Rather than answering a question someone already thought to ask, it runs statistical methods, machine learning and AI over a large data set looking for patterns and relationships that were never explicitly requested, connections a person would have had no reason to go looking for. Unlike OLAP, nobody has to know what question to ask first, the technique itself surfaces the pattern. Six techniques cover most of what it does. Click through each one.

A4

The syllabus notes this explicitly: these techniques link to A4 Machine learning. Classification and regression are supervised learning tasks (they learn from labelled examples), clustering is unsupervised learning (it finds structure with no labels at all). Data mining is not a separate field from machine learning here, it is machine learning applied specifically to extracting business insight from large data sets.

Worked example

One suspicious transaction, three techniques working together

Fernbridge's overnight batch job checks every transaction. Techniques rarely work alone, watch how three of them combine on a single case.

Transaction TXN-88231

CustomerUsual monthly spendThis transactionLocation
Dana Okafor1804,200Overseas ATM
1

Anomaly detection flags it first. 4,200 is nowhere near Dana's usual pattern, and the system does not need to know anything about fraud specifically, it only needs to know this is unusual.

2

Classification decides what to do about it. Trained on thousands of past transactions labelled "fraud" or "genuine", it weighs the transaction size, the overseas location and the time of day, and outputs a label: Review.

3

Clustering explains why the classifier was right to be suspicious. Dana's normal spending pattern places her in a cluster of low-travel domestic customers. This transaction's profile looks nothing like anyone in that cluster, and much more like the cluster of customers whose cards were reported stolen last month.

Three techniques, three different questions: is this unusual (anomaly detection), what should happen next (classification), and who does this actually look like (clustering). None of the three alone tells the whole story.

Check your understanding

Fernbridge notices that customers who open a savings account also apply for a credit card within 30 days, far more often than chance would suggest. Which technique found this?

Common mistake

Markers reported this pattern for A3.4.3

RecurringClassification and clustering get confused constantly, because both sort data into groups. The distinction candidates keep missing: classification is supervised, it needs pre-labelled examples to learn from and predicts a known label for new data. Clustering is unsupervised, it has no labels at all, it just groups similar records together and leaves a human to interpret what each group represents.

✕

What a weak answer looks like: "Classification and clustering both sort data into categories to find patterns." True of both, and therefore useless for telling a marker which one is actually being described.

✓

What it should say: "Classification is supervised: it is trained on data already labelled fraud or genuine, and predicts that same label for new transactions. Clustering is unsupervised: it groups customers by similarity with no labels at all, and the bank has to interpret afterwards what each resulting group represents." Supervised-with-labels versus unsupervised-with-no-labels is the one distinction that actually separates the two.

Linking question

A4

How could machine learning be applied to databases?

This page's own six techniques are the direct answer. Classification and regression are supervised machine learning tasks, trained on a database's historical, labelled records. Clustering is unsupervised machine learning, finding structure in a database with no labels at all. Applying machine learning to a database is not a separate idea from data mining, on this statement they are the same activity, described from two different angles.

Revision questions

Past-paper style. Write an answer, then reveal the marking points and mark yourself.

Question 1 · 2 marks

[2]Fernbridge wants to forecast next quarter’s deposit volume from years of historical figures. Identify the data mining technique this needs, and describe how it works.

Question 2 · 5 marks

[5]Fernbridge uses one technique to label a transaction as fraudulent or genuine, and another to find the usual order of events before an account is closed. Compare the two techniques.

Question 3 · 6 marks

[6]Explain the role of OLAP and data mining for business intelligence, using an example of your own to illustrate each.

Flashcards

Active recall for this statement's key terms.