@inproceedings{borgstrm2016fabular, author = {Borgström, Johannes and Gordon, Andy and Ouyang, Long and Russo, Claudio and Ścibior, Adam and Szymczak, Marcin}, title = {Fabular: regression formulas as probabilistic programming}, booktitle = {Principles of Programming Languages}, year = {2016}, month = {January}, abstract = {Regression formulas are a domain-specific language adopted by several R packages for describing an important and useful class of statistical models: hierarchical linear regressions. Formulas are succinct, expressive, and clearly popular, so are they a useful addition to probabilistic programming languages? And what do they mean? We propose a core calculus of hierarchical linear regression, in which regression coefficients are themselves defined by nested regressions (unlike in R). We explain how our calculus captures the essence of the formula DSL found in R. We describe the design and implementation of Fabular, a version of the Tabular schema-driven probabilistic programming language, enriched with formulas based on our regression calculus. To the best of our knowledge, this is the first formal description of the core ideas of R's formula notation, the first development of a calculus of regression formulas, and the first demonstration of the benefits of composing regression formulas and latent variables in a probabilistic programming language.}, url = {http://approjects.co.za/?big=en-us/research/publication/fabular-regression-formulas-as-probabilistic-programming/}, pages = {271-283}, }