AI 如何改变数据科学家的四类分析

向上攀登抽象阶梯
随着 AI 编程能力的快速增长,我注意到许多回应仍以被动反应为主,例如“哪些技能将会过时?”“数据科学家会被 AI 取代吗?”或者“我该如何保持自身价值?”或许更好的问题是:我们如何主动利用 AI 的能力为己所用。通过重新调整视角,把 AI 智能体视为协作者或队友,我们的角色便转向定义需要做什么以及为什么重要,而不是聚焦于如何完成的具体机制——这就是我所称的向上攀登抽象阶梯。
抽象层级是计算机科学与信息系统中的一个概念,它描述的是我们从技术细节中退后多远,以便聚焦于更宏观的问题以及由此引导的决策。在较低层级,我们可能编写或调优某个算法;在较高层级,我们则要追问哪种方法适合这个问题、什么样的证据能让其输出变得有用,以及它应如何指导行动。我们此前也见过类似的转变:scikit-learn 这类库让我们无需从零实现每一个机器学习算法,就能直接应用它们。如今 AI 将这一点推进得更远:它让自然语言成为下一种编程语言,抽象掉子系统的更多细节,并帮助我们串联起整个工作流的各个环节。但更高的抽象并不意味着更少的责任。我们仍需充分理解基础原理,以便指导工作、质疑假设并评估结果。
在某些方面,与 AI 智能体共事就像与一位初级同事合作。它能帮助我们探索各种思路,并快速产出初稿,但除非我们提供指引,否则它可能无法理解组织的优先事项、组织内部知识、数据历史或那些未成文的假设。
数据科学传统上关注模型如何运作,以及如何提升性能。这些问题如今依然重要,我并不是在建议我们放弃数学、统计学或机器学习。没有这些基础,我们又如何评估 AI 的输出,或识别出某个候选模型在特定场景中并不适用呢?理解底层原理,能让我们在不同情境下从多种方法中做出选择。技术专长或许将不再那么关乎手动实现,而更多在于引导、质疑并评判 AI 完成的工作。也许数据科学将从“由我们构建的模型来定义”,转向“由我们解决的问题和我们创造的影响来定义”。我还没有完整的答案,但我想探讨:AI 是否让我们能够在更高层次的思考上工作——不仅关注它取代了什么,也关注它让我们得以实现什么。
重新定义四项基础分析能力
向抽象层级的更高处攀升,使得以提示词、MCP 工具和 AI 智能体驱动的端到端 ML 系统与数据产品能够以高层次方式开发。然而,它们背后的基本概念并未改变,数据科学依然涵盖四大核心支柱——描述性分析、诊断性分析、预测性分析和规范性分析。描述性分析告诉我们发生了什么,诊断性分析帮助我们理解为什么发生,预测性分析估计接下来可能发生什么,规范性分析则帮助我们决定该如何应对。它们共同推动我们从理解过去,到提取基本模式,再到对未来做出有依据的决策并据此采取行动。
描述性——发生了什么?
这是揭示历史数据中模式的分析阶段,勾勒出既有绩效趋势与细分群体画像(例如,上一季度最畅销的产品、流失率最高的客户年龄段)。这一阶段涉及统计分析、探索性数据分析和数据可视化技术。由于这些技术具有可推广性和可重复性,我个人认为基础的描述性分析已在很大程度上被 AI 工具攻克并实现流程化。随着数据智能体的出现,让不同技术水平的人都能用自然语言与数据对话,我们需要考虑如何带来额外的价值,去描述和解读发生了什么。
由于数据科学是一门多学科交叉的职业,我认为数据科学家如今肩负着更大的责任,要在统计结果与领域知识之间架起桥梁,把数字转化为面向非技术受众的可量化商业洞察或实际影响。举例来说,AI 可能会报告上月销售额下降了 24%。如果我知道企业在前一个月开展了大型促销活动,我会先把当月销售与典型月份作对比,然后再下结论,判断这次销售下滑是否为表现不佳的信号。这正是数据科学家为描述性分析增值之处:运用业务背景来阐明数字的含义,而不是把每一次下滑都当作出了问题的信号。数据科学家还可以更进一步,为企业内的 AI 智能体开发一套具备领域感知的公司级语义编排,把量化结果与业务领域知识自动连接起来。
在通过描述性分析了解已经发生了什么之后,有两条自然的路径:理解它为何发生,或预测接下来可能发生什么,这就通向诊断性分析或预测性分析。二者谁先谁后并没有硬性规则,因为它们通常是相互补充的。在某些场景下,会优先利用历史数据推断未来表现,以便在深入探究根本原因之前及时做出响应,因此基于相关性分析的预测建模就成为自然的下一步。然而,预测某件事与理解它并不是一回事。值得问的问题是:“它为什么会发生?”这要通过诊断性分析来回答。我建议构建一个迭代循环:由诊断技术识别出关键驱动因素,再将其输入预测建模,从而获得更准确的预测。
诊断性分析——它为什么会发生?
常见的诊断方法包括驱动因素分析,用于识别与某一结果相关的因素;以及贡献度分析,用于估计不同组成部分在多大程度上解释了一个观察到的结果或变化。此外,我们还可以使用分群、队列对比、变点检测、假设检验和因果调查,来缩小范围并验证可能的解释。
数据科学家无法跟上 AI 生成代码的速度;相反,我们通过运用自己的判断力来创造价值:选择适合具体情境的技术、评估每种方法的假设与局限,并判断证据是否足够充分以支撑一项决策。例如,如果我们想探究数据点之间相关性之外的东西,就需要引导 AI 工具使用因果推断来做深入调查。否则,它可能识别出的只是与因变量同向变动的因素,而非变化的根本原因。一个实际的例子是:冰淇淋销量与溺水事件可能同时上升。这并不意味着冰淇淋导致溺水;而是更温暖的天气同时影响了这两者。
在商业情境中,区分因果关系与相关性至关重要,这样才能确保投资流向真正产生影响的驱动因素,而不是那些恰好与成功同时出现的因素。当我们只依赖 AI 生成的代码时,这是最容易被忽视的方面之一,因为如果仅仅审视结果,这些区别可能十分微妙。数据科学家在整个工作流程中提供重要的判断:把业务问题框定为恰当的假设检验、设计 A/B 测试等实验、收集并评估证据、向业务用户准确传达发现,以及降低基于表面指标做出决策的风险。
预测性 —— 接下来可能发生什么?
预测建模和机器学习就发生在这一阶段,而这也是大多数人联想到的数据科学家日常工作。在通过描述性分析了解数据中包含什么、并借助诊断性分析解释其背后可能的原因之后,预测分析接着会估计接下来可能发生什么。在 AI 时代,我们应当重新界定这一阶段的意义:让利益相关方能够始终领先一步,主动为新兴趋势做好准备,而不是等到最后一刻才对变化作出反应。
原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(How AI Changes the Four Types of Analytics for Data Scientists)
Moving Up the Abstraction Ladder
With the rapid growth of AI’s coding capabilities, I notice many responses remain predominantly reactive, such as “Which skills will become obsolete?”, “Will data scientist be replaced by AI?”, or “How do I stay relevant?” Perhaps a better question is how we can proactively leverage AI’s capabilities to our advantage. By reframing our perspective to treat AI agents as collaborators or teammates, our role shifts toward defining what needs to be done and why it matters, rather than focusing on the mechanics of how to do it — this is what I refer to as moving up the abstraction ladder.
The level of abstraction is a concept in computer science and information systems that describes how far we step back from technical details to focus on the broader problem and the decisions it informs. At a lower level, we might write or tune an algorithm; at a higher level, we ask which approach fits the problem, what evidence would make its output useful, and how it should guide action. We have seen a similar shift before where libraries such as scikit-learn let us apply machine learning algorithms without implementing each one from scratch. Now AI takes this further by making natural language the next programming language, abstracting away more details of a subsystem and helping us connect parts of an entire workflow. But greater abstraction does not mean less responsibility. We still need to understand the foundations well enough to guide the work, question assumptions, and evaluate the results.
In some ways, working with an AI agent resembles working with a junior teammate. It can help us explore approaches and produce a first draft quickly, but it may not understand the organization’s priorities, institutional knowledge, data history, or unwritten assumptions unless we provide that guidance.
Data science has conventionally focused on how models work and how to improve performance. Those questions still matter and I am not suggesting we abandon mathematics, statistics, or machine learning. Without these foundations, how could we evaluate AI outputs or recognize when a candidate model is inappropriate in a specific situation? Understanding the underlying principles lets us choose among approaches in different contexts. Technical expertise may become less about manual implementation and more about guiding, challenging, and judging the work done by AI. Perhaps data science will shift from being defined by the models we build to the problems we solve and the impact we generate. I don't have a complete answer yet, but I want to explore whether AI allows us to work at a higher level of thinking—focusing not just on what it replaces, but on what it enables us to achieve.
Redefining Four Fundamental Analytics Capabilities
Moving up the abstraction ladder enables the high-level development of end-to-end ML systems and data products powered by prompts, MCP tools, and AI agents. However, the fundamental concepts behind them remain unchanged, as data science still encompasses four core pillars — descriptive, diagnostic, predictive, and prescriptive analytics. Descriptive analytics tells us what has happened, diagnostic analytics helps us understand why, predictive analytics estimates what might happen next, and prescriptive analytics helps us decide what to do about it. Together, they move us from understanding the past, to extracting fundamental patterns, to making informed decisions about the future and taking actions accordingly.
Descriptive — What has happened?
This is the analytical phase that uncovers patterns in historical data, establishing a picture of existing performance trends and segment profiles (e.g., the top-selling products last quarter, customer age range with the highest churn rate). This stage involves statistical analysis, exploratory data analysis and data visualization techniques. Due to the generalizability and repeatable nature of these techniques, I personally think basic descriptive analytics has already been largely conquered and streamlined by AI tools. As data agents emerge, allowing people with different levels of technical background to chat with data using natural language, we need to consider bringing additional value to describe and interpret what has happened.
Because data science is a multidisciplinary profession, I believe data scientists now hold more responsibility to bridge the gap between statistical results and domain knowledge, translating numbers into quantifiable commercial insights or practical impacts for non-technical audiences. For example, AI might report that sales fell 24% last month. Knowing the business ran a major promotion the month before, I would compare sales with a typical month before drawing the conclusion that the sales drop is a sign of poor performance. This is where a data scientist adds value to descriptive analytics by applying business context to clarify what the numbers mean, rather than treating every decline as a sign that something is going wrong. Data scientists can take this a step further by developing a company-wide, domain-aware semantic orchestration for AI agents to connect quantitative results with business-domain knowledge automatically.
After knowing what has happened already through descriptive analytics, there are two natural pathways: understanding why it happened or predicting what is likely to happen next, which leads to diagnostic or predictive analytics. There are no hard rules of which needs to come first, as they usually complement each other. In some scenarios, inferring future performance using historical data is prioritized to respond promptly before digging into the root cause, hence predictive modeling based on correlation analysis becomes the natural next step. However, predicting something isn't the same as understanding it. The question worth asking is, “Why did it happen?” This is addressed through diagnostic analytics. I would suggest creating an iterative loop in which diagnostic techniques identify key drivers that then feed into predictive modeling for more accurate predictions.
Diagnostic — Why did it happen?
Common diagnostic approaches include driver analysis, which identifies factors associated with an outcome, and contribution analysis, which estimates how different components account for an observed result or change. Additionally, we can use segmentation, cohort comparisons, change-point detection, hypothesis testing, and causal investigation to narrow down and validate potential explanations.
Data scientists cannot catch up with the speed of AI-generated code; instead, we add value by using our judgment to choose techniques suited to the context, assess each method's assumptions and limitations, and determine whether the evidence is strong enough to support a decision. For example, if we want to investigate beyond correlations between data points, we need to guide AI tools towards using causal inference for in-depth investigation. Otherwise, it may identify factors that merely move in the same direction as the dependent variable, rather than the root cause of the changes. A practical example is that ice cream sales and drowning incidents may increase simultaneously. This does not imply that ice cream causes drowning; rather, warmer weather influences both.
Distinguishing causation from correlation is essential in the business context to ensure that investments are directed towards the actual drivers of impact rather than factors that coincide with success. This is one of the most overlooked aspects when we only rely on AI-generated code, because the distinctions can be subtle if merely inspecting the outcome. Data scientists bring important judgment throughout the workflow: frame business problems as appropriate hypothesis testing, design experiments such as A/B tests, collect and evaluate evidence, communicate findings accurately to business users, and reduce the risk of making decisions based on surface-level metrics.
Predictive — What is likely to happen next?
Predictive modeling and machine learning occur at this stage, and they’re what most people associate with data scientists’ day-to-day work. After knowing what’s in the data through descriptive analytics, and explaining likely reasons behind it using diagnostic analytics, predictive analytics then estimate what’s likely to happen next. In the age of AI, we should reframe this stage as empowering stakeholders to stay one step ahead, proactively preparing for emerging trends rather than reacting to changes at the last minute.
Traditionally, data scientists spend most of their time transforming data, building algorithms, and tuning models' hyperparameters to achieve the best evaluation metrics. We used to implement neural networks, random forest, and gradient boosting algorithms by typing down every single line of code. While AI helps with systematically cleaning data, training models and evaluating results, the more valuable data science skill is synthesizing those patterns with business acumen to forecast future outcomes.
A predictive modeling lifecycle typically moves from data discovery to deployment. I will use a demand forecasting case study to illustrate the evolution of data scientists in an AI-assisted workflow.

