ΨPsychology, Built

Act XI · The Graduate Toolkit

Part 50 of 62

The Weight of Evidence

Researchstarts at this level27 min of film17 chaptersprerequisites: Part 4, Part 43, Part 49

What does a whole literature say, and can it be trusted to say it?

In 2008 Erick Turner and colleagues compared 74 registered antidepressant trials with what the journals printed: about half positive against nearly all. The part builds the mathematics of a filtered literature on simulated literatures with a known truth: fixed and random effects and the prediction interval, moderators that hide, funnels and Egger's test, five corrections that each fail somewhere, meta-analyses that run about three times the replications, registered reports, GRIM, SPRITE and statcheck, fabricated mileage detected, specification curves, Meehl's paradox, and the series' own Ledger audited.

What you need. Part 4's crisis, Part 43's replications and Part 49's analytic variability; weighted least squares and maximum likelihood.

Hook
94% positive, 51% registered
Ideas, models and mathematics
meta-analysis, heterogeneity, bias detection and correction, registered reports, multi-site replications, forensic statistics, the multiverse, many analysts, the theory crisis
Psyche gains
psyche.meta; the Ledger audited
On you
GRIM: catch an impossible mean

What you will be able to do

Psych 101 and the major

  • Explain why the published studies on a question can overstate its effect, and what a funnel plot shows.
  • Check a reported mean by GRIM and a reported p-value against its test statistic.

Graduate

  • Pool studies by random effects with a prediction interval, and test a moderator by meta-regression.
  • Run several corrections for selective publication and report their disagreement as uncertainty.

Research

  • Plan a meta-analysis of a literature suspected of selective publication, from registries to sensitivity analyses.

Practice

  • Weigh a vendor's or a guideline's evidence by asking how many studies were run, not only how many were shown.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Psych 101 and the major 11 min · Graduate 12 min · Research 27 min · Practice 12 min.

  1. 0Two piles of trialsPsych 101 and the major2 min
  2. 1On you: a mean that cannot be, and four numbersPsych 101 and the major1 min
  3. 2Combining studiesResearch2 min
  4. 3ModeratorsResearch1 min
  5. 4Seeing the filterPsych 101 and the major2 min
  6. 5Correcting for itResearch2 min
  7. 6Meta-analyses against replicationsResearch1 min
  8. 7Designs that remove the filterResearch1 min
  9. 8Forensic statisticsPsych 101 and the major2 min
  10. 9Fabrication, detectedResearch1 min
  11. 10Many analysts, one datasetResearch1 min
  12. 11The theory crisisResearch2 min
  13. 12The Ledger, auditedResearch2 min
  14. 13The LedgerResearch1 min
  15. 14In practice: reviews, vendors and file drawersPractice1 min
  16. 15Frontier: rates, robots and incentivesResearch1 min
  17. Recap, problems, and the road aheadAll tracks3 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.

Two piles of trialsPsych 101 and the major2 min

In 2008 Erick Turner and colleagues put two piles side by side. In one, the seventy-four antidepressant trials registered with the US regulator. In the other, what the journals printed. By the regulator's reading, about half the trials were positive. Nearly all of those were published. Most of the others were not published at all, or were written up as if they were positive. So in the journals, almost every trial looked positive, and the average effect looked about a third larger than it was. The drugs weren't useless. The literature was filtered.

Psyche can build the same two piles. Seventy-four trials of a drug with a real, modest effect. Every positive trial is published, and about a third of the others. On the left, all seventy-four, about half of them positive. On the right, the fifty-one that were published, three in four of them positive. Pool all the trials, and the effect comes out at about zero point three one. Pool only the published ones, and it's about zero point three seven. Nothing was faked. The filter alone did it.

So this part asks what a whole literature says, and whether it can be trusted to say it. Combining studies, and the moderators they hide. Seeing the filter, and correcting for it. Designs that remove the filter, and forensics that catch numbers that can't be. Many analysts, weak theories, and the series' own Ledger, audited with its own tools.

This is Part 50 of Psychology, Built: the weight of evidence. We'll combine studies by fixed and random effects, and draw prediction intervals. We'll see why moderators hide. We'll read funnel plots, and run every correction method on literatures where the truth is known. We'll see what registered reports remove. We'll test reported numbers with GRIM, SPRITE and statcheck, and see how fabricated data were caught. And we'll draw a specification curve, meet Meehl's paradox, and audit the Ledger with its own tools.

What it does: Turner's two piles; the filter simulated; the question; objectives

1On you: a mean that cannot be, and four numbersPsych 101 and the major1 min

First, a test you can do in your head. Twenty-eight people each give a whole number from one to seven. So the total is a whole number, and the mean is that total divided by twenty-eight. A total of a hundred and forty-five gives five point one eight. A hundred and forty-six gives five point two one. No total gives five point one nine. So a reported mean of five point one nine is impossible: a typo, an exclusion nobody mentioned, or worse. On the course site you can test five reported means yourself.

Now four numbers. One: twenty-eight people answer one question on a one-to-seven scale, and the paper reports a mean of five point one nine. Possible? Two: a drug's true effect is zero point two, and only significant trials, plus a few others, are published. What does a meta-analysis of the published trials find? Three: one dataset with a small true effect, and ninety-six defensible analyses. What share come out significant? And four: of the two hundred and sixty-three findings in this series' Ledger so far, what share failed or were retracted? Pause here, and write them down.

What it does: GRIM in your head; four predictions

2Combining studiesResearch2 min

There are two models of a literature. The fixed-effect model says every study estimates the same true effect, so each is weighted by its precision. The random-effects model says each study has its own true effect, spread with a standard deviation tau around a mean. With tau above zero, big studies count for less and small ones for more than under fixed weights, and I squared is the share of the variation that's real. Psychology's effects vary with samples, materials and labs, so random effects is the usual default. Statistics, Built derives both in its Part 25.

