learntodriveai.dev/Data Science/First Prediction Model
Data ScienceProject 026 unitsVerified on 16 October 2026

First Prediction Model

Wanjiku MuthoniOwner and Head Veterinarian · Veterinary clinic · Nairobi, Kenya
Email · from Wanjiku
But here's the thing: knowing that vaccination follow-ups have the worst no-show rate doesn't help me with tomorrow's schedule. I'm looking at 30 appointments and I want to know which ones are likely to be empty.
Chat with Wanjiku

What you hand back

  • A no-show prediction model
  • A ranked list of risky appointments
  • A plain-language accuracy summary
  • A comparison against a naive baseline
  • A decision record with re-run guidance

6 units

  1. Unit 1: The follow-up

    Set up the project, read Wanjiku's follow-up email, and reply as the question shifts to prediction.

    Open unit 1
  2. Unit 2: Clean the data

    Load the extended dataset, find the missing values, decide how to clean them, and document the preparation.

    Open unit 2
  3. Unit 3: Build the prediction model

    Plan and fit the first model, then catch inflated accuracy and re-split the data by time.

    Open unit 3
  4. Unit 4: Evaluate and interpret

    Compare the model against a naive baseline, read the coefficients, and check the residuals.

    Open unit 4
  5. Unit 5: Communicate to Wanjiku

    Generate the ranked appointment list, write the client summary, and review the translation for errors.

    Open unit 5
  6. Unit 6: Deliver and close

    Send the deliverables, answer Wanjiku's accuracy questions, and write the decision record.

    Open unit 6
Read the full brief

Same Nairobi veterinary clinic, new question. This time you predict which appointments are likely to be no-shows so the team can send extra reminders or double-book the risky slots.

The discipline skills: preparing data for regression with scikit-learn, building and evaluating a prediction model, comparing model performance against a naive baseline, and translating model accuracy into language the client can use.

The AI-direction lesson: you write your own prompts this time, and the size of each request matters. "Do the entire analysis" produces worse results than focused, sequential steps. AI also has a default that will inflate your model's accuracy -- random train/test splitting on data with a time dimension. The targets on the unit pages will help you catch it, but the skill is learning to question AI's structural choices, not just its numerical output.

Your Role

You direct AI through a structured prediction pipeline: prepare the data, build the model, evaluate it honestly, and translate the results into something the clinic can use. The materials tell you what to do at each stage, but not exactly how to tell AI to do it.

What's New

Last time, everything was provided: an analysis specification, verification targets, suggested prompts, a report template. You checked AI's output against expected values and caught a wrong denominator.

This time, the suggested prompts and the step-by-step specification are gone. You have a project plan that structures the work into stages, and targets on each unit page that tell you what honest results look like. The targets live on the unit pages, not in the materials folder: Claude works from the materials, you check its output against the targets. The rest is you directing AI through each stage.

The hard part is not the model. It is catching the moment when the model looks more accurate than it should. AI has a default that produces impressive-looking results on this kind of data. The unit-page targets will help you spot it.

Tools

  • Python 3.11+ via your conda "ds" environment
  • Jupyter Notebook for the analysis
  • pandas for data handling
  • scikit-learn for modeling and evaluation (new this project)
  • matplotlib / seaborn for visualization
  • Claude Code as the AI you direct
  • Git / GitHub for version control

Materials

You receive:

  • The extended dataset: 21 months of appointment records (~9,500 rows)
  • A data dictionary describing every column
  • A project plan that structures the prediction pipeline
  • A project governance file (CLAUDE.md) for Claude Code

Less than last time. No analysis specification, no suggested prompts, no report template. The project plan tells you the stages. The unit pages tell you what to check. You direct the work.

Materials · 6 files
Start Project 2

You work at a computer with a terminal. Signed in, your place is saved.