Foresight: Recommending Visual Insights

Çagatay Demiralp, Peter J. Haas, Srinivasan Parthasarathy, Tejaswini Pedapati

Abstract

Exploratory Data Analysis (EDA) is a critical but labor-intensive phase of data science, often hindered by the "combinatorial explosion" of possible visualizations in high-dimensional datasets. We present Foresight, a recommendation system that automates the discovery of statistical insights. By ranking and presenting "insight carousels"—such as strong correlations, outliers, and skewed distributions—Foresight allows analysts to explore the "space of insights" rather than manually mapping raw data attributes. Evaluation shows that Foresight achieves over 90% accuracy in metric estimation with significant speedups in preprocessing time.

Introduction

Exploratory Data Analysis (EDA) is the essential first step in any data science workflow, yet it is notoriously difficult to scale. As datasets grow to include hundreds of attributes and millions of rows, analysts face two primary hurdles: cognitive load and confirmation bias. Users are often overwhelmed by the sheer number of choices, leading them to miss subtle patterns or focus only on familiar variables. Furthermore, humans tend to look for evidence that supports existing hypotheses while ignoring disconfirming evidence.

Current tools require users to manually map data attributes to visual encodings (e.g., "put 'Age' on the X-axis and 'Income' on the Y-axis"). Foresight flips this script: it asks the system to find the most statistically interesting relationships first, then lets the user refine the search.

Methods

Foresight’s architecture rests on three pillars: Insight Classes, Ranking Metrics, and Sketching.

Insight Classes & Metrics

The system defines an "insight" as a strong manifestation of a statistical property. It supports several classes, including Dispersion (variance), Skewness, Heavy Tails (kurtosis), Outliers, Heterogeneous Frequencies (for categorical data), and Linear Relationships (Pearson correlation). Each class has a mathematical metric used to rank the "strength" of that insight.

The "Insight Space" UI

The interface uses carousels to display the top-$k$ instances of each insight type. Users can "dive deeper" by adding constraints (e.g., "show me correlations between 0.5 and 0.8") or view a "global" heatmap to ensure they aren't stuck in a local neighborhood of attributes.

The Foresight interface featuring "insight carousels" for distributions, outliers, and correlations.

Sketching for Speed

To maintain interactivity on massive datasets, Foresight uses sketches—lossy, compressed representations of data. Specifically, they employ random hyperplane sketches to estimate Pearson correlation coefficients. This allows the system to estimate relationships in a single pass over the data, significantly reducing the computational complexity from $O(n)$ to $O(\log^2 n)$ for certain operations.

Key Insights and Results

By treating statistical properties as the primary objects of exploration, Foresight bypasses the manual "guess-and-check" phase of traditional EDA. This conceptual shift allows users to explore the "Insight Space" rather than the "Data Space." To prevent analysts from getting "trapped" in a small subset of variables, Foresight provides "global" overview visualizations like heatmaps of all pairwise correlations.

A global correlation heatmap used to prevent analysts from getting stuck in local subsets of data.

Experimental results indicate:

  • Accuracy: Sketching techniques achieved >90% accuracy in estimating statistical metrics compared to exact calculations.
  • Performance: The system achieved a 3x–4x speedup in preprocessing time.
  • Interactivity: The system maintains "interactive speeds" during exploration, preventing the latency common in standard visualization tools when dealing with high-dimensional data.

Limitations and Future Work

While the system handles large numbers of rows well, it currently struggles with datasets containing thousands of columns. Future work will incorporate parallel search methods and leverage attribute metadata (e.g., identifying dates or currency) for more semantically meaningful queries. Expanding to more complex, multi-dimensional clusters or non-linear relationships remains a frontier for the tool.

Summary updated

BibTeX
@article{demiralp2017foresight,
  author = {Çagatay Demiralp and Peter J. Haas and Srinivasan Parthasarathy and Tejaswini Pedapati},
  title = {{Foresight: Recommending Visual Insights}},
  journal = {Proc. VLDB Endow.},
  year = {2017},
  doi = {10.14778/3137765.3137813},
}
Figure