Here's a forest plot, built by hand. Fifteen simulated studies, each a square sized by its weight, with its interval. The random-effects mean is about zero point four one, with an interval from about zero point three to zero point five: the gold diamond. Tau is about zero point one seven, and I squared about half: half the spread between studies is real. And the red line is the prediction interval: where a new study's true effect is likely to fall. From almost nothing to nearly zero point eight.

Two intervals, two questions. The confidence interval is about the average effect across studies like these. The prediction interval is about the effect in the next study, or in your own setting. With real heterogeneity the second is much wider, and it's the one a practitioner needs. With few studies, use Hartung and Knapp's t-based interval, because the usual one is too narrow. And report tau, not only I squared. I squared depends on how precise the studies are. Tau is in the units of the effect.

What it does: Fixed and random effects; a forest plot by hand; which interval answers your question

3ModeratorsResearch1 min

When effects vary, ask why. A feature of each study, such as the age of its sample, the dose, or whether it ran online, becomes a predictor of its effect. It's a regression with studies as the cases, weighted by precision, with the leftover spread tau squared. But its cases are few, and its predictor wasn't randomized. Studies that differ in one feature differ in much else. So a moderator is a correlation across studies, like Part 47's between-person slope: a hypothesis to test by design.

And moderators hide. Make half the studies' true effect larger by zero point two, with other real variation besides. With twenty studies, the moderator is found less than a third of the time. With forty, a bit more than half. It takes about eighty studies for eighty percent power. So no moderator found, in a typical meta-analysis, says little. And a moderator found among many tried is Part 4's garden of forking paths again.

What it does: Meta-regression; moderators hide

4Seeing the filterPsych 101 and the major2 min

Here's what a filter looks like. Each dot is a study, placed by its effect and its standard error. Small studies sit high and spread wide. With no filter, the cloud is a symmetric funnel around the truth. The grey dots are every study that was run. The blue ones were published. The red line is where a study becomes significant, and the small studies to its left are missing. It's a funnel with a bite taken out of one side. The published small studies are the lucky ones.

Two tools read the bite. Egger's test regresses each study's effect on its standard error. A slope means small studies show bigger effects, and here it's clearly there. The intercept is the effect a study with no error at all would find. That's PET, and here it gives about zero point one three. The naive pooled estimate is about zero point four one, and the truth is zero point two. PEESE bends the line and gives about zero point three. PET-PEESE chooses between them by a rule. Neither is the truth exactly, and the next chapter asks how often any of them is.

But not every lopsided funnel is publication bias. Small studies may really have bigger effects: more intensive treatments, more select samples, better fidelity. Heterogeneity that happens to line up with study size makes the same slope. Some effect measures are linked to their own standard errors, which tilts the funnel by arithmetic. And with few studies, chance alone makes funnels lopsided. Asymmetry is a warning about small-study effects. Only registration shows the studies that are missing.

What it does: A funnel with a bite; Egger, PET and PEESE; other causes of asymmetry

5Correcting for itResearch2 min

Five families of correction. Trim-and-fill trims the studies that make the funnel lopsided, adds their mirror images, and pools again. PET-PEESE takes the effect at zero standard error, from the last chapter's regression. Selection models model the filter itself, the chance a non-significant study is published, and estimate it along with the effect. P-curve uses only the significant results, and asks what true effect makes their p-values look the way they do. And z-curve does the same while letting studies differ in power.

Psyche runs all of them on literatures where the truth is known. Fifty simulated literatures per row. Each cell is a method's average estimate, green when close to the truth and red when far. With no filter, at the bottom, everything works. With a filter, the naive estimate and trim-and-fill stay well above the truth. PET-PEESE is unbiased on average, but swings widely when there's nothing there. P-curve breaks when studies really differ: in the heterogeneous row it reports more than twice the truth. The selection model does best, but only because Psyche's filter is exactly the one it assumes. Real filters aren't so tidy.

So no method works everywhere. In 2019 Evan Carter and colleagues ran the same exercise across many kinds of simulated literature, and every method failed somewhere. Each correction assumes a particular filter. When the real one differs, so does the answer. Report several, and treat their disagreement as the honest uncertainty. The methods detect a problem better than they fix it. The fix is to stop filtering.

What it does: Five corrections; every method on every literature; no method works everywhere

6Meta-analyses against replicationsResearch1 min

What happens when the same effect is measured both ways? Psyche makes ten small true effects. For each, a filtered literature of sixty studies, and one replication with fifteen hundred people per group. Every dot sits above the diagonal. The meta-analyses average about two and a half times the replications. In 2020 Amanda Kvarven, Eirik Stromland and Magnus Johannesson found fifteen real effects with both a meta-analysis and a multi-site preregistered replication. The meta-analyses were about three times larger. Correction methods shrank the gap, but didn't close it, just as the last chapter predicts.

So a meta-analysis can be precise and wrong. Pooling more filtered studies narrows the interval around the wrong number. A meta-analysis can't be better than the literature it pools. A single large registered study can outweigh a hundred small unregistered ones. That's why the Ledger's records are mostly multi-site replications, not meta-analyses.

What it does: Ten effects measured twice; precise and wrong

7Designs that remove the filterResearch1 min

The filter can be prevented. A registered report is reviewed and accepted before the data exist. The question and the method are judged, and the paper is published whatever it finds. In 2021 Anne Scheel, Mitchell Schijen and Daniel Lakens compared them with standard articles. Ninety-six percent of standard articles supported their first hypothesis. Forty-four percent of registered reports did. That's Part 43's row. The gap is what filtering predicts, though registered reports may also ask riskier questions. For a literature, the cure is the denominator: every study that was run, visible.

