基于数据库抽样和一步磨光的快速广义线性模型
Fast generalised linear models by database sampling and one-step polishing
摘要:
在这篇文章中,我将展示如何使用一个抽样查询和一个聚合查询,将广义线性模型拟合到存储在关系数据库中的$p$变量上的$N$观测值,只要$N^{\frac{1}{2}+δ}$观测值可以存储在内存中。由此得到的估计量是完全有效的,并且渐近等价于极大似然估计量,因此它的方差可以用通常的方法从费舍尔信息中估计出来。一个概念验证实现使用R与MonetDB和SQLite,并且可以很容易地适应其他流行的数据库。我举例说明了在纽约市的出租车行程数据和相关因素,在新西兰的汽车颜色的方法。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。