Dan Sinykin on close reading in literature, and me on close reading in statistics

Interesting article by Dan Sinykin on close reading:

Reading, a skill easily taken for granted, is difficult–all the more so when reading literature that wields language as a medium for art. . . . It’s easy to see why close reading, which demands patience, openness to others, and slow, careful thought, is having a moment among academics. . . . academics are rediscovering the quiet excitement of close reading, a relief from the overheated corporate pablum routinely suffocating us.

Pablum is not just corporate

To the above, I’d just add that the “overheated pablum” is not just “corporate”; it’s coming from all sources. We see it in scientific research papers, on twitter, on NPR, all sorts of places that are not themselves corporate (OK, sure, twitter is owned by a corporation but the individual people posting the pablum are not themselves corporate). Overheated pablum is a style, a dominant style for the usual Gresham sort of reasons and also because, as Sinykin says, our discourse has evolved into position where nobody pays attention to anything, so things are written with the expectation that nobody will pay attention to them, etc. I see this sometimes online when someone will criticize something of mine, but they’re criticizing things I never said–one example is here, and there are links to a few more at the end of this post. Or, more directly, there are examples such as the psychology study described as “long term” even though it took place over only 3 days, or the study that claimed “That a person can, by assuming two simple 1-min poses, embody power and instantly become more powerful has real-world, actionable implications,” even though it had no evidence of anyone actually becoming more powerful.

As I’ve complained, my frustration about such things is not just that this happens–that credentialed scholars write articles with titles and abstracts that are flat-out false–but that nobody seems to care, even when these things are pointed out. To put it in Sinykin’s terms:

– People aren’t doing close readings on scientific papers, even high-profile papers that get tons of media attention.

– Scientists aren’t even doing close reading on their own papers! For example, in the papers linked above, I don’t know that the authors even considered the idea that there could be a contradiction between describing a study as “long term” even though it only lasted 3 days, nor that there could be a problem with claiming that people in their study “instantly become more powerful” even though the study had no measurements of power.

To put it another way, expressions such as “long term” and “more powerful” are to be taken metaphorically, as a sales job, in the same way that you might say that someone “is going to cure cancer in two years” even if, no, you don’t actually think they’re going to cure cancer in two years. It’s advertising-speak, it’s letter-of-recommendation-speak, it’s Ted-talk-speak, it’s the-title-and-abstract-of-papers-published-in-Psychological-Science-speak, and if everybody does it, then it doesn’t count as lying, indeed it doesn’t even feel like lying.

Bad news when close reading is no longer expected

I don’t agree with all the political things that Sinykin says, but that’s not so important for my point here, which is that I agree that there’s not enough close reading going on, and when audiences don’t read more closely, this provides less incentives for authors to write for close readers. Indeed, authors can become indignant at close readers, attacking them as obsessed Javerts. We’re seeing a development of a new equilibrium.

Just by analogy, consider the much-discussed phenomenon of Netflix-style movies where every action on the screen is announced by the characters as it is happening. This is so annoying! It’s certainly not the pattern with every Netflix show, but it happens a lot with the more generic offerings you’ll see on that and other streaming channels, and it’s said that the reason is that people have a movie on in the background while they’re doing something else so the running explanation allows the movie to be followed in that passive way. Then when more movies and shows are produced in this way, it encourages more of this background watching, and you get a new equilibrium in which everybody’s paying less attention–the viewers are paying less attention to what’s happening on the screen, and the actors, directors, and producers are paying less attention. Is this a bad thing? Maybe not! Maybe it’s a throwback to the classic era of radio drama, I don’t know. The point is that close reading, or close watching, is a choice. At least, it’s a choice if I’m reading or watching in my native language. When I’m reading or watching in French, I need to apply my full concentration at all times or I’ll lose the thread.

The 4 aspects of close reading

Sinykin gives two examples of close reading, one from the Odyssey and one from the Bible. These examples made it clear that close reading is four things.

1. Most directly, close reading is figuring out the literal meaning of the text. Who are the characters, who is saying what (this can be tricky when reading long stretches of dialogue), who’s alive and who’s dead, what is the sequence of action, etc. It’s possible to read a story and fail in this very basic task, sometimes because the author is hiding things (Agatha Christie, Gene Wolfe, etc.), sometimes because the story is itself incoherent (it’s easier to think of examples from movies where continuity or logic is violated, but this can happen in written stories as well), sometimes just because you’re reading quickly, watching the story go by, and not focusing on the details.

2. The second step of close reading is understanding the characters’ motivations: not just what is happening but why. Sometimes this is explicitly stated, but usually you have to figure it out. In this category I’d also place whatever struggles the reader might have with unreliable narrators, information gaps, and whatever deliberate ambiguities are in the text.

3. The third step is following all the details that flow by. Often I read a book and enjoy it, but only on rereading do I notice all sorts of little things that I zipped by the first time in my rush to follow the story. This can even happen on the umpteenth reading! I recently reread Forlesen, and it was full of fun bits that I’d not previously caught. I’m not talking about subtle references or misdirections or deep themes or “easter eggs” or whatever, just the granular bits of conversation, thought, and event that I’d earlier skipped without noticing.

4. Finally, close reading involves understanding a literary work in its historical and cultural context. This has two parts. From one direction, in reading a story or watching a movie or TV show we can learn a lot about the time and place when it was produced, just from things happening in the background–patterns of speech, clothing styles, the way people are milling around in street scenes, etc.–this is what we call the Speed Racer principle. From the other direction, if you know something about the culture within which a work was produced, you can get additional insights into what the author of the story is trying to say.

It’s that fourth aspect of close reading that Sinykin focuses on:

Late in The Odyssey, Odysseus, who has endured 10 years of wandering to return home from the Trojan War, encounters his childhood nurse. No one has yet recognized him, and he does not want to be recognized. He appears a stranger. His erstwhile nurse washes his feet and, in doing so, sees a scar on his thigh, startling her into recognition. The mark on the body becomes, once noticed by a caring, knowing observer, auratic, suffused with meaning. At that moment, Homer interrupts the story with some 70 lines about how Odysseus suffered the wound that left the scar, only to pick up when the nurse drops Odysseus’ foot in the basin.

We might think, given how we have learned to read stories in our time, that Homer interjects the history of the scar into the scene to induce a feeling of suspense, suggests [philologist Erich] Auerbach. But we would be wrong. Suspense requires a distinction between foreground and background, which is unknown to Homer, who writes everything in a fully saturated now. While narrating the history of the scar, he does not expect us to be waiting to find out what happens with the nurse. He expects us, argues Auerbach, to be 100 percent in the presence of the past. Homer must describe the scar because if he did not, we would be left with an unexplained, mysterious detail, which he cannot bear. Everything must be illuminated. He must account for the scar. Everything in Homer proceeds with clarity, “never a lacuna, never a gap, never a glimpse of unplumbed depth.”

Sinykin shares a related close reading of a biblical passage, then concludes:

We can learn about a people through its style, its literature, which bears an ineradicable record of its version of reality. This, at least, was Auerbach’s gambit. The method is close reading. Others do it differently and can be no less exhilarating. It starts with a cultivation of sensitivity to art and language.

Agreed. I’d just add that this has several aspects, starting with the most basic of trying to figure out, as a reader, what exactly is happening in the story and what could be going on in the minds of the characters.

Close reading in statistics

This was all on my mind because just last year we were discussing the connections between close reading in literature and close reading in statistics (see also here).

As a statistician, when I read a report closely I go through the four steps listed above:

1. First, I try to put in the effort to understand exactly what was going on in the experiments being discussed. This can be difficult! Research papers often don’t include crucial information such as how exactly the experiment is done and what measurements were taken.

2. Next, it’s useful to understand the authors’ scientific goals. This is usually pretty clear from the way the results are presented.

3. Then there’s the struggle to follow all the details. A paper can have a lot of graphs and tables, and each one can take a lot of close reading to figure out. Especially when the paper has errors, as in the notorious work of Brian Wansink or Richard Tol.

4. Finally, the context of the work. Is this a Psychological Science paper from the 2010-2015 era? A natural experiment from the bad old days of regression discontinuity analysis? Or maybe something that we would expect to be done well? As with a story or novel, it’s good to know what genre you’re reading. And, from the other direction, the just-taken-for-granted aspects of a paper can give us insight into the scientific culture that it came from.