Three more designs do the same. Trial registries: every clinical trial registered before it starts, with its outcome named. That's the pile Turner could count. Multi-site protocols: one protocol, many labs, and every result reported, as in Part 43. No lab can file its null away. And sequential designs: looks at the data planned in advance, with boundaries that keep the error rate. That's Part 4's peeking, made honest. Each works by making the decision to report independent of the result.

What it does: Registered reports; registries, multi-site protocols and sequential designs

8Forensic statisticsPsych 101 and the major2 min

The opening's test has a name. In 2017 Nick Brown and James Heathers called it GRIM: a mean of n whole-number answers must be a multiple of one over n, up to rounding. For small samples, many reported means simply can't occur. Here are five; two are impossible. They tested means in published articles and found many inconsistent, and some led to corrections and retractions. It needs only the mean, the sample size, and the scale.

GRIM checks a mean. SPRITE checks a mean and a standard deviation together. James Heathers and colleagues proposed searching for samples that fit the reported mean, standard deviation, sample size and scale. Psyche's search finds a sample of twenty for each of these pairs, so the numbers are possible. If no sample fits, or the only ones that do are absurd, with everyone answering one or seven, the numbers deserve a question. A reconstruction isn't the data. It shows what the data could have been.

A third check reads the statistics themselves. A reported t, its degrees of freedom, and its p have to agree. Here are six; one claims p below zero point zero five when the test gives about zero point zero eight. In 2016 Michele Nuijten and colleagues ran a program over more than a quarter of a million p-values from eight journals. About half of the articles had at least one inconsistency, and about one in eight had one that crossed zero point zero five. Most errors are small. The ones that cross the line lean towards significance.

What it does: GRIM; SPRITE; statcheck

9Fabrication, detectedResearch1 min

Sometimes the numbers are invented. A 2012 field study reported that signing an honesty pledge at the top of an insurance form, rather than the bottom, made customers report their mileage more honestly. In 2021 independent analysts looked at the posted data. The miles driven were spread evenly from zero to fifty thousand, with none above. Real driving piles up at moderate distances and thins out slowly, like the blue bars. Evenly spread numbers with a hard edge, like the red ones, are what a random-number generator makes. The paper was retracted, and a later large study found no effect of signing first.

What gives fabrication away? Distributions: too flat, too smooth, or with a hard edge where real data trail off. Digits: last digits that aren't evenly spread, or rounded values where measurements are exact. Results that are too good: effects too consistent across studies, or variances too similar for the sample sizes. And the file itself: spreadsheet history, fonts and sort orders that show rows added by hand. Every one of these needs the data. Open data is what makes fraud findable. Part 36's canvassing study was caught the same way.

What it does: Miles no one drives; what gives fabrication away

10Many analysts, one datasetResearch1 min

How much does the analyst matter? In 2018 Raphael Silberzahn, Eric Uhlmann and colleagues gave twenty-nine teams the same data and one question: are footballers with darker skin given more red cards by referees? The teams chose different models, covariates and exclusions. Their estimates ran from no effect to nearly three times the odds. About two thirds found a significant effect, and a third did not. The spread came from the analyses, like Part 49's seventy teams, with no one behaving badly.

The remedy is to show every analysis at once. One simulated dataset with a small true effect, and ninety-six defensible analyses: which covariates, which outlier rule, raw or logged. Sorted, the estimates run from almost nothing to about zero point two, and the gold ones are significant: about half. Sara Steegen and colleagues called this a multiverse, and Uri Simonsohn, Joseph Simmons and Leif Nelson the specification curve. Show the whole curve, not the one analysis you liked.

What it does: Twenty-nine teams and the red cards; a specification curve

11The theory crisisResearch2 min

Some argue the deepest problem was never statistics. Paul Meehl spent decades contrasting physics with what he called soft psychology. In physics a theory predicts a number, so better measurement makes the test harder, and the theory can fail it. In much of psychology a theory predicts only a direction, so better measurement makes the test easier. That's because in real data almost everything correlates with almost everything, a little. Meehl called it the crud factor. So a significant result in the predicted direction is weak evidence for a theory, however large the sample.

Here's Meehl's paradox, computed. In Psyche's world every pair of variables correlates a little, and a theory with no truth in it predicts a direction at random. With thirty people, about six percent of its predictions come out significant in the predicted direction. With ten thousand, about forty-four percent: approaching half, for a theory that knows nothing. Large samples cure noise, not weak theory.

What would stronger theories look like? They predict numbers, or at least shapes and orderings, that the data could contradict. That's Part 48's question: what does the model rule out? They're formal models, written as programs, so that predictions are derived rather than argued. They're tested by strong inference: two rival theories, and one experiment that one of them must fail. And they say what a claim covers: which people, stimuli and settings. The reforms of Part 4 make tests honest. Only better theories make them severe.

What it does: Meehl's paradox; confirmed by crud; stronger theories

12The Ledger, auditedResearch2 min

Now the series audits itself. Through Part 49 the Ledger holds two hundred and sixty-three findings. About two thirds held, counting those that held smaller or whose textbook story was wrong. About one in five is contested. And about one in seven failed or was retracted.

Where did the findings hold? By act, perception, learning and cognition held at eighty percent or more. Motivation, development, social and clinical psychology held about half, and hold most of the failures. And by the decade of the original study, findings from before 1960 held almost always, and findings from the 2000s about half.

