Statistical graphics: When does it make sense to introduce deliberate distortion to counteract an expected perceptual illusion?

It’s been awhile since we’ve had a post entirely devoted to graphics!

Kaiser writes:

The link here contains an example of how the line-angle illusion can lead to misreading of trends on line charts:

Is there a bigger difference in revenue at Time 1 than Time 2? Many of us will think so but on careful judgment, I think all of us can agree that the difference at Time 2 is in fact larger. . . .

Studies have shown that humans tend to read not the vertical gaps but the angular gaps. Again, this issue is illustrated in the first mentioned paper:

Matthias explained that their implementation of the hammock plot uses a strategy to counteract this line-angle illusion.

I take this to mean they distort the data in such a way that after readers apply the line-angle illusion, the resulting view would convey correctly the correct trend. A kind of double negative strategy. The paper linked above offers one such counter-illusion strategy.

I imagine this is a bit controversial as we are introducing deliberate distortion to counteract an expected perceptual illusion.

I’m not aware of any software that offers built-in functions that perform this type of illusion-busting adjustments. Do you know any?

I’ve actually thought about this question a lot! In some sense, just about all statistical graphs introduce deliberate distortion to counteract an expected perceptual illusion, in the sense that, with the exception of maps and astronomical charts, a graph is an abstract representation of data.

But to get closer to what Kaiser is asking: the analogy I’ve given is, suppose you’re building a wooden chair but using boards that are warped. In this case, the right thing to do is to incorporate the warp into the design, i.e. cut some pieces shorter than others and at different angles, etc., so that they fit together as is, rather than trying to go all rectilinear and then glue/nail everything together. The trouble with the latter strategy is that the wood will exert pressure on the joints and eventually the chair will break or distort itself in some way.

So, similarly, if you can anticipate that a graph will be misread, it’s a good idea to account for this possibility in the design.

Most simply we do this by just not making graphs such as tilted pie charts, 3-D bar charts, and other gimmicks that jump off the page and engage all sorts of visual illusions.

The other common option is to make an additional graph. For example, you could keep the graph above with the two time series but just add another graph showing their difference. Why not?

But what about Kaiser’s original question: are there any graphs with deliberate distortions designed to counteract perceptual illusions of visual artifacts? (I guess that a log transformation doesn’t count here.)

I don’t have any perfect examples here, but I have one example from my applied research that comes close.

The example comes from my paper with Yotam on social penumbras. First there’s the explanatory diagram:

Then the data graph:

There are two things going on here.

First, the diagram is a circle but the data graphs are quarter circles, which we did for two reasons: (a) the quarter circle takes up only a quarter as much space, which is important when we’re displaying 14 of these at once (yes, you could just make smaller full circles but then you have only half the resolution when comparing sizes), and (b) for the goal of comparing one group to the next, quarter circles are better because you can compare the slices, as compared to full circles which all just look like bullseyes and are hard to tell apart.

Second, areas of shapes are notoriously difficult to compare. Why did we do these damn circle plots at all? Why not dot plots or repeated bar charts or some other visualization that would facilitate linear comparisons? The answer is that it was important to us to preserve the “feel” of the penumbra, the idea of concentric social groups. We were willing to pay a bit in statistical clarity in order to have this conceptual unity of the graph and the content of the paper.

But then the issue arises that, when comparing areas, people don’t really compare areas. Nor do they compare linear dimensions. At least according to Cleveland’s classic book, the implicit comparison is something in between. So by displaying the data as areas, we’re knowingly handing people a distortion. For example, if a certain group represents 1% of the population, then the core group (the yellow circle in the graph) will take up 1% of the area of the full circle and thus will be 10% in linear dimension.

That’s bad, right? Maybe not! Several of the groups in our study did have core populations, and if these were displayed as 1% in the linear dimension, they’d be really hard to tell apart. By using these intuitive-looking area graphs, we’re implicitly doing a square-root transformation without having to explain it. So I think it’s fair to say that we’re taking advantage of a perceptual illusion.

P.S. Pro tip: Do you see how in our graph, we order the groups by increasing size. Not alphabetically. You should almost never display your data alphabetically. OK, here’s a rare counterexample, with a slightly prettier visualization and some more graphs in Section 2.3 (“All graphs are comparisons”) of Regression and Other Stories:

For these we displayed the data straight up, no distortion.

Election analytics positions available at the New York Times

Will Davis writes:

I oversee the Election Analytics department (aka The Needle and The Times/Siena Poll) at The Times.

We’re lucky enough to have two great roles open on the team right now for people excited to make a career in the field of election analytics.

* Election analyst: This is a mostly technical role, but it comes with the opportunity to write. This person would be responsible for some most essential elements of our election polling and modeling — modeling unit-level turnout and vote share, creating baselines for The Needle and helping us continue to innovate the design of The Times/Siena Poll.

* Election researcher: This is a great job for somebody with less of a technical skillset who’s eager to be around a team they can learn a ton from. It’s primarily focused on manual research and data entry.

These sound like excellent an opportunity to combine statistical modeling, computation, and graphics.

“Exploratory data analysis” and “confirmatory data analysis” are the same thing.

This is not new–it just happened to come up in class the other day and I thought it was worth saying again. I made the point in my 2003 article, A Bayesian formulation of exploratory data analysis and goodness-of-fit testing, and in chapter 6 of Bayesian Data Analysis, back in 1995.

Here’s an explainer from 2010:

So-called exploratory and confirmatory methods are not in opposition (as is commonly assumed) but rather go together. The history on this is that “confirmatory data analysis” refers to p-values, while “exploratory data analysis” is all about graphs, but both these approaches are ways of checking models. Bayesians should embrace graphical displays of data—which I interpret as visual posterior predictive checks—rather than, as is typical, treating exploratory data analysis as something to be done quickly before getting to the real work of modeling.

Here’s how I see things usually going in a work of applied statistics:

Step 1: Exploratory data analysis. Some plots of raw data, possibly used to determine a transformation.

Step 2: The main analysis—maybe model-based, maybe non-parametric, whatever. It is typically focused, not exploratory.

Step 3: That’s it.

I have a big problem with Step 3 (as maybe you could tell already). Sometimes you’ll also see some conventional model checks such as chi-squared tests or qq plots, but rarely anything exploratory. Which is really too bad, considering that a good model can make exploratory data analysis much more effective and, conversely, I’ll understand and trust a model a lot more after seeing it displayed graphically along with data.

