Unit 1

Data, Descriptive Statistics and AI Fundamentals

Data, Descriptive Statistics and AI Fundamentals · Data, Models, and AI-Empowered Decision Making
1.1 Course Introduction 1.2 Data and Basic Descriptive Statistics 1.3 AI Fundamentals 1.4 First Hands-On AI Activity 1.5 Unit Summary 6 interactive demonstrations · 5 classroom exercises
How to use this e-textbook. The orange panels on this page are interactive demonstrations. You can drag, type and change parameters, and the charts recalculate immediately. Green panels are classroom exercises. Complete them and select “Check” to receive immediate feedback and reference values. S1_online_orders.xlsx and S1_Height and Weight.xlsx—11,121 orders and 1,587 athletes in total.

1.1 Course Introduction

This section answers three questions: what the course covers, how it is assessed, and what roles data, models and AI each play in the course.

Course Information

ItemDetails
Course titleData, Models, and AI-Empowered Decision Making
Course typeMBA core course in management science and business analytics
Credits and contact hours2 credits, 32 contact hours, eight units of 3 hours each
Teaching approachCase discussion, spreadsheet labs, AI-tool labs, and a group project (written report only)
ToolsExcel with Solver and generative AI assistants; no Python or R
TextbookHillier, Introduction to Management Science (with spreadsheet modelling and cases); no additional required text
Two cohortsThe Chinese and international cohorts use identical materials in different languages
Introduction to Management Science A Modeling and Case Studies Approach with Spreadsheets Hillier & Hillier Main textbook: Hillier, Introduction to Management Science (with spreadsheet modelling and cases)
Textbook cover (illustrative layout)

One textbook is sufficient for this course. The course uses Hillier’s Introduction to Management Science (with spreadsheet modelling and cases). It explains the management decision setting first and then builds the model in a spreadsheet, which mirrors the course’s decision path. No additional required text is assigned.

The textbook supplies methods and cases. In class, you will also use real data files (online orders, height and weight data, and others) and generative AI tools. After each unit, you should be able to answer: what kind of analysis is this, which model should be used, and how should the result be explained to a manager?

The cover is illustrative; refer to the edition you purchase.

Learning Outcomes (CLO1–CLO7)

OutcomeDetails
CLO1 Frame the ProblemStructure a vague management problem as a data or modelling problem and identify the appropriate level of analytics
CLO2 Work with DataIndependently import, clean, summarise and visualise data, while identifying data-quality and definitional issues
CLO3 Statistical Inference and PredictionUnderstand sampling, hypothesis testing and significance; build regression and time-series models
CLO4 Build Optimisation ModelsFormulate models for resource allocation, scheduling, facility location and portfolio selection, and interpret sensitivity reports
CLO5 Decide under UncertaintyUse decision trees, Bayesian updating and simulation to support decisions under uncertainty
CLO6 Collaborate with AIUse AI for data exploration, model drafts and result review; verify and correct its output
CLO7 Communicate and ComplyWrite actionable managerial recommendations and explain AI’s role, limitations and use disclosure

Course Outline: Eight Units

UnitTopicMain content
1Data, Descriptive Statistics and AI FundamentalsCourse introduction, descriptive statistics, the Excel workbench, AI fundamentals and the first hands-on task
2Probability, Statistics, Hypothesis Testing and Experiment DesignNormal distribution, sampling and confidence intervals, hypothesis testing, A/B testing
3Regression AnalysisFour-step regression workflow, R-squared, coefficient significance, collinearity and logarithmic transformations
4Time Series and Text DataForecasting methods, seasonal factors, causal forecasting, text data and LLM labelling
5Linear ProgrammingModel formulation, graphical solution, Solver and sensitivity analysis
6The Art of Modelling and Integer ProgrammingSpreadsheet modelling standards, integer and binary-variable models
7Decision Making under Uncertainty and SimulationDecision trees, Bayesian updating and Monte Carlo simulation
8Non-linear Optimisation and Portfolio SelectionNon-proportional relationships, curve fitting and portfolio optimisation

Scope of the Course

