Cheeseburger-snarfing diet gurus
How science behaves
Law or aphorism
Introductory
When we teach, we don’t practice what we preach.
What it is
Picture a diet guru eating cheeseburgers between lectures. Statisticians teach students to randomize, measure carefully, use control groups and be skeptical of anecdotes. Then they evaluate their own teaching with end-of-semester satisfaction surveys, gut feelings and before-and-after impressions with no comparison group. When it comes to teaching, we don’t practice what we preach.
Why it matters
Teaching innovations get adopted on the strength of enthusiasm and student ratings, which mostly measure how much students liked the class, not how much they learned. Instructors who introduce a new method are often enthusiastic, and enthusiasm raises ratings whatever the method’s effect. The result is a body of educational “best practice” built on exactly the kind of evidence statisticians tell everyone else to distrust.
How it works
A toy model. A teaching innovation has a small true effect on learning. Its novelty and the instructor’s enthusiasm have a large effect on student satisfaction. The guru’s evaluation compares satisfaction before and after. A proper evaluation randomizes sections and measures learning on a common pre/post test. The two can disagree about whether the innovation works, and about how well.
Simulated example
Compare how a teaching innovation looks under the guru’s evaluation and under the evaluation statisticians would demand of anyone else.
Show simulation code
The R version uses base R, and the Python version uses NumPy and Matplotlib. Where the simulation draws random numbers, each language draws its own, so exact numbers differ slightly but show the same pattern. The numbered markers in the R code are explained under it.
import {rng, range, mean, sd, fmt} from "../js/stats.js"
viewof learnEffect = Inputs.range([-0.3, 0.5], {value: 0.05, step: 0.05, label: "True effect on learning (sd units)"})
viewof enthusiasm = Inputs.range([0, 1.5], {value: 0.8, step: 0.05, label: "Novelty/enthusiasm boost to ratings"})
viewof seed = Inputs.range([1, 500], {value: 91, step: 1, label: "Random seed"})
teaching = {
const r = rng(seed);
const sections = range(20).map(k => {
const treated = k % 2 === 0, inst = r.normal(0, 0.3);
const students = range(40).map(() => {
const pre = r.normal(), post = pre * 0.6 + inst + (treated ? learnEffect : 0) + r.normal(0, 0.8);
const rating = 3.5 + inst + (treated ? enthusiasm : 0) * 0.5 + r.normal(0, 0.6);
return {pre, post, rating};
});
return {treated, gain: mean(students.map(s => s.post - 0.6 * s.pre)), rating: mean(students.map(s => s.rating))};
});
const diff = k => mean(sections.filter(s => s.treated).map(s => s[k])) - mean(sections.filter(s => !s.treated).map(s => s[k]));
const se = k => Math.sqrt(sd(sections.filter(s => s.treated).map(s => s[k])) ** 2 / 10 + sd(sections.filter(s => !s.treated).map(s => s[k])) ** 2 / 10);
return {sections, ratingDiff: diff("rating"), ratingSe: se("rating"), learnDiff: diff("gain"), learnSe: se("gain")};
}
Plot.plot({
ariaLabel: "Cheeseburger-snarfing diet gurus: simulation chart",
ariaDescription: "Horizontal axis: Section's average learning gain (adjusted for pre-test). Vertical axis: Section's average satisfaction rating. The chart updates with the controls above it, and the summary below the charts states the result in words.",
height: 280,
grid: true,
x: {label: "Section's average learning gain (adjusted for pre-test)"},
y: {label: "Section's average satisfaction rating"},
color: {legend: true, domain: ["New method", "Old method"], range: ["#d6604d", "#2166ac"]},
marks: [Plot.dot(teaching.sections, {x: "gain", y: "rating", fill: d => d.treated ? "New method" : "Old method", r: 6})]
})# Cheeseburger-snarfing diet gurus: evaluating teaching by ratings.
1learn_effect <- 0.05 # true effect on learning (sd units)
enthusiasm <- 0.8 # novelty/enthusiasm boost to ratings
2set.seed(95)
3sections <- t(sapply(1:20, function(k) {
treated <- k %% 2 == 1
inst <- rnorm(1, 0, 0.3) # instructor effect
pre <- rnorm(40)
post <- 0.6 * pre + inst + treated * learn_effect + rnorm(40, 0, 0.8)
4 rating <- 3.5 + inst + treated * enthusiasm * 0.5 + rnorm(40, 0, 0.6)
c(treated = treated, gain = mean(post - 0.6 * pre), rating = mean(rating))
}))
5compare <- function(v) {
a <- v[sections[, "treated"] == 1]
b <- v[sections[, "treated"] == 0]
c(diff = mean(a) - mean(b), se = sqrt(var(a) / 10 + var(b) / 10))
}
rating <- compare(sections[, "rating"])
learning <- compare(sections[, "gain"])
cat(
"Ratings up by", round(rating["diff"], 2), "points (se",
round(rating["se"], 2), ")\n"
)
cat(
"Effect on learning:", round(learning["diff"], 2), "sd (se",
round(learning["se"], 2), "); true effect", learn_effect, "\n"
)
6plot(sections[, "gain"], sections[, "rating"],
pch = 19,
col = ifelse(sections[, "treated"] == 1, "#d6604d", "#2166ac"),
xlab = "Learning gain (section average)",
ylab = "Student rating (section average)"
)
legend("topleft", c("New method", "Old method"),
pch = 19,
col = c("#d6604d", "#2166ac"), bty = "n"
)- 1
- The page’s controls: the new method’s true effect on learning, and how much novelty and enthusiasm lift the ratings.
- 2
- Fixes the random numbers so the run is reproducible.
- 3
- Twenty course sections, alternating between the new and the old method, each with an instructor effect, a pre-test and a post-test.
- 4
- Student ratings respond to the instructor and to enthusiasm, not to what was learned.
- 5
- The treated-minus-control difference and its standard error, for ratings and for learning gains.
- 6
- Each section’s rating against its learning gain. The new method wins on ratings and does nothing for learning.
# Cheeseburger-snarfing diet gurus: evaluating teaching by ratings.
import numpy as np
import matplotlib.pyplot as plt
learn_effect = 0.05 # true effect on learning (sd units)
enthusiasm = 0.8 # novelty/enthusiasm boost to ratings
rng = np.random.default_rng(91)
treated, gain, rating = [], [], []
for k in range(20):
t = k % 2 == 0
inst = rng.normal(0, 0.3) # instructor effect
pre = rng.normal(size=40)
post = 0.6 * pre + inst + t * learn_effect + rng.normal(0, 0.8, 40)
rate = 3.5 + inst + t * enthusiasm * 0.5 + rng.normal(0, 0.6, 40)
treated.append(t)
gain.append(np.mean(post - 0.6 * pre))
rating.append(rate.mean())
treated, gain, rating = map(np.array, (treated, gain, rating))
def compare(v):
a, b = v[treated], v[~treated]
se = np.sqrt(a.var(ddof=1) / 10 + b.var(ddof=1) / 10)
return a.mean() - b.mean(), se
r_diff, r_se = compare(rating)
l_diff, l_se = compare(gain)
print(f"Ratings up by {r_diff:.2f} points (se {r_se:.2f})")
print(f"Effect on learning: {l_diff:.2f} sd (se {l_se:.2f}); "
f"true effect {learn_effect}")
plt.scatter(gain[treated], rating[treated], color="#d6604d",
label="New method")
plt.scatter(gain[~treated], rating[~treated], color="#2166ac",
label="Old method")
plt.xlabel("Learning gain (section average)")
plt.ylabel("Student rating (section average)")
plt.legend()
plt.show()Key takeaways
- Apply to our own teaching the standards of evidence we teach.
- Satisfaction ratings measure enjoyment and enthusiasm, not learning.
- Randomize sections and measure learning directly when evaluating teaching changes.
Source
- Andrew Gelman, Ethics and statistics column, Chance.