There’s some history to all of this. John Tukey’s classic book, Exploratory Data Analysis, was published in 1977 but I believe he began to work in that area in the 1960s, about ten or fifteen years after doing his also extremely influential work on multiple comparisons (that is, confirmatory data analysis). I’ve always assumed that Tukey was finding p-values to be too limited a tool for doing serious applied statistics–something like playing the piano with mittens. I’m sure Tukey was super-clever at using the methods he had to learn from data, but it must have come to him that he was getting the most from his graphical displays of p-values and the like, rather than from their Type 1 and Type 2 error probabilities that he’d previously focused so strongly on. From there it was perhaps natural to ditch the p-values and the models entirely–as I’ve written before, I think Tukey went a bit too far in this particular direction–and see what he could learn by plotting raw data. This turned out to be an extremely fruitful direction for researchers, and followers in the Tukey tradition–I’m thinking of statisticians such as Bill Cleveland, Howard Wainer, Andreas Buja, Diane Cook, Antony Unwin, etc.–continued to make progress here. More recently, this has overlapped with work by Hadley Wickham and others on EDA-friendly graphics software and work by Jessica Hullman and others on the communication of uncertainty and variation.

The actual methods and case studies in the EDA book . . . well, that’s another story. Hanging rootograms, stem-and-leaf plots, goofy plots of interactions, the January temperature in Yuma, Nevada—all of this is best forgotten or, at best, remembered as an inspiration for important later work. Tukey was a compelling writer, though–I’ll give him that. I read Exploratory Data Analysis twenty-five years ago and was captivated. At some point I escaped its spell and asked myself why I should care about the temperature in Yuma–but, at the time, it all made perfect sense. Even more so once I realized that his methods are ultimately model-based and can be even more effective if understood in that way (a point that I became dimly aware of while completing my Ph.D. thesis in 1990–when I realized that the model I’d spent two years working on didn’t actually fit my data–and which I first formalized at a conference talk in 1997 and published in 2003 and 2004. It’s funny how slowly these ideas develop.).

It’s funny about Tukey’s work on multiple comparisons. He wrote an entire unpublished book on the topic, along with many short research articles. Individually each of these articles is readable and compelling, but, stepping back, I see how it’s all based on a foolish familywise error framework.

Here’s what I think happened: Tukey was following some version of the operations-research approach to statistics associated with Wald. It makes sense–this was the framework that they used to win the second world war. And it was pretty much the only game in town (yes, there was also Bayes, but for historical reasons Bayesian methods got no respect back then). Tukey was brilliant, a great problem solver, co-inventor of the fast Fourier transform and lots of other things, but for whatever reason he didn’t apply his depth, breadth, and creativity toward thinking about the fundamentals. I guess you’d call him a fox. In the usual telling, the fox is the hero and the hedgehog is the boring obsessive, and it’s fair to say that the world benefited from Tukey’s foxness, his interest in developing new methods and solving problems rather than refactoring the foundations of statistics–but I think that his lack of depth in that area contributed to him wasting a lot of time and effort on multiple comparisons, to the extent that his only way forward was to rip it all up and start again with EDA.

From a modern perspective, EDA and CDA are the same thing: they’re both ways of comparing observed data to hypothetical replications under a model. Recall the goal of EDA to discover the unexpected: “the unexpected” is defined relative to “the expected,” hence EDA is model checking just as CDA is, with the only differences being: (a) in EDA the display is visual rather than numerical, (b) in EDA the reference model is often defined implicitly rather than explicitly.

Indeed, the “news you can use” aspects of this post–and of my general point about EDA being the same as CDA–are:

1. If you’re gonna do EDA, make your reference model as explicit as possible. The clearer your assumptions, the better you can find problems. It’s Popper–or, really, Lakatos–in action.

2. If you’re gonna fit complex models (which we’re doing more and more of in statistics and machine learning), EDA is more important than ever. EDA is not a set of qq plots you make before getting to the serious bit of modeling; it’s a key step in workflow. I frame this Bayesianly as this is the simplest way for me to do the work, but you can do non-Bayesian versions as long as you have generative models for your data, and as long as your methods are flexible enough to accommodate different sources of information. (Recall the most important aspect of a statistical method.)

Unfortunately, Tukey was stuck in an old-fashioned statistical framework–good enough to solve operations research problems in the war, but not strong enough for all the applied problems he and others were encountering in the 1960s and later–so, for historical reasons, EDA and CDA were perceived as opposites. Which is too bad. Hence this post, which repeats things that my colleagues and I have been saying for 30 years, and which was implicit in the work of Rubin, Box, and others for longer than that.

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!

Buy your Tesla at closing time: For 15 years, these stocks have been mildly fluctuating during the day and shooting up overnight.

Bruce Knuteson shares the above plot and writes:

Look at the strikingly suspicious overnight and intraday returns to Tesla’s stock noted by the Financial Times (cf. my rejoinder) and Forbes.

This suspicious return pattern in TSLA is easy to reproduce [data]. Nobody has articulated a plausible innocuous explanation for it. The only explanation that fits the facts is the market manipulation we have discussed. That has been the only explanation for nearly a decade now. Tesla’s stock is the source of much of Elon Musk’s wealth. The public still doesn’t know about this suspicious return pattern in the source of much of Elon Musk’s wealth because nobody has told them.

This has come up before, and it’s not just Tesla. Here’s a a graph that Knuteson sent me a couple years ago as evidence of market manipulation:

As I said at the time, I absolutely have no idea about this sort of thing. I ran into someone yesterday who used to work in financial markets and he was saying there was some class of high-volume traders who never like to hold onto assets overnight. And various theories came up in the comments to our previous post.

It’s an interesting statistical puzzles, in part because from my perspective it’s essentially impossible to understand without lots of subject-matter knowledge. And, unlike some other statistical puzzles (for example, the one discussed here) it’s a live issue.

One question that came up before is how this pattern looks for other financial assets. Knuteson shows a bunch of the relevant plots in this paper, for example:

Again, I entirely defer to others in trying to understand this one.

P.S. Knuteson also has this comment regarding the graphical displays:

You can learn a lot from a simple simulation (example of experimental design with unequal variances for treatment and control data)