In scopeOut of scope
Regression models (Unit 3)Classification models, including logistic regression and classification trees
Time series (Unit 4)Clustering, dimensionality reduction and neural networks
Mathematical programming: linear, integer and non-linear (Units 5, 6 and 8)Detailed modelling with deep neural networks
Decision making under uncertainty and simulation (Unit 7)Machine-learning workflows that require programming

Unit 1 introduces only the three specialised model families aligned with the course spine:prediction(regression and time series),optimisation(mathematical programming and solvers), and simulation(Monte Carlo). Classification, clustering and similar models are mentioned only in passing and are neither taught nor examined.

Assessment and Assignments

Assessment componentWeightFormat and requirements
Final examination (open book)50%All eight units; emphasis on conceptual understanding, model formulation, interpretation and evaluation of AI output
Group project report20%A written “data—model—AI collaboration—recommendation” report using real data; written report only, with no presentation
Individual assignments20%Three to four assignments, including at least one task in which you identify and correct an erroneous AI conclusion
Class participation10%Attendance, case discussion, and performance in spreadsheet and AI-tool labs
  • Assignment 1 one-tailed test for a fuel additive;Assignment 2 MBA mean-age test and a paired t-test of pre- and post-training scores;Assignment 3 A/B experiment design, data analysis and an AI-correction log.
  • The open-book examination prohibits AI and internet-connected devices. There is no midterm quiz; that time is devoted to AI-tool labs and the group project.

AI Use Policy (Permissive)

SettingRule
Individual assignments and group reportPermitted; add a one- to three-sentence statement describing the tool used, its purpose and how you verified the output
In-class labsPermitted and encouraged, using the tools designated for the session or supplied by the school
Final examination (open book)AI and internet-connected devices are prohibited; only printed materials and a calculator are allowed
AI-correction assignmentsAttach the original AI output and your own correction notes
Data and materialsDo not enter unpublished company data or other people’s personal data into a public model
ResponsibilityYou are fully responsible for the accuracy of submitted work; an AI error is not an excuse

Not required: there is no limit on the proportion of AI-generated content, no mandatory chat log, and no AI-detection screening.

The Decision Path: From Problem to Decision

StageQuestion to answer
1 ProblemWhat decision must be made, and how will success be measured?
2 DataWhich variables are needed, where do they come from, and are their definitions consistent?
3 ModelWhich method turns the problem into a computable form?
4 SolveIs the result sensitive to the parameters, and what happens under a different assumption?
5 InterpretWhat does the result mean for the manager, and where are its limits?
6 DecideAdopt, adjust or reject the recommendation—and who owns the outcome?
1 Problem What decision? 2 Data Which variables? 3 Model Make it computable 4 Solve Is it sensitive? 5 Interpret What does it mean? 6 Decide Adopt or reject? Every step can send you back: if the data are insufficient, revisit the problem; if the model cannot be solved, change the method. Feedback loop
The decision path has six stages, and every unit follows the same path.

Four Levels of Analytics

LevelQuestion answeredWhat AI can do
DescriptiveWhat happened?Suggest aggregation choices and charts
DiagnosticWhy did it happen?Propose causal hypotheses
PredictiveWhat is likely to happen?Fit models and interpret results
PrescriptiveWhat should be done?Offer alternatives for a human to evaluate
Value Difficulty hindsight insight foresight Descriptive What happened? Diagnostic Why did it happen? Predictive What will happen? Prescriptive How can we make it happen?
Four levels of analytics: moving up and to the right increases both difficulty and value to decision making.
Classroom Exercise 0 (Warm-up)

Which level of analytics does each statement represent?

Decide first, then select “Check.” This classification determines which tools you will need in every later unit.

Case: The Efficiency Frontier in US Air Transportation

Place firms in the same industry on one chart: the horizontal axis is input (available seat miles, ASM, a measure of capacity), and the vertical axis is output (revenue passenger miles, RPM, a measure of traffic).envelope This line is the efficiency frontier. For a firm below the frontier, the vertical gap to the frontier measures the additional output achievable with the same inputs, or the input reduction achievable for the same output.

Efficiency frontier in the US airline industry
Horizontal axis: available seat miles (ASM, capacity); vertical axis: revenue passenger miles (RPM, traffic).
Efficiency frontier in the US airline industry (continued)
A different view of the same data: the firms on the same frontier are the most efficient.
Interactive Demonstration 1

