1. Home
  2. The Gradient

Apr 24, 2024

Why AI and statistics drifted apart

Ryan Tibshirani

106 min → 2:21

Overview

Ryan Tibshirani discusses the methodological differences between statistics and artificial intelligence, covering trend filtering for nonparametric regression, conformal prediction for uncertainty intervals, and how to interpret biased COVID-19 survey data.

3 things to know

The Gradient Podcast says conformal prediction guarantees average coverage

The Gradient Podcast explains that conformal prediction can wrap around any machine learning model to produce prediction intervals with a valid statistical guarantee of coverage on average.

▶ Watch at 1:06:22

The Gradient Podcast says standard conformal prediction averages coverage

The Gradient Podcast notes that standard conformal prediction only guarantees marginal coverage averaged across all possible data points rather than conditional coverage for a particular input or subgroup.

▶ Watch at 1:26:31

The Gradient Podcast says shifting data breaks exchangeability assumptions

The Gradient Podcast points out that conformal prediction relies on the assumption that data is exchangeable, which often breaks down in real-world scenarios involving distribution shifts or time-series data.

Also in this episode

The Gradient Podcast says streaming data lets predictions adapt

The Gradient Podcast explains that advanced research aims to relax the exchangeability assumption by treating problems in a batch setting or an online setting where streaming data allows adaptation over time.

▶ Watch at 1:25:06

The Gradient Podcast says trend filtering handles sharp changes

The Gradient Podcast describes trend filtering as a locally adaptive regression method that can model functions that are smooth in some areas with sharp, abrupt changes in others.

More

It uniquely exists at the intersection of "analysis" (penalizing complexity) and "synthesis" (building from simple functions) frameworks.

The Gradient Podcast says biased data can track trends

The Gradient Podcast notes that a large dataset with consistent systematic bias, such as from non-response, can still be highly effective for tracking relative trends and changes.

More

A large dataset can have systematic bias (e.g., due to non-response) but still be extremely valuable.

The Gradient Podcast: Machine learning often favors can-do solutions

The Gradient Podcast explains that while artificial intelligence has roots in statistics, statistics emphasizes careful assumptions and rigor whereas machine learning often prioritizes pragmatic, can-do solutions.

▶ Watch at 22:46

Quotes

“It's an average coverage over the features... It's not conditional on a given feature value.”

▶ Watch at 1:06:22

“you can still compare things over time in a way that somehow is... not strongly affected by the bias.”

▶ Watch at 1:25:06

“One thing I've been noticing is that the AI world has taken a lot from the statistics community, but there's a pretty heavy divergence in what researchers in each field are paying the most attention to.”

▶ Watch at 0:01

2 more quotes

“'Yeah, sounds good. We'll get you something by, you know, a couple days from now.'”

▶ Watch at 22:46

“focus on... integrating conformal prediction into practical pipelines.”

▶ Watch at 1:26:31

Full summary

Episode Overview

  • The episode explores the cultural and methodological divergence between the fields of statistics and artificial intelligence, highlighting the former's focus on rigor and assumptions versus the latter's pragmatic, solution-oriented approach.
  • It provides a deep dive into advanced statistical methods, including trend filtering for nonparametric regression and conformal prediction for generating model-agnostic uncertainty intervals.
  • The conversation examines the theoretical guarantees and practical limitations of these methods, particularly the critical distinction between marginal and conditional coverage in conformal prediction and the challenge of the exchangeability assumption.
  • It connects statistical theory to real-world application by analyzing the use of a large-scale, biased COVID-19 survey, demonstrating how to properly interpret its value for tracking trends by distinguishing bias from variance.

Key Concepts

  • Divergence of AI and Statistics: While AI has roots in statistics, the two fields have developed distinct cultures, with statistics emphasizing careful assumptions and rigor, while machine learning often prioritizes pragmatic, "can-do" solutions.
  • Trend Filtering: A nonparametric regression method that is "locally adaptive," meaning it can model functions that are smooth in some areas but have sharp, abrupt changes in others. It uniquely exists at the intersection of "analysis" (penalizing complexity) and "synthesis" (building from simple functions) frameworks.
  • Conformal Prediction: A powerful, distribution-free "wrapper" that can be applied to any machine learning model to produce prediction intervals with a valid statistical guarantee of coverage (e.g., a 95% interval will contain the true value 95% of the time on average).
  • Marginal vs. Conditional Coverage: A key limitation of standard conformal prediction is that its coverage guarantee is marginal (averaged across all possible data points) and not conditional (specific to a particular input or subgroup).
  • Exchangeability Assumption: Conformal prediction relies on the assumption that the data is exchangeable (similar to IID), which often breaks down in real-world scenarios involving distribution shifts or time-series data.
  • Online vs. Batch Conformal Prediction: Advanced research aims to relax the exchangeability assumption by treating problems in either a "batch" setting (for a single prediction) or an "online" setting where data streams in, allowing for adaptation over time.
  • Bias vs. Variance in Large Surveys: A large dataset can have systematic bias (e.g., due to non-response) but still be extremely valuable. It's crucial not to confuse this consistent bias with statistical variance; such data can be highly effective for tracking relative trends and changes.