What exactly is “close reading”?

After all this, I was wondering how other people define “close reading,” so I looked up the term on wikipedia:

In literary criticism, close reading is the careful, sustained interpretation of a brief passage of a text. A close reading emphasizes the single and the particular over the general, via close attention to individual words, the syntax, the order in which the sentences unfold ideas, as well as formal structures. Close reading is thinking about both what is said in a passage (the content) and how it is said (the form, i.e., the manner in which the content is presented), leading to possibilities for observation and insight. . . .

In the practice of literary studies, the technique of close reading emerged in 1920s Britain in the work of I. A. Richards, his student William Empson, and the poet T. S. Eliot, all of whom sought to replace an “impressionistic” view of literature then dominant with what Richards called a “practical criticism” focused on language and form. American New Critics in the 1930s and 1940s anchored their views in similar fashion, and promoted close reading as a means of understanding that the autonomy of the work (often a poem) mattered more than anything else, including authorial intention, the cultural contexts of reception, and most broadly, ideology.

Hmmm, interesting.

The first paragraph above is a good match for how I was thinking about close reading and how Sinykin discusses the concept.

But the description at the end of the second paragraph, describing the attitude of the American New Critics, is pretty much the exact opposite of what we were discussing! Sinykin explicitly talked about how you can use knowledge of the Homeric and biblical contexts to understand what the authors of those passages were doing, and I was saying something similar with regard to reading scientific papers.

So now I’m confused: Is close reading centered on an understanding of cultural and historical context and authorial intention (my take, and I think Sinykin’s) or is it about “the autonomy of the work . . . more than authorial intention the cultural contexts of reception, and . . . ideology”? What’s going on here???

P.S. I can’t figure out how Sinykin’s article ended up at a sports site. I once published something at Baseball Prospectus, but my article was actually about baseball so that made a bit more sense. I’m not complaining–Sinykin’s post was interesting, and it was written in a friendly, nonacademic style that fit in with other articles at that site–I just wonder how it happened. I see that, in addition to teaching English at Emory University, Sinykin is also a professor of Quantitative Methods. So maybe he’ll appreciate this post!

Ecologists’ endless quest for automatic inference

This post is by Lizzie.

At the end of a recent course I taught on Bayesian approaches (which reminds me I should blog an update on that) a student asked ‘so when do we divide up our data into test and training?’ This stopped me a little as the whole course was on a workflow approach to science and stats that I hoped hammered home how to gain mechanistic insights from simulated data, preparing you for more insights using retrodictive checks on a model fit to your empirical data, etc.. I was on the spot suddenly realizing some gaps and failures in my course content. I also should not have surprised, as ecologists are going in big time on machine learning (are there other uses for test/training data? Yes, but that’s the dominant place this language is in use in my field now, IMHO), and we (I) don’t step back and teach the different approaches.

