Research Methods — Week 8
You can now test hypotheses, compare groups, and quantify effect sizes.
This week: models.
A model is a simplified story about how the world works. The question is always: how much does it capture, and what does it leave out?
Submit questions anonymously:
PollEv.com/geol
text geol to 07480 781235
🎓💻 Concept block 1
A deliberate simplification that captures some features of reality and ignores others.
Every statistical test you’ve run contains an implicit model.
The t-test models data as two normal distributions with equal variance.
Now we make the model explicit.
\[y = \beta_0 + \beta_1 x + \varepsilon\]
“y increases by β₁ for every one-unit increase in x, plus noise.”
That’s the whole model. It’s powerful — and limited.
🖥️ Switching to WebR
| Element | Meaning |
|---|---|
| Intercept (β₀) | Predicted y when x = 0 |
| Slope (β₁) | Change in y per unit change in x |
| R² | Proportion of variance explained |
| p-value (slope) | Is the slope distinguishable from zero? |
✏️💻 Exercise 1
Solar panel output vs temperature — counterintuitive.
lm()Is the relationship linear? Does the model capture the pattern?
🎓 Concept block 2
Four plots, two that matter most:
| Plot | What to look for |
|---|---|
| Residuals vs Fitted | Pattern = non-linearity or heteroscedasticity |
| QQ plot | Departures from the line = non-normal residuals |
✏️💬 Exercise 2
HolmesCo
“Geological Solutions Since 2019”
Groundwater Analysis Report
Linear model: groundwater level ~ rainfall. R² = 0.45.
“Rainfall is the dominant control on groundwater levels.”
Now look at the diagnostic plots…
🎓💬 Concept block 3
A model that fits the training data perfectly but fails on new data.
It’s memorised the noise.
🖥️ Live demo
Fit a degree-15 polynomial to 20 data points. It goes through every point but oscillates wildly between them.
Compare to the straight line: fits worse, predicts better.
More complex ≠ more useful.
A model that works within the observed range but breaks down outside it.
Example: UK solar capacity has grown roughly exponentially since 2010. Extrapolate to 2050 → solar exceeds the entire UK grid.
What’s the model not capturing?
Planning constraints, grid limits, diminishing suitable sites.
HolmesCo
“Geological Solutions Since 2019”
“Our linear trend in groundwater decline predicts the aquifer will be empty by 2028.”
They didn’t account for seasonal recharge or the fact that the decline was caused by temporary pumping.
Things the model structurally cannot represent.
You can only fix a blind spot if you know it’s there.
Overfitting: too much faith in your data.
Extrapolation: too much faith in your model.
Blind spots: too much faith in your framework.
✏️ One sentence
“In my project, the biggest thing my analysis might be missing is…”
Application session: “Fitting and breaking models”
You’ll fit models to your data — and deliberately try to break them.