We were talking about blocking in experiments in class today, and a student asked, “When should we have unequal numbers of units in the treatment and control groups?”

I replied that the simplest example is when the treatment is expensive. You could have 10,000 people in your population but only enough budget to apply the treatment to 100 people, so 99% will be in the control group. In other settings, the treatment might be disruptive, and, again, you’d only apply it to a small fraction of the available units.

But even if cost isn’t a concern, and you just want to maximize statistical efficiency, it could make sense to assign different numbers of units to the two groups.

For example, I started to say, suppose that your outcomes are much more variable under the treatment than the control. Then to minimize the basic estimate of the treatment effect—the average outcome in the treatment group, minus the average among the controls—you’ll want more treatment observations, to account for the higher variance.

But then I paused. I was struck by confusion.

There are two intuitions here, and they go in opposite directions:

(1) Treatment observations are more variable than controls. So you need more treatment measurements, so as to get a precise enough estimate for the treatment group.

(2) Treatment observations are more variable than controls. So treatment observations are crappier, and you should devote more of your budget to the high-quality control measurements.

I had a feeling that the correct reasoning was (1), not (2), but I wasn’t sure.

So how did I solve the problem?

Brute force.

Here’s the R:

n <- 100
expt_sim <- function(n, p=0.5, s_c=1, s_t=2){
  n_c <- round((1-p)*n)
  n_t <- round(p*n)
  se_dif <- sqrt(s_c^2/n_c + s_t^2/n_t)
  se_dif
}
curve(expt_sim(100, x), from=.01, to=.99,
  xlab="Proportion of data in the treatment group",
  ylab="se of estimated treatment effect",
  main="Assuming sd of measurements is\ntwice as high for treated as for controls",
  bty="l")

And here's the result:

Oh, shoot, I really don't like how the y-axis doesn't go all the way to zero. It makes the variance reduction look more dramatic than it really is. Zero is in the neighborhood, so let's invite it in:

curve(expt_sim(100, x), from=.01, to=.99,
  xlab="Proportion of data in the treatment group",
  ylab="se of estimated treatment effect",
  main="Assuming sd of measurements is\ntwice as high for treated as for controls", 
  bty="l",
  xlim=c(0, 1), ylim=c(0, 2), xaxs="i", yaxs="i")

And we can see the answer: if there's twice as much variation in the treatment group as in the control group, then you should take twice as many measurements in the treatment group. The curve is minimized at x=2/3 (which we could check without plotting anything, but the graph provides some intuition and a sanity check). Argument (1) above is correct.

On the other hand, the standard error from the optimal design isn't much lower than the simple 50/50 design, as can be seen by computing the ratio:

print(expt_sim(100, 1/2) / expt_sim(100, 2/3))

which yields 0.95.

Thus, the better design yields a 5% reduction in standard error--that is, a 10% efficiency gain. Not nothing, but not huge.

Anyway, the main point of this post is you can learn a lot from simulation. Of course in this case the problem can be solved analytically---just differentiate (s_c^2/(1-p) + s_t^2/p) with respect to p and set the derivative to zero, and you get s_c^2/(1-p)^2 - s_t^2/p^2 = 0, thus s_c^2/(1-p)^2 = s_t^2/p^2, so p/(1-p) = s_t/s_c. That's all fine, but I like the brute-force solution.

The answer to the how-many-significant-digits problem is the same as the answer to the what-to-graph problem: The click-through solution

We sometimes have discussions on the blog warning people against displaying too many significant digits. For example, back in 2012 I asked, “Is it meaningful to talk about a probability of “65.7%” that Obama will win the election?”, and I answered, No, it is not. That last digit being displayed is essentially pure noise, and fluctuations in that digit tell us nothing at all.

For another example, I was once discussing a paper that reported, “Of the 914 sexual minorities in our sample, 134 (14.66%) were dead by 2008,” to which I replied that it’s poor practice to call this 14.66% rather than 15%—it would be kinda like saying that Steph Curry is 6 feet 2.133 inches tall—but this is not important for the paper, it’s only an indirect sign of concern as it indicates a level of innumeracy on the authors’ part to have let this slip in.

But then a colleague pointed me to this post entitled, “Please show lots of digits,” arguing that “this is how you catch frauds.”

Good point! This came up in the recent Venezuelan election. First the vote counts as reported:

And then with a bunch of extra decimal places:

Those extra digits would serve no useful value—if we believed the numbers were correct. But the weirdness of the result is strong evidence that those exact vote totals are wrong, that they were reverse-engineered from the rounded values.

Here’s how Dean Eckles put it:

In some cases, reporting many digits can indeed be a costly signal — in that if they aren’t based on the stated calculations, it may be possible to figure out that they are impossible (e.g., via a granularity-related inconsistency of means aka GRIM test). This is perhaps one argument for at least reporting excess digits in tables (though not abstracts and press releases certainly!). Perhaps this argument is somewhat outdated if data and analysis code are provided in addition to results in a paper or report itself, though this remains not always the case.

The dilemma

On one hand, spew out a zillion digits every time and you’ll make your papers unreadable and even misleading. The author of that linked post refers to this as a “petty writing style opinion” and a “silly non-issue,” but . . . communication is important, and calling it “style” or “silly” doesn’t change that!

One way I explain this to students is by saying: Just as, when writing an article, you shouldn’t include a paragraph you don’t want people to read, you also shouldn’t include a table full of numbers you don’t want people to look at. People’s attention is limited, and that’s how it should be.

On the other hand . . . yeah, there can be gold in them thar decimal places. This came up in our recent description of election forecasts, where I praised The Economist for rounding their forecasts (I can’t remember their exact phrasing, but it was something like “even odds,” “3 out of 5 chance” “2 out of 3 chance,” etc., essentially presenting win probabilities rounded to the nearest of 50%, 60%, 66.6%, etc.), and a commenter responded that, sure, it’s good to not be misleading, but then there’s this awkward moment when the odds suddenly jump from approximately even to approximately 50% to approximately 60%, and that apparent discrete jump can itself be misleading. Also, as discussed in that linked post, extra decimal places can reveal problems in the analysis pipeline.

For another such example, check out this amusing story from James Heathers: “The data are on a 1-5 scale, the mean is 4.61, and the standard deviation is 1.64 . . . What’s so wrong about that??”

What to do, then?

