Human-guided data exploration using randomisation

Kai Puolamäki, Emilia Oikarinen, Buse Gul Atli, Andreas HeneliusarXiv 2018

Abstract

An explorative data analysis system should be aware of what the user already knows and what the user wants to know of the data: otherwise the system cannot provide the user with the most informative and useful views of the data. We propose a principled way to do exploratory data analysis, where the user's background knowledge is modeled by a distribution parametrised by subsets of rows and columns in the data, called tiles. The user can also use tiles to describe his or her interests concerning relations in the data. We provide a computationally efficient implementation of this concept based on constrained randomisation. The implementation is used to model both the background knowledge and the user's information request and is a necessary prerequisite for any interactive system. Furthermore, we describe a novel linear projection pursuit method to find and show the views most informative to the user, which at the limit of no background knowledge and with generic objectives reduces to PCA. We show that our method is robust under noise and fast enough for interactive use. We also show that the method gives understandable and useful results when analysing real-world data sets. We will release an open source library implementing the idea, including the experiments presented in this paper. We show that our method can outperform standard projection pursuit visualisation methods in exploration tasks. Our framework makes it possible to construct human-guided data exploration systems which are fast, powerful, and give results that are easy to comprehend.

Introduction

Standard automated visualization tools often fail because they lack context regarding the user's existing knowledge. For example, a Principal Component Analysis (PCA) plot might highlight a massive cluster that the user already understands, such as the distinction between urban and rural areas. If a system repeatedly displays these obvious patterns, the user gains no new information.

This paper introduces a framework for Exploratory Data Analysis (EDA) that explicitly models a user's background knowledge and specific interests to find the most "informative" views of a dataset. By using constrained randomization and a novel projection pursuit method that generalizes PCA, the system filters out what a user already knows to highlight novel patterns and relationships.

Methodology: Constrained Randomisation and Informative Projections

The proposed framework relies on constrained randomization. The core unit of information is a "tile" — a subset of rows and columns. By defining a tile, the user informs the system of a known relationship between specific attributes for specific data points.

The system generates a "null model" of the data by randomly permuting values while respecting the constraints of the tiles. If a user knows a relationship exists, that relationship is preserved during randomization; otherwise, it is broken. The user defines two distributions: $H_1$ (where the relationship of interest is preserved) and $H_2$ (where it is broken). The system then seeks a linear projection direction $u$ that maximizes a gain function: the ratio of the variance of the data under $H_1$ vs. $H_2$. Mathematically, this method reduces exactly to standard PCA when a user has zero background knowledge and generic interests.

Visualizing the effect of background knowledge on data randomization.

Experimental Results

The method was evaluated using both synthetic and real-world datasets. A Toy 4D Dataset demonstrated how background knowledge of certain correlations changes which projection becomes the most informative. The GERMAN Socio-economic Dataset, containing records from 412 administrative districts with up to 46 attributes, was used to test qualitative discovery.

In the German dataset, the system successfully helped users navigate from broad "East vs. West" voting clusters to more nuanced "Urban vs. Rural" distinctions by iteratively "masking" known factors. The process is a conversation: a user sees a pattern, defines it as a "tile," and the system immediately updates to find the next most interesting thing not explained by that tile.

Informative projections of the German socio-economic dataset.

Computationally, the tile operations scale linearly ($O(nm)$) with the size of the data. Finding the most informative view for a dataset with $10^4$ rows and 100 attributes takes roughly 5.5 seconds in an unoptimized R implementation, making it fast enough for real-time interactive use.

Discussion and Conclusion

The framework provides a robust and scalable approach to human-guided data exploration. However, some limitations remain. The current projection vectors are dense, which can make the axes difficult for humans to interpret; finding a "sparse" version of this optimization problem is a key next step. Additionally, while the current implementation is optimized for real-valued vectors, extending it to categorical data or more complex structures like graphs remains an open challenge. Despite these areas for growth, the method significantly outperforms standard projection pursuit methods in exploration tasks by focusing on novelty relative to user knowledge.

Summary updated

BibTeX
@misc{puolamaki2018human,
  author = {Kai Puolamäki and Emilia Oikarinen and Buse Gul Atli and Andreas Henelius},
  title = {{Human-guided data exploration using randomisation}},
  year = {2018},
  eprint = {1805.07725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.07725},
}
Figure