In discussing this with a stats colleague recently he mentioned the endless search for automatic inference. `Feed in data, pull crank, get scientific inference.’ It’s the opposite of the workflow to me. I also think it’s not going to work well, but it’s clearly the dream, and an alarming percent of ecology is devoted to it, without even knowing it.

Machine learning is the new best hope of automatic inference for ecology (and a lot of other fields) without anyone seeming to notice what they’re not getting. It’s amazing to me how many students seem blithely unaware of what machine learning is going to give you — (good) predictions for out-of-sample data, but a difficult time finding interpretable parameters and all the science that can go with them. (And, yes, I know some of the machine learning approaches are working on changing this.) So they see it as the inference approach.

The previous best hope of automatic inference was model comparison (LOO is the new magic, AIC was a big — BIG — hit, before that was stepwise regression with an alarming number of ecologists never learning any potential for problems with stepwise regression, but I digress) and it’s still running strong in some circles. Fit 6 or 600 or so models and compare them to see which is best. In my area, the models balloon since we have no idea what climatic driver to include. For example, I think water matters to trees growing outside, so for a precipitation variable, should I use total precipitation? Our maybe just during the growing season? Or, wait, maybe divide up growing and non-growing season. But then for the non-growing season, should I use snow depth? Snow water equivalent (SWE)? This is so hard, and there’s no clear answer.

Automatic inference to the rescue! You can put them all in with model comparison, including a suite of possible interactions, and see which ones really matter. Yay!

Did this work? Not at all if you ask me. I recently saw a tree ring talk that did this but you can tell the best fitting model actually made no biological sense after they thought about it more, so they presented the ‘second best model.’ And I am quite sure the second and third best model were pretty similar in any comparison metric you wanted to throw at them and they might have had really different answers to how the world works. (Ecologists have tried one way around this — model averaging, which I don’t think offers much either.) I am not sure why everyone is doing this other than that (1) we have all tacitly agreed it’s okay and (2) the other option seems harder, more uncertain and maybe we have not all tacitly agreed it’s okay.

What have we never gotten out of this as best I can tell:
(a) We start to see new patterns in what matters in these model comparisons and say, ‘hey — all this work together really shows we should focus on SWE in this context. Thank goodness we did model comparison as there is no other way we would have figured this out.’
(b) We use something we learned in model comparison to design an experiment that teaches us something new. Like, ‘wow, I never thought extreme heat in August would be so important, I will now set up an experiment to test the role of extreme heat in August. I am so glad I put that predictor — and extreme heat in every other month and in 3-month windows — in my model so I could find this out.’
(c) The feeling of joy at saying, ‘look at my minimum adequate model! This is great and so helpful.’
We never get these things because the results are almost always a mess. We all know this as best I can tell so we don’t even look closely at them as reviewers any more.

What’s the other option?

The other option to me is that you pick your few best-guess damn variables — the ones you can make predictions about and describe the functional relationship of them to your response variable(s) and you put those in your model. Maybe you fit a few models, but not endless models. In my experience, the first step in this process alone (picking those variables) gains me way more insights than any model comparison ever has. Why? Because it’s the opposite of automatic inference. It requires me to think.

What’s the downside of this other option? One would be that we pick the wrong predictors and never see that amazing predictor we would have just tossed in on model comparison. But given where 20+ years of model comparison has gotten us I am discounting this possibility. The other — and this is what students in my classes are really worried about — is that we don’t all tacitly agree this is okay. Many students I suggest this to don’t think it’s okay. They see how widespread model comparison and its ilk are and worry they cannot get published without it. They aren’t even trained in how to pick those variables.

We’re so over the top on automatic inference we don’t even train our students to be prepared for anything else. And worse yet, we tell them they’re doing (good) science.

With machine learning* we’re slipping even further away from science and our training is getting even worse as best I can tell. Students at UBC in data science learn to ‘tidy’ data as though there is no domain expertise in this process. ‘Tidy’ means removing outliers, gap filling and other things that horrify me to see students learn in their first term. How on earth do they know what an outlier is when they don’t even know what the data are? After this they learn random forests and some simple neural nets. Science done.

What’s the solution? I desperately hope people smarter than me are working on this question. One answer is obviously raising our standards and discounting work that doesn’t really give us much from whatever model comparison they used. Another is better training — I think we all need to admit that training has got to change with machine learning on the rise. A lot of students I work with now only take data science — they learn only machine learning and don’t know what a regression is or think it is anything they use. They need to see how interconnected all the inference methods are and what aims each one works well on for now (and not) and be prepared that that might change. This seems tractable. What seems less tractable is better training in science — training students to know there’s no automatic inference for science and getting useful insights is actually messier, harder, and involves more uncertainty than most people tell you (but, if you ask me, it’s also a lot more fun).

*We’re somehow also now calling most of machine learning ‘AI’ in ecology. Are other fields doing this? Why (I mean, other than wanting to sound like you’re doing the absolute coolest, most cutting edge thing)?

Why were schools so slow to return to in-person instruction?

Weakliem writes:

It’s now pretty widely agreed that schools were too slow to return to in-person instruction during the Covid epidemic: “remote learning” usually meant less learning and students suffered from the loss of normal social interaction.

Based on my experiences as a teacher and a parent of school-age children, I agree; indeed I felt that way at the time.

Weakliem then asks:

So why didn’t the schools go back faster?

He continues:

Some observers hold that cautious policies were imposed by what Nate Silver calls the “Indigo Blob”: “the merger between formerly nonpartisan institutions like the media, academia and public health . . . and instruments of the Democratic party and progressive advocacy groups.”

There are a couple of problems with this analysis. One is that general public opinion was not in favor of faster reopening. In April 2021 an NBC News poll asked people who had children in school “do you believe that your child’s school system has been too slow in re-opening, too fast in re-opening, or struck the right balance?” 14% said too slow, 14% too fast, and 70% struck the right balance. That’s an impressively high level of public agreement with policy, which may be because policies responded to local opinion or because people generally have a positive view of their local schools and trusted them to do the right thing. The second is that opinions on the issue were not closely related to education. . . .

Weakliem summarizes:

Returning to the question of why schools didn’t go back to in-person instruction more quickly, I’d say that it was because decision-makers were generally aligned with public opinion–the idea that children need special protection has a lot of intuitive appeal, so in the presence of uncertainty they were inclined to play it safe. Of course, there were also large partisan differences (see this post), but I don’t think that these appeared because Democrats followed the “Indigo Blob”—it was because they reacted against Trump.

Unfortunately, Weakliem is an obscure retired sociology professor so not so many people will see his analysis, as compared to the hundreds of thousands who will hear about the nefarious “indigo blob” etc etc. What can you do?

To get to the social science question: I hated the school closings and lockdowns when they were happening; the problem, though, was not that they were being imposed by a dictatorial government or that they were caused by some sort of conspiracy of the news media (let alone, by “progressive advocacy groups”). Rather, school closings and lockdowns were solutions to a coordination problem: if large fractions of the population don’t feel safe sending their children to school, and don’t feel safe going to work, then it makes sense to coordinate this behavior. The other thing was the fear of the health system being overwhelmed, hence the reasonable push to flatten the curve.

The real problem was not the shutdowns but rather that schools remained remote, even a year later! For that I’d blame a mixture of things including laziness at all levels. At Columbia, I got the impression that it was just easier for them to tell us to stay remote. Maybe they were afraid of lawsuits too? We also had faculty who were too lazy to come to work and teach, and I guess a lot of students found it more comfortable in the short term to sit at home and not go to school, but mostly I’m inclined to blame the administration—and, hey, it’s their job to make the hard decisions an take the blame, right?

Intergenerational socioeconomic mobility over time for different ethnic groups

Elisa Jácome, Ilyana Kuziemko, Suresh Naidu write:

We estimate long-run trends in intergenerational relative mobility for representative samples of the U.S.-born population. Harmonizing all surveys that include father’s occupation and own family income, we develop a mobility measure that allows for the inclusion of non-whites and women for the 1910s–1970s birth cohorts. We show that mobility increases between the 1910s and 1940s cohorts and that the decline of Black-white income gaps explains about half of this rise. We also find that excluding Black Americans, particularly women, considerably overstates the level of mobility for twentieth-century birth cohorts while simultaneously understating its increase between the 1910s and 1940s.

This is an interesting paper both for its substantive content and for its use of data. The authors also prepared a teaching supplement that walks through the analysis in detail. Good job!

P.S. For both of the displays above, I think a grid of small plots would work better. There’s this problem where researchers seem to think they need to cram as much as possible into one graph, but they you end up with all these symbols and colors, and the reader needs to go back and forth between the graph and the legend . . . it’s kind of a mess. On the plus side, it’s good to see any scatterplots at all in an empirical paper!

The hinge function provided “a tractable solution to an important and long standing problem in the field of fluvial geomorphology–the prediction of bedload sediment transport in rivers.” How cool is that?

Basil Gomez writes:

You might be interested to know that your hinge function blog provided us with a tractable solution to an important and long standing problem in the field of fluvial geomorphology–the prediction of bedload sediment transport in rivers.

Here’s the key passage in their paper:

Our approach is to use a continuous hinge function to produce a single, smooth curve (and single equation) by flexibly connecting two lines in log space.

This post from 2017, “A continuous hinge function for statistical modeling,” we derived, coded, and plotted a hinge function from first principles. I claim no originality here; hinge functions have been around for a long time. I’m just happy that the explanation I posted here was useful to someone.

Solve a simpler version of the problem.

For some reason that I can’t remember, I was recently motivated to take a look at the classic book on mathematical heuristics, How to Solve It, by George Pólya. When searching for it at the library, I came across a more recent book of the same title by Zbigniew Michalewicz and David Fogel. I checked the two books out of the library and skimmed them. Both books were readable and interesting, and I think if I’d been given them as a student, I would’ve read them cover to cover and enjoyed them. As it is, we all have shorter attention spans and less free time than before, also I’m already familiar with lots of the material in the two books, so I couldn’t quite bring myself to read them completely carefully. But I liked the material.

Books are long. Even Pólya’s book, which is short for a book, is long compared to a blog post. It contains lots of advice.

I wanted to make a post that’s useful to all of you, and I thought that, instead of giving a list of tips, it would be best to give just one tip. And, here it is:

Solve a simpler version of the problem.

Here’s the scenario:

You have a problem to solve, a math problem or maybe a math-like problem such as a coding problem or a negotiation problem or a challenge in getting a plot element to work in a story or just about anything.

And you’re stuck, not sure how to start.

Here’s the solution:

Construct a simpler version of the problem, a special case of the problem you’re given, but with less complexity. Set all the parameters to zero, or set all but one of the parameters to zero, then solve that simpler problem.

This sort of simplification has been a useful research tool for me (for example here and here), and it works for applied problems too.

P.S. Pólya’s How to Solve It is a classic. Why hadn’t I read it before? Here’s why. Back when I was in math olympiad, the coaches were always pushing that How to Solve It book.

And, usually, most of the things they were pushing were things that I resisted.

What were they pushing?
– The idea that analytic geometry and calculus were kinda cheating, and that it’s better to solve geometry problems without using those tools.
– The “nine-point circle.”
– Disdain and lack of interest in applied problems.
– The history of math as a history of heroes.
– Math as competition.
All sorts of attitudes that I didn’t like and still don’t like. I’m not saying that these attitudes are inherently bad, just that they weren’t for me, and they’re not for me now. The people pushing those attitudes were also pushing How to Solve It. So I wasn’t really interested in reading it, even though it came up a lot. My loss (until now).

“Can I teach integral calculus before differential calculus?”

In answer to the above question, Ted Alper writes:

Not only can you, but David Bressoud argues in his book, Calculus Reordered: A History of the Big Ideas, that you should teach integral calculus first, or — maybe a little more precisely — that the entrenched educational ordering of subjects in a first year calculus course — starting with limits, then derivatives, then integrals, then series — may have a certain logical appeal in organizing everything economically in a [somewhat] rigorous package, but lacks motivation and clarity for novices, and he suggests following a path closer to the historical order in which the subjects were studied, roughly
(1) Accumulation (Integration)
(2) Ratios of Change (Differentiation)
(3) Sequences of Partial Sums (Series)
(4) Algebra of Inequalities (Limits).

One quote from the preface to the book:

The progression we now use is appropriate for the student who wants to verify that calculus is logically sound. However, that describes very few students in first-year calculus. By emphasizing the historical progression of calculus, students have a context for understanding how these big ideas developed.

I took a look at the book. It’s cool, but it’s clearly written more for mathematicians who are curious about the history than for students who want to learn the ideas of calculus—fair enough, given the title, but still. For teaching, I think it makes sense to go through examples of accumulation, rates of change, etc., from simple physics and economics, rather than starting with tricky things like the area of a sphere. Although I can see that if you’re a mathematician you’d rather start with the sphere because the simple examples are too boring. It’s kinda like when I teach probability, I can’t bear to bring up the “Do any two people in the room have the same birthday?” problem because it’s too damn trivial; I prefer to give examples such as, “How do they estimate the proportion of identical and fraternal twins in the population?”, which is not mathematically deep but has statistical subtleties. This is always a peril of teachers, that we want to jump to the fun stuff.

For a quick read of the history of calculus, with examples from the ancient Greeks, I recommend the chapter from Aaron Strauss’s book from 1973. That whole book is fun.

But, yeah, to get back to the title of this post, it does seem to be just fine to teach integration first. The real point, I guess, is to teach the concepts and the methods and then get to the idea of limits at the end. That makes a lot of sense to me.

StanBio Connect 2025

This is Eric.

It’s hard to follow Jesus, but here we are.

Vianey Leos Barajas and I are organizing StanBio Connect 2025 conference: https://stanbio.org

StanBio is a free, one-day online conference that will take place on Friday, 30 May 2025 from 9 am to 4 pm ET. We are interested in broad applictions of Stan in biomedicine including drug discovery and development, bioinformatics, medical devices, health economics, real-world evidence, and decision-making under uncertainty. If you are developing Stan models and want to show off your work, we hope you would consider submitting an abstract by 15 April. We are planning for keynotes to be about 45 minutes and regular talks to be about 20 minutes long.

Stay tuned for the program to be released in a month or so.

We are also looking for sponsors, with the money going directly to Stan/NumFocus to help pay for the conference and to support the development of Stan. If your organization is using Stan, please consider supporting the project by sending a note to eric dot novik at nyu dot edu.

Experts can see for miles; non-experts are walking around in the tall grass and can’t see past their next step. When it comes to geometry, I’m no expert.

John Cook writes:

Let a, b, and c be the sides of a triangle.

Let p be perimeter of the triangle.

Let r be the radius of the largest circle that can be inscribed in the triangle, and let R be the radius of the circle through the vertices of the triangle.

Then all six numbers can be related in one equation:

2prR = abc.

That’s just wack, and I have no intuition on this sort of geometry problem. Math is weird. I can use dimensionality analysis to check that it’s not necessarily wrong, and I could work out a simple example with an equilateral triangle to check that it works for a special case, but I have no intuition that the formula would work in general.

I assume I could prove the above statement using brute-force Cartesian coordinates: label the points as (x,y)_i, i=1,2,3, then the perimeter is sqrt((x1-x2)^2 + (y1-y2)^2) + sqrt((x2-x3)^2 + (y2-y3)^2) + sqrt((x3-x1)^2 + (y3-y1)^2), and there’s gotta be formulas for the centers of the red and blue circles in the above picture, and then it will be easy enough to write the formulas for r and R, and then I’m guessing that if you multiply the factors and rearrange things in some way or another, it will all work out. Given that the statement is true, it has to work out, right?

I’m also guessing there’s some intuition to explain this, some clear derivation.

My point in posting this is not because I care very much about triangles. Rather, I just want to share with you how little understand I have of this area of math. When it comes to probability and statistics, I have a lot of intuition. Not that my intuition is always right, I just have some framework for thinking about probability and statistics problems, some combination of theoretical structures and thousands of examples that I’ve thought about and worked on over the years. With geometry I don’t have that.

This episode gives me some intuition as to how students can often show so little insight into probability and statistics. The students know these topics are important; they just don’t have the experience and modes of thought that can navigate them through the big picture.

Experts (which I am in probability and statistics, but not in geometry, number theory, etc.) can see for miles; non-experts are walking around in the tall grass and can’t see past their next step.

You can nominate someone for the American Statistical Association’s Excellence in Statistical Reporting Award

This award was established to recognize members of the media for their presentation of the science of statistics and its role in public life. The award can be given for a single statistical presentation or for sustained worthy contributions to the statistical profession.

Selection criteria:
– Correctness, clarity, fairness, brevity, and professionalism of communications
– Importance, relevance, and overall effectiveness in affecting the intended audience
– Impact on the growth and national or regional exposure of statistics
– Appreciation for and emphasis of the statistical aspects of a particular issue or event
– Excellent coverage of research on statistics or statistical issues

Nominations are due by March 14, 2025:
– Nominating letter – not to exceed two pages
– Three letters of support – not to exceed two pages each and saved as a .pdf file – are to be uploaded by the writer
– Supporting documentation
– Candidate’s headshot
– Useful links

Here’s the form for submitting nominations. And the upload link for letters of support. And the ASA webpage describing the award and listing previous recipients.

Problems caused by grade inflation

Columbia math lecturer Peter Woit writes:

There has been significant grade inflation over the years, so having a transcript with a string of As isn’t worth what it once was. This is not good for the unusually talented, who now need to find other ways to distinguish themselves.

That’s a good point! I’ve typically thought of grade inflation in isolation (as in my post asking why weren’t the instructors all giving all A’s already?) with the problem being that inflated grades provide less information to future employers.

Woit’s point is related but goes further. Now that A’s are given out like candy corn in the world’s worst Halloween party, they don’t provide much signal, first because, as Woit says, non-unusually-talented students can also get strings of A’s on their transcripts, and also because if you’re competing on grades, the occasional slip can be so costly. Either way, ambitious students have to distinguish themselves in other ways—for example, by publishing articles in journals and conferences. This propagation of “publish or perish” down to the high school level just exacerbates the explosion of publications—apparently, zillions of medical students are kinda required to publish research too, and if publication is a requirement, then the quality is not gonna matter so much, and these papers just get stirred in with whatever remaining legitimate literature is being produced.

So, yeah, if we were to give out more B’s and C’s, maybe the world would be a better place.

I’m not planning to first, though. As I wrote a few years ago, the real mystery to me is not, Why is there grade inflation?, but rather, Why is there any room left to inflate: why weren’t the instructors all giving all A’s already?

At that time, I recommended statistician Val Jonhson’s plan to “make post-hoc adjustments to assigned grades to account for differences in faculty grading policies”—basically, fit a multilevel item-response model to estimate students’ latent abilities based on their grades. As I wrote at the time:

The beauty of Val’s approach is that it does three things:

1. By statically correcting for grading practices, Val’s method produces adjusted grades that are more informative measures of student ability.

2. Since students know their grades will be adjusted, they can choose and evaluate their classes based on what they expect to learn and how they expect to perform; they don’t have to worry about the extraneous factor of how easy the grading is.

3. Since instructors know the grades will be adjusted, they can assign grades for accuracy and not have to worry about the average grade. (They can still give all A’s but this will no longer be a benefit to the individual students after the course is over.)

I still like Val’s idea, but at this point there may be too much grade inflation at some schools for it to work. At some point there is so little signal left that you can’t recover the information you want.

OK, at this point you might say, sure, grades are B.S., whatever. But that puts in the worse position of implicitly requiring students to have other qualifications. At best, this sends students to interesting research projects and internships, but many times it just pushes them into trying to hop on projects to get credentials. Rather than writing some crappy Neurips paper and then learning the tricks to get it accepted, I think they’d be better off taking interesting courses in college, working hard, doing well on exams, and writing good term papers.

Progress in 2024 (Aki)

Here’s my 2024 progress report. There are 5 publications common with Andrew in 2024.

Active Statistics book is the biggest in size, but personally getting the Pareto smoothed importance sampling paper published after 9 years from the first submission was a big event, too. I think I only blogged 2023 progress report and job ads (I sometimes have blog post ideas, but as I’m a slow writer, it’s difficult to find time to turn them to actual posts). I’m very happy with the progress in 2024, but also excited on what we are going to get done in 2025!

Book

Papers published or accepted for publication in 2024

  • Yann McLatchie, Sölvi Rögnvaldsson, Frank Weber, and Aki Vehtari (2025). Advances in projection predictive inference. Statistical Science, accepted for publication. arXiv preprint arXiv:2306.15581. Software: projpred, kulprit.

  • Christopher Tosh, Philip Greengard, Ben Goodrich, Andrew Gelman, Aki Vehtari, and Daniel Hsu (2025). The piranha problem: Large effects swimming in a small pond. Notices of the American Mathematical Society, 72(1):15-25. arXiv preprint arXiv:2105.13445.

  • Kunal Ghosh, Milica Todorović, Aki Vehtari, and Patrick Rinke (2025). Active learning of molecular data for task-specific objectives. The Journal of Chemical Physics, doi:10.1063/5.0229834.

  • Charles C. Margossian, Matthew D. Hoffman, Pavel Sountsov, Lionel Riou-Durand, Aki Vehtari, and Andrew Gelman (2024). Nested Rhat: Assessing the convergence of Markov chain Monte Carlo when running many short chains. Bayesian Analysis, doi:10.1214/24-BA1453.Software: posterior.

  • Yann McLatchie and Aki Vehtari (2024). Efficient estimation and correction of selection-induced bias with order statistics. Statistics and Computing, 34(132). doi:10.1007/s11222-024-10442-4.

  • Frank Weber, Änne Glass, and Aki Vehtari (2024). Projection predictive variable selection for discrete response families with finite support. Computational Statistics, doi:10.1007/s00180-024-01506-0. Software projpred.

  • Aki Vehtari, Daniel Simpson, Andrew Gelman, Yuling Yao, and Jonah Gabry (2024). Pareto smoothed importance sampling. Journal of Machine Learning Research, 25(72):1-58. Online. Software: loo, posterior, ArviZ

  • Manushi Welandawe, Michael Riis Andersen, Aki Vehtari, and Jonathan H. Huggins (2024). A framework for improving the reliability of black-box variational inference. Journal of Machine Learning Research, 25(219):1-71. Online.

  • Noa Kallioinen, Topi Paananen, Paul-Christian Bürkner, and Aki Vehtari (2024). Detecting and diagnosing prior and likelihood sensitivity with power-scaling. Statistics and Computing, 34(57). Online.
    Supplementary code.
    Software: priorsense

  • Erik Štrumbelj, Alexandre Bouchard-Côté, Jukka Corander, Andrew Gelman, Håvard Rue, Lawrence Murray, Henri Pesonen, Martyn Plummer, and Aki Vehtari (2024). Past, present, and future of software for Bayesian inference. Statistical Science, 39(1):46-61. Online.

  • Alex Cooper, Dan Simpson, Lauren Kennedy, Catherine Forbes, and Aki Vehtari (2024). Cross-validatory model selection for Bayesian autoregressions with exogenous regressors. Bayesian Analysis, doi:10.1214/23-BA1409.

  • Marta Kołczyńska, Paul-Christian Bürkner, Lauren Kennedy, and Aki Vehtari (2024). Trust in state institutions in Europe, 1989–2019. Survey Research Methods, 18(1). doi:10.18148/srm/2024.v18i1.8119.

  • Alex Cooper, Aki Vehtari, Catherine Forbes, Lauren Kennedy, and Dan Simpson (2024). Bayesian cross-validation by parallel Markov chain Monte Carlo. Statistics and Computing, 34:119. doi:10.1007/s11222-024-10404-w.

  • Ryoko Noda, Michael Francis Mechenich, Juha Saarinen, Aki Vehtari, Indrė Žliobaitė (2024). Predicting habitat suitability for Asian elephants in non-analog ecosystems with Bayesian models. Ecological Informatics, 82:102658. doi:10.1016/j.ecoinf.2024.102658.

  • Petrus Mikkola, Osvaldo A. Martin, Suyog Chandramouli, Marcelo Hartmann, Oriol Abril Pla, Owen Thomas, Henri Pesonen, Jukka Corander, Aki Vehtari, Samuel Kaski, Paul-Christian Bürkner, Arto Klami (2024). Prior knowledge elicitation: The past, present, and future. Bayesian Analysis, 19(49):1129-1161. doi:10.1214/23-BA1381.

arXived in 2024

  • Marvin Schmitt, Chengkun Li, Aki Vehtari, Luigi Acerbi, Paul-Christian Bürkner, and Stefan T. Radev (2024). Amortized Bayesian Workflow (Extended Abstract). arXiv preprint arXiv:2409.04332.

  • Måns Magnusson, Jakob Torgander, Paul-Christian Bürkner, Lu Zhang, Bob Carpenter, and Aki Vehtari (2024). posteriordb: Testing, benchmarking and developing Bayesian inference algorithms. arXiv preprint arXiv:2407.04967. Database and software: posteriordb

  • David Kohns, Noa Kallionen, Yann McLatchie, and Aki Vehtari (2024). The ARR2 prior: flexible predictive prior definition for Bayesian auto-regressions. arXiv preprint arXiv:2405.19920.

  • Anna Elisabeth Riha, Nikolas Siccha, Antti Oulasvirta, and Aki Vehtari (2024). Supporting Bayesian modelling workflows with iterative filtering for multiverse analysis. arXiv preprint arXiv:2404.01688.

  • Guangzhao Cheng, Aki Vehtari, and Lu Cheng (2024). Raw signal segmentation for estimating RNA modifications and structures from Nanopore direct RNA sequencing data. bioRxiv preprint.

Software

Case studies

  • Aki Vehtari (2024). Nabiximols. Model checking and comparison, comparison of continuous and discrete models, LOO-PIT checking, calibration plots, prior sensitivity analysis, model refinement, treatment effect, effect of model mis-specification.

  • Aki Vehtari (2024). Birthdays. Workflow example for iterative building of a time series model. In 2024, added demonstration of Pathfinder for quick initial results and MCMC initialization.

FAQ

Video

Answering two questions, one about Bayesian post-selection inference and one about prior and posterior predictive checks

Richard Artner writes:

I have two questions. The first one is, of course, related to Bayesian post-selection inference (which I first asked you about five years ago. Back then, you admitted that Bayesians are not immune to overfitting when using the same data to modify/extend a model and to predict with it. Recently, you even mentioned this issue in your new article on Bayesian workflow. However, I have not yet seen research from you (or others) that investigates the effect of a data- (and thought-driven) workflow that replaces models with better ones (better likelihoods and better priors) on overfit and poor out-of-sample predictions. After all, invalid p-values, confidence/credible intervals and biased point estimates are just the other side of the same coin (with overfit and poor predictions representing the other side of the coin). I am currently considering starting a research line that focuses on post-selection inference in Bayesian workflows and any guidance (literature ?) would be greatly appreciated.

The other question concerns the prior predictive distribution whose meaning I struggle with a lot. Henceforth, I provide a quick summary of my issues/thoughts.

A classical, parametric statistical model for measurements is a family of probability distributions P that depend on a finite number of unknown parameters (e.g., the Gaussian family for a single measurement which is determined by a location and a scale parameter). In the M-closed case, the probability distribution that corresponds to those parameter values is the true data-generating process (TDGP). A Bayesian model consists of the likelihood in a conjunction with a prior distribution. Because of this prior distribution, we can make predictions about the measurements via the prior predictive distribution, but when does it make sense to do so? The prior predictive is the marginal distribution of the measurements (i.e., the result of integrating out all model parameters in the joint distribution). Given its definition, the meaning of the prior predictive depends on the choice of prior distribution for the parameter vector. Here are three distinct interpretations of the prior distribution which result in different interpretations of the prior predictive distribution:

View 1: The prior distribution is chosen such that the prior predictive distribution corresponds to (our best guess of) the TDGP.
View 2 (subjective Bayesianism): The prior describes our beliefs about the relative plausibilities of the probability distributions in the model family P.
View 3 (your preferred view?): The prior works as a regularization device that helps mitigating the impact of sampling error on model fit. Similar to View 1, the prior serves a pragmatic goal under this view and the prior predictive can be very different from the TDGP.

Under View 1, the Bayesian model is akin to a fitted classical model. This view requires very strong priors as well as hierarchies (see toy-example below). Furthermore, it can be sensible to compare Bayesian models via Bayes factors under View 1. Under Views 2 and 3, Bayes-factor tests don’t make any sense as they solely depend on the prior predictive distribution of two models (evaluated at the observed data, respectively).

Personally, I have drawn the following conclusions:
The role of the prior predictive (and the posterior predictive) distribution is unclear under Views 2 and 3.
The prior predictive can only be close to the TDGP if there is a hierarchy (e.g., a random effects model where the random effects (the parameters) are first drawn from a certain probability distribution. Afterwards, data are generated using the drawn random effect. Rinse and repeat.) We can illustrate this with a toy example: 3 six-sided dice of equal size are in a bag and one of them is drawn to generate data. One die is fair, one has a 1 on two of its sides and the third one has a 1 on three of its sides.
Situation 1: We draw a die from the bag, roll it, and report whether it showed a 1. Afterwards, we return it to the bag and repeat the process.
Situation 2: We draw one die from the bag and repeatedly roll it (and always report if it showed a 1).
For both situations, an obvious choice for a Bayesian model is a binomial likelihood with a parameter prior of P(theta=1/6)=P(theta=1/3)=P(theta=1/2)=1/3 since we know that each die has the same chance of being drawn. In Situation 1, the prior predictive is the TDGP. In situation 2, it is not. In situation 2, the prior predictive is very different from the TDGP regardless of the die drawn. Nevertheless, our Bayesian model is arguably the best possible model for this toy example (at least from View 2).

Given the above observations/conclusions, I find it difficult to agree with conclusions such as Bayes factors measure prior predictive performance and Bayes factors evaluate priors, cross validations evaluate posteriors. To me, the conclusions drawn by Bob Carpenter in those two blog posts only hold under View 1 (which is really only possible in special cases that involve hierarchies) but not under Views 2 and 3.

How do you interpret the prior predictive? What is its relation to the TDGP? When are Views 1, 2, and 3 reasonable? Are there other relevant views on the prior predictive that are not considered here?

Given that I am unsure about the meaning of the prior predictive, I also struggle with the meaning of the posterior predictive. In particular, it is unclear to me why one would want to make predictions via the posterior predictive under views 2 and 3. If there is little available data, it will be similar to the prior predictive and very different to the TDGP. If there is plenty of data, we could use the posterior predictive and we would be fine (due to the Bernstein-van Mises theorem), but we could also just work with posterior quantiles in that case. Isn’t it always better to predict using posterior quantiles (e.g., the median for our best guess and the .1 and .9 quantile to express uncertainty) instead of the posterior predictive under View 3?

My reply:

In answer to the first question about workflow and post-selection inference, I’d recommend that you look at model-building workflow (building models, checking models, expanding models) as part of a larger scientific workflow, which also includes substantive theory, measurement, and data collection. In statistics and machine learning—theory and application alike—we focus so much on the analysis of some particular dataset in the context of some existing theory. But real science and engineering almost always involves designing new experiments, incorporating new data into our analyses, and trying out new substantive models. From that perspective, looking at post-selection inference is fine—it represents a sort of minimal adjustment of an analysis, in the same way that the sampling standard error from a survey is a minimal statement of uncertainty, representing uncertainty under ideal conditions, not real conditions.

In my own applied work, the sorts of adjustments that would be needed to adjust for model selection would be pretty minor, so it’s not where I focus my theoretical or methodological research efforts.

For bad analyses, it’s another story. For example, if Daryl Bem of those notorious ESP papers were to have used Bayesian methods, he still could’ve selected the hell out of things and found big fat posterior probabilities. But then I think the appropriate way to address this problem would not be to take these (hypothetical) apparently strong results and adjust them for model selection. Rather, I would recommend modeling all the data together using some sort of hierarchical model, which would have the effect of partially pooling estimates toward zero.

To me, doing poorly-motivated model selection and then trying to clean it up statistically is kinda like making a big mess and then trying to clean it up, or blowing something up and then trying to put it back together. I’d rather try to do something reasonable in the first place. And then, yes, there are still selection issues—there’s not one single reasonable hierarchical model, or only one single reasonable regularized machine learning algorithm, or whatever—but the selection becomes a much smaller part of the problem, which in practice gets subsumed by multiple starting points, cross validation, new data and theories, external validation, etc.

In answer to the second question about prior and predictive distributions, let me start by correcting this statement of yours: “A Bayesian model consists of the likelihood in a conjunction with a prior distribution.” The more accurate way to put this is: A Bayesian model consists of a data model in a conjunction with a prior distribution. The data model is the family of probability distributions p(y|theta). The likelihood is p(y|theta), considered as a function of theta for the observed data, y. As discussed in chapters 6, 7, and 8 of BDA3, the data model and the likelihood are not the same thing. There can be many data models that correspond to the same likelihood function. For Bayesian inference conditional on the data and model, you don’t need the data model + prior, you only need the likelihood + prior. But for model checking—prior predictive checking, posterior predictive checking, and everything in between (really, all of this can be considered as different forms of posterior predictive checking, conditioning on different things)—the likelihood isn’t enough; you need the data model too. Again, we have some examples of this in BDA, the simplest of which is a switch from a binomial sampling model to a negative-binomial sampling model with the same likelihood but different predictive distributions.

You ask, “when does it make sense” to make prior or posterior predictions. My answer is that you can interpret such predictions directly, in a literal sense as predictions of hypothetical future or alternative data based on the model. Suppose you have a hierarchical model with modeled data y, local parameters alpha, hyperparameters phi, and unmodeled data x, and your posterior distribution is p(alpha,phi|x,y) proportional to p(phi|x)p(alpha|phi,x)p(y|alpha,phi,x). Just to fix ideas, think of alpha as corresponding to an “urn” from which the data y are drawn, and think of phi as a “room” that is full of urns, each of which corresponds to a different value of alpha. Finally, think of the prior distribution of phi as a “building” full of rooms. The building is your model. – So the generative model is: Go to the building, sample a room at random from that building, then sample an urn at random from the urns in that room, then sample data y from your urn.

Suppose you fit the model and obtain posterior simulations (alpha,phi)^s, s=1,…,S.
– You can simulate new data y* from the prior predictive distribution, which would correspond to picking a new room, a new urn, and new data. For each simulation s, you can do this by drawing phi* from p(phi|x), then drawing alpha* from p(alpha|phi*,x), then drawing y* from p(y|alpha*,phi*,x).
– Or you can simulate new data y* from the posterior predictive distribution for new data from new groups, which would correspond to staying in the same room but then drawing a new urn and new data from that urn. For each simulation s, you can do this by keeping phi^s, then drawing alpha* from p(alpha|phi^s,x), then drawing y* from p(y|alpha*,phi^s,x).
– Or you can simulate new data y* from the posterior predictive distribution for new data from existing groups, which would correspond to staying in the same room and keeping the same urn and then drawing new data from that urn. For each simulation s, you can do this by keeping phi^s, keeping alpha^s, then drawing y* from p(y|alpha^s,phi^s,x).
These three different distributions correspond to different scenarios. They can all be interpreted directly. This has nothing to do with “relative plausibility” or whatever; they’re just predictive distributions of what you might see in alternative rooms and urns, if the model were true.

It’s not necessary to describe this all using multilevel models—you can distinguish between prior and posterior predictive checks with a simple model with just y and theta—but I find the multilevel modeling framework to be helpful in that it allows me to better visualize the different sorts of replications being considered. You could also consider other distributions in a non-nested model, for example predictive data on new patients, new time periods, new hospitals, etc.

Regarding Bob’s posts about Bayes factors and prior predictive checks: I take his point to be not philosophical but mathematical. His point is that the Bayes factor is mathematically an integration over the prior predictive distribution. This is obvious—you can just look at the integral—but it seems that people get confused about the Bayes factor because they look at it in terms of what is supposed to do (give the posterior probability that a model is true, something that I think is typically the wrong question to ask, for reasons discussed in chapter 7 of BDA3 and also this article with Shalizi) rather than what it does. In that sense, Bob’s post fits into a long tradition of statistical research and exposition including Neyman, Tukey, and others who work to understand methods in terms of what they actually do. This does not address your questions about prior and posterior predictive distributions—for that I refer you to the above paragraph about rooms and urns, which is largely drawn from my 1996 paper with Meng and Stern—; you just have to read Bob’s posts literally, not as Bayesian positions but as agnostic “machine learning” descriptions of what prior and posterior predictive checks do.

Bias remaining after adjusting for pre-treatment variables. Also the challenges of learning through experimentation.

Hey, this is the kind of post that everyone absolutely loves. No John Updike, no Joe Biden, no authors or politicians at all. Nothing about p-values or scientific misconduct. It’s not even Bayesian! Just statistics, teaching, and code.

So sit back and enjoy . . .

We had the following problem on the practice exam:

An observational study is simulated using the following code for pre-test x, treatment z, and post-test y:

n <- 100
x <- runif(n, -1, 1)
z <- rbinom(n, 1, invlogit(x))
y <- 0.2 + 0.3*x + 0.5*z + rnorm(n, 0, 0.4)
fake <- data.frame(x, y, z)
fit <- lm(y ~ x + z, data=fake)
estimate <- coef(fit)["z"]

In this simulation, the true treatment effect is 0.5. Which of the following statements is correct?

(a) The estimate will probably be less than 0.5 because the model also adjusts for x, which is positively correlated with z, and this adjustment for 𝑥 will suck up some of the explanatory power of x.

(b) The estimate will probably be greater than 0.5 because there is imbalance in the treatment assignment: the treatment is more likely to be assigned to people with higher pre-test scores, which will artificially make the treatment look more effective.

(c) The estimate will probably be greater than 0.5 because, given the finite sample size, the adjustment for x is noisy and is likely to undercorrect for imbalance in the design.

(d) The estimate is unbiased because the model correctly adjusts for differences in pre-test between treatment and control groups.

OK, first take a moment to figure this one out, and then we will go on.
Continue reading →

New Course: Prediction for (Individualized) Decision-making

This is Jessica. This winter I’m teaching a new graduate seminar on prediction for decision-making intended primarily for Computer Science Ph.D. students. The goal of the new course is to consider various perspectives on what it means to predict for the purpose of decision-making. We’ll look at this question in the context of predictive modeling for automated decisions or to inform expert decisions and causal estimation to inform policy. I’m trying to include a mix of theoretical and applied papers, with an emphasis on philosophical and ethical challenges to evaluating decision-making and applying formal methods in practice, especially in contexts where human experts currently make decisions and/or the decisions involve people. Technically the course title is Prediction for Decision-making. But one of the motivations is that we have yet to adequately address the gap between conventional machine learning, where we optimize loss over aggregates, and the needs of human decision-makers in practice, where we often care about doing right by individual cases. Hence the reference to “individualized.” 

Suggestions welcome if this is your cup of tea and you think I missed something important. A few of the listed papers are already coming from pointers I’ve gotten from readers here. I’m especially interested in papers that help illustrate the gaps in current methods when it comes to good individual decisions. 

Course Schedule

Week 1 – Introduction and background on statistical decision rules

     Background: Statistical decision theory, randomized controlled trials

  • Berger, J. O. (2013). Statistical decision theory and Bayesian analysis. Springer Science & Business Media. Chapter 1.
  • Hernan, Miguel A., & Robins, James, M. (2023). Causal inference: what if. CRC PRESS. Chapters 1, 2

    Examples

Week 2 – Prediction versus decision-making

     Optional

Week 3 – Human versus statistical judgment

     Optional

Week 4 – Evaluating (individual) predictions and decisions

Optional

Week 5 – Data shifts and causality

     Optional

Week 6 – Personalization and fairness

      Optional

Week 7 – Calibration for decision-making

     Optional

Week 8 – Communicating prediction uncertainty

    Optional

Week 9 – Designing human-AI workflows 

     Optional

5 different reasons why it’s important to include pre-treatment variables when designing and analyzing a randomized experiment (or doing any causal study)

In presenting causal inference and randomized experiments, we start with the basic framework in which there are pre-treatment predictors x, treatment z, and outcome y, with potential outcomes y(z). Here it is in Regression and Other Stories:

Our presentation is different than many other textbooks which start with z and y, only later including x.

So then the question arises: Why is it such a good idea to include x? Why is the pre-treatment predictor (or predictors) so important, both in practice and for our understanding of causal inference.

Here are five reasons for including pre-treatment predictors:

1. Adjust for bias in non-randomized design
2. Adjust for random imbalances in randomized design (and for nonrandom imbalances because of imperfect randomization, dropout, etc.)
3. Reduce the standard error of the estimated effect
4. Check for imbalance and lack of overlap between treatment and control groups
5. Generalizing to population with a different distribution of x.

We explain further in chapters 19 and 20 of Regression and Other Stories, but I’m not claiming any originality here. This is all common knowledge among statisticians who work on these sorts of problems. But sometimes people hear about randomization or some other identification strategy, and they don’t realize that:
– Even if you have identification, adjusting for pre-treatment variables can give you statistical efficiency (item 3 above) and generalization (item 5);
– If your identification is imperfect, adjusting for pre-treatment variables can let you check that (item 4) and adjust for problems (item 2);
– In real life usually your identification isn’t everything you think it is, so it’s important to adjust anyway (item 1).

There are lots of ways to do this adjustment: linear regression, logistic regression, nonparametric models, etc. In her classic 2011 paper, Jennifer uses a nonparametric model to simultaneously adjust for differences between treatment and control group and to generalize to the population, and in recent years much more has been done in this area, for example this 2018 paper by Athey and Wager. Again, though, in many settings you can get pretty far from simple linear and logistic regression, as we did in 1990 when estimating incumbency advantage (although we did later return to the problem and do better using a probabilistic selection model).

Similarly, if you have an identification method such as regression discontinuity that already includes one pre-treatment predictor, you should include others. For regression discontinuity in particular, the variable that drives the discontinuity is not always a good predictor of the outcome, and you can do better by also including pre-test scores or whatever.

Again, the general theme is x, z, y. The treatment z affects the outcome y, and you want to model this behavior conditional on pre-treatment characteristics x.

Every once in awhile we come across a study in which there are no pre-treatment variables. Typically this reflects a failure of data collection, where the researchers were overconfident from the purported causal identification in their design. That’s one reason why it’s important to think about x in the design stage, before collecting and analyzing the data.

Sometimes there really isn’t any useful pre-treatment information available. Bummer! Even there, though, I think it’s useful to think about pre-treatment variables and what you would do with them—in the same way that, even if you can’t do random assignment, it’s typically a helpful thought experiment to consider a hypothetical, even if infeasible, randomized design (“force some people to smoke and force others to abstain,” etc.), as this can provide more insight into the process you are trying to model, the effect you’re trying to estimate, and the population of scenarios to which this effect might apply.

What should Yuling include in his course on statistical computing?

Yuling writes:

I have been creating a new course for a PhD level core class on statistical computing in my department. Due to my personal bias, this course will be largely computing methods for Bayesian inference (or probabilistic ML).

I have created a tentative schedule for this course.

Any suggestions on the topics or reading materials that I try to cover?

Please leave your suggestions for topics and reading materials, or any other thoughts you have on statistical computing, in the comments.

My suggestion is that Yuling have them read my article with Aki, What are the most important statistical ideas of the past 50 years?, which is not just about computing but could be helpful to give students a sense of the motivation behind many of the developments in computational statistics.

Call for StanCon 2025+

We are looking for volunteers to organize the next StanCons for 2025 and beyond!

If you are interested in making a proposal (or even just discussing the possibility of making one), please consider reaching out to [email protected].

To make a proposal, please submit this form. The Stan Governing Body will begin reviewing proposals on November 30th. For more information, see our complete post on the Stan forum.

Help teaching short-course that has a healthy dose of data simulation

catsinNH

This post is by Lizzie. I hope you like the cats photo from this summer. I do.

I am looking for help. I decided to change my term course (12-14 weeks-long) on `introduction to Bayesian modeling with some hierarchical modeling’ (no, that’s the not the official title, but that is the gist) to a three-week intensive. I have been thinking about doing this for a couple years, but finally decided to do it now. My feelings in teaching the term-length versus short course is that: (1) a lot of students discover during term that Bayesian approaches are a lot more work than what they can get away with in frequentist methods and lose interest, but are still stuck in class for weeks — this way, when they can find this out, the course will soon be over! (2) As a corollary to (1), taking a Bayesian course (to me) mainly means finding out if you want to dive in and do it more (as you will never learn enough in a term course to be off and running fully), so with a short course, more students will take it and find out if they want to learn more. (3) More students will take a short-course and provide more support for those who want to continue on (building a useful community). (4) More students will take the course and learn how to simulate data, and I want more people to learn this. There’s lots of other reasons, but those are my big ones.

