◢◤ ARKANE_
SYS_TIME UTC+0
Work with me
/W01

实验Lab: Frame three problems

week 1
Dataset
None. Three short scenarios on this page
Time
2 hours

This week you'll be able to

  • Place a technique in the history of the field: rules, statistics, machine learning, deep learning.
  • Turn a vague business ask into an ML problem statement with a target, a prediction point, and a decision.
  • Write down the cost of a false positive and a false negative, and use them to set a success criterion.
  • Set up Python, Jupyter, and the companion notebooks, and run one end to end.

Goal

Turn three vague requests into ML problem statements you could hand to a team. No code this week, apart from checking your setup.

Before you start

Follow the setup guide. Run the Chapter 1 notebook top to bottom. If it runs, you're ready for the semester.

The scenarios

A. A gym chain. "Members keep leaving. We want to use AI to keep them." They have 18 months of membership records, class bookings, and door swipes. A retention call costs £8. A member who stays is worth about £30 a month.

B. A city council. "We want to predict potholes before people complain." They have five years of repair records, road types, traffic counts, and weather. A survey visit costs £60. A pothole repaired after a complaint costs £400, plus the risk of a claim.

C. An online grocer. "We want better stock levels." They have two years of daily sales per product and store, promotions, and delivery schedules. Unsold fresh stock is thrown away. A stock-out loses the sale and sometimes the customer.

Tasks

  1. For each scenario, fill in every field of the problem statement template (Procedure 2.1, Appendix A). A blank field means the framing isn't finished.
  2. Name the label for each one, using Procedure 2.2. Say what event, over what time window, per what unit, and how you'd know it happened.
  3. Say what kind of problem each is: binary classification, multi-class, regression, ranking, or forecasting.
  4. Write down the cost of a false positive and a false negative for A and B. Use the numbers given. Say which mistake is worse and what that means for the threshold (Procedure 2.4).
  5. Apply Procedure 2.3. Could a simple rule do the job for any of the three? Write the rule you'd try first.
  6. List three features you'd want for scenario A. Check each one for leakage with Procedure 2.5.

Deliverable

One page per scenario: the completed template, the label, the problem type, the error costs, and a one-line baseline rule.

Done when

  • Every template field is filled in for all three.
  • Each label has an event, a window, and a unit.
  • The A and B cost tables have numbers, not words.
  • At least one feature is rejected for leakage, with the reason.

Stretch

Run a 10-minute pre-mortem on scenario A (Procedure 10.2). Assume the project failed after six months. Write the three most likely reasons.

online /teaching/semester-1/labs/1 Newcastle, UK v0.1.0 // rss