Read the audit with this part's own tools. The Ledger isn't a random sample. It holds the findings a course would teach, the famous and the contested. Old findings have had a century to be tested, and forgotten if they failed. Survivorship flatters the past. Precise, repeatable measurements of perception and learning make strong tests. Effects that depend on context, studied in small samples, make weak ones. It's the same pattern the replication projects found: survival was predicted by sample size, effect size, and how surprising the claim was. Every row has its sources and the date it was checked, so the audit can be redone, and it should be.

What it does: 263 findings; where they held; reading the audit with the part's tools

13The LedgerResearch1 min

What the five have in common. All five are about the literature itself: what gets published, how it's pooled, how it's reported, and how well the field knows its own weak spots. The filter was visible only where a denominator existed: a registry, a multi-lab protocol, a full set of p-values. And the reformers' own work is held to the same standard. One row is a retraction. So here's the answer to this part's question. The weight of evidence is the weight of the studies that would have been seen whatever they found.

What it does: Five rows; what they have in common

14In practice: reviews, vendors and file drawersPractice1 min

Where is a literature weighed for a decision? In evidence reviews, medicine and policy pool trials by protocol: search everything, including registries and unpublished data, grade the certainty, and say why. In due diligence on a vendor's claim that something is proven by science: which studies, how many were run, who paid, and what the prediction interval says about your own setting. In guidelines, which should change when the pooled estimate shrinks, and often lag years behind their evidence. And in journalism, where one new study is one study, and the story is where it sits in the funnel.

Every organization has its own file drawer. A company runs hundreds of experiments a year. The ones that win are presented, and the rest are forgotten. That archive of winners is a filtered literature. Its average lift is inflated, exactly as in the opening. So keep every experiment, with its pre-stated metric and its result, in one searchable register. Then pool them, shrink the winners toward the base rate with Part 48's hierarchy, and test the biggest again before building on them. The denominator is the cure here too.

What it does: Where a literature is weighed; your own file drawer

15Frontier: rates, robots and incentivesResearch1 min

Three frontiers. Are replication rates rising? Larger samples and preregistration have spread since 2015. Whether newer findings replicate better is being measured, and isn't yet known. Automated checking: statcheck, GRIM and their successors now run at submission, and language models read papers for errors, with error rates of their own to measure. And incentives as evolution. In 2016 Paul Smaldino and Richard McElreath showed that if labs that publish more are imitated, methods that produce more false positives spread, without anyone cheating. Part 61 returns to it.

Open questions. Can a filtered literature ever be corrected after the fact, or only replaced? What share of a field's findings should be replicated, and which? How should a meta-analysis weigh a registered study against an unregistered one? And what would a literature look like if publication were always decided before the results?

What it does: Three frontiers; open questions

Recap, problems, and the road aheadAll tracks3 min

First, your four numbers. A mean of five point one nine from twenty-eight whole-number answers is impossible. A filtered literature with a true effect of zero point two pooled to about zero point four. About half of ninety-six defensible analyses came out significant. And about one in seven of the Ledger's rows failed or were retracted. A literature is evidence in proportion to how much of it would have been seen whatever it found.

Part fifty in twelve lines. The published pile isn't the pile of studies run. Fixed effects assume one truth, random effects a distribution, and the prediction interval answers the practitioner's question. Moderators hide, because meta-regression has few cases and no randomization. A filtered funnel has a bite taken out, read by Egger, PET and PEESE. Every correction method fails somewhere, and filtered meta-analyses run about three times the replications. Registered reports remove the filter. GRIM, SPRITE and statcheck test numbers without the data, and open data makes fabrication findable. With many analysts and one dataset, show the whole curve. And large samples cure noise, not weak theory.

Kant's wager. The first objection met pooling, correction and forensics, each tested on literatures where the truth was known. Green. The second met registered and multi-site designs: experiments on the way science itself is done. Green. And the third. The audit counts outcomes, not reports, but a field's beliefs still steer what it chooses to test. Amber.

Where this comes back. Every part of Act Twelve, psychology at work, judges its practices by this standard. Incentives and the science of science are Part 61. And the series ends with a dissertation that has to meet it, in Part 62.

Seven problems, with full solutions in this part's README. One pools three studies. One finds I squared. One draws a prediction interval. One applies GRIM. One recomputes a p-value. One decides what to report when PET and the naive estimate disagree. And the last, with the star, asks you to plan a meta-analysis of a literature you suspect is filtered. Pause here if you'd like to try them.

The books and papers behind this part are listed here and in the README. Borenstein and colleagues teach meta-analysis; Turner's paper is the clearest picture of a filter; and Meehl's essay of 1978 is still the sharpest argument about what a significant result can show.

The graduate toolkit is complete. Seven parts built the methods a researcher uses after the degree, and this one turned them on the literature itself. Act Twelve takes psychology to work: to cockpits and control rooms, products and offices, classrooms, courts and clinics. It begins where design meets the human limits of Acts Three to Six. Part 51: human factors.

Where it goes next. Act XII judges the practices of psychology at work by this standard (Parts 51 to 57); incentives and the science of science are Part 61; the dissertation of Part 62 has to meet it.

Key results

The part's results in one place, for revision.

Random-effects weight\(\displaystyle w_i = 1/(v_i + \hat\tau^2)\)
I-squared\(\displaystyle I^2 = (Q - (k-1))/Q\)
Prediction interval\(\displaystyle \hat\mu \pm t_{k-2}\sqrt{\hat\tau^2 + \mathrm{SE}^2}\)
GRIM\(\displaystyle \bar x \in \{\, t/n : t \in \mathbb{Z} \,\}\ \text{(to }\allowbreak \text{rounding)}\)

Try it

Lab 50 · The Weight of Evidence

Build a filtered literature with a known truth, pool it, see the filter in the funnel, try the corrections, and check reported numbers by arithmetic.