The downsides are that students will likely arrive unprepared and I won’t have time to go through the basics the way I do in 12+ weeks and that generally, there will be less content. Also, no more analyzing your own data as a term project that I support. People will miss that.

The students will be mainly MSc and PhD students in ecology or evolution (but not in molecular evolution, think more: people studying populations of birds and how their phenotypes might evolve) who will hopefully not be taking many other courses. Most will work in R and have some background in statistics, but not have been too challenged to fully understand the statistics they’re using.

I have two days of 3.5 hours each per week for three weeks (about 21 hours) and plan to cover:
Week 1: Data simulation for linear regression; what are priors and some ways to check them
Week 2: Fitting a model in rstanarm to simulated data; diagnostics
Week 3: Introduction to hierarchical models and posterior predictive checks

What I could use help on:
– Suggested classroom activities and problem sets
– Good example datasets or vignettes and generally any other good resource that could help me teach this material
– Advice on how to structure or approach a short course to make it work well
– Recommended background info to point students to

I have some ideas of examples I might use, like simulating data to show how much bigger a sample size you need to estimate an interaction in week 1 perhaps, and the Olympic figure skater example (judges, skaters from Regression and Other Stories) as homework for week 3, but I am really not sure so all advice and ideas would be most welcome.*. I am especially hoping to emphasize data simulation throughout, so ideas there are extra welcome. Please let me know in the comments any ideas/thoughts you have (or you can email me if you much prefer). Thanks in advance.

