[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-504623-105":59,"doc-detail-504623-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","fast-two-sample-testing-with-analytic-representations-of-probability-measures","Fast Two-Sample Testing with Analytic Representations of Probability Measures","","Nonparametric two-sample testing is developed with cost linear in sample size. Two ensemble-distance tests are proposed: one contrasts smoothed empirical characteristic functions, the other uses distribution embeddings in a reproducing kernel Hilbert space via analytic mean embeddings. Analyticity ensures that distribution differences can be detected almost surely using only finitely many randomly chosen locations or frequencies. The methods are consistent for a broader set of alternatives than earlier linear-time characteristic-function tests, while outperforming quadratic-time kernel or energy-distance approaches in power/time tradeoff, including high-dimensional scenarios and cases with limited low-order statistics visibility.",{"@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/fast-two-sample-testing-with-analytic-representations-of-probability-measures/504623/",{"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/fast-two-sample-testing-with-analytic-representations-of-probability-measures/504623.png","ImageObject",300,407,{"name":92,"@type":93},"eBook King","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-15","2026-10-03",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What problem does the paper address?","Question",{"text":112,"@type":113},"It addresses testing whether two random variables are identically distributed without parametric assumptions, using nonparametric two-sample tests.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How are the proposed two tests constructed?",{"text":117,"@type":113},"One test uses smoothed empirical characteristic functions; the other uses distribution embeddings in an RKHS based on analytic mean embeddings.",{"name":119,"@type":110,"acceptedAnswer":120},"Why can the tests rely on randomly chosen frequencies/points?",{"text":121,"@type":113},"The paper argues that analyticity implies distribution differences are detectable almost surely at finitely many randomly chosen locations or frequencies, so evaluating at a small number of points suffices.","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},504623,1792144730,{"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":29,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":144,"preview_page_count":19,"preview_urls":145},962088006270,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Fast Two-Sample Testing with Analytic Representations of Probability Measures  \nKacper Chwialkowski  \nGatsby Computational Neuroscience Unit, UCL [kacper.chwialkowski@gmail.com](kacper.chwialkowski@gmail.com)  \nAaditya Ramdas  \nDept. of EECS and Statistics, UC Berkeley [aramdas@cs.berkeley.edu](aramdas@cs.berkeley.edu)  \nDino Sejdinovic  \nDept of Statistics, University of Oxford [dino.sejdinovic@gmail.com](dino.sejdinovic@gmail.com)  \nArthur Gretton  \nGatsby Computational Neuroscience Unit, UCL [arthur.gretton@gmail.com](arthur.gretton@gmail.com)  \nAbstract  \nWe propose a class of nonparametric two-sample tests with a cost linear in the sample size. Two tests are given, both based on an ensemble of distances between analytic functions representing each of the distributions. The ﬁrst test uses smoothed empirical characteristic functions to represent the distributions, the second uses distribution embeddings in a reproducing kernel Hilbert space. Analyticity implies that differences in the distributions may be detected almost surely at a ﬁnite number of randomly chosen locations/frequencies. The new tests are consistent against a larger class of alternatives than the previous linear-time tests based on the (non-smoothed) empirical characteristic functions, while being much faster than the current state-of-the-art quadratic-time kernel-based or energy distancebased tests. Experiments on artiﬁcial benchmarks and on challenging real-world testing problems demonstrate that our tests give a better power/time tradeoff than competing approaches, and in some cases, better outright power than even the most expensive quadratic-time tests. This performance advantage is retained even in high dimensions, and in cases where the difference in distributions is not observable with low order statistics.  \n1 Introduction  \nTesting whether two random variables are identically distributed without imposing any parametric assumptions on their distributions is important in a variety of scientiﬁc applications. These include data integration in bioinformatics [6], benchmarking for steganography [20] and automated model checking [19] . Such problems are addressed in the statistics literature via two-sample tests (also known as homogeneity tests) .  \nTraditional approaches to two-sample testing are based on distances between representations of the distributions, such as density functions, cumulative distribution functions, characteristic functions or mean embeddings in a reproducing kernel Hilbert space (RKHS) [27, 26] . These representations are inﬁnite dimensional objects, which poses challenges when deﬁning a distance between distributions. Examples of such distances include the classical Kolmogorov-Smirnov distance (sup-norm between cumulative distribution functions); the Maximum Mean Discrepancy (MMD) [9], an RKHS norm of the difference between mean embeddings, and the N-distance (also known as energy distance)[34, 31, 4], which is an MMD-based test for a particular family of kernels [25] . Tests may also be based on quantities other than distances, an example being the Kernel Fisher Discriminant (KFD)  \n[12], the estimation of which still requires calculating the RKHS norm of a difference of mean embeddings, with normalization by an inverse covariance operator.  \nIn contrast to consistent two-sample tests, heuristics based on pseudo-distances, such as the difference between characteristic functions evaluated at a single frequency, have been studied in the context of goodness-of-ﬁt tests [13, 14] . It was shown that the power of such tests can be maximized against fully speciﬁed alternative hypotheses, where test power is the probability of correctly rejecting the null hypothesis that the distributions are the same. In other words, if the class of distributions being distinguished is known in advance, then the tests can focus only at those particular frequencies where the characteristic functions differ most. This approach was generalized to evaluatin","cbCailfDodqrWDPh","https://ap.wps.com/l/cbCailfDodqrWDPh","pdf",900504,"English","# Abstract\n# 1 Introduction","[{\"question\":\"What problem does the paper address?\",\"answer\":\"It addresses testing whether two random variables are identically distributed without parametric assumptions, using nonparametric two-sample tests.\"},{\"question\":\"How are the proposed two tests constructed?\",\"answer\":\"One test uses smoothed empirical characteristic functions; the other uses distribution embeddings in an RKHS based on analytic mean embeddings.\"},{\"question\":\"Why can the tests rely on randomly chosen frequencies/points?\",\"answer\":\"The paper argues that analyticity implies distribution differences are detectable almost surely at finitely many randomly chosen locations or frequencies, so evaluating at a small number of points suffices.\"}]","Fast Two-Sample Testing with Analytic Representations of Probability Measures | PDF",1791071293,23,[146,150,154,158],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/df0676d942cbb738ad0fa063b2571b86.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/86edede4bc81fbb60622e40a4fa7c3e2.webp",982,1389,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/6ad75350aa3bac5ecd0556572c4e140d.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/f093255fe9f7400bd81604a16fb76415.webp",980,1386]