Figure produced by Lab 50: The Weight of Evidence
Produced by the lab below, seed 0, in 0.3 s.
python -m videos.psychology.labs 50 needs numpy, scipy, matplotlib · download lab50.py · source on GitHub
pooled: every study; the published                  0.19; 0.37 (92 studies)
trim-and-fill; PET-PEESE; selection model; p-curve  0.32; 0.15; 0.13; 0.17
Egger's test p                                      0.1158
GRIM: 5.19 from 28 answers possible?                False
t(30) = 1.80, reported p = .04: recomputed          0.082 (gross: True)
specification curve: share significant of 96        0.44

Pooling a filtered literature gives a precise estimate of the wrong number; the corrections disagree because they assume different filters; arithmetic alone can catch some impossible results.
The code (55 lines; it asserts its own result)
"""Lab 50: the weight of evidence: a filtered literature, pooling, funnel asymmetry, corrections, GRIM and
statcheck, a specification curve and Meehl's crud."""

import numpy as np

from videos.coursekit import labs
from explainer.psychology.psyche import meta as M

TITLE = "The Weight of Evidence"
GOAL = ("Build a filtered literature with a known truth, pool it, see the filter in the funnel, try the corrections, "
        "and check reported numbers by arithmetic.")
TASKS = [
    "Publish every study (publish_null = 1). What happens to the naive estimate and to Egger's test?",
    "Add heterogeneity (tau = 0.3). Which correction suffers most?",
    "Find three means between 3.00 and 4.00 that GRIM rejects for n = 13.",
]


def run(seed=0):
    out = labs.Lab()
    lit = M.literature(k=300, true_d=0.2, tau=0.1, publish_null=0.15, seed=seed + 1)
    pub = lit["published"]
    y, v, se = lit["d"][pub], lit["v"][pub], lit["se"][pub]
    naive = M.random_effects(y, v)
    allre = M.random_effects(lit["d"], lit["v"])
    assert naive["mu"] > allre["mu"]
    out.row("pooled: every study; the published", f"{allre['mu']:.2f}; {naive['mu']:.2f} ({int(pub.sum())} studies)")
    e = M.estimate_all(lit)
    out.row("trim-and-fill; PET-PEESE; selection model; p-curve",
            f"{e['trim-and-fill']:.2f}; {e['PET-PEESE']:.2f}; {e['selection model']:.2f}; {e['p-curve']:.2f}")
    out.row("Egger's test p", f"{M.egger(y, se)['p']:.4f}")
    out.row("GRIM: 5.19 from 28 answers possible?", str(M.grim(5.19, 28)))
    sc = M.statcheck([(1.80, 30, 0.04, "=")])[0]
    out.row("t(30) = 1.80, reported p = .04: recomputed", f"{sc['recomputed']:.3f} (gross: {sc['gross']})")
    s = M.spec_curve(seed=seed + 2)
    out.row("specification curve: share significant of 96", f"{s['share_sig']:.2f}")

    out.note = ("Pooling a filtered literature gives a precise estimate of the wrong number; the corrections "
                "disagree because they assume different filters; arithmetic alone can catch some impossible results.")

    fig, ax = labs.figure(2, size=(11, 4.0))
    ax[0].scatter(lit["d"], lit["se"], s=6, color="grey", label="every study")
    ax[0].scatter(y, se, s=10, color=labs.BLUE, label="published")
    ax[0].invert_yaxis()
    ax[0].axvline(0.2, color="green", ls=":")
    ax[0].set(title="a funnel with a bite", xlabel="effect d", ylabel="standard error")
    ax[0].legend()
    ax[1].plot(np.arange(1, 97), s["est"], "o", ms=3, color=labs.RED)
    ax[1].set(title="a specification curve", xlabel="specification (sorted)", ylabel="estimate")
    out.fig = fig
    return out


if __name__ == "__main__":
    print(run())

Now change it

  1. Publish every study (publish_null = 1). What happens to the naive estimate and to Egger's test?
  2. Add heterogeneity (tau = 0.3). Which correction suffers most?
  3. Find three means between 3.00 and 4.00 that GRIM rejects for n = 13.

Problems, with solutions

Try each problem before opening its solution.

  1. Fixed effect. Three studies: \(d\) = 0.2, 0.5, 0.3 with variances 0.01, 0.04, 0.02. Find the fixed-effect estimate.

    Solution

    Weights 100, 25, 50; (100 x 0.2 + 25 x 0.5 + 50 x 0.3)/175 = (20 + 12.5 + 15)/175 = 0.27.

  2. I-squared. \(Q\) = 30 on 14 degrees of freedom. Find \(I^2\).

    Solution

    (30 - 14)/30 = 0.53.

  3. A prediction interval. A random-effects mean of 0.4 with SE 0.05 and \(\tau\) = 0.2: give a rough 95% prediction interval.

    Solution

    Roughly 0.4 +/- 1.96 x sqrt(0.2^2 + 0.05^2) = 0.4 +/- 0.40, so about 0.0 to 0.8.

  4. GRIM. \(n\) = 17 answers on a 1-to-5 scale, reported mean 3.48. Apply GRIM.

    Solution

    3.48 x 17 = 59.16; 59/17 = 3.471 (3.47) and 60/17 = 3.529 (3.53): 3.48 is impossible.

  5. statcheck. Reported: \(t(24) = 1.90\), \(p = .03\) (two-sided). Recompute \(p\); is the error gross?

    Solution

    p = 2 x P(t_24 > 1.90) = 0.070; the reported .03 is inconsistent, and gross: it crosses 0.05.

  6. PET against naive. PET's intercept is 0.05 (SE 0.06) and the naive estimate 0.38. What do you report?

    Solution

    Report both, and the selection model; PET's intercept near zero with a wide interval says the published estimate of 0.38 may be mostly filter. The honest summary is the range, and a call for a registered replication.

  7. ★ A plan. Plan a meta-analysis of a literature you suspect is filtered: search, registries, models, corrections and how you will present their disagreement.

    Solution

    Register the protocol; search databases, trial registries, preprints and authors for unpublished studies; pool by random effects with Hartung-Knapp and a prediction interval; draw the funnel and run Egger; run trim-and-fill, PET-PEESE, a selection model and p-curve; present all of them together as a sensitivity range; weight registered studies separately; and say what a decisive registered study would need.

