arrow
Return

Statistical Model Computation with UDFs

delete2010-12-01
delete39
PRE
AI
C
Carlos Ordońẽz *
DOI:10.1109/TKDE.2010.44delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Statistical models are generally computed outside a DBMS due to their mathematical complexity. We introduce techniques to efficiently compute fundamental statistical models inside a DBMS exploiting User-Defined Functions (UDFs). Specifically, we study the computation of linear regression, PCA, clustering, and Naive Bayes. Two summary matrices on the data set are mathematically shown to be essential for all models: the linear sum of points and the quadratic sum of cross products of points. We consider two layouts for the input data set: horizontal and vertical. We first introduce efficient SQL queries to compute summary matrices and score the data set. Based on the SQL framework, we introduce UDFs that work in a single table scan: aggregate UDFs to compute summary matrices for all models and a set of primitive scalar UDFs to score data sets. Experiments compare UDFs and SQL queries (running inside the DBMS) with C++ (analyzing exported files). In general, UDFs are faster than SQL queries and not much slower than C++. Considering export times, C++ is slower than UDFs and SQL queries. Statistical models based on precomputed summary matrices are computed in a few seconds. UDFs scale linearly and only require one table scan, highlighting their efficiency.
Keywords:
DBMS
SQL
statistical model
UDF
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

IEEE Transactions on Knowledge and Data Engineering cover
IEEE Transactions on Knowledge and Data Engineering
IF:
10.4
Papers:
6.8K
Citations:
3.2W

Organization

No organization information available
Cited Papers

Cited Papers

Stab Wounds to the Gluteal Region: A Management Strategy
err2001-04-01
err0
PREAI
errVadim Makrin; Elliot D. Sorene; Dror Soffer; Avi Weinbroum; Dan Oron; Yoram Kluger
errShare
errSave
Real-Time Analysis of a Modified State Observer for Sensorless Induction Motor Drive Used in Electric Vehicle Applications
err2017-07-25
err0
errOAAI
errMohan Krishna S.; Febin Daya J.L.; Sanjeevikumar Padmanaban; Lucian Mihet-Popa
errShare
errSave
Efficacy and safety of the anti-PD-1 monoclonal antibody MK-3475 in 411 patients (pts) with melanoma (MEL).
err2014-05-20
err0
PREAI
errAntoni Ribas; F. Stephen Hodi; Richard Kefford; Omid Hamid; Adil Daud; Jedd D. Wolchok; Wen-Jen Hwu; Tara C. Gangadhar; Amita Patnaik; Anthony M. Joshua; Peter Hersey; Jeffrey S. Weber; Roxana Stefania Dronca; Hassane M. Zarour; Kevin Gergich; Xiaoyun (Nicole) Li; Robert Iannone; Soonmo Peter Kang; Scot Ebbinghaus; Caroline Robert
errShare
errSave
Quantitative Proteomic Analysis of Histone Modifications
err2015-02-17
err0
errOAAI
errHe Huang; Shu Lin; Benjamin A. Garcia; Yingming Zhao
errShare
errSave
researcher View more