Quotes

  • At 0:01 - "One thing I've been noticing is that the AI world has taken a lot from the statistics community, but there's a pretty heavy divergence in what researchers in each field are paying the most attention to." - Host Daniel Bashir on the relationship between the two fields.
  • At 22:46 - "'Yeah, sounds good. We'll get you something by, you know, a couple days from now.'" - Illustrating the pragmatic and solution-oriented approach often found in the machine learning community when faced with a difficult problem.
  • At 1:06:22 - "It's an average coverage over the features... It's not conditional on a given feature value." - Clarifying the crucial distinction between the marginal coverage that conformal prediction guarantees versus the more desirable conditional coverage.
  • At 85:06 - "you can still compare things over time in a way that somehow is... not strongly affected by the bias." - Defending the value of the large but biased COVID-19 survey for tracking trends, as long as the bias is relatively stable.
  • At 86:31 - "focus on... integrating conformal prediction into practical pipelines." - Arguing that the most important future work for conformal prediction is shifting from methodological development to real-world implementation.

Takeaways

  • The differing cultures of statistics (rigor) and machine learning (pragmatism) both have value; effective collaboration requires understanding and balancing both perspectives.
  • Conformal prediction is a valuable tool for uncertainty quantification, but practitioners must understand its guarantee is an average across all data, not a promise for every specific prediction.
  • When working with large, real-world datasets, do not dismiss them due to systematic bias; they can still be exceptionally powerful for reliably tracking relative changes and trends.
  • The next frontier for advanced statistical methods is not just developing more theory, but embedding them into practical engineering pipelines to understand and overcome real-world operational challenges.

Watch the full episode 1 hr 46 min

Read along with the audio summary

Host Daniel Bashir notices that while the artificial intelligence world has taken a lot from the statistics community, there is a pretty heavy divergence in what researchers in each field are paying the most attention to. In this episode released on April 24, 2024, Bashir and his guest explore the cultural and methodological divide between statistics and machine learning. By the end, you will learn how advanced statistical tools like trend filtering and conformal prediction work, where their guarantees break down, and how to find reliable trends inside biased data.

Why AI and statistics grew into two very different cultures.

Artificial intelligence has roots in statistics, yet the two fields approach difficult problems from opposite directions. While statistics emphasizes careful assumptions and rigor, machine learning often prioritizes pragmatic, can do solutions. Faced with a tough problem, the machine learning approach is often to say, sounds good, we will get you something a couple days from now.

How trend filtering captures both smooth patterns and sudden shifts.

Trend filtering is a locally adaptive nonparametric regression method, allowing it to model functions that are smooth in some areas but have sharp, abrupt changes in others. It uniquely exists at the intersection of two frameworks: analysis, which penalizes complexity, and synthesis, which builds from simple functions.

A statistical wrapper that adds guaranteed prediction intervals to any AI model.

Conformal prediction acts as a powerful, distribution free wrapper, and can be applied to any machine learning model to produce prediction intervals with a valid statistical guarantee of coverage. For example, a 95 percent interval will contain the true value 95 percent of the time on average.

Why a 95 percent guarantee does not apply to every single prediction.

That 95 percent guarantee has a catch that can easily trip up practitioners. A key limitation of standard conformal prediction is that its coverage guarantee is marginal, meaning it is an average coverage over the features and across all possible data points. It is not conditional on a given feature value, so it does not guarantee that same accuracy for a specific input or subgroup.

When real world data breaks the core assumption of conformal prediction.

Even that average guarantee relies on a fragile foundation. Conformal prediction assumes that the data is exchangeable, which is similar to assuming every data point is independent and drawn from the same identical distribution. This assumption often breaks down in real world scenarios involving distribution shifts or time series data, where the patterns change over time.

How researchers are adapting conformal prediction for streaming data.

To make conformal prediction work when that exchangeability assumption fails, advanced research aims to relax the requirement. Researchers do this by treating problems in either a batch setting, which focuses on a single prediction, or an online setting where data streams in continuously. This online approach allows the method to adapt over time as the incoming data changes.

How a heavily biased survey can still reveal reliable trends.

A flawed dataset might seem useless at first glance, but throwing it out can be a mistake. A large dataset, like a large scale COVID 19 survey, can have systematic bias, such as bias due to non response, and still be extremely valuable if you do not confuse that consistent bias with statistical variance. As long as the bias is relatively stable, you can still compare things over time in a way that is not strongly affected by the bias.

Bridging the gap between statistical rigor and machine learning pragmatism means knowing both the power and the limits of your tools, from biased surveys to uncertainty wrappers. Today, the next frontier is to focus on integrating conformal prediction into practical pipelines.

More from The Gradient

Related Episodes