* One thing that I am NOT looking for is a big debate on the values of trying to teach all the way to hierarchical when people may not really have the basics.

Violent science teacher makes ridiculously unsupported research claims, gets treated by legislatures/courts/media as expert on the effects of homeschooling

Paul Alper shares this horrifying news story by Laura Meckler:

Brian Ray has spent the last three decades as one of the nation’s top evangelists for home schooling. As a researcher, he has published studies purporting to show that these students soar high above their peers in what he calls “institutional schools.” . . .

His influence is beyond doubt. He has testified before state legislators looking to roll back regulations. Judges cite his work in child custody cases where parents disagree about home schooling. His voice resounds frequently in the press, from niche Christian newsletters to NPR and the New York Times. As president of the National Home Education Research Institute, he is the go-to expert for home-school advocates looking to influence public opinion and public policy, presenting himself as a dispassionate academic seeking the truth.

OK, now for the bad news:

Taken as a whole, the academic literature shows mixed academic outcomes for home schooling: Some studies find benefits; others show deficiencies. Nonetheless, Ray’s work, which concludes home-schoolers score far above public school students on standardized tests, has been widely cited for many years. . . .

Hey, how did that happen?

Ray, 69, received his master’s degree in zoology and earned a PhD in science education at Oregon State University, thinking he might be a science teacher. But soon he grew interested in home schooling — both for his own children and professionally. Oregon State University rejected Ray’s proposal to study home education for his dissertation, but he began collecting data. In 1985, he started a journal called the Home School Researcher. Around this time he met Michael Farris, who had co-founded the HSLDA and was beginning to build the Christian home-schooling movement. “He said, ‘Brian, you’re already an expert. But the moment you get your PhD handed to you, call me, and we’ll bring you into court as an expert witness,’” Ray recalled . . .

