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.
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?
Pick one question you would like to answer with data — from your own background, a Spark pitch, 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.
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? |
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–13 |
| Compress / de-noise / visualize high-dimensional data | SVD, PCA, t-SNE | 14–15 |
| Ask “did X cause Y?” | causal graphs, effect estimation | 16, 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