Draw the Efficiency Frontier Yourself

On either chart below,hold down the left mouse button and drag(or use your finger on a touch screen) along the upper edge of the leading firms. Your line is your judgement of the efficiency frontier. You may draw it in several strokes, then explain to a partner why you drew it that way.

Efficiency frontier in the US airline industry (drawable)

Chart 1 · The red line is the frontier you drew

Efficiency frontier in the US airline industry (continued, drawable)

Chart 2

  • An efficiency frontier places comparable firms in one chart so that performance gaps become visible.
  • Firms on the frontier are the most efficient in the current sample; the distance below the frontier represents room for improvement.
  • This section focuses on reading the chart and drawing the frontier. Calculating its position belongs to data envelopment analysis (DEA) and is outside this course.
  • Terminology note: “efficiency boundary” and “efficiency frontier” refer to the same envelope curve, called an efficiency frontier In Chinese literature,“efficiency frontier” is the more common term, and this course uses it consistently.

Business Applications and Success Stories

OrganisationApplicationAnnual benefit or saving
Swift & CompanyImproved sales and manufacturing performanceUSD 12 million
Samsung ElectronicsShorter manufacturing time and lower inventoryUSD 200 million in revenue
Procter & GambleRedesigned production and distributionUSD 200 million
Netherlands RailwaysOptimised rail-network operationsUSD 105 million
United AirlinesScheduling at airports and reservation centresUSD 6 million
Taco BellForecasting demand during the dayUSD 13 million
Reflect: what do these six cases have in common? Hint: each is a recurring resource-allocation problem with a measurable objective. Then add a column of your own—which step can AI perform today, and which step must remain a human responsibility?

1.2 Data and Basic Descriptive Statistics

The goal of this section is not to cover all of statistics, but to help you know what to inspect first, how to compute it, and how to interpret it when you receive a data set. All four orange panels below are interactive: change the numbers and the charts will follow.

Where Data Comes From

  • Cross-sectional data observations of different objects at one point in time, such as the average house price in 90 cities.
  • Time-series data observations of the same object at different points in time, such as the average daily call volume of a call centre in each quarter.
  • Text data unstructured data that must first be converted into labels or numbers before analysis (covered in Unit 4).
  • Most classroom data are exported from business systems, so the first step is always to inspect the fields and their definitions.
Same point in time · different cities
Cross-sectional data

Observations of different objects at one point in time. Example: average house prices in 90 cities.

Same object · different quarters
Time-series data

Observations of the same object at different points in time. Example: average daily call volume by quarter at a call centre.

The delivery was quick, but the packaging was a little crushed… Customer service took too long to respond Second purchase, and still very satisfied
Text data

Unstructured data that must first be converted into labels or numbers for analysis (covered in Unit 4).

Variable Types and Data Quality

TypeExamplesWhat to watch for
Numeric variableAmounts, durations, temperaturesArithmetic operations are meaningful; check units and scale
Categorical variableRegion, channel, product lineValues are labels; averages are meaningless

Check four data-quality issues:missing values,duplicates,inconsistent units,outliers and data-entry errors Definitional issues are the easiest to overlook—for example, whether an amount includes tax and whether a duration is measured in calendar or business days.

The Excel Workbench: Moves to Master

ActionPurposeFunction or tool
Import and inspectConfirm field types and row countsText Import Wizard, filters
AggregateSum and count by conditionSUM, SUMIF, COUNTIF
ClassifyGrade or label recordsIF and nested IF
Look upConvert codes into readable namesVLOOKUP
PivotTableSummarise quickly by another dimensionInsert PivotTable
ChartVisualise the conclusionColumn, line, scatter and histogram
Classroom Exercise 1

Classify Orders in Excel and Verify the Totals

Open S1_online_orders.xlsx. Add a column using =IF(dollars>=100,"Large","Regular") to classify orders, then use COUNTIF and SUMIF to aggregate the results. Enter your results below.

Descriptive Statistics at a Glance