Ray’s decades of research demonstrate one point beyond dispute: Some portion of home-schooled students do very well academically, and home education can be successful for some children. The question is whether those children are representative of home-schoolers and whether research supports his oft-stated contention that home-schoolers perform 15 to 30 percentile points better than public school students. (Recently, he said, he has revised his estimate to 15 to 25 points.)

Ray’s studies have included thousands of students across the country, often recruited with the help of HSLDA. He compares their results on standardized tests to those of public school students, consistently finding home-schoolers with higher scores in all subjects. He finds home-schoolers register as high as the 80th percentile — sometimes even higher — meaning their average score is better than at least 80 percent of traditionally educated test-takers. . . .

In an interview, he offered some possible explanations. Home education provides small classes, more feedback from adults and freedom from bullying, he said. If anything, Ray told The Post, standardized tests are written to test what students are taught in public school, so home-schoolers are at an inherent disadvantage.

Meckler continues:

Critics cite numerous problems with Ray’s approach: These tests are optional in the vast majority of the country, and many home-schooled students don’t take them. The ones who don’t might have scored far worse if they had been required to sit for exams, as public school students are. Many students take the exams at home, which might offer advantages over public school test-takers who face a controlled environment. And parents had to opt into Ray’s studies, potentially skewing his sample further. Demographic information collected as part of Ray’s research showed almost all students in his samples were White, Christian and came from two-parent married families. Their parents were more educated than average. In short, they were the type of students who tend to do well no matter where they are educated. . . .

