Fast generalised linear models by database sampling and one-step polishing

Thomas Lumley
3/14/2018
stat.CO

Official code: tslumley/dbglm (20 stars, R, last commit 2018-09-23).

Abstract

In this note, I show how to fit a generalised linear model to $N$ observations on $p$ variables stored in a relational database, using one sampling query and one aggregation queries, as long as $N^{\frac{1}{2}+δ}$ observations can be stored in memory. The resulting estimator is fully efficient and asymptotically equivalent to the maximum likelihood estimator, and so its variance can be estimated from the Fisher information in the usual way.

Show full abstract

A proof-of-concept implementation uses R with MonetDB and with SQLite, and could easily be adapted to other popular databases. I illustrate the approach with examples of taxi-trip data in New York City and factors related to car colour in New Zealand.

View on arXivView PDF

Code Implementations(1)

tslumley/dbglmOfficial100%

Fast generalised linear models by sampling and one-step polishing

202RDec 16, 20178 years ago

Similar Papers

Cite this paper

@article{lumley2018fast,
  title  = {Fast generalised linear models by database sampling and one-step polishing},
  author = {Thomas Lumley},
  year   = {2018},
  eprint = {1803.05165},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1803.05165}
}

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/1803.05165.svg)](https://codeofpaper.com/paper/1803.05165)

Discussion