Notes and sources

Sources

  • E. H. Turner et al. (2008); I. Kirsch et al. (2008); A. Cipriani et al. (2018).
  • M. Borenstein, L. V. Hedges, J. P. T. Higgins and H. R. Rothstein, Introduction to Meta-Analysis (Wiley, 2009); J. P. T. Higgins, S. G. Thompson and D. J. Spiegelhalter, A re-evaluation of random-effects meta-analysis, Journal of the Royal Statistical Society A 172 (2009) 137-159.
  • M. Egger, G. Davey Smith, M. Schneider and C. Minder, Bias in meta-analysis detected by a simple, graphical test, BMJ 315 (1997) 629-634; T. D. Stanley and H. Doucouliagos, Meta-regression approximations to reduce publication selection bias, Research Synthesis Methods 5 (2014) 60-78; S. Duval and R. Tweedie, Trim and fill, Biometrics 56 (2000) 455-463; J. L. Vevea and L. V. Hedges, A general linear model for estimating effect size in the presence of publication bias, Psychometrika 60 (1995) 419-435; U. Simonsohn, L. D. Nelson and J. P. Simmons, p-curve and effect size, Perspectives on Psychological Science 9 (2014) 666-681; F. Bartos and U. Schimmack, Z-curve 2.0, Meta-Psychology 6 (2022); E. C. Carter, F. D. Schonbrodt, W. M. Gervais and J. Hilgard, Correcting for bias in psychology, Advances in Methods and Practices in Psychological Science 2 (2019) 115-144.
  • M. S. Hagger et al. (2010, 2016); A. Kvarven, E. Stromland and M. Johannesson (2020); A. M. Scheel, M. R. M. J. Schijen and D. Lakens (2021).
  • N. J. L. Brown and J. A. J. Heathers, The GRIM test, Social Psychological and Personality Science 8 (2017) 363-369; J. A. Heathers, J. Anaya, T. van der Zee and N. J. L. Brown, Recovering data from summary statistics: Sample Parameter Reconstruction via Iterative TEchniques (SPRITE), PeerJ Preprints (2018); M. Bakker and J. M. Wicherts (2011); M. B. Nuijten et al. (2016).
  • L. L. Shu, N. Mazar, F. Gino, D. Ariely and M. H. Bazerman, Signing at the beginning makes ethics salient, Proceedings of the National Academy of Sciences 109 (2012) 15197-15200, retracted 2021; A. S. Kristal et al., Signing at the beginning versus at the end does not decrease dishonesty, Proceedings of the National Academy of Sciences 117 (2020) 7103-7107.
  • R. Silberzahn et al. (2018); S. Steegen, F. Tuerlinckx, A. Gelman and W. Vanpaemel, Increasing transparency through a multiverse analysis, Perspectives on Psychological Science 11 (2016) 702-712; U. Simonsohn, J. P. Simmons and L. D. Nelson, Specification curve analysis, Nature Human Behaviour 4 (2020) 1208-1214.
  • P. E. Meehl, Theoretical risks and tabular asterisks, Journal of Consulting and Clinical Psychology 46 (1978) 806-834; P. E. Meehl, Why summaries of research on psychological theories are often uninterpretable, Psychological Reports 66 (1990) 195-244; K. Oberauer and S. Lewandowsky, Addressing the theory crisis in psychology, Psychonomic Bulletin and Review 26 (2019) 1596-1618; T. Yarkoni (2022).
  • A. Dreber et al. (2015); C. F. Camerer et al. (2018); E. Forsell et al. (2019); J. Protzko et al. (2023, retracted 2024); P. E. Smaldino and R. McElreath, The natural selection of bad science, Royal Society Open Science 3 (2016) 160384.
About this partfrom its README

In 2008 Erick Turner and colleagues put two piles side by side: the 74 antidepressant trials registered with the US regulator, and what the journals printed. About half the trials were positive; in the journals almost all were, and the average effect looked about a third larger. Part 4 told the replication crisis as a story; this part is the mathematics of reading a literature that has been filtered, the forensic tools that caught impossible numbers, and the argument that the deepest problem was never statistics but theory. The series' own Ledger is audited with its own tools.

The viewer tests a mean that cannot be (5.19 from 28 whole-number answers) and predicts four numbers. Then the filter simulated; fixed and random effects, a forest plot by hand and the prediction interval; meta-regression and its low power; funnels, Egger's test, PET and PEESE, and what else makes a funnel lopsided; five correction methods run on literatures with a known truth; meta-analyses against preregistered replications; registered reports and the other designs that remove the filter; GRIM, SPRITE and statcheck; fabricated mileage detected; many analysts, one dataset, and a specification curve; Meehl's paradox computed; and the Ledger's 263 findings audited by status, act and decade.

