diff --git a/.nojekyll b/.nojekyll index cca83d8..6390726 100644 --- a/.nojekyll +++ b/.nojekyll @@ -1 +1 @@ -4f304de1 \ No newline at end of file +47a89f60 \ No newline at end of file diff --git a/datatables.min.js b/datatables.min.js new file mode 100644 index 0000000..d61a191 --- /dev/null +++ b/datatables.min.js @@ -0,0 +1,17 @@ +/* + * This combined file was created by the DataTables downloader builder: + * https://datatables.net/download + * + * To rebuild or modify this file with the latest versions of the included + * software please visit: + * https://datatables.net/download/#dt/dt-2.1.8/cr-2.0.4/fc-5.0.4/fh-4.0.1 + * + * Included libraries: + * DataTables 2.1.8, ColReorder 2.0.4, FixedColumns 5.0.4, FixedHeader 4.0.1 + */ + +/*! DataTables 2.1.8 + * © SpryMedia Ltd - datatables.net/license + */ +!function(n){"use strict";var a;"function"==typeof define&&define.amd?requirejs(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?(a=require("jquery"),"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||a(t),n(e,t,t.document)}:module.exports=n(a,window,window.document)):window.DataTable=n(jQuery,window,document)}(function(H,W,_){"use strict";function f(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null}function s(t,e,n,a){var r=typeof t,o="string"==r;return"number"==r||"bigint"==r||!(!a||!T(t))||(e&&o&&(t=E(t,e)),n&&o&&(t=t.replace(P,"")),!isNaN(parseFloat(t))&&isFinite(t))}function c(t,e,n,a){var r;return!(!a||!T(t))||("string"!=typeof t||!t.match(/<(input|select)/i))&&(T(r=t)||"string"==typeof r)&&!!s(L(t),e,n,a)||null}function b(t,e,n,a){var r=[],o=0,i=e.length;if(void 0!==a)for(;o").prependTo(this),fastData:function(t,e,n){return q(c,t,e,n)}}),n=(c.nTable=this,c.oInit=t,o.push(c),c.api=new X(c),c.oInstance=1===E.length?E:r.dataTable(),Q(t),t.aLengthMenu&&!t.iDisplayLength&&(t.iDisplayLength=Array.isArray(t.aLengthMenu[0])?t.aLengthMenu[0][0]:H.isPlainObject(t.aLengthMenu[0])?t.aLengthMenu[0].value:t.aLengthMenu[0]),t=te(H.extend(!0,{},a),t),z(c.oFeatures,t,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]),z(c,t,["ajax","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","iStateDuration","bSortCellsTop","iTabIndex","sDom","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId","caption","layout","orderDescReverse","typeDetect",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]),z(c.oScroll,t,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]),z(c.oLanguage,t,"fnInfoCallback"),Y(c,"aoDrawCallback",t.fnDrawCallback),Y(c,"aoStateSaveParams",t.fnStateSaveParams),Y(c,"aoStateLoadParams",t.fnStateLoadParams),Y(c,"aoStateLoaded",t.fnStateLoaded),Y(c,"aoRowCallback",t.fnRowCallback),Y(c,"aoRowCreatedCallback",t.fnCreatedRow),Y(c,"aoHeaderCallback",t.fnHeaderCallback),Y(c,"aoFooterCallback",t.fnFooterCallback),Y(c,"aoInitComplete",t.fnInitComplete),Y(c,"aoPreDrawCallback",t.fnPreDrawCallback),c.rowIdFn=U(t.rowId),c),d=(V.__browser||(f={},V.__browser=f,p=H("
").css({position:"fixed",top:0,left:-1*W.pageXOffset,height:1,width:1,overflow:"hidden"}).append(H("
").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(H("
").css({width:"100%",height:10}))).appendTo("body"),d=p.children(),u=d.children(),f.barWidth=d[0].offsetWidth-d[0].clientWidth,f.bScrollbarLeft=1!==Math.round(u.offset().left),p.remove()),H.extend(n.oBrowser,V.__browser),n.oScroll.iBarWidth=V.__browser.barWidth,c.oClasses),f=(H.extend(d,V.ext.classes,t.oClasses),r.addClass(d.table),c.oFeatures.bPaginate||(t.iDisplayStart=0),void 0===c.iInitDisplayStart&&(c.iInitDisplayStart=t.iDisplayStart,c._iDisplayStart=t.iDisplayStart),t.iDeferLoading),h=(null!==f&&(c.deferLoading=!0,u=Array.isArray(f),c._iRecordsDisplay=u?f[0]:f,c._iRecordsTotal=u?f[1]:f),[]),p=this.getElementsByTagName("thead"),n=At(c,p[0]);if(t.aoColumns)h=t.aoColumns;else if(n.length)for(R=n[e=0].length;e").appendTo(r):n).html(c.caption),n.length&&(n[0]._captionSide=n.css("caption-side"),c.captionNode=n[0]),0===p.length&&(p=H("").appendTo(r)),c.nTHead=p[0],H("tr",p).addClass(d.thead.row),r.children("tbody")),n=(0===n.length&&(n=H("").insertAfter(p)),c.nTBody=n[0],r.children("tfoot")),O=(0===n.length&&(n=H("").appendTo(r)),c.nTFoot=n[0],H("tr",n).addClass(d.tfoot.row),c.aiDisplay=c.aiDisplayMaster.slice(),c.bInitialised=!0,c.oLanguage);H.extend(!0,O,t.oLanguage),O.sUrl?H.ajax({dataType:"json",url:O.sUrl,success:function(t){B(a.oLanguage,t),H.extend(!0,O,t,c.oInit.oLanguage),G(c,null,"i18n",[c],!0),Mt(c)},error:function(){$(c,0,"i18n file loading error",21),Mt(c)}}):(G(c,null,"i18n",[c],!0),Mt(c))}}),E=null,this)},g=(V.ext=C={buttons:{},classes:{},builder:"dt/dt-2.1.8/cr-2.0.4/fc-5.0.4/fh-4.0.1",errMode:"alert",feature:[],features:{},search:[],selector:{cell:[],column:[],row:[]},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{className:{},detect:[],render:{},search:{},order:{}},_unique:0,fnVersionCheck:V.fnVersionCheck,iApiIndex:0,sVersion:V.version},H.extend(C,{afnFiltering:C.search,aTypes:C.type.detect,ofnSearch:C.type.search,oSort:C.type.order,afnSortData:C.order,aoFeatures:C.feature,oStdClasses:C.classes,oPagination:C.pager}),H.extend(V.ext.classes,{container:"dt-container",empty:{row:"dt-empty"},info:{container:"dt-info"},layout:{row:"dt-layout-row",cell:"dt-layout-cell",tableRow:"dt-layout-table",tableCell:"",start:"dt-layout-start",end:"dt-layout-end",full:"dt-layout-full"},length:{container:"dt-length",select:"dt-input"},order:{canAsc:"dt-orderable-asc",canDesc:"dt-orderable-desc",isAsc:"dt-ordering-asc",isDesc:"dt-ordering-desc",none:"dt-orderable-none",position:"sorting_"},processing:{container:"dt-processing"},scrolling:{body:"dt-scroll-body",container:"dt-scroll",footer:{self:"dt-scroll-foot",inner:"dt-scroll-footInner"},header:{self:"dt-scroll-head",inner:"dt-scroll-headInner"}},search:{container:"dt-search",input:"dt-input"},table:"dataTable",tbody:{cell:"",row:""},thead:{cell:"",row:""},tfoot:{cell:"",row:""},paging:{active:"current",button:"dt-paging-button",container:"dt-paging",disabled:"disabled",nav:""}}),{}),F=/[\r\n\u2028]/g,N=/<([^>]*>)/g,j=Math.pow(2,28),R=/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,O=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g"),P=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,T=function(t){return!t||!0===t||"-"===t},E=function(t,e){return g[e]||(g[e]=new RegExp(Pt(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(g[e],"."):t},m=function(t,e,n){var a=[],r=0,o=t.length;if(void 0!==n)for(;rj)throw new Error("Exceeded max str len");var e;for(t=t.replace(N,"");(t=(e=t).replace(/ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+ + + + + + + \ No newline at end of file diff --git a/implementations.html b/implementations.html index 97f8803..0db9da9 100644 --- a/implementations.html +++ b/implementations.html @@ -2,13 +2,13 @@ - + -StanBlocks.jl - Julia posteriordb implementations +Julia posteriordb implementations – StanBlocks.jl - + @@ -70,10 +70,10 @@ - + - + - - - - - + + @@ -123,7 +126,7 @@
- -
+
@@ -161,28 +164,28 @@