What does he say about that?

In an interview, Ray responded that all studies have “limitations,” but he said that does not make his results invalid. He also said he has worked to include more representative samples and demographics in his research, saying methods “mature over time within a field.” . . . Asked whether it’s possible that students who do well in his studies would do well in any setting, given their demographic advantages, Ray replied, “That’s a reasonable hypothesis.”

But:

He dispenses with the caveats when talking about his results to legislators, courts, journalists and the public. In a 2005 book he wrote about home schooling aimed at general readers, Ray repeatedly cited his studies’ findings with none of the cautions included in academic papers. He mentions none on his website, either. He takes the same approach with the press. “The research said over and over again,” he told the Pensacola News Journal in 2012, “that these young people are performing above average and on average they’re surpassing public school students.” . . .

A 2009 “progress report” focused on his findings said, “Homeschoolers are still achieving well beyond their public school counterparts,” a generalization that does not take into account the demographics of his sample. . . .

Last year, New Hampshire lawmakers were considering whether to remove a requirement that home-schooled students show “reasonable academic proficiency,” which was defined as scoring in the 40th percentile or higher on state exams. Ray was among those making the case for reduced regulation. Ray testified that “40 years of research” by “various scholars” finds home-schooled students “typically outperform public school students by 15 to 30 percentile points.” . . .

