← Latest papers
📊 statistics

Automated Residual Plot Assessment With the R Package autovi and the Shiny Application autovi.web

This paper introduces the R package `autovi` and its Shiny application `autovi.web`, which utilize a computer vision model to automate the assessment of residual plots by predicting visual signal strength, thereby addressing the scalability and consistency limitations of manual visual diagnosis in linear modeling.

Original authors: Weihao Li, Dianne Cook, Emi Tanaka, Susan VanderPlas, Klaus Ackermann

Published 2026-06-24
📖 5 min read🧠 Deep dive

Original authors: Weihao Li, Dianne Cook, Emi Tanaka, Susan VanderPlas, Klaus Ackermann

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Problem: The "Human Eye" Bottleneck

Imagine you are a detective trying to solve a crime. You have a suspect (a statistical model) and a pile of evidence (data). To see if your suspect is guilty, you look at the "residuals"—the leftover clues that the suspect couldn't explain.

In statistics, analysts usually look at these clues by drawing a picture (a residual plot) and using their eyes to see if anything looks "weird."

  • The Issue: Humans are bad at this. We get tired, we see patterns that aren't there (like seeing a face in a cloud), or we miss patterns that are actually there. It's like trying to find a specific needle in a haystack by squinting at it for hours.
  • The Old Fix: Sometimes, statisticians use a "lineup" protocol. They show you the real picture mixed in with 19 fake pictures. If you can spot the real one, it means there's a problem. But this is slow and still relies on human eyes.

The Solution: A Robot Detective

The authors of this paper built a new tool called autovi (Automated Visual Inference). Think of it as a robot detective that never gets tired and has superhuman eyesight.

Instead of asking a human to squint at a graph, this tool uses Computer Vision (the same technology that lets self-driving cars "see" the road) to look at the residual plots.

How the Robot "Sees"

  1. Training: The robot was trained on thousands of fake scenarios. It was shown pictures of "perfect" models (where the clues are scattered randomly) and "broken" models (where the clues form a clear pattern, like a curve or a funnel).
  2. The Score (VSS): When you give the robot a new picture, it doesn't just say "yes" or "no." It gives it a score called Visual Signal Strength (VSS).
    • Low Score: "I see nothing suspicious. The clues look random. Your model is probably fine."
    • High Score: "I see a clear pattern! The clues are lined up in a way they shouldn't be. Your model is missing something."

The Two Tools: The Toolbox and the Web App

The paper introduces two ways to use this robot:

1. The R Package (autovi): The Professional Toolbox
This is for people who are comfortable with coding (specifically in R).

  • How it works: You feed your data into the package. It automatically generates the plots, runs them through the robot, and gives you a report.
  • The Report: It tells you the VSS score and a "p-value" (a probability number). If the number is low, it means the robot is very confident that your model has a problem.
  • Visuals: It can show you a "lineup" (the real plot mixed with fake ones) so you can double-check the robot's work, or a density chart that shows how your data compares to the "perfect" random data.

2. The Web App (autovi.web): The User-Friendly Kiosk
Not everyone knows how to code. For them, the authors built a website.

  • No Installation: You don't need to install complex software or manage different programming languages. You just open a browser.
  • The Magic: The website runs the heavy computer vision work right in your browser (using a technology called TensorFlow.js). It's like having a supercomputer in your web browser that doesn't need to be plugged into a server farm.
  • Ease of Use: You upload your data (or use their examples), click a button, and it instantly shows you the robot's assessment, the lineup of plots, and even a "heat map" showing exactly where in the picture the robot saw the problem.

A Real-World Example from the Paper

The authors tested their tool on three scenarios:

  1. The False Alarm: A plot looked messy (like a funnel), which usually means a broken model. But the robot said, "Actually, this is fine. It just looks messy because you have fewer data points on one side." The robot saved the analyst from panicking.
  2. The Hidden Curve: A plot looked mostly okay, but there was a tiny curve hidden in the noise. A standard computer test missed it, but the robot spotted it immediately.
  3. The Obvious Pattern: A plot had a weird shape hidden inside it (inspired by a quote from a famous statistician). The robot gave it a very high "danger" score, correctly identifying the issue.

The Bottom Line

This paper presents a new way to check if your statistical models are working correctly.

  • Before: You had to squint at graphs and hope you didn't miss anything.
  • Now: You have a robot that scans the graph, compares it to thousands of "perfect" examples, and gives you a clear score and a probability that something is wrong.

It makes the process faster, more consistent (the robot doesn't get tired), and accessible to people who aren't coding experts, thanks to the free web app.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →