← Advanced Data Science
TopBottomDownload Notebook

Week 8 · Hands-on foundations

PBL Tutorial: From Question to Evidence

How can a group turn an interesting topic into a feasible and evidence-based data science project?

The current Advanced Data Science materials devote Week 8 to PBL instructions and a worked diabetes project, and schedule the first presentation in Week 10. Intermediate Data Science uses the same two-week preparation interval. This tutorial keeps that familiar structure while reducing the worked example to a reusable path: question, data, exploration, baseline, neural comparison, held-out evidence, and limitations.

This chapter condenses materials taught in the 2023–2025 Advanced Data Science course into a smaller core path. Optional depth remains available in the companion notebook.

By the end

  • Turn a topic into one answerable prediction question.
  • Create a data, split, baseline, and evaluation plan before building a large model.
  • Use a compact MLP as a justified comparison rather than a default answer.
  • Assign contributions and prepare an evidence-centered presentation for Week 10.

Low floor

Use the explorer and three short Python examples before changing a longer model.

High ceiling

Add one ablation or three-seed comparison that tests whether the apparent improvement is stable and attributable to the proposed model change.

Core ideas

Three concepts to keep

Question before model

A project begins with a population, outcome, and intended use. A model name is not a research question. The group should be able to state what will be predicted, for whom, with which available information, and why the result matters.

Evidence spine

A credible project connects provenance, exploratory analysis, a simple baseline, a valid split, a comparable neural model, held-out results, representative failures, and limitations. Removing one link weakens the claim.

Shared but accountable work

Group members may specialize, but every member must understand the complete question-to-evidence path. The presentation should identify contributions without exposing private personal details on the public course page.

Mathematical intuition

One relationship worth keeping

\[\mathrm{project\ claim}=\mathrm{question}+\mathrm{data}+\mathrm{baseline}+\mathrm{held\!\!\text{-}out\ evidence}+\mathrm{limitations}\]

This is a planning relationship, not a numerical scoring formula. It reminds a group that a more complex model cannot compensate for an unclear question, invalid split, or missing limitation.

Stretch: read the symbols slowly

Identify the input, learned quantity, output, and aggregation. Re-create the relationship with a tiny hand-checkable example before using a library layer.

Interactive explorer

Change one assumption at a time

Predict the direction of change before moving a control.

Current evidence
Interpretation

Change a control to inspect the relationship.

Hands-on path

A reusable five-step routine

  1. 1. Write one sentence naming the prediction target, observation unit, intended use, and non-use.
  2. 2. Inspect provenance, missingness, target availability, and ethical limits before modeling.
  3. 3. Freeze train, validation, and test roles; fit a transparent baseline first.
  4. 4. Add one compact neural model and compare it under the same evidence contract.
  5. 5. Build the presentation around claims, held-out evidence, failures, limitations, and member accountability.

Minimal Python

Predict, run, and explain

Each example is independent. Explain its output before copying it into a larger workflow.

Freeze a three-way split

rows = 120
train = int(rows * 0.70)
validation = int(rows * 0.15)
test = rows - train - validation
print(train, validation, test)
output

Predict the result, then click Run.

Measure improvement over a baseline

baseline_mse = 1.00
neural_mse = 0.72
relative_reduction = (baseline_mse - neural_mse) / baseline_mse
print(round(relative_reduction, 2))
output

Predict the result, then click Run.

Find a missing evidence part

parts = {'question':1, 'data':1, 'baseline':1, 'held_out':1, 'failures':1, 'limitations':0}
missing = sorted(name for name, ready in parts.items() if not ready)
print(sum(parts.values()), len(parts), missing)
output

Predict the result, then click Run.

Failure checks

What can look correct while being wrong?

Model-first project

What goes wrong: The group chooses an architecture before defining a feasible question.

Check: Ask whether the target, observation unit, intended use, and baseline fit in one sentence.

Test-set rehearsal

What goes wrong: The final test set is repeatedly used to choose preprocessing or architecture.

Check: Keep the test set closed until the model and decision rule are frozen.

Many outputs, no claim

What goes wrong: The notebook contains figures and metrics but the presentation never states what they support.

Check: Require every main slide to connect one claim to one visible piece of evidence and one limitation.

Check your understanding

Ten questions with standard answers

Answer in your own words before opening each panel.

1. How can a group turn an interesting topic into a feasible and evidence-based data science project?

Standard answer: A strong answer connects the central idea to a visible computation and a held-out or shape-based check. This tutorial keeps that familiar structure while reducing the worked example to a reusable path: question, data, exploration, baseline, neural comparison, held-out evidence, and limitations.

2. What does question before model mean here?

Standard answer: A project begins with a population, outcome, and intended use. A model name is not a research question. The group should be able to state what will be predicted, for whom, with which available information, and why the result matters.

3. Why is evidence spine useful?

Standard answer: A credible project connects provenance, exploratory analysis, a simple baseline, a valid split, a comparable neural model, held-out results, representative failures, and limitations. Removing one link weakens the claim.

4. How should you interpret shared but accountable work?

Standard answer: Group members may specialize, but every member must understand the complete question-to-evidence path. The presentation should identify contributions without exposing private personal details on the public course page.

5. What does the main equation clarify—and what does it not prove?

Standard answer: This is a planning relationship, not a numerical scoring formula. It reminds a group that a more complex model cannot compensate for an unclear question, invalid split, or missing limitation. It does not by itself prove useful behavior on unseen intended-use cases.

6. What should change when you move the explorer controls?

Standard answer: The visible calculation and interpretation should change together. Predict the direction first, then use the result to correct your mental model.

7. What is the first hands-on check you should perform?

Standard answer: Write one sentence naming the prediction target, observation unit, intended use, and non-use.

8. How can you detect the failure called “Model-first project”?

Standard answer: Ask whether the target, observation unit, intended use, and baseline fit in one sentence.

9. What evidence should be recorded before making a claim?

Standard answer: Record data and split assumptions, input/output shapes, settings, the baseline, held-out metrics, representative failures, and the decision supported by that evidence.

10. How does this week prepare the next topic?

Standard answer: Week 9 adds convolution and a compact CNN workflow. Week 10 is reserved entirely for the first PBL presentations, two weeks after this tutorial.

Terminology

Glossary

Research question
Specific answerable question connecting population, inputs, target, and purpose.
Observation unit
Entity represented by one row, image, sequence, or case.
Provenance
Traceable origin and transformation history of data.
Baseline
Simple comparison that a more complex model must justify exceeding.
Validation set
Data used for model and threshold choices.
Test set
Held-out data used once for a final estimate.
Leakage
Information entering training that would not be available at prediction time.
Ablation
Comparison that removes or changes one component to test its contribution.
Limitation
Boundary on what the evidence supports.
Contribution record
Concise account of each member's work and understanding.

Go further

Key references

Next: Week 9 adds convolution and a compact CNN workflow. Week 10 is reserved entirely for the first PBL presentations, two weeks after this tutorial.