First exams 2027 · HL only2027 年首次开考 · 仅 HL

A3.4.3 · Alternative databases and data warehouses

A3.4.3 · 其他类型的数据库与数据仓库

OLAP and data mining for business intelligence

用于商业智能的 OLAP 与数据挖掘

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.

A3.4.2 的数据仓库能回答"上个季度的数字是多少"。但它本身无法回答"为什么变了"、"接下来会发生什么",或"这一万名客户中哪些其实暗地里很相似"。OLAP 和数据挖掘存在的目的,正是填补这个缺口。

HL only Command term: explain Builds on A3.4.2
仅 HL 指令词:explain 建立在 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.

商业智能(business intelligence)是一个统称,指一个机构为了把零散的数据变成决策所做的一切:把数据汇集起来的工具,让数据变得有意义的分析,以及把结果摆在真正做决定的人面前的仪表盘和报表。OLAP 和数据挖掘是这条陈述所问的两项技术,它们在这个统称之下做的是不同的工作。

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.

OLAP 让人可以从不同角度、快速地探索已经存在的数据。数据挖掘则更进一步:它运用统计、机器学习和人工智能,寻找人永远不会想到去找的模式。一个是探索,另一个是发现,一套成熟的商业智能系统确实两者都需要。

Explainer

讲解

OLAP's role: fast answers from many angles

OLAP 的作用:从多个角度快速得到答案

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.

联机分析处理(OLAP)让人可以把仓库的数据拿在手里翻转,按时间、按产品、按地区,或任意组合来查看,而不必等别人先把那个特定的视图建好。因为它所依据的总计已经预先算好,否则需要扫描多年原始行的查询几乎立刻就能返回,快到像同比对比、图表或仪表盘这样的计算感觉是交互式的,而不是需要申请的。这种速度也正是临时查询(ad hoc query)得以成立的原因:经理可以在问题冒出来的那一刻就去追问,而不必提交申请、等待一份预先定义好的报表。

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

一个 OLAP 切片:Fernbridge 社区银行按分行和季度划分的贷款量

Branch分行Q1 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.

为什么这算解释了 OLAP 的作用,而不只是描述它:预先聚合的视图存在,是为了让经理能在几秒钟而不是几分钟内看到 Riverside 的下降趋势;临时查询能力存在,是为了让分析师在追问(为什么 Harborview 在第二季度下降?)冒出来的那一刻就能去追查,而不必向报表团队提交申请。OLAP 的每一项功能,追根溯源都是为了让探索的速度快到能跟上人的思路。

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.

数据挖掘采取的是不同的方法。它不是回答某个人已经想到要问的问题,而是在大型数据集上运行统计方法、机器学习和人工智能,寻找从未被明确要求过的模式和关系,也就是人没有理由去找的联系。与 OLAP 不同,不需要有人先知道该问什么问题,技术本身会把模式浮现出来。六种技术涵盖了它所做的大部分事情。逐一点开查看。

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.

考纲明确指出了这一点:这些技术与 A4 机器学习相联系。分类和回归是监督学习任务(它们从有标签的例子中学习),聚类是无监督学习(它在完全没有标签的情况下发现结构)。在这里,数据挖掘并不是与机器学习分开的领域,它就是专门用于从大型数据集中提取商业洞察的机器学习。

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.

Fernbridge 的夜间批处理任务会检查每一笔交易。技术很少单独起作用,看看三种技术如何在同一个案例上组合。

Transaction TXN-88231

交易 TXN-88231

Customer客户Usual monthly spend通常的月消费This transaction这笔交易Location地点
Dana Okafor1804,200Overseas ATM海外 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.

异常检测首先把它标记出来。4,200 与 Dana 通常的模式相差极远,系统不需要特别了解欺诈,只需要知道这不寻常。

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.

聚类解释了为什么分类器怀疑得有道理。Dana 的正常消费模式把她归入一个很少出行的本国客户组成的簇。这笔交易的特征与那个簇中的任何人都毫不相像,却更像上个月银行卡被报失的那一簇客户。

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?

Fernbridge 注意到,开设储蓄账户的客户在 30 天内申请信用卡的频率,远高于机会所能解释的。是哪种技术发现了这一点?

Common mistake

常见错误

Markers reported this pattern for A3.4.3
阅卷员反馈了 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第 1 题 · 2 分

[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.

[2]Fernbridge 想根据多年的历史数据预测下个季度的存款量。指出这需要哪种数据挖掘技术,并描述它是如何工作的。

Question 2 · 5 marks第 2 题 · 5 分

[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.

[5]Fernbridge 用一种技术把交易标记为欺诈或正常,用另一种技术找出账户关闭前事件的通常顺序。比较这两种技术。

Question 3 · 6 marks第 3 题 · 6 分

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

[6]解释 OLAP 和数据挖掘在商业智能中的作用,并各用一个你自己的例子来说明。

Flashcards

闪卡

Active recall for this statement's key terms.

针对本条陈述关键术语的主动回忆。

Prototype render. Concepts (OLAP's role, and the six data mining techniques: classification, clustering, regression, association rule discovery, sequential pattern discovery, anomaly detection) grounded in the IB CS 2027 syllabus's A3.4.3 section; the Fernbridge Community Bank worked example is original, built to reinforce the same techniques with fresh data rather than reproduce a real course example’s own example values. Not yet wired to live routes.