My recommendation is what we’ve called the click-through solution: Start with an accessible summary that brings the reader in. Then click for statistical graphs that allow more direct visual comparisons. Then click again to get a spreadsheet with all the numbers and a list of sources.

In the context of a published article, step 1 would be the article itself, with appropriately rounded numbers (or, even better, graphs), step 2 is the supplementary information with full tables with additional decimal places, if that’s how you roll, and step 3 are the files with data and code. Do it all.

Talks Feb 11 (Princeton) and Feb 18 (Stanford) on benchmarking human decisions from predictions

This is Jessica. I’m giving talks this Tuesday and next Tuesday on decision theoretic approaches for combining human domain knowledge with statistical models. I’ll discuss various joint projects with Ziyang Guo, Yifan Wu, and Jason Hartline. Come by if you’re around Princeton or Stanford campuses!

Benchmarking decisions from visualizations and predictions
Tues Feb 11, 12pm
Seminar in Advanced Research Methods, Princeton Department of Psychology

How well does a particular information display support decision-making? This question comes up when studying human behavior under different strategies for presenting information (e.g., forecast displays, data visualizations, displays or explanations of model predictions) and in our own research when we must decide how to plot our results or report effects. Understanding how helpful a visualization or other presentation is for judgment and decision-making is difficult because the observed performance in an experiment is confounded with aspects of the study design, such as how useful the information that is provided is for the task. Typical approaches to designing such studies make it difficult to assess how well study participants did relative to the best attainable performance on the task, and to diagnose sources of error in the results. I will discuss how decision-theoretic frameworks that conceive of the performance of a Bayesian rational agent can transform how we design and evaluate visualizations and other decision-support interfaces, such as explanations of model predictions.

The value of information in model-assisted decision-making
Tues Feb 18, 4:30 pm
Statistics Seminar, Stanford Department of Statistics

The widespread adoption of AI and machine learning models in society has brought increased attention to how model predictions impact decision processes in a variety of domains. I will describe tools that apply statistical decision theory and information economics to address pressing question at the human-AI interface. These include: how to evaluate when a decision-maker appropriately relies on model predictions, when a human or AI agent could better exploit available contextual information, and how to evaluate (and design) prediction explanations. I will also discuss some cases where statistical theory falls short of providing insight into how people may use predictions for decisions.

Graphical display of election forecast uncertainty

Josh Goldstein, author of The Formal Demography of Peak Population and other things, writes:

What do you think about this kind of graphical display in today’s NYT?

The margins of error are hugely overlapping, but, if I did my calculation correctly, the SE on the difference of 3% is only about 1.4% or so, and so the difference itself is > 2SEs from 0. If we want to know if “Harris is really ahead”, should you believe this picture and say that it’s too uncertain to say? Or, should you believe the SE of difference approach and say that it appears very likely that she’s ahead, at least by a little?

More generally, it makes me think that when we do coefficient plots with the intention of visually trying to figure out if there are important differences between coefficients that it might be better to plot +/- 1 SE and not +/- 2.

I replied that Harris is currently ahead in the popular vote, as estimated from the polls. But the polls have nonsampling error, so maybe she’s not really ahead, or maybe she’s ahead by less or more than the polls indicate. Our rough calculation is to double the standard error to account for nonsampling error. Also, it’s expected that Harris needs something like 51% or 52% of the national two-party vote in order to win the electoral vote this year (an effect that has varied over time), so being ahead in the popular vote isn’t enough.

Goldstein adds:

On separate topic, also kind of interesting that we seem as a society to be post-election-forecasting. Maybe I’m just projecting my own feelings, but it seems that this time, everyone is just willing to wait and not screaming about the polls/forecasts etc. Maybe we’re just worn out!

I dunno, I think it’s just that the forecasts are so close. If the election were decided by national popular vote, or if it wasn’t expected that there will be an electoral/popular vote mismatch, then I think there’d be a lot of discussion of whether Harris’s win probability is 60% or 70% or 80% or 90% or whatever. But since there’s so much uncertainty in the electoral vote, we just can’t say much. Some poll aggregators can try to construct news out of nothing by reporting win probabilities to the nearest fraction of a percentage point, but, as we’ve discussed before, that’s pretty meaningless.

Where should we publish our paper, “Statistical graphics and comics: Parallel histories of visual storytelling”?

Hey! Susan Kruglinski and I wrote this article I really like, Statistical graphics and comics: Parallel histories of visual storytelling:

What do data visualization and cartoons have in common? One of these is used to communicate in science and journalism, and the other appears in arts and entertainment, but both convey complex messages in economical, intuitive, and visually appealing ways. And both these graphic forms are relatively new, having made rapid progress only in the past few centuries, despite requiring little in the way of raw material to produce. We connect this history to a combination of abstraction and accessibility that is common to both these forms of visual expression: comic strips and scatterplots both now seem intuitive but represent the development of abstract conventions. We also discuss differences between these two methods of visual storytelling in their goals and in how they are experienced by the reader.

Read the whole thing. It has a message I think is important.

But my message to you is: Where should we publish this article? We sent it to the journal American Statistician, which didn’t seem quite right; in any case they agreed with that assessment and told us it would be better to publish somewhere else. But we’re not sure where.

There’s no need for the paper to appear in a statistics journal, or in a “journal” at all–it’s not like we’re getting “publish or perish” credit for it! Lots of non-statistician “civilians” are interested in dataviz and comics, and I’d like to reach some audience beyond whoever’s reading this post right now.

If you have any thoughts on where to publish this article–or, of course, any thoughts on the substance of the article itself–you can just let us know right here in the comments section. Otherwise, just enjoy the article.

Make a hypothesis about what you expect to see, every step of the way. A manifesto:

We learn from surprise.

Surprise is when something unexpected happens.

The unexpected is defined relative to the expected.

To learn from surprise, it is good practice to specify the expected in as detailed a form as possible.

OK, here it is again, from a slightly different angle:

“The greatest value of a picture is when it forces us to notice what we never expected to see.” — John Tukey, from his classic book, Exploratory Data Analysis.

We will be most prepared to learn from the unexpected if we think clearly about what we are expecting.

Nathan Yau offers a good take:

Data exploration with visualization is good, but when someone describes their project as an exploration tool, it often means it lacks focus or direction. Instead it looks like generic graphs that don’t answer anything particular and leave all interpretation to the reader.

