Tea: A High-level Language and Runtime System for Automating Statistical Analysis

Eunice Jun, Maureen Daum, Jared Roesch, Sarah E. Chasins, Emery D. Berger +2 more
4/10/2019
cs.PLcs.HCcs.MS

Official code: tea-lang-org/tea-lang (262 stars, Apache-2.0, last commit 2026-05-19).

Abstract

Though statistical analyses are centered on research questions and hypotheses, current statistical analysis tools are not. Users must first translate their hypotheses into specific statistical tests and then perform API calls with functions and parameters. To do so accurately requires that users have statistical expertise. To lower this barrier to valid, replicable statistical analysis, we introduce Tea, a high-level declarative language and runtime system. In Tea, users express their study design, any parametric assumptions, and their hypotheses. Tea compiles these high-level specifications into a constraint satisfaction problem that determines the set of valid statistical tests, and then executes them to test the hypothesis. We evaluate Tea using a suite of statistical analyses drawn from popular tutorials. We show that Tea generally matches the choices of experts while automatically switching to non-parametric tests when parametric assumptions are not met. We simulate the effect of mistakes made by non-expert users and show that Tea automatically avoids both false negatives and false positives that could be produced by the application of incorrect statistical tests.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

DSL for experimental design and statistical analysis

26232Python, MakefileDec 17, 20185 months agoApache-2.0

Similar Papers

Cite this paper

@article{jun2019tea,
  title  = {Tea: A High-level Language and Runtime System for Automating Statistical Analysis},
  author = {Eunice Jun and Maureen Daum and Jared Roesch and Sarah E. Chasins and Emery D. Berger and Rene Just and Katharina Reinecke},
  year   = {2019},
  eprint = {1904.05387},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.05387}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.05387.svg)](https://codeofpaper.com/paper/1904.05387)

Discussion