[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-462974-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-462974-en":131},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","a-kernel-two-sample-test","A Kernel Two-Sample Test","","A framework is proposed for analyzing and comparing probability distributions through statistical two-sample tests. The key statistic is the maximum mean discrepancy (MMD), defined as the largest difference in expectations over functions in the unit ball of a reproducing kernel Hilbert space. Two distribution-free tests are derived using large deviation bounds, and a third test uses the asymptotic distribution of MMD. The approach supports quadratic-time computation with available linear-time approximations, connects to integral probability metrics, and applies effectively to database schema matching and graph distribution comparisons.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/a-kernel-two-sample-test/462974/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/a-kernel-two-sample-test/462974.png","ImageObject",300,407,{"name":42,"@type":43},"Riley","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-16","2026-09-30",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",12,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does the paper address?","Question",{"text":63,"@type":64},"It addresses comparing samples from two probability distributions by testing whether the distributions are equal or different.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How is the maximum mean discrepancy (MMD) defined and used?",{"text":68,"@type":64},"MMD is the difference in mean function values between the two samples over a unit ball of an RKHS; larger values indicate the distributions are likely different.",{"name":70,"@type":61,"acceptedAnswer":71},"What types of tests are proposed based on MMD?",{"text":72,"@type":64},"The paper defines three nonparametric MMD-based tests: two distribution-free tests based on large deviation bounds and a third test based on the asymptotic distribution of MMD.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},462974,1790843263,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":102,"preview_urls":147},1374391975076,"https://ap-avatar.wpscdn.com/avatar/14000253ca4ec9f6853?x-image-process=image/resize,m_fixed,w_180,h_180&k=1783305029341752051","A Kernel Two-Sample Test  \nArthur Gretton∗ ARTHUR . GRETTON @ GMAIL . COM  \nMPIfor Intelligent Systems Spemannstrasse 38 72076 Tbingen, Germany  \nKarsten M. Borgwardt† KARSTEN . BORGWARDT @TUEBINGEN . MPG . DE  \nMachine Learning and Computational Biology Research Group Max Planck Institutes Tbingen  \nSpemannstrasse 38  \n72076 Tbingen, Germany  \nMalte J. Rasch‡ MALTE @MAIL . BNU . EDU . CN  \n19 XinJieKou Wai St.  \nState Key Laboratory of Cognitive Neuroscience and Learning, Beijing Normal University,  \nBeijing, 100875, P.R. China  \nBernhard Schlkopf BERNHARD . SCHOELKOPF @TUEBINGEN . MPG . DE  \nMPIfor Intelligent Systems Spemannstrasse 38 72076, Tbingen, Germany  \nAlexander Smola§ ALEX @ SMOLA . ORG  \nYahoo! Research  \n2821 Mission College Blvd Santa Clara, CA 95054, USA  \nEditor: Nicolas Vayatis  \nAbstract  \nWe propose a framework for analyzing and comparing distributions, which we use to construct statistical tests to determine if two samples are drawn from different distributions. Our test statistic is the largest difference in expectations over functions in the unit ball of a reproducing kernel Hilbert space (RKHS), and is called the maximum mean discrepancy (MMD) . We present two distributionfree tests based on large deviation bounds for the MMD, and a third test based on the asymptotic distribution of this statistic. The MMD can be computed in quadratic time, although efﬁcient linear time approximations are available. Our statistic is an instance of an integral probability metric, and various classical metrics on distributions are obtained when alternative function classes are used in place of an RKHS. We apply our two-sample tests to a variety of problems, including attribute matching for databases using the Hungarian marriage method, where they perform strongly. Excellent performance is also obtained when comparing distributions over graphs, for which these are the ﬁrst such tests.  \n∗ . Also at Gatsby Computational Neuroscience Unit, CSML, 17 Queen Square, London WC1N 3AR, UK.†. This work was carried out while K.M.B. was with the Ludwig-Maximilians-Universitt Mnchen.‡. This work was carried out while M.J.R. was with the Graz University of Technology.  \n§ . Also at The Australian National University, Canberra, ACT 0200, Australia.  \n􀀍c2012 Arthur Gretton, Karsten M. Borgwardt, Malte J. Rasch, Bernhard Schlkopf and Alexander Smola.  \nGRETTON, BORGWARDT, RASCH, SCHLKOPF AND SMOLA  \nKeywords: kernel methods, two-sample test, uniform convergence bounds, schema matching, integral probability metric, hypothesis testing  \n1. Introduction  \nWe address the problem of comparing samples from two probability distributions, by proposing statistical tests of the null hypothesis that these distributions are equal against the alternative hypothesis that these distributions are different (this is called the two-sample problem) . Such tests have application in a variety of areas. In bioinformatics, it is of interest to compare microarray data from identical tissue types as measured by different laboratories, to detect whether the data may be analysed jointly, or whether differences in experimental procedure have caused systematic differences in the data distributions. Equally of interest are comparisons between microarray data from different tissue types, either to determine whether two subtypes of cancer may be treated as statistically indistinguishable from a diagnosis perspective, or to detect differences in healthy and cancerous tissue. In database attribute matching, it is desirable to merge databases containing multiple ﬁelds, where it is not known in advance which ﬁelds correspond: the ﬁelds are matched by maximising the similarity in the distributions of their entries.  \nWe test whether distributions p and q are different on the basis of samples drawn from each of them, by ﬁnding a well behaved (e.g., smooth) function which is large on the points drawn from p, and small (as negative as possible) on the points from q. We use as ou","cbCaim28X47wb8Q9","https://ap.wps.com/l/cbCaim28X47wb8Q9","pdf",479876,51,"English","# Introduction\n## Two-sample problem and null vs. alternative\n## Maximum Mean Discrepancy (MMD)\n## Function classes and integral probability metrics\n## Computational cost and test sensitivity\n## MMD-based nonparametric tests","[{\"question\":\"What problem does the paper address?\",\"answer\":\"It addresses comparing samples from two probability distributions by testing whether the distributions are equal or different.\"},{\"question\":\"How is the maximum mean discrepancy (MMD) defined and used?\",\"answer\":\"MMD is the difference in mean function values between the two samples over a unit ball of an RKHS; larger values indicate the distributions are likely different.\"},{\"question\":\"What types of tests are proposed based on MMD?\",\"answer\":\"The paper defines three nonparametric MMD-based tests: two distribution-free tests based on large deviation bounds and a third test based on the asymptotic distribution of MMD.\"}]","A Kernel Two-Sample Test | PDF",1790765888,129,[148,152,156,160,164,168],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/83f99f66c18cff9bf54cf311912cfecf.webp",983,1272,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0bf4a1363b9009ee663a23db1b141f06.webp",982,1270,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9e2ddae17d8f1a7d6158bc37a6ae40e6.webp",981,1269,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/1b4ed42cbd293f7b686f23f465c9062d.webp",980,1268,{"page_no":97,"url":165,"width":166,"height":167},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c25da695cb243185e0282eec6ca12a67.webp",979,1267,{"page_no":102,"url":169,"width":170,"height":171},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9effb654be3b83f46c2efdb1bebee770.webp",978,1265]