On this page

-
+
-

StanBlocks.jl

-
+
Author
@@ -200,6 +203,8 @@

StanBlocks.jl

+
+

StanBlocks.jl

Implements many - but currently not all - of the Bayesian models in posteriordb by implementing Julia macros and functions which mimick Stan blocks and functions respectively, with relatively light dependencies. Using the macros and functions defined in this package, the “shortest” posteriordb model (earn_height.stan)

data {
   int<lower=0> N;
@@ -233,6 +238,7 @@ 

StanBlocks.jl

jlpdf = StanBlocks.julia_implementation(post) jlpdf(randn(StanBlocks.dimension(jlpdf))) # Returns some number
+

Caveats

@@ -253,1685 +259,9 @@

Using and testing the implementations

See https://nsiccha.github.io/StanBlocks.jl/#overview-of-posteriors for an overview of (hopefully) correctly implemented models.

See test/runtests.jl for a way to run and check the models. After importing PosteriorDB, StanLogDensityProblems and LogDensityProblems, you should have access to reference Stan implementations of the log density and of its gradient, see the documentation of StanLogDensityProblems.jl. The Stan log density can then be compared to the Julia log density as is, and after loading Julia’s AD packages, you can also compare the Stan log density gradient to the Julia log density gradient.

-
-

Overview of posteriors

-

The below table shows information about the implemented posteriors. The column directly comparable has value yes if the median absolute deviation of the reference (Stan) and unadjusted Julia implementation of the log density is less than 1e-4. That quantity being different from zero usually implies that Stan has eliminated constant terms in the log density, saving some computational work. The column usable has value yes if the median relative absolute deviation of the reference (Stan) and constant-adjusted Julia implementation of the log density is less than 1e-8.

-
-
-
-

The WebIO Jupyter extension was not detected. See the - - WebIO Jupyter integration documentation - -for more information. -

-
-
- - - - - - - - - - - - - - - -
posteriorsusable posteriorsdirectly comparable posteriors
14711853
-
-
-
-
-
- --------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
posterior nameimplementationsdimensionusabledirectly comparableconstant differenceremaining relative difference
GLMM_Poisson_data-GLMM_Poisson_model
-

Stan, Julia

-
45yesyes3.7e-9 ± 3.1e-102.0e-16 ± 1.6e-17
GLMM_data-GLMM1_model
-

Stan, Julia

-
237yesmaybe?2.3 ± 1.6e-141.5e-16 ± 1.1e-17
GLM_Binomial_data-GLM_Binomial_model
-

Stan, Julia

-
3yesmaybe?14.0 ± 1.6e-141.8e-16 ± 8.6e-18
GLM_Poisson_Data-GLM_Poisson_model
-

Stan, Julia

-
4yesyes1.1e-9 ± 7.5e-112.1e-16 ± 1.5e-17
M0_data-M0_model
-

Stan, Julia

-
2yesyes5.7e-14 ± 4.0e-151.6e-16 ± 1.2e-17
Mb_data-Mb_model
-

Stan, Julia

-
3yesyes1.1e-13 ± 8.0e-151.1e-16 ± 8.1e-18
Mh_data-Mh_model
-

Stan, Julia

-
388yesmaybe?160.0 ± 2.4e-144.1e-16 ± 1.9e-17
Mt_data-Mt_model
-

Stan, Julia

-
4yesyes5.7e-14 ± 4.0e-151.4e-16 ± 9.7e-18
Mtbh_data-Mtbh_model
-

Stan, Julia

-
154yesmaybe?2.3 ± 4.0e-151.6e-16 ± 1.1e-17
Mth_data-Mth_model
-

Stan, Julia

-
394yesyes1.1e-13 ± 8.0e-151.5e-16 ± 7.9e-18
Rate_1_data-Rate_1_model
-

Stan, Julia

-
1yesmaybe?5.5 ± 6.3e-170.0 ± 0.0
Rate_2_data-Rate_2_model
-

Stan, Julia

-
2yesmaybe?10.0 ± 1.3e-160.0 ± 0.0
Rate_3_data-Rate_3_model
-

Stan, Julia

-
1yesmaybe?10.0 ± 1.3e-160.0 ± 0.0
Rate_4_data-Rate_4_model
-

Stan, Julia

-
2yesmaybe?2.7 ± 0.00.0 ± 0.0
Rate_5_data-Rate_5_model
-

Stan, Julia

-
1yesyes0.0 ± 0.00.0 ± 0.0
Survey_data-Survey_model
-

Stan, Julia

-
1yesyes2.0e-14 ± 6.3e-165.3e-16 ± 2.6e-17
bball_drive_event_0-hmm_drive_0
-

Stan, Julia

-
6yesmaybe?2.3 ± 6.4e-140.0 ± 0.0
bball_drive_event_1-hmm_drive_1
-

Stan, Julia

-
6yesmaybe?760.0 ± 1.4e-118.2e-16 ± 3.9e-17
bones_data-bones_model
-

Stan, Julia

-
13yesmaybe?47.0 ± 1.6e-141.4e-16 ± 9.7e-18
diamonds-diamonds
-

Stan, Julia

-
26yesmaybe?4600.0 ± 1.6e-111.4e-15 ± 5.4e-17
dogs-dogs
-

Stan, Julia

-
3yesmaybe?14.0 ± 2.4e-143.9e-16 ± 2.7e-17
dogs-dogs_hierarchical
-

Stan, Julia

-
2yesyes8.0e-13 ± 4.0e-141.0e-15 ± 4.8e-17
dogs-dogs_log
-

Stan, Julia

-
2yesmaybe?9.2 ± 5.9e-146.4e-16 ± 9.4e-17
dugongs_data-dugongs_model
-

Stan, Julia

-
4yesmaybe?22.0 ± 1.0e-151.7e-16 ± 1.2e-17
earnings-earn_height
-

Stan, Julia

-
3yesmaybe?0.00034 ± 2.3e-59.3e-16 ± 4.3e-17
earnings-log10earn_height
-

Stan, Julia

-
3yesyes7.0e-10 ± 4.9e-117.6e-16 ± 3.4e-17
earnings-logearn_height
-

Stan, Julia

-
3yesyes5.2e-10 ± 3.7e-118.6e-16 ± 4.1e-17
earnings-logearn_height_male
-

Stan, Julia

-
4yesyes3.5e-10 ± 2.5e-117.2e-16 ± 2.9e-17
earnings-logearn_interaction
-

Stan, Julia

-
5yesyes1.2e-9 ± 8.1e-118.1e-16 ± 3.6e-17
earnings-logearn_interaction_z
-

Stan, Julia

-
5yesyes4.4e-11 ± 2.9e-127.7e-16 ± 3.2e-17
earnings-logearn_logheight_male
-

Stan, Julia

-
4yesyes5.1e-11 ± 3.5e-129.1e-16 ± 3.9e-17
ecdc0401-covid19imperial_v2
-

Stan, Julia

-
51yesmaybe?18.0 ± 1.0e-121.4e-16 ± 6.8e-18
ecdc0501-covid19imperial_v2
-

Stan, Julia

-
51yesmaybe?18.0 ± 8.2e-121.5e-16 ± 6.1e-18
election88-election88_full
-

Stan, Julia

-
90yesmaybe?23.0 ± 0.00.0 ± 0.0
garch-garch11
-

Stan, Julia

-
4yesyes1.7e-13 ± 4.0e-153.1e-16 ± 1.2e-17
gp_pois_regr-gp_pois_regr
-

Stan, Julia

-
13yesmaybe?21.0 ± 1.0e-152.0e-16 ± 1.4e-17
gp_pois_regr-gp_regr
-

Stan, Julia

-
3yesmaybe?31.0 ± 5.0e-161.7e-16 ± 9.5e-18
hmm_example-hmm_example
-

Stan, Julia

-
4yesmaybe?94.0 ± 2.4e-142.2e-16 ± 1.3e-17
hmm_gaussian_simulated-hmm_gaussian
-

Stan, Julia

-
14yesmaybe?460.0 ± 1.2e-127.8e-16 ± 3.3e-17
iohmm_reg_simulated-iohmm_reg
-

Stan, Julia

-
29yesmaybe?420.0 ± 1.6e-134.5e-16 ± 2.1e-17
kidiq_with_mom_work-kidscore_interaction_c
-

Stan, Julia

-
5yesyes9.3e-10 ± 6.4e-115.3e-16 ± 2.3e-17
kidiq_with_mom_work-kidscore_interaction_c2
-

Stan, Julia

-
5yesyes4.7e-10 ± 3.3e-114.1e-16 ± 1.9e-17
kidiq_with_mom_work-kidscore_interaction_z
-

Stan, Julia

-
5yesyes4.7e-10 ± 3.3e-114.4e-16 ± 2.0e-17
kidiq_with_mom_work-kidscore_mom_work
-

Stan, Julia

-
5yesyes4.7e-10 ± 3.3e-115.6e-16 ± 2.5e-17
kilpisjarvi_mod-kilpisjarvi
-

Stan, Julia

-
3yesmaybe?1.2 ± 1.3e-92.0e-16 ± 1.0e-17
low_dim_gauss_mix-low_dim_gauss_mix
-

Stan, Julia

-
5yesmaybe?920.0 ± 1.9e-135.7e-16 ± 2.5e-17
low_dim_gauss_mix_collapse-low_dim_gauss_mix_collapse
-

Stan, Julia

-
5yesmaybe?920.0 ± 9.6e-145.8e-16 ± 2.6e-17
lsat_data-lsat_model
-

Stan, Julia

-
1006yesmaybe?28.0 ± 6.4e-141.2e-16 ± 8.7e-18
mcycle_gp-accel_gp
-

Stan, Julia

-
66yesmaybe?180.0 ± 3.8e-123.4e-16 ± 1.4e-17
mcycle_splines-accel_splines
-

Stan, Julia

-
82yesmaybe?190.0 ± 3.1e-86.0e-16 ± 3.2e-17
mesquite-logmesquite
-

Stan, Julia

-
8yesyes9.9e-14 ± 7.0e-151.7e-16 ± 9.2e-18
mesquite-logmesquite_logva
-

Stan, Julia

-
5yesyes1.1e-13 ± 8.0e-151.8e-16 ± 8.7e-18
mesquite-logmesquite_logvas
-

Stan, Julia

-
8yesyes5.7e-14 ± 4.0e-151.5e-16 ± 1.1e-17
mesquite-logmesquite_logvash
-

Stan, Julia

-
7yesyes1.1e-13 ± 8.0e-151.8e-16 ± 5.9e-18
mesquite-logmesquite_logvolume
-

Stan, Julia

-
3yesyes5.7e-14 ± 4.0e-151.5e-16 ± 1.1e-17
mesquite-mesquite
-

Stan, Julia

-
8yesyes1.9e-9 ± 1.3e-101.7e-16 ± 1.0e-17
nes1972-nes
-

Stan, Julia

-
10yesyes1.5e-11 ± 1.0e-127.3e-16 ± 3.5e-17
nes1976-nes
-

Stan, Julia

-
10yesyes8.6e-12 ± 6.1e-135.9e-16 ± 2.7e-17
nes1980-nes
-

Stan, Julia

-
10yesyes5.0e-12 ± 3.4e-135.6e-16 ± 2.5e-17
nes1984-nes
-

Stan, Julia

-
10yesyes1.1e-11 ± 7.5e-135.8e-16 ± 2.5e-17
nes1988-nes
-

Stan, Julia

-
10yesyes1.1e-11 ± 7.4e-137.2e-16 ± 2.9e-17
nes1992-nes
-

Stan, Julia

-
10yesyes1.5e-11 ± 1.0e-126.6e-16 ± 3.0e-17
nes1996-nes
-

Stan, Julia

-
10yesyes7.7e-12 ± 5.1e-135.4e-16 ± 2.5e-17
nes2000-nes
-

Stan, Julia

-
10yesyes1.8e-12 ± 1.3e-133.5e-16 ± 1.6e-17
nes_logit_data-nes_logit_model
-

Stan, Julia

-
2yesyes0.0 ± 0.00.0 ± 0.0
normal_2-normal_mixture
-

Stan, Julia

-
3yesmaybe?910.0 ± 3.1e-129.9e-16 ± 4.0e-17
normal_5-normal_mixture_k
-

Stan, Julia

-
14yesmaybe?1600.0 ± 3.2e-138.3e-16 ± 3.4e-17
ovarian-logistic_regression_rhs
-

Stan, Julia

-
3075yesmaybe?1700.0 ± 4.5e-111.7e-13 ± 4.7e-15
pilots-pilots
-

Stan, Julia

-
18yesyes2.8e-14 ± 2.0e-151.3e-16 ± 9.1e-18
prideprejudice_chapter-ldaK5
-

Stan, Julia

-
7714yesyes1.2e-9 ± 5.0e-114.4e-15 ± 2.0e-16
prideprejudice_paragraph-ldaK5
-

Stan, Julia

-
15570yesyes8.6e-10 ± 3.6e-113.3e-15 ± 1.4e-16
prostate-logistic_regression_rhs
-

Stan, Julia

-
11935yesmaybe?6800.0 ± 4.7e-123.9e-15 ± 2.3e-16
radon_all-radon_county_intercept
-

Stan, Julia

-
388yesmaybe?11000.0 ± 1.3e-113.5e-15 ± 1.4e-16
radon_all-radon_hierarchical_intercept_centered
-

Stan, Julia

-
391yesmaybe?12000.0 ± 1.7e-114.5e-15 ± 2.0e-16
radon_all-radon_hierarchical_intercept_noncentered
-

Stan, Julia

-
391yesmaybe?12000.0 ± 1.9e-113.8e-15 ± 1.8e-16
radon_all-radon_partially_pooled_centered
-

Stan, Julia

-
389yesmaybe?12000.0 ± 1.3e-115.1e-15 ± 2.1e-16
radon_all-radon_partially_pooled_noncentered
-

Stan, Julia

-
389yesmaybe?12000.0 ± 1.5e-114.3e-15 ± 2.0e-16
radon_all-radon_pooled
-

Stan, Julia

-
3yesmaybe?12000.0 ± 4.1e-111.4e-14 ± 5.8e-16
radon_all-radon_variable_intercept_centered
-

Stan, Julia

-
390yesmaybe?12000.0 ± 1.4e-114.0e-15 ± 1.8e-16
radon_all-radon_variable_intercept_noncentered
-

Stan, Julia

-
390yesmaybe?12000.0 ± 1.6e-113.8e-15 ± 1.6e-16
radon_all-radon_variable_intercept_slope_centered
-

Stan, Julia

-
777yesmaybe?12000.0 ± 2.0e-114.5e-15 ± 1.8e-16
radon_all-radon_variable_intercept_slope_noncentered
-

Stan, Julia

-
777yesmaybe?12000.0 ± 2.6e-114.4e-15 ± 2.1e-16
radon_all-radon_variable_slope_centered
-

Stan, Julia

-
390yesmaybe?12000.0 ± 5.7e-111.6e-14 ± 7.1e-16
radon_all-radon_variable_slope_noncentered
-

Stan, Julia

-
390yesmaybe?12000.0 ± 8.0e-111.7e-14 ± 7.4e-16
radon_mn-radon_county_intercept
-

Stan, Julia

-
87yesmaybe?650.0 ± 1.6e-137.1e-16 ± 3.1e-17
radon_mn-radon_hierarchical_intercept_centered
-

Stan, Julia

-
90yesmaybe?840.0 ± 1.7e-136.1e-16 ± 2.7e-17
radon_mn-radon_hierarchical_intercept_noncentered
-

Stan, Julia

-
90yesmaybe?840.0 ± 1.9e-138.3e-16 ± 3.6e-17
radon_mn-radon_partially_pooled_centered
-

Stan, Julia

-
88yesmaybe?840.0 ± 2.3e-138.2e-16 ± 3.7e-17
radon_mn-radon_partially_pooled_noncentered
-

Stan, Julia

-
88yesmaybe?840.0 ± 2.4e-138.4e-16 ± 3.5e-17
radon_mn-radon_pooled
-

Stan, Julia

-
3yesmaybe?840.0 ± 2.6e-131.3e-15 ± 5.3e-17
radon_mn-radon_variable_intercept_centered
-

Stan, Julia

-
89yesmaybe?840.0 ± 1.8e-136.8e-16 ± 2.8e-17
radon_mn-radon_variable_intercept_noncentered
-

Stan, Julia

-
89yesmaybe?840.0 ± 1.8e-137.1e-16 ± 2.9e-17
radon_mn-radon_variable_intercept_slope_centered
-

Stan, Julia

-
175yesmaybe?840.0 ± 2.3e-137.5e-16 ± 3.0e-17
radon_mn-radon_variable_intercept_slope_noncentered
-

Stan, Julia

-
175yesmaybe?840.0 ± 2.6e-138.0e-16 ± 3.3e-17
radon_mn-radon_variable_slope_centered
-

Stan, Julia

-
89yesmaybe?840.0 ± 2.4e-131.1e-15 ± 4.6e-17
radon_mn-radon_variable_slope_noncentered
-

Stan, Julia

-
89yesmaybe?840.0 ± 2.1e-131.0e-15 ± 4.7e-17
radon_mod-radon_county
-

Stan, Julia

-
389yesyes7.3e-12 ± 5.1e-131.3e-16 ± 8.9e-18
rats_data-rats_model
-

Stan, Julia

-
65yesmaybe?9.2 ± 2.1e-111.3e-16 ± 8.6e-18
sblrc-blr
-

Stan, Julia

-
6yesmaybe?97.0 ± 2.0e-102.5e-16 ± 1.2e-17
sblri-blr
-

Stan, Julia

-
6yesmaybe?97.0 ± 6.8e-112.3e-16 ± 9.7e-18
seeds_data-seeds_model
-

Stan, Julia

-
26yesmaybe?35.0 ± 8.0e-151.5e-16 ± 7.3e-18
sesame_data-sesame_one_pred_a
-

Stan, Julia

-
3yesyes2.8e-13 ± 1.9e-141.3e-15 ± 7.8e-17
surgical_data-surgical_model
-

Stan, Julia

-
14yesmaybe?14.0 ± 1.6e-141.4e-16 ± 8.7e-18
three_docs1200-ldaK2
-

Stan, Julia

-
7yesyes4.5e-13 ± 1.6e-143.5e-16 ± 1.5e-17
three_men1-ldaK2
-

Stan, Julia

-
502yesyes5.8e-11 ± 2.6e-121.8e-15 ± 7.7e-17
three_men2-ldaK2
-

Stan, Julia

-
510yesyes5.8e-11 ± 2.3e-121.8e-15 ± 6.9e-17
three_men3-ldaK2
-

Stan, Julia

-
505yesyes5.8e-11 ± 2.1e-121.8e-15 ± 6.9e-17
traffic_accident_nyc-bym2_offset_only
-

Stan, Julia

-
3845yesmaybe?0.65 ± 1.3e-99.2e-16 ± 3.8e-17
uk_drivers-state_space_stochastic_level_stochastic_seasonal
-

Stan, Julia

-
389yesmaybe?2.9 ± 4.8e-142.1e-16 ± 1.2e-17
wells_data-wells_daae_c_model
-

Stan, Julia

-
6yesyes4.5e-13 ± 3.2e-141.3e-16 ± 8.9e-18
wells_data-wells_dae_c_model
-

Stan, Julia

-
5yesyes4.5e-13 ± 3.2e-141.5e-16 ± 1.0e-17
wells_data-wells_dae_inter_model
-

Stan, Julia

-
7yesyes4.5e-13 ± 3.2e-141.5e-16 ± 1.1e-17
wells_data-wells_dae_model
-

Stan, Julia

-
4yesyes0.0 ± 0.00.0 ± 0.0
wells_data-wells_dist
-

Stan, Julia

-
2yesyes4.6e-8 ± 1.3e-92.7e-13 ± 1.4e-14
wells_data-wells_dist100_model
-

Stan, Julia

-
2yesyes0.0 ± 0.00.0 ± 0.0
wells_data-wells_dist100ars_model
-

Stan, Julia

-
3yesyes0.0 ± 0.00.0 ± 0.0
wells_data-wells_interaction_c_model
-

Stan, Julia

-
4yesyes4.5e-13 ± 3.2e-141.3e-16 ± 9.0e-18
wells_data-wells_interaction_model
-

Stan, Julia

-
4yesyes0.0 ± 0.00.0 ± 0.0
butterfly-multi_occupancy
-

Stan, Julia

-
106nonomissingmissing
dogs-dogs_nonhierarchical
-

Stan, Julia

-
65nomaybe?240.0 ± 11.00.16 ± 0.0072
ecdc0401-covid19imperial_v3
-

Stan, Julia

-
51nonomissingmissing
ecdc0501-covid19imperial_v3
-

Stan, Julia

-
51nonomissingmissing
hudson_lynx_hare-lotka_volterra
-

Stan, Julia

-
8nonomissingmissing
mnist-nn_rbm1bJ100
-

Stan, Julia

-
79411nomaybe?950000.0 ± 4700.00.066 ± 0.0035
mnist_100-nn_rbm1bJ10
-

Stan, Julia

-
7951nomaybe?5700.0 ± 71.00.19 ± 0.0058
one_comp_mm_elim_abs-one_comp_mm_elim_abs
-

Stan, Julia

-
4nonomissingmissing
rstan_downloads-prophet
-

Stan, Julia

-
62nomaybe?4.3e16 ± 3.1e151.4e13 ± 9.5e11
sir-sir
-

Stan, Julia

-
4nonomissingmissing
soil_carbon-soil_incubation
-

Stan, Julia

-
6nonomissingmissing
state_wide_presidential_votes-hierarchical_gp
-

Stan, Julia

-
933nomaybe?2100.0 ± 94.00.2 ± 0.011
synthetic_grid_RBF_kernels-kronecker_gp
-

Stan, Julia

-
438nomaybe?4100.0 ± 17.00.06 ± 0.0023
arK-arK
-

Stan, Julia

-
7maybe maybe?maybe?15.0 ± 0.00390.00023 ± 1.5e-5
eight_schools-eight_schools_centered
-

Stan, Julia

-
10maybe maybe?maybe?23.0 ± 0.00330.0024 ± 0.00013
eight_schools-eight_schools_noncentered
-

Stan, Julia

-
10maybe maybe?maybe?23.0 ± 0.00340.0057 ± 0.00018
fims_Aus_Jpn_irt-2pl_latent_reg_irt
-

Stan, Julia

-
531maybe maybe?maybe?37.0 ± 0.940.0015 ± 6.0e-5
irt_2pl-irt_2pl
-

Stan, Julia

-
144maybe maybe?maybe?15.0 ± 0.110.00058 ± 2.4e-5
loss_curves-losscurve_sislob
-

Stan, Julia

-
15maybe maybe?maybe?16.0 ± 0.0950.0019 ± 8.8e-5
sat-hier_2pl
-

Stan, Julia

-
669maybe maybe?maybe?73.0 ± 2.20.0012 ± 5.0e-5
seeds_data-seeds_centered_model
-

Stan, Julia

-
26maybe maybe?maybe?0.18 ± 0.00550.00019 ± 7.4e-6
seeds_data-seeds_stanified_model
-

Stan, Julia

-
26maybe maybe?maybe?0.18 ± 0.00690.00021 ± 8.9e-6
timssAusTwn_irt-gpcm_latent_reg_irt
-

Stan, Julia

-
530maybe maybe?maybe?29.0 ± 0.730.0011 ± 5.0e-5
arma-arma11
-

Stan, Julia

-
4maybemaybe?4.7 ± 0.00565.3e-5 ± 3.7e-6
kidiq-kidscore_interaction
-

Stan, Julia

-
5maybemaybe?1.0 ± 0.00311.2e-8 ± 8.5e-10
kidiq-kidscore_momhs
-

Stan, Julia

-
3maybemaybe?1.0 ± 0.00413.2e-8 ± 2.2e-9
kidiq-kidscore_momhsiq
-

Stan, Julia

-
4maybemaybe?1.0 ± 0.00354.0e-8 ± 2.8e-9
kidiq-kidscore_momiq
-

Stan, Julia

-
3maybemaybe?1.1 ± 0.00299.9e-9 ± 6.8e-10
science_irt-grsm_latent_reg_irt
-

Stan, Julia

-
408maybemaybe?15.0 ± 0.0618.9e-5 ± 4.1e-6
-
-
-
+
+

Overview of implemented posteriors

+

Check out https://nsiccha.github.io/StanBlocks.jl/performance.html for an overview of implemented posteriors and their relative performances.

@@ -1972,18 +302,7 @@

Overview of posteriors

} return false; } - const clipboard = new window.ClipboardJS('.code-copy-button', { - text: function(trigger) { - const codeEl = trigger.previousElementSibling.cloneNode(true); - for (const childEl of codeEl.children) { - if (isCodeAnnotation(childEl)) { - childEl.remove(); - } - } - return codeEl.innerText; - } - }); - clipboard.on('success', function(e) { + const onCopySuccess = function(e) { // button target const button = e.trigger; // don't keep focus @@ -2015,7 +334,45 @@

Overview of posteriors

}, 1000); // clear code selection e.clearSelection(); + } + const getTextToCopy = function(trigger) { + const codeEl = trigger.previousElementSibling.cloneNode(true); + for (const childEl of codeEl.children) { + if (isCodeAnnotation(childEl)) { + childEl.remove(); + } + } + return codeEl.innerText; + } + const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', { + text: getTextToCopy }); + clipboard.on('success', onCopySuccess); + if (window.document.getElementById('quarto-embedded-source-code-modal')) { + const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', { + text: getTextToCopy, + container: window.document.getElementById('quarto-embedded-source-code-modal') + }); + clipboardModal.on('success', onCopySuccess); + } + var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//); + var mailtoRegex = new RegExp(/^mailto:/); + var filterRegex = new RegExp("https:\/\/nsiccha\.github\.io\/StanBlocks\.jl\/"); + var isInternal = (href) => { + return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href); + } + // Inspect non-navigation links and adorn them if external + var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)'); + for (var i=0; iOverview of posteriors try { href = new URL(href).hash; } catch {} const id = href.replace(/^#\/?/, ""); const note = window.document.getElementById(id); - return note.innerHTML; + if (note) { + return note.innerHTML; + } else { + return ""; + } }); } const xrefs = window.document.querySelectorAll('a.quarto-xref'); @@ -2065,27 +426,6 @@

Overview of posteriors

} } stripColumnClz(note) - const typesetMath = (el) => { - if (window.MathJax) { - // MathJax Typeset - window.MathJax.typeset([el]); - } else if (window.katex) { - // KaTeX Render - var mathElements = el.getElementsByClassName("math"); - var macros = []; - for (var i = 0; i < mathElements.length; i++) { - var texText = mathElements[i].firstChild; - if (mathElements[i].tagName == "SPAN") { - window.katex.render(texText.data, mathElements[i], { - displayMode: mathElements[i].classList.contains('display'), - throwOnError: false, - macros: macros, - fleqn: false - }); - } - } - } - } if (id === null || id.startsWith('sec-')) { // Special case sections, only their first couple elements const container = document.createElement("div"); @@ -2100,10 +440,14 @@

Overview of posteriors

break; } } - typesetMath(container); + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(container); + } return container.innerHTML } else { - typesetMath(note); + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(note); + } return note.innerHTML; } } else { @@ -2112,8 +456,14 @@

Overview of posteriors

if (anchorLink) { anchorLink.remove(); } - typesetMath(note); - return note.innerHTML; + if (window.Quarto?.typesetMath) { + window.Quarto.typesetMath(note); + } + if (note.classList.contains("callout")) { + return note.outerHTML; + } else { + return note.innerHTML; + } } } for (var i=0; i - + -StanBlocks.jl - Julia vs Stan performance comparison +Julia vs Stan performance comparison – StanBlocks.jl