CategoryMeasureQuestion answered
Central tendencyMean, median, mode, geometric meanWhere is the centre of the data?
DispersionRange, interquartile range, standard deviation, varianceHow widely are the data spread?
ShapeDirection of skew and box plotIs the distribution symmetric, and are there outliers?
  • Mean the sum of all observations divided by the count. It is the most common measure and the most sensitive to extreme values.
  • Median the middle value after sorting. It is insensitive to extreme values.
  • Mode the most frequent value; useful for identifying the most common amount or category.
  • Geometric mean the appropriate average for growth rates, such as the average return over several years.
Interactive Demonstration 2

Change One Salary and Watch the Mean and Median Move

This example shows the monthly salaries of seven employees in a small company. Change the final salary to 40,000 or 1,000,000 and observe the gap between the two measures.

Sample size
Mean (USD)
Median (USD)
Difference
Standard deviation (USD)

Interactive Demonstration 3

The Real Distribution of Order Values: What Right Skew Looks Like

This demonstration uses all 11,121 real order values in the course data. Change the bin width or take a random sample and observe whether the mean (red dashed line) and median (green dashed line) separate.

Bin width:
Data range:
Sample size
Mean
Median
Standard deviation
First quartile
Third quartile
Interquartile range
Within one standard deviation

Measures of Spread: Range and Interquartile Range

  • Range = maximum − minimum. It is easy to calculate but uses only two observations.
  • Interquartile range (IQR) = third quartile − first quartile. It describes the width of the middle 50% of observations and is unaffected by extreme values.
  • Excel: =QUARTILE.INC(range, 1) and =QUARTILE.INC(range, 3).
  • Return to the demonstration above: the IQR of the order values is about USD 63, while the range exceeds USD 670—a tenfold difference.

Standard Deviation and Variance

The standard deviation is, on average, how far each observation lies from the mean. It is in the same unit as the data and is therefore easier to interpret than the variance. The variance is the square of the standard deviation and is convenient in regression and portfolio analysis.

Interactive Demonstration 4

Same Centre, Different Spread

The two companies have the same mean salary of USD 33,500 and the same median of USD 33,800, yet their standard deviations differ by a factor of three. Change any salary and observe how both standard deviations respond.

Seven employees at Company 1 (USD)
Seven employees at Company 2 (USD)
CompanyMeanMedianStandard deviation
Company 1
Company 2

The standard deviation of Company 2 is .

The Empirical Rule and Box Plots

  • Empirical rule for approximately normal data, about 68% of observations lie within one standard deviation of the mean and about 95% within two.
  • For the order data, about 77% lie within one standard deviation—higher than 68% because the distribution is right-skewed.
  • Box plot a chart of the minimum, first quartile, median, third quartile and maximum; useful for comparing the centre and spread of several groups.
Interactive Demonstration 5

Build a Box Plot from Real Height Data

The data come from S1_Height and Weight.xlsx and contain 1,587 athletes. Switch groups to compare centre and spread.

Descriptive Statistics in Excel

StatisticExcel functionResult
Sample size=COUNT(range)11,121
Mean=AVERAGE(range)102.84
Median=MEDIAN(range)91.02
Mode=MODE.SNGL(range)67.63
Standard deviation=STDEV.S(range)57.67
First and third quartiles=QUARTILE.INC(range, 1 or 3)64.75 and 128.07
Classroom Exercise 2

Calculate These Six Statistics Yourself

In Excel, use the amount column of S1_online_orders.xlsx to calculate the six values below. Enter them on the right and check your answers; the correct order of magnitude is sufficient.

Three Questions for Interpreting Descriptive Statistics

  1. Where is the centre? Is there a large gap between the mean and median? A large gap signals extreme values or right skew.
  2. How large is the spread? Does the standard deviation or IQR reflect business variation or a data-entry error?
  3. What is the shape? Is the distribution symmetric? Does it have a long tail? Are there values that should not exist?
Lab task: use the online-order data to produce “one set of descriptive statistics, two charts and three interpretation sentences.” Use one histogram and one conditional grouped column chart. The three sentences should address the centre, the spread and the shape.

1.3 AI Fundamentals

This section establishes the shared language used in every later unit: how AI families relate, the foundations of machine learning and deep learning, how large language models work (tokens and embeddings), their capability boundaries, how to write prompts and where the limits of agents lie.

