DS701 Session 2 — Wed Sep 9, 2026
List the six question types from the lecture’s taxonomy (Leek & Peng), in order from least to most demanding, and for any three of them say in a few words what that type of question asks.
Answer: descriptive → exploratory → inferential → predictive → causal → mechanistic.
| Type | Asks |
|---|---|
| Descriptive | What does the data say, summarized? |
| Exploratory | What patterns are worth a closer look? |
| Inferential | Does the pattern hold beyond this sample? |
| Predictive | What will happen for a new case? |
| Causal | What happens if we intervene? |
| Mechanistic | Exactly how does the effect operate? |
A team builds a churn model with excellent held-out accuracy and notices that customers who received a discount rarely churn. They recommend launching the discount to everyone. Which question type was asked, which was answered, and why does the model’s accuracy not settle the matter?
Answer:
Pick one question you would like to answer with data — from your own background, or anything you are curious about. State the question in one sentence, classify it using the taxonomy, and name the row of the lecture’s techniques map (“You want to… / Technique”) you would reach for first, with one sentence on why that row fits.
No single answer — but here is the shape of a good one:
Data science is the discipline of drawing defensible conclusions and making decisions from data, combining statistical reasoning, computation, and domain understanding.
Drop one and the result has a name: stats without computation is small; computation without stats is confident nonsense; both without domain understanding is a solution in search of a question.
Before choosing a technique, classify what kind of question you are asking (after Leek & Peng, Science 2015):
| Question type | Asks | Example |
|---|---|---|
| Descriptive | What does the data say, summarized? | Average ride time by hour |
| Exploratory | What patterns are worth a closer look? | Riders cluster into commuter/leisure groups |
| Inferential | Does the pattern hold beyond this sample? | Do commuters in general ride longer in rain? |
| Predictive | What will happen for a new case? | Will this user churn next month? |
| Causal | What happens if we intervene? | Does the discount cause retention? |
| Mechanistic | Exactly how does the effect operate? | Through which pathway does the drug act? |
1. Descriptive — summarize this dataset, without generalizing beyond it.
groupby and pivot tables — the Pandas half of today’s activity.2. Exploratory — find structure worth a closer look; generate hypotheses.
3. Inferential — does the pattern hold beyond this sample?
4. Predictive — minimize error on unseen cases; accuracy, not explanation.
5. Causal — effect of an intervention, with confounding controlled.
6. Mechanistic — the exact process and equations driving the system.

Every project cycles through roughly six stages — rarely in a straight line:
Stage 3 is what the second half of today’s activity practices: read, inspect, filter, group, plot — in Pandas.
| You want to… | Technique | Sessions |
|---|---|---|
| Group similar things, no labels | k-means, hierarchical, GMM | 4–7 |
| Say how alike two things are | distance & similarity measures | 3 |
| Predict a category | trees & random forests, k-NN, logistic regression | 9–13 |
| Predict a number | linear regression + regularization | 12–14 |
| Compress / de-noise / visualize high-dimensional data | SVD, PCA, t-SNE | 15–16 |
| Ask “did X cause Y?” | causal graphs, effect estimation | 18 |
| Learn from raw signal (images, text) | neural networks | 19–20 |
| Work with language | NLP pipeline, embeddings | 21 |
| Recommend items to users | matrix-factorization recommenders | 22 |
| Reason about connected data | graph analysis, centrality, communities | 23–24 |
Each row answers a type of question. In the last session of the semester you fill in a blank copy from memory, with one sentence per row on why — a rehearsal for every data science interview you will sit.
Goal: (core) classify ten short scenarios by question type and spot a type error; (stretch) load a small real dataset (Titanic passengers) in Pandas and walk the clean-and-explore stage — read, inspect, filter, groupby, plot — then say which question type your groupby result actually answers.
pandas, numpy, matplotlib only.The activity notebook goes live on the day of the lecture. Colab is optional — you can also open it on GitHub and run it locally.
Full lecture notes: What is Data Science?
groupby, plotting