Challenges in Incorporating Exploratory Data Analysis into Statistical Workflow

Jessica Hullman, Andrew GelmanHarvard Data Science Review 2021

Abstract: It is a pleasure to take part in such a lively discussion about the relationship between exploratory and confirmatory data analysis (EDA and CDA), and what is and is not feasible and likely to be valuable in supporting visual analysis. Graphics and data exploration have long been the ugly duckling of statistics even while they have become important aspects of data science, so we are thrilled to see the Harvard Data Science Review give this topic a prominent place of discussion.

Introduction

In the contemporary data science landscape, a rigid boundary often separates Exploratory Data Analysis (EDA) and Confirmatory Data Analysis (CDA). EDA is frequently treated as an informal process of "looking at data" to find patterns, while CDA is viewed as the rigorous application of statistical models to test hypotheses. In this synthesis, Jessica Hullman and Andrew Gelman argue that this wall is artificial and counterproductive. They propose a unified framework where EDA is redefined as a form of implicit model checking, calling for a new generation of interactive tools that bridge the gap between visual discovery and statistical rigor.

The Problem: The EDA-CDA Divide

The traditional workflow typically involves an analyst exploring a dataset until a compelling pattern emerges, at which point they transition to formal modeling. However, this bifurcated approach carries significant risks. When exploration is decoupled from statistical constraints, analysts are prone to "p-hacking" or hallucinating patterns in random noise. Conversely, many modern visualization tools focus exclusively on pattern discovery without providing the statistical context necessary to determine if those patterns are meaningful. By treating EDA as the "ugly duckling" of statistics, the field has neglected the need to make statistical inference a first-class citizen of the exploratory process.

A Theoretical Framework for Integration

Hullman and Gelman propose several conceptual shifts to integrate these two phases of analysis:

EDA as Implicit Model Checking

Drawing on Popperian philosophy, the authors suggest that when an analyst finds a pattern "surprising," they are actually performing an internal check against an implicit mental model of what they expected to see. By making these expectations explicit within the user interface, tools can help analysts move from subjective impressions to objective model checks.

Bayesian Cognitive Modeling

The authors advocate for using Bayesian formalisms to model how humans draw inferences from graphical representations. By understanding the cognitive process of visual inference, developers can design interfaces that better support accurate statistical reasoning.

Prescriptive Design: Scaffolding the Statistical Workflow

To operationalize this theory, the authors suggest that software (such as Tableau or Power BI) should "scaffold" the analyst's thinking about Data Generating Processes (DGPs). Key proposed features include:

  • Line-ups: A method where the actual data is hidden among several "fake" datasets generated by a null model. If the analyst can reliably pick out the real data, the pattern is likely statistically significant.
  • Reference Overlays: Tools should automatically calculate and overlay model predictions—such as trend lines or distributions—directly onto exploratory charts to provide immediate context.
  • The Utility of "Crude Golems": The authors argue that even imperfect or "crude" models (which they call golems) are valuable. A model does not need to be a perfect representation of reality to help an analyst realize that a perceived visual trend might simply be the result of stochastic variation.

Implications for Practice

This integrated approach is particularly beneficial for novice analysts. While experts may have developed an intuition for statistical noise, beginners often lack the framework to distinguish signal from variance. Surfacing model predictions helps novices grasp the fundamental concept that data is the product of a process, not just a static collection of points. Furthermore, well-designed interfaces can reduce the cognitive load of statistical thinking, making rigorous analysis more accessible without the "heavy" overhead traditionally associated with formal modeling.

Limitations and Future Directions

Transitioning to this integrated workflow presents several challenges. Critics note the difficulty of creating appropriate "null models" for every possible visual judgment. There is also a risk of "visualization illiteracy," where users might treat model overlays as absolute truths rather than tentative explanations.

Technically, building systems that can automatically infer and suggest relevant models based on a user's visual selections remains a significant engineering hurdle. The authors conclude by calling for a "grammar of models" that matches the ease of use found in the "grammar of graphics" (e.g., ggplot2), alongside empirical user studies to validate how these integrated tools affect scientific decision-making in practice.

Summary updated

BibTeX
@article{hullman2021challenges,
  author = {Jessica Hullman and Andrew Gelman},
  title = {{Challenges in Incorporating Exploratory Data Analysis into Statistical Workflow}},
  journal = {Harvard Data Science Review},
  year = {2021},
  doi = {10.1162/99608f92.9d108ee6},
}
Figure