The AI Family Map

  • Artificial intelligence (AI) the use of machines to perform tasks that require intelligence.
  • Machine learning (ML) learning patterns from data rather than hard-coding rules.
  • Deep learning (DL) using multi-layer neural networks to learn complex patterns.
  • Generative AI generating new text, images and code.
  • Large language model (LLM) a branch of generative AI that specialises in language.
Artificial intelligence (AI) Perform tasks that require intelligence Machine learning (ML) Learn patterns from data Deep learning (DL) Multiple neural-network layers Generative AI Generate new text, images and code Large language model (LLM) Specialise in language ⊃ ⊃ ⊃ ⊃ The relationship runs from left to right: each item on the right is a subset of the item on its left—an LLM belongs to generative AI, generative AI belongs to deep learning, and so on.
AI family map: this course uses methods at the outer levels (regression, optimisation and simulation), but you should understand where they sit relative to LLMs.
CategoryWhat it doesBusiness example
DiscriminativeLabels or scores existing contentPredicting customer churn
GenerativeCreates new contentDrafting customer-service replies

Machine Learning and Deep Learning in Plain Language

Machine learning A different approach: rather than hand-coding rules one by one, we give an algorithm many “input–answer” examples and let it discover the pattern. Spam detection is one example—instead of writing every rule, we give the model 100,000 labelled emails.

Traditional programming Rules + Data → Answers People write the rule: an email containing “you have won” is spam Machine learning Data + Answers → Rule (model) The model learns the rule: it identifies which words tend to co-occur in suspicious messages
In traditional programming, people write the rules and machines execute them; in machine learning, machines infer the rules from examples.
  • Supervised learning uses labelled examples to learn a classification or prediction rule. The regression and time-series prediction in this course follow this logic.
  • Unsupervised learning provides only data, without labels, so the algorithm discovers structure such as groups or lower-dimensional representations.
  • Reinforcement learning adjusts a policy through trial and error based on rewards, as in games or robot scheduling.
  • Deep learning uses multi-layer neural networks to transform raw data into increasingly abstract features.
Raw input Text / pixels / sound Layer 1: local features Layer 2: combined features Layer 3: abstract semantics … more layers produce more abstraction Output: classification / prediction Next sentence / next token ← each layer contains many parameters; the number of parameters is what makes a “large model” large
Deep learning combines many layers with large numbers of parameters. More layers allow raw data to be transformed into abstract concepts, but also require more data and computing power.
The regression, time-series and mathematical-programming models in this course are classical modelling: a person specifies the model form and then uses data to estimate its parameters. They are not the same tools as machine learning, but they share the same goal—turning a management problem into a computable form.

Tokens and Embeddings: How Models “Read” Text

  • token Models do not process text as whole characters or words. They first split text into tokens, which may be a Chinese character, part of an English word, or a punctuation mark. Context-window length and API billing are also measured in tokens.
  • embedding Each token is mapped to a string of numbers, often a vector with hundreds or thousands of dimensions. Words with similar meanings have similar vectors, so comparing meaning becomes comparing distance.
Original sentence Order value is 12% higher than last month Split into tokens Order value is last month higher 12 % ← this sentence is split into 7 tokens Common words often form a single token, and different models may split the same sentence into different numbers of tokens.
The model’s first action is tokenisation: it divides continuous text into tokens that can be numbered.
Vector dimension 1 (illustrative) Vector dimension 2 Cat Dog Tiger Car Truck Bus Similar meaning → nearby vectors The two clusters are far apart: the model recognises that animals and vehicles are different categories.
Embeddings place every token in a high-dimensional space: similar meanings cluster together, while unrelated meanings are far apart.

A sentence therefore moves through the model as follows:text → tokens → embeddings → layer-by-layer computation in a multi-layer network (attention determines which earlier positions the current word should emphasise) → a probability distribution over the next token. Repeating the choice of “pick one token and append it” produces the complete response.

How a Large Language Model Works