In doing research I find it useful to pause frequently before getting results to predict what I expect to see. In that way, I learn much more than if I just fumble forward, seeing what comes up. Research is a much more active process if I put in the work to formulate my expectations.

Similarly, when conducting a computer demonstration in class, I’ll pause before hitting Return and ask the students to discuss in pairs what they expect the output to be. Making that commitment is a valuable step toward learning.

All this is related to the idea that when you do applied statistics, you’re acting like a scientist. It also came up in the comment thread on statistical practice as scientific exploration.

One good thing about NIH research proposals is that they typically include statements of hypotheses: not “null hypotheses,” which I hate, but scientific hypotheses representing theories and expectations of what might happen. I think that’s much better than just jumping in and gathering data. Your hypotheses might well be wrong—we learn from our mistakes, we learn from the unexpected. But, again, this is all so much more effective when we write down these expectations, as explicitly as possible.

Instability of win probability in election forecasts (with a little bit of R)

Recently we’ve been talking a lot about election forecasting:

Election prediction markets: What happens next?

Why are we making probabilistic election forecasts? (and why don’t we put so much effort into them?)

What’s gonna happen between now and November 5?

Polling averages and political forecasts and what do you really think is gonna happen in November?

The election is coming: What forecasts should we trust?

One thing that comes up in communicating election forecasts is that people confuse probability of winning with predicted vote share. Not always—when the win probability is 90%, nobody’s thinking a candidate will get 90% of the vote—but it’s an issue in settings like the current election, where both numbers are close to 50%. If Harris is predicted to have a 60% chance of winning the electoral college, this does not imply that she’s predicted to win 60% of the electoral vote or 60% of the popular vote.

There are different ways to think about this. You could draw an S curve showing Pr(win) as a function of expected vote share. Once your expected share of the two-party vote goes below 40% or above 60%, your probability of winning becomes essentially 0 or 1. Indeed, if you get 54% of the two-party vote, this will in practice guarantee you an electoral college victory; however, an expected 54% will not translate into 100% win probability, because there’s uncertainty about the election outcome: if that forecast is 54% with a standard deviation of 2%, then there’s a chance you could actually lose.

A few years ago we did some calculations based on the assumption that the national popular vote can be forecast to within a standard deviation of 1.5 percentage point with a normally-distributed uncertainty. So if Harris is currently predicted to get 52% of the two-party vote, let’s say the forecast is that there’s a two-thirds chance she’ll get between 50.5% and 53.5% of the vote and a 95% chance she’ll get between 49% and 55% of the vote. This isn’t quite right but you could change the numbers around and get the same general picture. This forecast gives her a 90% chance of winning the popular vote (in R, the calculation is 1 – pnorm(0.5, 0.52, 0.015) = 0.91) but something like a 60% chance of winning in the electoral college—it’s only 60% and not more because the configuration of the votes in the states is such that she’ll probably need slightly more than a majority of the national vote to gain a majority of the electoral votes. As a rough calculation, we can then say she needs something like 51.6% of the two-party vote to have a 50-50 chance of winning in the electoral college (in R, the calculation is qnorm(0.4, 0.52, 0.015) = 0.516).

Now what happens if the prediction shifts? Increase Harris’s expected vote share by 0.1% (from 52% to 52.1%) and her win probability goes up by 2.5 percentage points (in R, this is pnorm(0.516, 0.52, 0.015) – pnorm(0.516, 0.521, 0.015) = 0.025).

Increase (or decrease) Harris’s expected vote share by 0.4% and her win probability goes up (or down) by 10 percentage points. The other way you can change her win probability—bringing it toward 50%—is to increase the uncertainty in your forecast.

So one reason I don’t believe in reporting win probabilities to high precision is that these win probabilities in a close election are highly sensitive to small changes in the inputs. These small changes can be important—in a close election, a 0.4% vote swing could be decisive—but that’s kind of the point: it’s the very fact that it would be likely to be decisive which makes the win probability strongly dependent on it.

One thing I like about the Economist’s display (see image at the top of this post) is that they report the probability as “3 in 5.” This is good because it’s rounded—it’s 60%, not 58.3% or whatever. Also, I like that they say “3 in 5” rather than “60%,” because it seems less likely that this would be confused with a predicted vote share.

P.S. This is all relevant to Jessica’s recent post, partly because we coauthored a paper a few years ago (with Chris Wlezien and Elliott Morris) on information, incentives, and goals in election forecasts, and more specifically because binary predictions are hard to empirically evaluate (see here) so this is a real-world example of the common scientific problem of having to make a choice that can’t be evaluated on a purely empirical or statistical basis.

Getting a pass on evaluating ways to improve science

This is Jessica. I was thinking recently about how doing research on certain topics related to helping people improve their statistical practice (like data visualization, or open science) can seem to earn researchers a free pass where we might otherwise expect to see rigorous evaluation. For example, I’m sometimes surprised when I see researchers from outside the field getting excited about studies on visualization that I personally wouldn’t trust. It’s like there’s a rosy glow effect when they realize that there is actually research being done on such topics. Then there is open science research, which proposes interventions like preregistration or registered reports, but has been criticized for failing to rigorously motivate and evaluate its claims.

Some of it is undoubtedly selective attention, where we’re less inclined to get critical when the goals of the research align with something we want to believe. Maybe there’s also an implicit tendency to trust that if researchers are working on improving data analysis practices and eliminating sources of bias, they must understand data and statistics well enough themselves not to make dumb mistakes. (Turns out this is not true). 

But on the more extreme end, there’s a belief that the goal of these procedures, whether its “improving science” in the open science case or “improving learning and decision-making from data” in the visualization case, are too hard to evaluate in the usual ways. In visualization research for example, this sometimes manifests as pushback to anything perceived as too logical positivist. Some argue that to really understand the impacts of the visualization or data analysis tools we’re developing, we need to use ethnographic methods like embedding ourselves in the domain as participant observers. 

Arguments against controlled evaluation also pop up in meta-science discussions. For example, Daniel Lakens recently published a blog post that argues that science reforms like preregistration are beyond empirical evidence, because running the sort of long-term randomized controlled experiments to produce causal evidence of their effect is prohibitive. He references Paul Meehl’s idea of cliometric meta-theory, the long term study of how theories affect scientific progress. 