Business understanding and data collection: While AI largely automates writing SQL queries and integration code for data ingestion, data scientists still need to determine which data sources are appropriate for answering business problems. Example: identify the source systems for collecting store-level sales, inventory information, promotion calendars, and public holiday data.
Data preprocessing: Shift from manually coding for missing value imputation to guiding data preprocessing decisions. Example: AI tools may automatically fill stores with missing sales data with 0 by default, but we should still investigate why they are missing before choosing data imputation method. Instead of jumping into the conclusion that this is a data quality issue, consider that missing values may highlight edge scenarios or systemic failures in data capture process.
Feature engineering: Move away from manually scaling numeric variables and one-hot encoding all categorical variables into numerics values, to selecting meaningful, available signals based on our domain knowledge and avoiding data leakage. Example: To generate a 12-week demand forecast, incorporate a direct competitor’s sales volume as a feature, and validate that AI-generated code excludes any sales recorded after the forecast date to prevent feature leakage.
Model training: AI can implement a list of candidate algorithms and tune hyperparameters to achieve the optimal outcome of objective functions, but it remains critical for data scientists to exercise judgment in determining which algorithm’s inductive bias best aligns with the business context. We also need to consider balancing model performance with interpretability. Example: AI may select XGBoost as the best model because it has the lowest prediction error, but it does not fit if business wants an explainable model. Besides, if demand is intermittent, Croston’s method is a better fit to handle sparse demand patterns, whereas XGBoost tends to be sensitive to data drift when datasets are small.
Model evaluation: Move beyond reporting statistical metrics and focus more on interpreting them within context to assess their business consequences. For example, we should guide AI to use WAPE over MAPE to assess total demand error across products with different sales volumes, since it weights errors by actual demand, and MAPE can be skewed by very low actuals.
Model interpretation: AI can generate code for model explainability and feature importance, but data scientists still need to check that the resulting explanations are faithful to the model and useful for the decision at hand. Example: AI can produce SHAP summaries to indicate features contributing most to model predictions, but a data scientist needs to ensure the interpretation only describes model behavior rather than establish causal effect.
Deployment and monitoring: AI can draft deployment code and monitoring reports quickly, while data scientists refine that into a reliable workflow and define thresholds for investigation, retraining, or rollback, and check that predictions remain useful for decisions. Example: AI may detect forecast errors increasing around 15% at several stores, but a data scientist checks whether external factors like holidays explain the change in customer behavior before deciding whether to retrain the model or inform business users.
To move up the abstraction ladder, data scientists should treat predictive modeling as a mechanism to prioritize business decisions and clearly communicate the uncertainty or biases behind these predictions. This ensures business users understand risks at an early stage and can proactively prepare for upcoming changes with confidence.
Prescriptive — What to do about it?
Once we understand what's likely to happen and why, we can make evidence-based recommendations for next best actions. Moving to the stage of prescriptive analytics, we support the business with action plans for stronger impact or stop processes that are not working. Rethinking prescriptive analytics in the age of AI, the value data scientists bring is the ability to translate business objectives into mathematical optimization problems. We work with the business to clarify the requirements, understand the constraints, and identify solutions that are practical to implement. We then communicate those recommendations and explain the operational trade-offs so the business can decide and prioritize potential next steps.
Let's break down prescriptive analytics lifecycle into four stages and look at how they evolve with AI-assisted workflow.
Problem formulation: Data scientists start by working with business teams to understand the operating context, agree on primary objectives to improve, and identify key trade-offs and resource limits. AI can assist with translating these into three key components of an optimization problem: objectives, decision variables and constraints.
Optimization modeling: AI can quickly implement candidate optimization models and solver code for data scientists to compare. Data scientists select a method based on the types of decisions involved in the real-world scenario, for example linear programming suits decisions that vary continuously, e.g. how many kilograms of grains to stock at a warehouse, while mixed-integer linear programming handles choices.
Solution validation: Data scientists play an important role at this stage in verifying that the output reflects the agreed objectives and operating constraints, ensuring that we do not blindly follow AI-generated results that optimize the objective function but fail in real-world scenarios.
Rollout and change management: Data scientists work with stakeholders to embed recommendations in day-to-day operations, communicate changes, and monitor adoption and outcomes. This is the part that is difficult for AI to replace, as it involves active communication and empathy while working closely with stakeholders who are driving the changes or those impacted by them.
What Skills Are Crucial in the Age of AI?
1. Judgment and Critical Thinking
Utilize our core technical skills in statistics, machine learning and computer science to evaluate AI-generated code and results. Understand the inductive biases and assumptions behind different algorithms and techniques, then choose the most appropriate approach to align with the business context. For instance, choose Croston’s method when predicting products with intermittent demands, and choose XGBoost when it is critical to capture complex relationships from promotional activities, holidays or store characteristics. Always remain curious and ask why a particular phenomenon occurred, why one model outperforms the other, why the business cares about tackling this problem first. Once the fundamental questions are identified, we leverage our unique expertise to orchestrate AI tools to form the most effective trajectory, implementing a suite of solution pipelines to address these challenges.
Harness empathy and active communication to bridge technical jargon and practical implications, drawing on analogies and concrete use cases. For example, explain how predictive accuracy can increase confidence in estimated economic returns. Additionally, providing explainable solutions and observability on top of black box models are critical to bringing business stakeholders along with the journey for ongoing collaborations.
We will be acting as a trusted partner to empower business professionals to uncover hidden data patterns (descriptive), explain the fundamental root causes (diagnostic), anticipate the likely outcomes (predictive), and enable them to act proactively (prescriptive). Just like a doctor, start by understanding what are the symptoms, diagnosing the underlying reasons, projecting how the disease may develop over time and then prescribing the patient with the best treatment plan.
As AI becomes increasingly capable of operational execution, we must move up the abstraction ladder to gain a holistic view of end-to-end solution design. Instead of focusing narrowly on technical aspects, such as which algorithm to choose or which metric to use for model evaluation, we need to deliver cohesive products that empower stakeholders with self-serve commercial insights. This accelerates the transition from data to decisions, and to actions. To achieve this, we must constantly broaden our knowledge across various domains and develop strategic thinking to design sustainable, scalable data products.
AI gives us an opportunity to rethink the role of data science. Here are some key aspects that can turn our capability into impact:
Move up the abstraction ladder: Treat AI as a collaborator while taking responsibility for the problem, approach, and outcome.
Connect the four analytics capabilities: Rethink descriptive, diagnostic, predictive and prescriptive analytics to bridge the gap between technical solutions and business understanding through AI-assisted workflow.
Apply judgment, critical thinking, and strategic business partnership: Use technical foundations to question assumptions, evaluate AI-generated work, and choose approaches that fit the business context, while bringing empathy and clear communication to decisions and building sustainable data products that turn insights into action.
A Step-by-Step Walkthrough of the most basic but yet most-used Data Manipulation Functions
June 19, 20214 min read
Our weekly selection of must-read Editors' Picks and original features
December 9, 20213 min read
A production account of the throughput work behind a 16x jump — and the two guarantees it was never allowed to trade away
August 19, 202615 min read
The explanation of the theory and its application in real problems
January 17, 20219 min read
A guide to the basics of quantum computing with no prior knowledge required
October 20, 202326 min read
Learn what to import and when from this amazing Python library
September 26, 20225 min read
A beginner-friendly guide to building a world model in Python, letting it daydream its way through CartPole, and accurately measuring when the illusion collapses.
September 23, 202627 min read
A New Immigrant's Guide to settling in the City of Toronto
November 27, 20205 min read
Monitoring streaming data with Kafka and whylogs The importance of data in making informed decisions...
原文为英文,正文由自动抓取并保留原文。
原文发布于 Towards Data Science(How AI Changes the Four Types of Analytics for Data Scientists),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。