Continue through the process: the model has read an enormous body of text and learned which words co-occur; when generating, it repeatedly estimates the most likely next token. Its output is therefore the most plausible-sounding continuation not a verified fact—which is why it can explain a concept fluently and still invent a non-existent number.

  • Asking the same question twice can produce different answers, and rephrasing the question can change the conclusion.
  • For details absent from its training data, the model may fill in a plausible version; specific dates, numbers and citations are especially prone to error.
  • Countermeasure: request sources and derivations, and verify against Excel and the original material.
Your input Today’s order value compared with ? The model is not “looking up information”; it is calculating “which word sounds most plausible.” Model’s probability ranking (illustrative) yesterday 42% last month 23% the same period last year 14% forecast 8% other 13% Whether it chooses “yesterday” or “last month” reflects common collocations in its training data, not factual verification
Every time a large language model writes a token, it makes a probabilistic choice about the next word—which explains both its fluency and its tendency to fabricate.

Capability Boundaries of LLMs

Strong atWeak at
Summarising long material into key pointsPrecise arithmetic, especially long calculations
Explaining and rewriting at a different level of difficultyCurrent facts after its training cutoff
Drafting outlines, first drafts and terminology tablesTaking responsibility when an error occurs
Writing Excel formulas, which you must verifyHandling confidential data that cannot be entered into a public model
Identifying patterns, themes and sentiment in textGiving identical answers to the same question
Classroom Exercise 3

Classify These Nine Tasks

For each row, decide whether AI is capable,error-prone, or requires human verification. Then select Check to test your judgement.

Three Specialised AI Model Families Along the Course Spine

CategoryProblem solvedWhere it appears in this course
predictionUse explanatory variables to predict, or use historical values to forecastUnit 3 regression; Unit 4 time series
optimisationFind the best solution under resource constraintsUnit 5 linear programming; Unit 6 integer programming; Unit 8 non-linear programming
simulationRepresent uncertainty as distributions and repeatedly sample outcomesUnit 7 Monte Carlo simulation

Classification, clustering, neural networks and similar models are common in industry but outside this course. The modelling content here is limited to regression, time series and mathematical programming, plus uncertainty and simulation in Unit 7.

Prompt Engineering: Five Components

ComponentPurposeExamples
RoleSet the professional perspective and languageYou are a retail data analyst
TaskState the required outputList the descriptive statistics and charts to produce
DataProvide column names, definitions and sample detailsColumns: order ID, amount, channel
Output formatSpecify structure and lengthReturn a table with no more than 10 rows
ConstraintsState boundaries and prohibitionsDo not invent numbers; identify any missing data
Interactive Demonstration 6

Prompt Builder: Create a Prompt Ready to Send

Complete the five components and a full prompt will be assembled below. Select “Fill Example” to see a well-formed version.

Useful Prompt Patterns and Failure Modes

  • Provide an example give one sample of the expected output and ask the model to follow it.
  • Request step-by-step work ask for an outline before expansion so you can intervene early.
  • Specify a table define the column names and order so the result can be pasted directly into Excel.
  • Failure modes: fabricated data, ignored constraints, overconfidence and answering a different question. When these occur, narrow the task, provide more data, and require item-by-item verification.

AI Agents

Agent = objective + tool use + multi-step execution + memory. Unlike a conversational model, an agent can retrieve data, call tools and iterate. Management applications include automated data retrieval and weekly reporting, model-draft generation and automated sensitivity scans.

  • Reliability an error at any intermediate step may propagate to the final output.
  • Access boundaries the data an agent may access must be defined in advance.
  • Auditability and responsibility who approves, reviews and remains accountable? In this course, an agent may generate a draft, but a person must verify and sign off on the conclusion.
① Objective “Produce a weekly report every Monday” ② Tool use retrieve data and calculate aggregates ③ Multi-step execution decompose tasks and iterate ④ Memory retain definitions and the previous result ⑤ Human review a person signs off before use The agent completes the first four steps itself—the longer the chain, the greater the risk that an error reaches the final output Course practice: the agent generates a draft; a person verifies the conclusion and signs off
AI agent = objective + tool use + multi-step execution + memory, with a mandatory human review step.

Data Security and AI-Use Disclosure

  • Permitted inputs: course-provided classroom data, public data and synthetic data you create yourself.
  • Prohibited inputs: unpublished operating data, customer personal information, contracts and personnel materials.
  • Sample disclosure: “In this assignment, I used Doubao to explain the regression coefficients; I recomputed every numerical conclusion in Excel.”