Lakens however is not suggesting a more ethnographic or interpretivist approach to understand the implications of reforms like preregistration. He argues instead that rather than seeking empirical evidence, we should recognize the distinction between empirical and logical justification: 

An empirical justification requires evidence. A logical justification requires agreement with a principle. If we want to justify preregistration empirically, we need to provide evidence that it improved science. If you want to disagree with the claim that preregistration is a good idea, you need to disagree with the evidence. If we want to justify preregistration logically, we need to people to agree with the principle that researchers should be able to transparently evaluate how coherently their peers are acting (e.g., they are not saying they are making an error controlled claim, when in actuality they did not control their error rate).

In other words, if we think it’s important to evaluate the severity of published claims, then needing to preregister is a logical conclusion.

Logic is obviously an important part of rigor, and I can certainly relate to being annoyed with the undervaluing of logic in fields where evidence is conventionally empirical (I am often frustrated with this aspect of research on interfaces!) But the “if we think it’s important” is critical here, as it points to some buried assumptions. It’s worth noting that the argument that preregistration enables evaluating whether researchers are making error controlled claims depends on a specific philosophy of science based in Mayo’s view of severe testing. While Lakens may have chosen a philosophy of science to embrace as complete, this is not necessarily a universally agreed upon approach for how best to do science (see, e.g., discussions on the blog). And so, the simple logical argument Lakens appears to be going for depends on a much larger scaffold of logic, inferential goals, assumptions, epistemic commitments, values, beliefs, etc. 

All this points to a problem with trying to make a logical argument for preregistration, which is that ultimately it’s not really all about “logic.” One might find it useful to adopt in one’s own practice for various reasons, but when it comes to establishing its value for science writ broadly, we end up firmly rooted in the realm of values. Beyond your philosophy of scientific progress, it comes down to the extent to which you think that scientists owe it to others to “prove” that they followed the method they said they did. It’s about how much transparency (versus trust) we feel we owe our fellow scientists, not to mention how committed we are to the idea that lying or bad behavior on the part of scientists are the big limiter of scientific progress. As someone who considers themselves to be highly logical, I don’t expect logic alone to get me very far on these questions.

Overall Lakens’ post leaves me with more questions than answers. I find his argument unsatisfying because it’s not quite clear what exactly he is proposing. It reads a bit as if it’s a defense of preregistration, delivered with an assurance that this logical argument could not possibly be paralleled by empirical evidence: “A little bit of logic is worth more than two centuries of cliometric metatheory.” He argues that all rational individuals who agree with the premise (i.e., share his philosophical commitments) should accept the logical view, whereas empirical evidence has to be “strong enough” to convince and may still be critiqued. And so while he seems to start out by admitting that we’ll never know if science would be better if preregistration was ubiquitous, he ends up concluding that if one shares his views on science, it’s logically necessary to preregister for science to improve. I’m not sure what to do with this. For example, is the implication that logical justification should be enough for journals to require preregistration to publish, or that lack of preregistration should be valid ground for rejecting a paper that makes claims requiring error control?

Elsewhere in his post, Lakens also suggests that empirical evidence is sometimes worth pursuing: 

At this time, I do not believe there will ever be sufficiently conclusive empirical evidence for causal claims that a change in scientific practice makes science better. You might argue that my bar for evidence is too high. That conclusive empirical evidence in science is rarely possible, but that we can provide evidence from observational studies – perhaps by attempting to control for the most important confounds, measuring decent proxies of ‘better science’ on a shorter time scale. I think this work can be valuable, and it might convince some people, and it might even lead to a sufficient evidence base to warrant policy change by some organizations. After all, policies need to be set anyway, and the evidence base for most of the policies in science are based on weak evidence, at best.

It strikes me as contradictory to say that it is a flaw that “Psychologists are empirically inclined creatures, and to their detriment, they often trust empirical data more than logical arguments” while at the same time saying it’s ok to produce weak empirical evidence to convince some people. 

Reading this, I can’t help but think of the recent NHB paper, ‘High replicability of newly discovered social-behavioural findings is achievable’, which as we previously discussed on the blog, had some flaws including a missing preregistration. I bring it up here because one could question whether the paper’s titular claim really required an empirical study (and previous reviewers like Tal Yarkoni did bring this up). If we do high powered replications of high powered original studies, then of course we should be able to find some effects that replicate. Unless we are taking the extreme position that there are no real effects being studied in psychology. This seems like an example of a logical justification that is less tied to a particular philosophy of science than Lakens’ preregistration argument (though it still requires some consensus, e.g., on what we mean by replicate).   

I’m reminded in particular of a social media discussion between Tal Yarkoni and Brian Nosek after the criticism of the NHB paper surfaced, on the question of when it’s ok to produce empirical evidence to justify reforms. Yarkoni argued that it’s wrong to use empirical evidence to try to convince someone who doesn’t understand statistics well that a higher n study is more likely to replicate, while Nosek seemed to be arguing that sometimes it’s appropriate because we should be meeting people where they are at. My personal view aligns with the former: why would you set out to show something that you personally don’t believe is necessary to show? What happens to the “scientific long game” when scientists operate out of a perceived need to persuade with data? Anyway, Lakens has defended the NHB paper on social media, so maybe his post is related to his views on that case.

Awesome online graph guessing game. And scatterplot charades.

Julian Gerez points to this awesome time-series guessing game from Ari Jigarjian. The above image gives an example. Stare at the graph for awhile and figure out which is the correct option.

I don’t quite know how Jigarjian does this—where he gets the data and the different options in the multiple-choice set. Does he just start with a graph and then come up with a few alternative stories that could fit, or is there some more automatic procedure going on? In any case, it’s a fun game. A new one comes every day. Some are easy, some not so easy. I guess it depends primarily on how closely your background knowledge lines up with the day’s topic, but also, more interestingly, on how much you can work out the solution by thinking things through.

This graph guessing game reminds me of scatterplot charades, a game that we introduce in section 3.3 of Active Statistics:

Students do this activity in pairs. Each student should come to class with a scatterplot on some interesting topic printed on paper or visible on their computer or phone, and then reveal the plot to the other student in the pair, a bit at a time, starting with the dots only and then successively uncovering units, axes and titles. At each stage, the other student should try to guess what is being plotted, with the final graph being the reveal.