What is computed and built
  • explainer/psychology/psyche/meta.py: simulated literatures with publication filters and p-hacking; DerSimonian-Laird pooling with Hartung-Knapp and prediction intervals; meta-regression and moderator power; Egger, PET, PEESE and PET-PEESE; trim-and-fill (L0); the three-parameter selection model; p-curve's skew test and estimate; a grading harness; GRIM, a SPRITE search and statcheck; a specification-curve engine; the Ledger audit. Tested in tests/psychology/test_meta.py.
  • The Ledger gains five rows; Part 4's two declarations about meta-science are resolved.
  • The course's interactive: the reader judges reported means as possible or impossible, then sees GRIM's verdict and the arithmetic.
Chapter notes
# Chapter What it does
0 Two piles of trials Turner's two piles; the filter simulated; the question; objectives
1 On you: a mean that cannot be, and four numbers GRIM in your head; four predictions
2 Combining studies Fixed and random effects; a forest plot by hand; which interval answers your question
3 Moderators Meta-regression; moderators hide
4 Seeing the filter A funnel with a bite; Egger, PET and PEESE; other causes of asymmetry
5 Correcting for it Five corrections; every method on every literature; no method works everywhere
6 Meta-analyses against replications Ten effects measured twice; precise and wrong
7 Designs that remove the filter Registered reports; registries, multi-site protocols and sequential designs
8 Forensic statistics GRIM; SPRITE; statcheck
9 Fabrication, detected Miles no one drives; what gives fabrication away
10 Many analysts, one dataset Twenty-nine teams and the red cards; a specification curve
11 The theory crisis Meehl's paradox; confirmed by crud; stronger theories
12 The Ledger, audited 263 findings; where they held; reading the audit with the part's tools
13 The Ledger Five rows; what they have in common
14 In practice: reviews, vendors and file drawers Where a literature is weighed; your own file drawer
15 Frontier: rates, robots and incentives Three frontiers; open questions
Recap, problems, and the road ahead Your numbers; twelve lines; Kant's three objections; payoffs; problems; references; Part 51
NotesWhere the numbers come from
What Source
The filter simulated: 74 trials of a drug with true effect 0.3 (between-trial SD 0.1), 40 to 160 per arm; every significant trial published and 35% of the others; 39 of 74 positive; 51 published, 39 of them positive; pooled effect 0.31 from all trials and 0.37 from the published Psyche (meta.literature, random_effects), item piles
A forest plot: 15 studies, true mean 0.4, tau 0.15; random-effects mean 0.41 (95% interval 0.29 to 0.53; Hartung-Knapp 0.28 to 0.54), tau 0.17, I-squared 49%, prediction interval 0.03 to 0.79 Psyche (meta.random_effects), item forest
Moderator power: half the studies 0.2 larger (0.5 against 0.3), tau 0.2, 20 to 80 per arm; power 25%, 30%, 59%, 87%, 99% with 10, 20, 40, 80, 160 studies (300 meta-analyses each) Psyche (meta.moderator_power), item moderator
A funnel: 300 studies of a true 0.2 (tau 0.1), significant ones published and 15% of the rest, 30% of non-significant studies p-hacked; 118 published; Egger's intercept 1.43 (p = 0.002); PET 0.13, PEESE 0.30, naive 0.41 Psyche (meta.literature, egger, pet, peese), item funnel
Every correction on every literature: six scenarios x 50 literatures of 150 studies; average estimates (naive, trim-and-fill, PET-PEESE, selection model, p-curve) 0.08, 0.07, -0.03, 0.00, 0.03 at no effect; 0.39, 0.36, 0.25, 0.20, 0.28 at 0.2; 0.59, 0.54, 0.45, 0.49, 0.53 at 0.5; 0.50, 0.40, 0.21, 0.19, 0.50 at 0.2 with tau 0.3; 0.22, 0.20, -0.01, 0.08, -0.01 at no effect with p-hacking; 0.20, 0.18, 0.17, 0.19, 0.24 at 0.2 with no filter Psyche (meta.grade), item grade
Meta-analyses against replications: ten small true effects (0.03 to 0.23), each with a filtered literature of 60 studies and one replication of 1,500 per group; meta-analyses average 2.5 times the replications Psyche (meta.literature, random_effects), item kvarven
GRIM on five means (5.19, n = 28; 3.45, 20; 4.68, 15; 2.17, 12; 6.33, 21): the first and third impossible; SPRITE samples of 20 on a 1-to-7 scale for mean 3.50 with SD 1.50 and 1.00 Psyche (meta.grim, sprite), item grim
statcheck on six reported tests: one inconsistent at the 0.05 line (t(30) = 1.80 reported p = .04, recomputed .082) Psyche (meta.statcheck), item statcheck
Mileage: 6,000 gamma-distributed differences (shape 2, scale 6,500) against 6,000 uniform on 0 to 50,000 simulated, item mileage
A specification curve: 300 simulated people, a small true effect, four covariates; 96 specifications (covariate subsets, three outlier rules, raw or log outcome); estimates 0.05 to 0.21, 52% significant Psyche (meta.spec_curve), item specs
Meehl's paradox: pairwise correlations N(0, 0.15^2), random directional predictions; confirmed 6%, 14%, 25%, 36%, 41%, 44% at n = 30, 100, 300, 1,000, 3,000, 10,000 simulated, item crud
The Ledger audited: 263 rows through Part 49; 142 replicated, 19 smaller, 12 story and record, 49 contested, 35 failed, 2 retracted, 4 not directly tested; by act and by decade of the original explainer/psychology/ledger.py via meta.ledger_audit, item audit
Every published number on screen the studies listed under Sources, quoted as reported

The mileage histograms illustrate the shape of the published argument; they are not the study's data.

