[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-496275-105":59,"doc-detail-496275-en":130},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","joinson-samples-a-theoretical-guide-for-practitioners","Joinson Samples - A Theoretical Guide for Practitioners","","Despite decades of research on approximate query processing (AQP), sample-based joins remain insufficiently understood, and common community belief claims that joining random samples is futile. That belief stems from an early result for two uniform samples, which yields dependent outputs and drastically fewer tuples, yet it does not address practitioners’ real success criteria. This paper studies offline sampling budgets and characterizes accuracy using output size and estimator variance, then proposes and validates hybrid and decentralized strategies on SQL and AQP engines.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/joinson-samples-a-theoretical-guide-for-practitioners/496275/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/joinson-samples-a-theoretical-guide-for-practitioners/496275.png","ImageObject",300,407,{"name":92,"@type":93},"Chumphorn","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-16","2026-10-02",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why do researchers believe joining random samples is futile in AQP joins?","Question",{"text":112,"@type":113},"The belief is driven by an early theoretical result showing that joining two uniform samples does not produce an independent sample of the original join and leads to quadratically fewer output tuples.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What success metrics does the paper use to study offline sample-based join approximation?",{"text":117,"@type":113},"The study evaluates two metrics: output size and estimator variance, using an offline sampling budget to bound achievable approximation quality.",{"name":119,"@type":110,"acceptedAnswer":120},"What sampling approach does the paper propose to improve theoretical performance?",{"text":121,"@type":113},"It defines a hybrid sampling scheme that combines stratiﬁed, universe, and Bernoulli sampling, and shows it achieves the theoretical lower bound on variance within a constant factor, with a decentralized variant based on minimal statistics.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},496275,1791481477,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},2336475401981,"https://ap-avatar.wpscdn.com/avatar/22000c94efd8d5204d?x-image-process=image/resize,m_fixed,w_180,h_180&k=1786935347598174694","Joins on Samples: A Theoretical Guide for Practitioners  \nDawei Huang Dong Young Yoon Seth Pettie Barzan Mozafari  \nUniversity of Michigan, Ann Arbor  \nfhdawei, dyoon, pettie, [mozafari](mozafarig@umich.edu)[g](mozafarig@umich.edu)[@umich.edu](mozafarig@umich.edu)  \nABSTRACT  \nDespite decades of research on AQP (approximate query processing), our understanding of sample-based joins has remained limited and, to some extent, even superﬁcial. The common belief in the community is that joining random samples is futile. This belief is largely based on an early result showing that the join of two uniform samples is not an independent sample of the original join, and that it leads to quadratically fewer output tuples. Unfortunately, this early result has little applicability to the key questions practitioners face. For example, the success metric is often the ﬁnal approximation's accuracy, rather than output cardinality. Moreover, there are many non-uniform sampling strategies that one can employ. Is sampling for joins still futile in all of these settings? If not, what is the best sampling strategy in each case? To the best of our knowledge, thereis no formal study answering these questions.  \nThis paper aims to improve our understanding of sample-based joins and offer a guideline for practitioners building and using realworld AQP systems. We study limitations of ofﬂine samples in approximating join queries: given an ofﬂine sampling budget, how well can one approximate the join of two tables? We answer this question for two success metrics: output size and estimator variance. We show that maximizing output size is easy, while thereis an information-theoretical lower bound on the lowest variance achievable by any sampling strategy. We then deﬁne a hybrid sampling scheme that captures all combinations of stratiﬁed, universe, and Bernoulli sampling, and show that this scheme with our optimal parameters achieves the theoretical lower bound within a constant factor. Since computing these optimal parameters requires shufﬂing statistics across the network, we also propose a decentralized variant in which each node acts autonomously using minimal statistics. We also empirically validate our ﬁndings on popular SQLand AQP engines.  \nPVLDB Reference Format:  \nDawei Huang, Dong Young Yoon, Seth Pettie, and Barzan Mozafari. Joinson Samples: A Theoretical Guide for Practitioners. PVLDB, 13(4): 547- 560, 2019 .  \nDOI: [https://doi.org/10.14778/3372716.3372726](https://doi.org/10.14778/3372716.3372726)  \n1. INTRODUCTION  \nThis work is licensed under the Creative Commons AttributionNonCommercial-NoDerivatives 4.0 International License. To view a copy of this license, visit [http://creativecommons.org/licenses/by-nc-nd/4.0/. For](http://creativecommons.org/licenses/by-nc-nd/4.0/. For)[ ](http://creativecommons.org/licenses/by-nc-nd/4.0/. For)any use beyond those covered by this license, obtain permission by emailing [info@vldb.org. Copyright](info@vldb.org. Copyright) is held by the owner/author(s). Publication rights licensed to the VLDB Endowment.  \nProceedings of the VLDB Endowment, Vol. 13, No. 4 ISSN 2150-8097 .  \nDOI: [https://doi.org/10.14778/3372716.3372726](https://doi.org/10.14778/3372716.3372726)  \nApproximate query processing (AQP) has regained signiﬁcant attention in recent years due to major trends in the industry [43] . Larger datasets, memory wall, and the separation of compute and storage have all made it harder to achieve interactive-speed analytics. AQP presents itself as a viable alternative in scenarios where perfect decisions can be made with imperfect answers [8] . AQPis most appealing when negligible loss of accuracy can be traded for a signiﬁcant gain in speedup or computational resources. Adhoc analytics [9, 56, 62], visualization [23, 49, 55], IoT [46], A/B testing [7], email marketing and customer segmentation [28], and real-time threat detection [2] are examples of such usecases.  \nSampling and Joins—Sampling is one of th","cbCairhstCYn7cib","https://ap.wps.com/l/cbCairhstCYn7cib","pdf",1086722,14,"English","# Abstract\n# Introduction\n# Sampling and Joins\n# Joins on Samples","[{\"question\":\"Why do researchers believe joining random samples is futile in AQP joins?\",\"answer\":\"The belief is driven by an early theoretical result showing that joining two uniform samples does not produce an independent sample of the original join and leads to quadratically fewer output tuples.\"},{\"question\":\"What success metrics does the paper use to study offline sample-based join approximation?\",\"answer\":\"The study evaluates two metrics: output size and estimator variance, using an offline sampling budget to bound achievable approximation quality.\"},{\"question\":\"What sampling approach does the paper propose to improve theoretical performance?\",\"answer\":\"It defines a hybrid sampling scheme that combines stratiﬁed, universe, and Bernoulli sampling, and shows it achieves the theoretical lower bound on variance within a constant factor, with a decentralized variant based on minimal statistics.\"}]","Joinson Samples - A Theoretical Guide for Practitioners | PDF",1790930196,35,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/849258ae3fe4d1f00f4c362f64e5cd02.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fd41044b5079891c1fd5d3b65e93da10.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a472e3a47f0826a88bbb30387b77c313.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/419c32233a3ec383b6f87736311a6e04.webp",980,1268]