Live Comparison: Doubao and DeepSeek

Ask two models the same question and compare three things: whether the conclusions agree, whether the explanations are specific, and whether either model invents numbers. Platform differences are themselves teaching material.

AI-assistant chat window (illustrative)Same prompt · one trial on each platform
You are a retail data analyst. Assess the distribution of these order values and explain whether the report should use the mean or the median.
Model A’s answer The order values are clearly right-skewed… The report should present both the mean and the median, using the median as the typical value.
Model B’s answer The order values are approximately normally distributed with a mean of USD 108.5, so the mean can represent a typical order.

The chat interface above is illustrative; the tools you use will look slightly different.

Checkpoint: do Model B’s claims of “approximately normal” and “108.5” hold? Use the distribution explorer in Section 1.2: the mean is 102.84, the median is 91.02, and the distribution is right-skewed.

1.4 First Hands-On AI Activity

Apply the capability boundaries and prompting method you have just learned: ask AI to perform descriptive analysis on real order data, then verify every item.

  1. Upload S1_online_orders.xlsx to Doubao or DeepSeek and ask for a set of descriptive statistics with an interpretation.
  2. Write the prompt using all five components: role, task, data, output format and constraints. You may generate it with the builder above.
  3. Require at least the sample size, mean, median, maximum and minimum.
  4. Add a follow-up: is the order-value distribution right-skewed, and should the report use the mean or the median?
  5. Recompute every value in Excel and record every discrepancy.
Classroom Exercise 4

Find the Errors in an AI Response

Below is a model’s response about these orders (an example). Select a sentence to mark it as “problematic,” then select Check. The passage contains four errors.

Verification method: use =COUNT for the sample size, =AVERAGE and =MEDIAN for the centre, and =MAX for the maximum. A number that does not reconcile was fabricated by the AI.

1.5 Unit Summary and Next Steps

  • Descriptive statistics answer three questions: where the centre is, how large the spread is, and what the shape is.
  • With extreme values, the median represents a typical observation better than the mean; reports for right-skewed data should present both.
  • AI is strong in language and framing but weak in facts and calculation, so conclusions must be verified; the five prompt components make a request actionable.
  • This unit does not cover statistical inference—the normal distribution, sampling, hypothesis testing and A/B testing are covered in Unit 2.
Post-class task. Using the online-order data, produce “one set of descriptive statistics, two charts and three interpretation sentences,” and consolidate the AI-correction log into one page with a one- to three-sentence AI-use statement. Bring S1_online_orders.xlsx and the log to the next class.

Appendix: Interactive Demonstrations and Classroom Exercises

LocationTypeDetails
1.1DemonstrationHand-drawn efficiency frontier: outline the envelope on the chart
1.1ExerciseClassify the four levels of analytics (4 questions)
1.2DemonstrationSalary workbench (mean versus median)
1.2DemonstrationOrder-value distribution explorer (binning and sampling)
1.2DemonstrationStandard-deviation comparison (salaries at two companies)
1.2DemonstrationBox plots by height group
1.2ExerciseVerify Excel classification and aggregation totals
1.2ExerciseCalculate six descriptive statistics
1.3DemonstrationPrompt builder
1.3ExerciseClassify nine AI capability boundaries
1.4ExerciseCorrect four errors in an AI conclusion

Data sources: S1_online_orders.xlsx (11,121 order values) and S1_Height and Weight.xlsx (1,587 athletes). All reference values in the exercises and demonstrations are computed in real time from data embedded in the page.

The diagrams on this page—the textbook cover, four levels of analytics, AI family, traditional programming versus machine learning, deep-learning layers, tokenisation, embedding space, next-token prediction, agent workflow and chat window—are drawn as vectors and remain sharp when enlarged.

Unit Glossary (English–Chinese)

English中文
Descriptive statistics描述性统计
Mean均值
Median中位数
Standard deviation标准差
Interquartile range (IQR)四分位距
Skewness偏度
Large language model (LLM)大语言模型
Token词元
Embedding向量表示
Prompt engineering提示词工程
Hallucination幻觉