The story gets much much worse (see below), but here I want to comment on something else, which is, on a research level, that all of this is just slightly worse than . . . some of the highest-profile academic research on education being conducted at top universities!

Remember that claim that early-childhood intervention increased later adult earnings by 42%? That was another case of selection bias (see also here), albeit a bit less blatant than what Ray did. It makes sense that, when a team of credentialed economists make an error, it’s a more subtle error than that made by someone trained in zoology and science education.

That said, there’s a disturbing consonance between the zoologist’s “If anything . . .” and the economist’s “Their relatively small sample sizes actually speak for — not against — the strength of their findings.” The common thread: an absolute eagerness to explain away problems, a focus not on probing and figuring our what could go wrong but rather an insecure defensiveness. Lots of glib answers (in the zoologist’s case, supported by irrelevant Bible quotations; in the economist’s case, supported by irrelevant mathematical arguments), not much thought. And, of course, policy impact. Lots of hype, lots of NPR appearances, the whole deal.

So, yeah, this world of bogus homeschooling statistics is a kind of funhouse-mirror version of prestige social science.

Just to be clear, I’m not saying that all education research is bad. Education research is important, and there’s some good stuff! The bad thing is this push-a-button, take-a-pill model, the idea that you can do an experiment on 130 kids and discover a 42% effect. This homeschooling stuff is worse, as they’re not even trying to do things right—but the consequences are kind of the same. They make big claims, they get media attention, respectful treatments from courts and legislatures who are just looking for someone credentialed to give them the message they want to hear.

In human terms, though, this is all much worse.

Also from the news article:

[Ray’s oldest daughter, Hallie Ray Ziebart] said her father taught her almost no math, routinely required her to work long hours for his nonprofit institute during school days, and whipped her and her siblings with switches and other objects when they disobeyed his orders. Her allegations were echoed by two of her siblings and by four others who spent time at their home. Some of her charges are bolstered by journals she kept at the time. . . . She said that she was told, for instance, that the slave trade was “meant for evil but God made it for good” and that things worked out for enslaved people “because they got to be Christians.”

Here are some horrible details:

Ziebart has spoken publicly about what she calls physical abuse — being hit with sticks, wooden spoons and a cord as a young child and teenager. She also described this in two journal entries written in her adolescence that she provided to The Post. Several others inside and outside the family also said Ray used physical discipline. In a journal entry dated Dec. 17, 1992, Ziebart, then 12, described one conflict where her father “grab(b)ed my head and shook me hard.” “I have been having ear ac[h]es and I had one today and when he did that it hurt me bad, inside & out,” she wrote. “I love him so much and [he] shouldn’t have hurt me.”

Ray responded: “We used legal and loving spanking. Period.”

I love the “legal” part. Just in case anyone questions the idea that assault and battery is not “loving,” he’s still got legality of it covered.

And this all gives a horrible twist to another part of the story:

Ray often serves as an expert witness in family disputes, typically where one parent wishes to home-school the children and the other doesn’t. Ray listed about 90 cases where he testified (or was prepared to when the case settled) on a document submitted to a Washington state court in 2022.

On the plus side, he doesn’t seem to have tried to run anyone over in a parking lot.