How to choose when one objective is not enough: screen the options, put the criteria on one scale, derive weights from pairwise judgments, rank with a weighted sum and with TOPSIS, and find how far the weights can move before the answer changes. Then the questions every analyst should answer about a model: its limits, the personal data it uses, whether its decisions treat groups differently, and how AI was used.
Slides¶
Present full screen Download the PDF
Click or tap the slide to move forward, its left edge to go back; the arrow keys work too.
Reading¶
Multi-Criteria Decisions and Responsible Analytics has two parts. The first helps Qahwa House choose a green-coffee importer on five criteria. Cost alone picks Santos Bulk, but with the board’s AHP weights both the weighted sum and TOPSIS pick Red Sea Traders. The margin is thin: if sustainability weighed about 14% instead of 8%, Jazan Highlands would win. The second part revisits Week 7’s voucher model branch by branch, then covers personal data, documenting a recommendation, generative AI, and a checklist for your capstone.
Lab 15: Choosing with Several Criteria (AHP and TOPSIS)¶
Which importer should Qahwa House sign with for the next two years, and how sure can the board be? You drop the dominated importer and compute the board’s AHP weights and their consistency ratio. You then find the circle in a second, inconsistent set of judgments, rank the importers with a weighted sum and with TOPSIS, and find the weight at which the winner changes. The last part applies the responsible-analytics checklist to your own capstone.
Open the lab, then use its Open in Colab button.
Data: qahwa
_supplier _criteria .csv (5 importers, 5 criteria). The ★ challenge on vouchers also reads Week 7’s qahwa_members_2025.csv. The notebook downloads both by itself.Lab 15 is not graded (lab marks count the best 12 of Labs 1 to 14), and this week’s lab session holds the capstone defences, so do it on your own before your team’s slot: its Part E is your defence rehearsal. The solutions are for checking your work.
Capstone demos and oral defences¶
This week’s lab session is given to the capstone defences, which count for 15% of the course grade (see the syllabus, Capstone project). Each team brings:
its Streamlit app, which helps a named manager make one decision and combines a data layer, a predictive part, a decision model (optimization, simulation, decision tree or multi-criteria) and what-if controls;
its two-page recommendation memo, structured as in Section 10 of the reading.
The defence is a 10-minute oral session per team, with individual questions: every member must be able to explain every part of the app and the memo. AI assistants are not allowed during the defence. A good way to prepare is to answer the ten questions of the checklist in Lab 15, Part E, together, with a number wherever one fits, and to rehearse the one sentence that says what the manager should do.
After this course¶
Capstone: final app, memo and oral defence this week; the final exam follows in the exam period.
Keep the notebooks. Every lab is a template you can reuse at work: cleaning and describing data (Weeks 2–4), prediction (5–8), optimization (9–12), and deciding under uncertainty (13–15).
To go further, all free online:
Hyndman and Athanasopoulos, Forecasting: Principles and Practice, for forecasting;
VanderPlas, Python Data Science Handbook, for pandas, NumPy and scikit-learn;
the PuLP documentation and the Streamlit documentation, for optimization models and decision apps;
the Probability and Statistics textbook on this site, to strengthen the foundations of Weeks 5–8.