Notes
Finding Original Status
The journal literature on antidepressants overstated their efficacy relative to all the trials registered with the regulator, through unpublished negative trials and positively reported ones. Turner and colleagues 2008 replicated
Meta-analyses of published studies in psychology estimate effects about as large as large preregistered replications of the same effects find. Hagger, Wood, Stiff and Chatzisarantis 2010 failed
A substantial share of psychology articles report at least one p-value that does not match its test statistic and degrees of freedom. Bakker and Wicherts 2011 replicated
Researchers' beliefs, pooled in prediction markets or surveys, predict which published findings will replicate better than chance. Dreber and colleagues 2015 replicated
Discoveries made with preregistration, large samples and independent replication replicate at near the rate their statistical power predicts. Protzko and colleagues 2023 retracted

Shown without a row, with the reason recorded in explainer/psychology/ledger.py: Borenstein and colleagues; Brown and Heathers; Heathers and colleagues; Steegen and colleagues with Simonsohn, Simmons and Nelson; Carter and colleagues; Meehl; Oberauer and Lewandowsky; Smaldino and McElreath.

Notes

The web-search budget for this session was spent on earlier parts, so the facts in this part come from the standard literature and were not re-checked online today; each is listed here to be checked against its source: Turner et al.'s 74 trials, the share positive, published and spun, and the size of the inflation; Kirsch et al. (2008); Cipriani et al.'s 522 trials; Kvarven et al.'s fifteen comparisons and the factor of about three; Hagger et al. (2010) and its estimate; Scheel et al.'s 96% and 44%; Brown and Heathers' findings; Heathers et al. (2018); Bakker and Wicherts (2011); Nuijten et al.'s numbers of p-values and journals and their shares; Dreber et al. (2015), Camerer et al. (2018) and Forsell et al. (2019); the Protzko et al. retraction and its reasons; the 2012 signing study, the 2021 analysis of its mileage data, its retraction and Kristal et al. (2020); Silberzahn et al.'s 29 teams and range of odds ratios; Steegen et al. (2016); Simonsohn et al. (2020); Meehl's papers and dates; Oberauer and Lewandowsky (2019); Smaldino and McElreath (2016); Carter et al. (2019); the predictors of replication named in the audit chapter; and every page range in Sources.

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: the two piles of trials (Turner et al. 2008).
  2. Combining studies: fixed and random effects, inverse-variance weights, heterogeneity (τ², I², prediction intervals), derived (link to Statistics, Built Part 25, statkit.shrink).
  3. Moderators and meta-regression, and their low power.
  4. Seeing the filter: funnel plots and Egger's test; what else makes a funnel asymmetric.
  5. Correcting for it: trim-and-fill, PET-PEESE, selection models, p-curve, z-curve. Each run on simulated literatures from the Pool with a known truth: none works everywhere.
  6. Meta-analyses against registered multi-site replications of the same effects: the meta-analytic estimates were about three times larger (Kvarven et al. 2020).
  7. Designs that remove the filter: registered reports (about 44% positive results against 96% in the standard literature); multi-site protocols; sequential and Bayesian stopping rules.
  8. On you: GRIM. Given n = 28 and integer answers, can the mean be 5.19? Forensic statistics: GRIM, SPRITE, statcheck (about half of papers had at least one inconsistent p-value), and what they found.
  9. Fraud cases as method: how fabricated data were detected in spreadsheets (the dishonesty studies, 2021–23 (verify)).
  10. Many analysts, one dataset: twenty-nine teams and the red cards; multiverse and specification-curve analysis.
  11. The theory crisis: Meehl again; weak theories make weak tests; formal theory, strong inference, and the generalizability critique.
  12. The Ledger audited: its rows by subfield, original against replication effect sizes, and what predicted survival (sample size, effect size, surprise).

Psyche: psyche.meta: random-effects meta-analysis; every bias-correction method graded on simulated literatures (reusing statkit.multiple's p-curve and Egger/PET tools); GRIM and SPRITE; a specification-curve engine; the Ledger's own summary statistics. On you: the GRIM test on five reported means. Ledger: audited as a whole; replication-rate estimates by project; the high-replicability claim of 2023 that was itself retracted (verify). In practice: evidence reviews for policy and medicine, due diligence on vendor claims, internal experiment archives and their own file drawers. Frontier: whether replication rates have risen; automated error detection; incentives modelled as evolution (to Part 61). Reading: Borenstein et al., Introduction to Meta-Analysis; Turner et al. 2008; Carter et al. 2019; Kvarven, Strømland & Johannesson 2020; Scheel, Schijen & Lakens 2021; Brown & Heathers 2017; Nuijten et al. 2016; Silberzahn et al. 2018; Steegen et al. 2016; Meehl 1978, 1990; Oberauer & Lewandowsky 2019; Yarkoni 2022.


Build the film

python -m videos.psychology.psych50.compute        # the part's numbers, into .cache/psych50
python tools/build.py psych50                  # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py psych50 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/psychology/psych50. Setup: see the course page. Source of these notes: the README and the scenes' narration.

Build it
python -m videos.psychology.psych50.compute            # every number (several minutes)
python tools/qa_scene.py psych50 Correct               # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py psych50 -q l   # the whole part, silent preview
python tools/build.py psych50                          # 1080p30 with narration
python tools/qa_scene.py psych50 Forensics --lang zh   # the Chinese edition of one chapter
python tools/make.py psych50                           # both editions, with the checks a long build needs
python -m videos.psychology.labs 50                    # the lab: filters, corrections, GRIM, specification curves
python tools/check_ledger.py psych50                   # every study shown has its Ledger row, or a reason
python -m pytest tests/psychology                      # Psyche's meta module, the Ledger, the Archive

The Chinese edition is zh_lines.py (the narration, line by line) and the series table videos/psychology/psychology_text_zh.json (the text on screen); the terms are in PSYCHOLOGY_ZH_GUIDE.md.