In the book we give four examples. Here are two of them:

The time-series guessing game is different than scatterplot charades in being less interactive, but fun in its own way. The interactivity of scatterplot charades makes for a good classroom demonstration; the non-interactivity of the time-series guessing game makes for a good online app.

“Alphabetical order of surnames may affect grading”

A Beatles fan points to this press release:

An analysis by University of Michigan researchers of more than 30 million grading records from U-M finds students with alphabetically lower-ranked names receive lower grades. This is due to sequential grading biases and the default order of students’ submissions in Canvas — the most widely used online learning management system — which is based on alphabetical rank of their surnames. . . .

The researchers collected available historical data of all programs, students and assignments on Canvas from the fall 2014 semester to the summer 2022 semester. They supplemented the Canvas data with university registrar data, which contains detailed information about students’ backgrounds, demographics and learning trajectories at the university. . . .

Their research uncovered a clear pattern of a decline in grading quality as graders evaluate more assignments. Wang said students whose surnames start with A, B, C, D or E received a 0.3-point higher grade out of 100 possible points than compared with when they were graded randomly. Likewise, students with later-in-the-alphabet surnames received a 0.3-point lower grade — creating a 0.6-point gap.

Wang noted that for a small group of graders (about 5%) that grade from Z to A, the grade gap flips as expected: A-E students are worse off, while W-Z students receive higher grades relative to what they would receive when graded randomly. . . .

Here’s the research article, by Zhihan (Helen) Wang, Jiaxin Pei, and Jun Li.

The result seems plausible to me.

What I’d really like to see is some graphs. To start with, a plot showing average grade on the y-axis vs. first letter of surname (from A to Z) on x-axis, with two sets of dots: red dots for the assignments graded in surname initial, black dots for the assignments graded in quasi-random order order, and blue dots for the one-third of assignments that were not graded in either of those orders. And then separate graphs for social science, humanities, engineering, science, and medicine. With 30 million observations, there should be more than enough data to make all these plots.

The regression analyses are fine, sure, whatever, but I wanna see the data. Also, I want to see all 26 letters. For some reason, in their they put the surnames into five bins. I guess the data are probably owned by the University of Michigan and not available for reanalysis.

Free Book of Stories, Activities, Computer Demonstrations, and Problems in Applied Regression and Causal Inference

This fun, readable book is here, and here’s the description:

This book provides statistics instructors and students with complete classroom material for a one- or two-semester course on applied regression and causal inference. It is built around 52 stories, 52 class-participation activities, 52 hands-on computer demonstrations, and 52 discussion problems that allow instructors and students to explore in a fun way the real-world complexity of the subject. The book fosters an engaging “flipped classroom” environment with a focus on visualization and understanding. The book provides instructors with frameworks for self-study or for structuring the course, along with tips for maintaining student engagement at all levels, and practice exam questions to help guide learning. Designed to accompany the authors’ previous textbook Regression and Other Stories, its modular nature and wealth of material allow this book to be adapted to different courses and texts or be used by learners as a hands-on workbook.

I really like this book, not just for teaching but just to read through, as it’s full of stories that are short enough to read in just one bite but with enough detail to give you insight into applied statistics in a way that you wouldn’t get from usual textbook examples.

And the class-participation activities . . . they work in class but they’re also fun just to read about.

As for the computer demonstrations: we recommend you type them in, line by line, on your own as a way to teach yourself applied regression in R.

And now the book is free—just click through and download it!

Age gaps between spouses in U.S., U.K., and India

A few months ago we answered the question, How often is the wife taller than the husband?.

This is a fun one because if you walk down the street you’ll see lots of direct streaming data on the topic!

Looking at the data, the answer in the U.S. seems to be that the woman is taller than the man in about 1 in 20 heterosexual married couples.

Here’s a related question. How often is the wife older than the husband? Or, more generally, what is the distribution of the age gap?

A couple years ago, we linked to a post by Philip Cohen, “Science says: Get married at age Whatever You Want (and these are the odds of divorce),” but this didn’t directly address the question of age differences.

I recently became aware of some work on marriage age gaps:

1. Visualization of the age gap in the U.S.: What to condition on?

Nathan Yau presents a fun visualization of the ages of married couples:

Excellent use of color. I could do without the staircase pattern—a simple 45-degree line would work just fine—but overall the graph is great. I love the annotations too. Interesting that 34% of husbands and wives were within one year of each other. My first guess would’ve been a lower percentage than that—but I guess this number makes sense, given that “within one year” represents three possibilities (y=x, y=x+1, y=x-1), so that will be something like 11% or 12% within each category. 1/8 or 1/9 of all couples being the same age, that sounds plausible.

Unfortunately, Yau’s blog doesn’t seem to allow comments. But I had something to add, so I’ll say it here. Yau writes:

I [Yau] thought for sure that greater age gaps would grow with age. After a certain age it would seem that age would matter less? But as shown in the [graph], the age of wife and husband stick pretty close to the equal line.

My comment is that it would be interesting to see data characterized not by current age of the survey respondents but by the age at which they were married. If two people marry at the age of 23 and stay married for sixty years, then, depending on when they’re included in the survey, the could show up on that graph at (23,23), (33,33), (38,39), (66,67), (75,75) . . . all sorts of possibilities. If your intuition is that age would matter less for older people, this would be people who married at an older age, right? Yau writes that he looked at second and third marriages. That makes sense too.

There will be another challenge when plotting the data based on age at marriage, in that then you’re mixing ages and cohorts. If we want to compare people of the same cohort who married at different ages, you’d need to combine data from surveys in different years.

2. Age differences at marriage and divorce in the U.K.

I guess there must be a big sociology literature on all this. . . . ummm, yeah, there is! A quick search yielded a 2008 report from the U.K. Office for National Statistics which includes an article, “Age differences at marriage and divorce,” by Ben Wilson and Steve Smallwood. Here are some relevant graphs:

Lots of good stuff here showing patterns by age and by time. I’d also like to see that big colored graph, but using age at marriage rather than current age.

3. How the graphs get made

In his above-linked post, Yau says, “The data comes from the 2022 five-year American Community Survey. I downloaded the data via IPUMS, analyzed and made the charts in R, and finished them up in Adobe Illustrator.” I don’t know Adobe Illustrator, but I should be able to do the rest, right? Well, maybe not! Data munging isn’t so easy for me. Somehow you have to line up the ages for the spouses in the data . . . I got stuck! The year of marriage is in the data, though, so it shouldn’t be hard for Yao to remake the graph in that way. I’d be curious to see how it turns out!

