Skip to main content
QUICK REVIEW

[Paper Review] Bias in OLAP Queries: Detection, Explanation, and Removal

Babak Salimi, Johannes Gehrke|arXiv (Cornell University)|Mar 12, 2018
Advanced Database Systems and QueriesComputer Science11 references7 citations
TL;DR

This paper introduces HypDB, a system that detects, explains, and automatically rewrites biased OLAP queries by identifying confounding variables through independence tests and causal inference. It enables accurate causal analysis in decision-support systems by transforming biased group-by queries into unbiased ones that reflect true treatment effects, outperforming state-of-the-art causal discovery methods and uncovering insights from real-world cases like the 1973 discrimination lawsuit.

ABSTRACT

On line analytical processing (OLAP) is an essential element of decision-support systems. OLAP tools provide insights and understanding needed for improved decision making. However, the answers to OLAP queries can be biased and lead to perplexing and incorrect insights. In this paper, we propose HypDB, a system to detect, explain, and to resolve bias in decision-support queries. We give a simple definition of a \emph{biased query}, which performs a set of independence tests on the data to detect bias. We propose a novel technique that gives explanations for bias, thus assisting an analyst in understanding what goes on. Additionally, we develop an automated method for rewriting a biased query into an unbiased query, which shows what the analyst intended to examine. In a thorough evaluation on several real datasets we show both the quality and the performance of our techniques, including the completely automatic discovery of the revolutionary insights from a famous 1973 discrimination case.

Motivation & Objective

  • To address the growing risk of biased insights in OLAP decision-support systems due to confounding variables in observational data.
  • To detect bias in group-by OLAP queries by performing statistical independence tests on data attributes.
  • To explain the root causes of bias by identifying and ranking confounding attributes that distort query results.
  • To automatically rewrite biased queries into unbiased forms that reflect causal effects rather than spurious associations.
  • To enable interactive, real-time causal analysis in OLAP environments without requiring prior knowledge of causal DAGs.

Proposed method

  • Define a biased query as one where the distribution of a confounding attribute Z differs across treatment groups T, violating conditional independence.
  • Perform a set of statistical independence tests (e.g., chi-squared, mutual information) to detect potential confounders Z for a given query.
  • Use a novel algorithm to efficiently compute candidate covariates by analyzing conditional dependencies between attributes.
  • Rank detected confounders by their explanatory power and statistical significance to prioritize the most relevant ones.
  • Rewrite the original OLAP query by conditioning on the inferred confounders (Z), transforming it into a causal query that computes average treatment effects.
  • Leverage pre-computed data cubes to accelerate conditional probability and entropy computations, improving performance for interactive use.

Experimental results

Research questions

  • RQ1How can bias in OLAP queries be formally defined and detected using statistical independence tests?
  • RQ2What confounding attributes explain the observed bias in a given OLAP query, and how can they be ranked by relevance?
  • RQ3Can a query be automatically rewritten to eliminate bias and compute a true causal effect rather than a spurious association?
  • RQ4How does the system’s performance and accuracy compare to state-of-the-art causal discovery methods on real and synthetic datasets?
  • RQ5Can HypDB uncover meaningful, actionable insights—such as those from historical discrimination cases—by resolving bias in standard OLAP queries?

Key findings

  • HypDB successfully detects bias in OLAP queries by identifying confounding variables through statistical independence testing, even in complex, real-world datasets.
  • The system explains bias by ranking confounding attributes, such as airport distribution in the airline delay case, clarifying why aggregate results contradict subgroup trends.
  • HypDB automatically rewrites biased queries to compute unbiased causal effects, correctly revealing that United Airlines had lower delay rates per airport despite higher overall average in the example.
  • The method outperforms state-of-the-art causal DAG discovery techniques in terms of both precision and recall for confounder detection.
  • HypDB uncovered the core insight from the 1973 Berkeley sex discrimination case—where aggregate data suggested bias but subgroup analysis revealed fairness—demonstrating its ability to reveal post-hoc algorithmic fairness insights.
  • Pre-computed data cubes significantly accelerate all components of HypDB, enabling interactive use in real-time decision-support workflows.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.