Also good to be reminded that being able to manipulate data is an important skill in itself.

4. Spousal Age Gap in India

Gaurav Sood writes:

Using the Indian electoral roll data, we estimate the age difference between the spouses. We also estimate how the age difference varies across states and by the age of the husband and the wife. In particular, we use data from nearly 70M couples from 31 states and union territories . . .

The average age gap between a (heterosexual) couple is 4.1 years (the median is three and the 25th percentile is two years), with husbands generally older than their wives. The gap is nearly 80% larger than the US, where the average gap is 2.3 (538, CPS data). Compared to the US, where the man is older 64% of the times, in India, the man is older nearly 90% of the times.

Lots of detail on the data and the analysis. Gaurav reports that the estimated gap varies by state (with the highest gap being in Assam) and by age, “with the age gap being larger for older husbands.” But that sounds like possible selection bias, no?

Good stuff, but . . . no graphs! Whassup with that? I want some graphs.

Free Textbook on Applied Regression and Causal Inference

It’s here, complete with examples and code.

The code is free as in free speech, the book is free as in free beer.

Here are the contents:

Part 1: Fundamentals
1. Overview
2. Data and measurement
3. Some basic methods in mathematics and probability
4. Statistical inference
5. Simulation

Part 2: Linear regression
6. Background on regression modeling
7. Linear regression with a single predictor
8. Fitting regression models
9. Prediction and Bayesian inference
10. Linear regression with multiple predictors
11. Assumptions, diagnostics, and model evaluation
12. Transformations and regression

Part 3: Generalized linear models
13. Logistic regression
14. Working with logistic regression
15. Other generalized linear models

Part 4: Before and after fitting a regression
16. Design and sample size decisions
17. Poststratification and missing-data imputation

Part 5: Causal inference
18. Causal inference and randomized experiments
19. Causal inference using regression on the treatment variable
20. Observational studies with all confounders assumed to be measured
21. Additional topics in causal inference

Part 6: What comes next?
22. Advanced regression and multilevel models

And here are the contents, rewritten in fun form:

• Part 1:
– Chapter 1: Prediction as a unifying theme in statistics and causal inference.
– Chapter 2: Data collection and visualization are important.
– Chapter 3: Here’s the math you actually need to know.
– Chapter 4: Time to unlearn what you thought you knew about statistics.
– Chapter 5: You don’t understand your model until you can simulate from it.
• Part 2:
– Chapter 6: Let’s think deeply about regression.
– Chapter 7: You can’t just do regression, you have to understand regression.
– Chapter 8: Least squares and all that.
– Chapter 9: Let’s be clear about our uncertainty and about our prior knowledge.
– Chapter 10: You don’t just fit models, you build models.
– Chapter 11: Can you convince me to trust your model?
– Chapter 12: Only fools work on the raw scale.
• Part 3:
– Chapter 13: Modeling probabilities.
– Chapter 14: Logistic regression pro tips.
– Chapter 15: Building models from the inside out.
• Part 4:
– Chapter 16: To understand the past, you must first know the future.
– Chapter 17: Enough about your data. Tell me about the population.
• Part 5:
– Chapter 18: How can flipping a coin help you estimate causal effects?
– Chapter 19: Using correlation and assumptions to infer causation.
– Chapter 20: Causal inference is just a kind of prediction.
– Chapter 21: More assumptions, more problems.
• Part 6:
– Chapter 22: Who’s got next?

There’s just tons of stuff here. Lots of examples, lots of code, lots of graphs, lots of explanation. Regression is a lot more interesting than you might have thought!

And all of this is free.

You might also be interested in this free book on Bayesian data analysis and this free software for Bayesian modeling and inference.

Put multiple graphs on a page: that’s what Nathan Yau says, and I agree.

Nathan Yau puts it well:

No single chart type can show every angle of every dataset all the time. Every chart type has its trade-offs. So instead of trying to show everything at once, use multiple views to show things separate.

As I said in an earlier discussion, one thing that bothers me about the famous Napoleon-in-Russia graph is that it’s led people to suppose that it’s generally a good idea to convey a complex multidimensional story in a single plot. I think lots of data stories are just better told in multiple graphs. Someone could be the greatest designer in the world but it doesn’t mean that they can best display a set of information in a single plot.

Anyway, it’s good to see this message coming from other sources. Once you become open to the idea of using multiple graphs, all sorts of wonderful things become possible. Indeed, it can be useful to explain a model through a series of graphs, even if what you’re graphing doesn’t involve any data at all!

A guide to detecting AI-generated images, informed by experiments on people’s ability to detect them

This is Jessica. Here’s something a little different: Can you tell which of the images in the below grid are AI-generated, and explain why?

grid of images that may be real or fake

This grid comes from a guide to detecting AI-generated images authored by Negar Kamali, Karyn Nakamura, Angelos Chatzimparmpas, me, and Matt Groh. The guide lays out different categories of artifacts that tend to appear in these images, like anatomical, functional, and sociocultural implausibilities and different types of stylistic artifacts (waxy skin, cinematic feel, overly wispy hair, etc.).

Negar and Karyn spent many hours prompting to create some of the examples. Their results give a sense of what’s possible in terms of realism and expressiveness. For example, Karyn generated the spectrum of styles below by mixing models and re-generating later steps in Stable Diffusion from one prompt and seed, using pose control nets to maintain consistency. You can control a fair amount if you know what you’re doing.

grid of ai-generated images of a guy eating pizza in a park, with varying styles
One unique aspect of this particular guide is that it was informed by the results of large-scale experiments on people’s ability to detect AI-generated images across various dimensions, which have been running on Matt’s website here. The ultimate goal of all this is to create new interventions and interactive tools that help people identify deepfakes in the wild. 

There are some interesting vision science-y questions that come up in all this, for example what kinds of visual signatures make real images seem real to people. Having come into this collaboration with little knowledge of what to look for, I’ve gotten a better sense of how the flawlessness and uniformity you find in stock photo stores on the web can lead to model outputs that appear too composed or neat, even if it’s hard to point to specific artifacts.