<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.2 20190208//EN"
                  "JATS-archivearticle1.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.2" article-type="other">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">jrepstat</journal-id>
<journal-title-group>
<journal-title>Journal of Reproducible Statistics</journal-title>
</journal-title-group>
<issn publication-format="electronic">3043-2790</issn>
<publisher>
<publisher-name>FAIR Press</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<title-group>
<article-title>The Squealer: Sensification of model exploration and model misfit</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name>
<surname>Gelman</surname>
<given-names>Andrew</given-names>
</name>
<aff>Department of Statistics and Department of Political Science, Columbia University, New York.</aff>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Jaffe</surname>
<given-names>Andrew H.</given-names>
</name>
<aff>Department of Physics, Blackett Laboratory, Imperial College, London.</aff>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Carlson</surname>
<given-names>Eliot</given-names>
</name>
<aff>Center for Computational Mathematics, Flatiron Institute, New York.</aff>
</contrib>
<contrib contrib-type="author">
<name>
<surname>Greengard</surname>
<given-names>Philip</given-names>
</name>
<aff>Center for Computational Neuroscience, Flatiron Institute, New York.</aff>
</contrib>
</contrib-group>
<pub-date date-type="pub" publication-format="electronic">
<year>2026</year>
</pub-date>
<volume>1</volume>
<elocation-id>16</elocation-id>
<history>
<date date-type="received" iso-8601-date="2026-10-26"><day>26</day><month>10</month><year>2026</year></date>
<date date-type="accepted" iso-8601-date="2026-11-18"><day>18</day><month>11</month><year>2026</year></date>
</history>
<permissions>
<license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the Creative Commons Attribution 4.0 International License (CC-BY 4.0), which permits unrestricted use, distribution and reproduction in any medium provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="html" xlink:href="https://jrepstat.fairpressjournals.com/articles/the-squealer-sensification-of-model-exploration-and-model-misfit/"/>
<abstract>
<p>We introduce a method for visual and auditory feedback when exploring the fit of a model to data. Starting with a best-fit curve fit to data, the user can drag the curve to a new position and the computer will emit a squeal, becoming more unpleasant as the discrepancy between curve and data increases. We demonstrate with four examples: a two-parameter curve fit to golf putting data, a four-parameter curve fit to dilution assays, a fit to cosmological data sensitive to the parameters of the Big Bang model, and a nonparametric Gaussian process fit to temperature readings. In this form of dynamic exploratory data analysis, the user employs domain knowledge to consider directions for exploration and to interpret the results.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>model misfit</kwd>
<kwd>sonification</kwd>
<kwd>Bayesian posterior perturbation</kwd>
<kwd>statistical graphics</kwd>
<kwd>curve fitting</kwd>
<kwd>exploratory data analysis</kwd>
</kwd-group>
<custom-meta-group>
<custom-meta>
<meta-name>data-availability-route</meta-name>
<meta-value>open</meta-value>
</custom-meta>
<custom-meta>
<meta-name>founding-article</meta-name>
<meta-value>true</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="a-method-for-dynamic-exploration-of-fitted-models">
  <title>A method for dynamic exploration of fitted models</title>
  <p>Visualization is important, not just for data exploration but also
  for statistical modeling (Gelman, 2004; Wickham, 2006; Wickham et al.,
  2015). By plotting the estimated model alongside the data, we can
  visualize the model and also see places where it does not fit.</p>
  <p>When fitting a model, often we are in a situation in which the
  best-fit curve systematically misses some of the data, and we would
  like to “grab” the curve and drag it to a new place. Presumably that
  would create new problems—if we are starting at the best-fit curve,
  any alternative would represent a greater aggregate discrepancy—but we
  would like to see where these problems are, and which particular data
  points are causing the problem.</p>
  <sec id="motivation-and-formulation-of-the-problem">
    <title>Motivation and formulation of the problem</title>
    <p>We formulate the simplest version of the problem in terms of a
    Bayesian model, <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)\propto p(\theta)\prod_{i=1}^N p(y_i|x_i,\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>∝</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:msubsup><mml:mo>∏</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mi>N</mml:mi></mml:msubsup><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    with the curve of interest being <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)=\mbox{E}(y|x,\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mtext mathvariant="normal">E</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    which we assume can be computed analytically. The data
    <inline-formula><alternatives>
    <tex-math><![CDATA[x_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[y_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    are scalars and <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    is a parameter vector. More general curve-fitting posteriors can
    also be accommodated in the formalism.</p>
    <fig id="figU003Aintro1">
      <caption><p><italic>The basic Squealer. <italic>Left:</italic>
      scatterplot of data and fitted model (dark blue curve representing
      the point estimate <inline-formula><alternatives>
      <tex-math><![CDATA[\hat{g}]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
      and light blue curves representing posterior simulations
      <inline-formula><alternatives>
      <tex-math><![CDATA[g^*]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>),
      a pseudo-data point <inline-formula><alternatives>
      <tex-math><![CDATA[(x^*,y^*)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
      in red, and the new curve <inline-formula><alternatives>
      <tex-math><![CDATA[g^*]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
      in red. <italic>Center:</italic> dashboard showing, for each
      parameter <inline-formula><alternatives>
      <tex-math><![CDATA[\theta_k]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>θ</mml:mi><mml:mi>k</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
      in the model, the point estimate <inline-formula><alternatives>
      <tex-math><![CDATA[\hat\theta_k]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>k</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
      as a blue dot, the posterior density from the simulations
      <inline-formula><alternatives>
      <tex-math><![CDATA[\theta^s]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:math></alternatives></inline-formula>
      in blue, and the perturbed value <inline-formula><alternatives>
      <tex-math><![CDATA[\theta_k^*]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msubsup><mml:mi>θ</mml:mi><mml:mi>k</mml:mi><mml:mo>*</mml:mo></mml:msubsup></mml:math></alternatives></inline-formula>
      in red. The dashboard also shows the corresponding quantities for
      the log prior, likelihood, and posteriors. <italic>Right:</italic>
      Relative discrepancy, <inline-formula><alternatives>
      <tex-math><![CDATA[\log p(y_i|x_i,\theta^*) - \log p(y_i|x_i,\hat\theta)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>−</mml:mo><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
      for each of the <inline-formula><alternatives>
      <tex-math><![CDATA[n]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>n</mml:mi></mml:math></alternatives></inline-formula>
      data points plotted vs. <inline-formula><alternatives>
      <tex-math><![CDATA[x]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>.
      In the dynamic version of the Squealer, the pseudo-data point
      would be specified by the user, the change in total fit,
      <inline-formula><alternatives>
      <tex-math><![CDATA[\log p(\theta^*|x,y) - \log p(\hat\theta|x,y)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>−</mml:mo><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
      would be conveyed by sound, and the relative discrepancies of the
      individual data points would be displayed as different intensities
      of color of the points on the graph.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer1.pdf" />
    </fig>
    <fig id="figU003Aintro2">
      <caption><p><italic>Example of the Squealer for data that are not
      consistent with the model. In this case there is no way to get the
      curve close to the data: pulling up the curve to improve the fit
      for the point at <inline-formula><alternatives>
      <tex-math><![CDATA[x=200]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>200</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
      degrades the fit elsewhere. The above displays show two attempts,
      first adding one pseudo-data point and then adding another. In
      every case, pulling toward the pseudo-data decreases the log
      posterior density (the lowest line on the dashboard in the middle
      of each row of three graphs), which makes sense given that we are
      starting from the posterior mode of the
      parameters.</italic></p></caption>
      <p><inline-graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer2.pdf">
        <alt-text>image</alt-text>
      </inline-graphic>
      <inline-graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer3.pdf">
        <alt-text>image</alt-text>
      </inline-graphic></p>
    </fig>
    <p>We assume we can fit the model and estimate
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>,
    which implies an estimate of the curve,
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    which can be overlaid on a scatterplot of
    <inline-formula><alternatives>
    <tex-math><![CDATA[(x,y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    and represent a starting point for our procedure. At this point, the
    fit of the curve could be explored by moving the parameter vector
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>,
    which would in turn move <inline-formula><alternatives>
    <tex-math><![CDATA[g(x)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>Our key idea is to do this the other way around: instead of
    changing <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    and seeing what this does to <inline-formula><alternatives>
    <tex-math><![CDATA[g]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>g</mml:mi></mml:math></alternatives></inline-formula>,
    we move <inline-formula><alternatives>
    <tex-math><![CDATA[g]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>g</mml:mi></mml:math></alternatives></inline-formula>
    and then adjust <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    accordingly. Altering <inline-formula><alternatives>
    <tex-math><![CDATA[g]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>g</mml:mi></mml:math></alternatives></inline-formula>
    in a certain direction will not necessarily correspond to a unique
    choice of <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>,
    so we will do the adjustment of <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    in the context of the model to provide the best possible fit (more
    specifically, maximize the posterior density,
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>)
    in a way that is consistent with <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    being perturbed in the desired direction.</p>
    <p>Figure <xref alt="1" rid="figU003Aintro1">1</xref> demonstrates
    the idea in a setting where the data were generated from the class
    of models being fit. As an example we are using a four-parameter
    logistic model fit to laboratory assays, as discussed further in
    Section <xref alt="2.2" rid="secU003Adilution">2.2</xref>. The user
    should be able to explore the fit by moving the curve on the space
    of <inline-formula><alternatives>
    <tex-math><![CDATA[(x,y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    and seeing how this translates to changes in the parameters
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    and what this does to the fit of the model to the individual data
    points and in total. A challenge here is that, if
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    is high-dimensional, we do not want to require the user to specify
    all its parameters; rather, we want to be able to move the curve
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    in some general direction and let the parameter vector
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    follow in a way that is most consistent with the data.</p>
    <p>Figure <xref alt="2" rid="figU003Aintro2">2</xref> shows an
    example where the data were generated from a model outside the
    fitted family, so that the best-fit curve (in blue on the left
    plots) has systematic discrepancies with the data. The two rows of
    plots show two attempts to get a better fit by dragging the curve
    toward the pseudo-data points shown in red on the left plots.</p>
    <p>If we knew that the assumptions underlying our model were
    correct, there would be no reason to do this, as we could just
    summarize uncertainty using the Bayes posterior distribution.
    Realistically, though, our models will be wrong, and we are
    developing a set of tools for a new and dynamic way to understand
    misfit to data.</p>
    <p>The present paper focuses on the statistical method and
    computational concerns, not on the dynamic graphics or the sonic and
    visual implementation.</p>
  </sec>
  <sec id="perturbing-the-posterior-mode">
    <title>Perturbing the posterior mode</title>
    <p>The simplest version of the Squealer works with the estimate
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\hat{\theta})]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    where <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{\theta}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    is the mode of the posterior density of the fitted model,
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    The user can drag the curve in some direction by pulling it toward
    to a newly specified pseudo-data point,
    <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*,y^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    We do this by multiplying the posterior density by a factor,
    <inline-formula><alternatives>
    <tex-math><![CDATA[\mbox{normal}(y^*| g(x^*|\theta),\sigma^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtext mathvariant="normal">normal</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo><mml:msup><mml:mi>σ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    where <inline-formula><alternatives>
    <tex-math><![CDATA[\sigma^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>σ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    is set to a value small enough that the new point will exert a
    strong enough “gravitational force” but not so small as to induce
    computational instability. A reasonable first choice is half the
    posterior standard deviation of <inline-formula><alternatives>
    <tex-math><![CDATA[g(x^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    that is, we set
    <styled-content id="eqU003Asigma_star"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{eq:sigma_star}
    \sigma^* = 0.5 \,\mbox{sd}(g(x^*)|y) = 0.5 \left( \int \left( g(x^*|\theta) - \bar{g}(x^*) \right)^2 p(\theta|y)\, d\theta \right)^{1/2}\!\!\!\!\!\!,\ \ \ \bar{g}(x^*) = \int g(x^*|\theta)\, p(\theta|y)\, d\theta,
    \end{equation} \qquad(1)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:msup><mml:mi>σ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mn>0.5</mml:mn><mml:mspace width="0.167em"></mml:mspace><mml:mtext mathvariant="normal">sd</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mn>0.5</mml:mn><mml:msup><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mo>∫</mml:mo><mml:msup><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>−</mml:mo><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">‾</mml:mo></mml:mover><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mn>2</mml:mn></mml:msup><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mspace width="0.167em"></mml:mspace><mml:mi>d</mml:mi><mml:mi>θ</mml:mi><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mi>/</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mspace width="-0.167em"></mml:mspace><mml:mspace width="-0.167em"></mml:mspace><mml:mspace width="-0.167em"></mml:mspace><mml:mspace width="-0.167em"></mml:mspace><mml:mspace width="-0.167em"></mml:mspace><mml:mspace width="-0.167em"></mml:mspace><mml:mo>,</mml:mo><mml:mspace width="0.222em"></mml:mspace><mml:mspace width="0.222em"></mml:mspace><mml:mspace width="0.222em"></mml:mspace><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">‾</mml:mo></mml:mover><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mo>∫</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mspace width="0.167em"></mml:mspace><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mspace width="0.167em"></mml:mspace><mml:mi>d</mml:mi><mml:mi>θ</mml:mi><mml:mo>,</mml:mo></mml:mrow><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    which should be easy enough to calculate, exactly or approximately,
    given that the model has already been fit. We then compute the
    posterior mode, <inline-formula><alternatives>
    <tex-math><![CDATA[\theta^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>,
    for this augmented model. Using the normal distribution as a
    baseline, we should expect this to shift the curve approximately 80%
    (that is, <inline-formula><alternatives>
    <tex-math><![CDATA[\frac{1^2}{1^2 + 0.5^2}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mfrac><mml:msup><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:msup><mml:mrow><mml:msup><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:msup><mml:mo>+</mml:mo><mml:msup><mml:mn>0.5</mml:mn><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:mfrac></mml:math></alternatives></inline-formula>)
    toward the pseudo-data point.</p>
    <p>In the computation, we use the existing estimate,
    <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{\theta}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>,
    as the initial value for the optimization. There could be
    computational challenge, however, if the pseudo-data point is far
    from the fitted curve. One approach is to check if
    <inline-formula><alternatives>
    <tex-math><![CDATA[|y^* - \mbox{E}(g(x^*|y))| > \mbox{sd}(g(x^*|y))]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>−</mml:mo><mml:mtext mathvariant="normal">E</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mo>&gt;</mml:mo><mml:mtext mathvariant="normal">sd</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    and, if so, shift <inline-formula><alternatives>
    <tex-math><![CDATA[y^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    gradually, moving it by <inline-formula><alternatives>
    <tex-math><![CDATA[\mbox{sd}(g(x^*|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtext mathvariant="normal">sd</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    at a time until we eventually reach the specified value.</p>
    <p>In assuming a normal distribution for this gravitational force,
    we are <italic>not</italic> assuming that the likelihood for the
    data <inline-formula><alternatives>
    <tex-math><![CDATA[y_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    necessarily follow a normal distribution. The pseudo-data point does
    not have to take the mathematical form of an additional measurement
    from the model, <inline-formula><alternatives>
    <tex-math><![CDATA[p(y|x,\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>;
    rather it is entirely a mathematical and computational tool for
    gradually moving the curve from <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    to a new estimate, <inline-formula><alternatives>
    <tex-math><![CDATA[g^*=g(x|\theta^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    obtained by computing the mode of the augmented posterior
    distribution of <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>.
    For example, if <inline-formula><alternatives>
    <tex-math><![CDATA[p(y|x,\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    is a discrete-data model such as an ordered logistic regression of a
    response with five categories, it would still make sense to choose a
    continuous value for <inline-formula><alternatives>
    <tex-math><![CDATA[y^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>,
    as we are using it to shift the continuous curve
    <inline-formula><alternatives>
    <tex-math><![CDATA[g]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>g</mml:mi></mml:math></alternatives></inline-formula>,
    not to represent a possible data point.</p>
    <p>For a complicated model it can make sense to move the curve in
    more elaborate ways, by pulling it toward multiple pseudo-data
    points, <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*_i,y^*_i), \ i=1,\dots,N^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo><mml:mspace width="0.222em"></mml:mspace><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>…</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mi>N</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>.
    The same logic holds; we merely multiply the posterior density by
    <inline-formula><alternatives>
    <tex-math><![CDATA[\prod_{i=1}^{n^*}\,\mbox{normal}(y^*_i| g(x^*_i|\theta),\sigma^*_i)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msubsup><mml:mo>∏</mml:mo><mml:mrow><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:msup><mml:mi>n</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:msubsup><mml:mspace width="0.167em"></mml:mspace><mml:mtext mathvariant="normal">normal</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msubsup><mml:mi>y</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msubsup><mml:mi>x</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mi>σ</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    setting each <inline-formula><alternatives>
    <tex-math><![CDATA[\sigma^*_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msubsup><mml:mi>σ</mml:mi><mml:mi>i</mml:mi><mml:mo>*</mml:mo></mml:msubsup></mml:math></alternatives></inline-formula>
    using some rule such as
    (<xref alt="(1)" rid="eqU003Asigma_star">(1)</xref>), and then
    obtain a new estimate, <inline-formula><alternatives>
    <tex-math><![CDATA[\theta^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>,
    and a corresponding new curve, <inline-formula><alternatives>
    <tex-math><![CDATA[g^*=g(x|\theta^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>In either case, the new curve <inline-formula><alternatives>
    <tex-math><![CDATA[g^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    represents the best fit prediction given the model and data, under
    the soft constraint that the curve passes near the new point or
    points, <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*,y^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    When a model is complicated and has many parameters, we do not want
    to be in the position where we have to specify the entire curve;
    rather, we want to be able to gently drag it and then let the data
    dictate the best fit given our soft constraints. Figures
    <xref alt="1" rid="figU003Aintro1">1</xref> and
    <xref alt="2" rid="figU003Aintro2">2</xref> show examples.</p>
    <p>On the computer, the user should be able to perform this
    operation in one of two ways, either by clicking on the location of
    the pseudo-data points or by clicking on a point or points on the
    fitted curve <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    and then using the mouse or joystick to move these points to new
    places, which become the pseudo-data points
    <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*,y^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    In either case, this would be performed using dynamic graphics on
    the plot of data and fitted curve, and then in the background the
    computer would re-fit the model and display the updated curve.</p>
    <p>Depending on the speed of computation, there are different ways
    that the updated curve could be estimated and displayed. If the fit
    is fast enough, the computer could re-fit the model on the fly as
    the curve is being dragged so that the user could see the updated
    curve moving in real time. If real-time updating is impossible, it
    could be possible to compute the updated model using an
    annealing-like procedure in which the gravitational scale,
    <inline-formula><alternatives>
    <tex-math><![CDATA[\sigma^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>σ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>,
    starts at a high value and then gradually decreases to zero, and the
    fitting algorithm can provide real-time updates.</p>
  </sec>
  <sec id="perturbing-a-posterior-mean-or-other-point-estimate">
    <title>Perturbing a posterior mean or other point estimate</title>
    <p>The mode is not always a good summary of the posterior
    distribution: the best-fit curve will always overfit to some extent,
    and even in a simple multivariate normal posterior distribution, the
    mode will not be in the typical set as the dimensionality increases
    (Gelman, 2020). And, even in low dimensions, the posterior mode can
    have problems. For a hierarchical model with weak priors the joint
    mode occurs at the degenerate point at which all the local
    parameters are equal to each other and the group-level variance is
    zero.</p>
    <p>For these reasons, we often choose posterior summaries other than
    the mode. Two alternatives are the mean and median, either of which
    can be computed using posterior simulations
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta^s,\ s=1,\dots,S]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup><mml:mo>,</mml:mo><mml:mspace width="0.222em"></mml:mspace><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>…</mml:mi><mml:mo>,</mml:mo><mml:mi>S</mml:mi></mml:mrow></mml:math></alternatives></inline-formula>,
    or from a variational approximation to
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    For the Squealer, we are interested in
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    not <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    itself, so if we have an estimate <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{\theta}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    (which could be the posterior mode, mean, median, or a summary of a
    variational inference), we can use <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    defined by <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}(x) = g(x|\hat{\theta})]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>Alternatively we could take the posterior expectation of the
    curve itself, so that <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}(x) = \mbox{E}(g(x)) = \int\! g(x|\theta) p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mtext mathvariant="normal">E</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mo>∫</mml:mo><mml:mspace width="-0.167em"></mml:mspace><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    This is appealing from a theoretical perspective given that we have
    already defined <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    as <inline-formula><alternatives>
    <tex-math><![CDATA[\mbox{E}(y|x,\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtext mathvariant="normal">E</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    so that this new <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    is simply the unconditional posterior expectation. There is a
    computational challenge here, though, in that this averaging would
    need to be evaluated at a grid of values of
    <inline-formula><alternatives>
    <tex-math><![CDATA[x]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>,
    unlike the other approach in which the point estimate
    <inline-formula><alternatives>
    <tex-math><![CDATA[\hat\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    only needs to be computed once and then it can be plugged into the
    formula for <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\hat\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>Whatever choice of distributional summary we use, the plan is to
    first compute it from the posterior distribution,
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    and then on the augmented posterior distribution,
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta^*|y)\propto p(\theta|y)\mbox{normal}(y^*|g(x|\theta^*),\sigma^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>∝</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mtext mathvariant="normal">normal</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo><mml:msup><mml:mi>σ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    using the inference from <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    to initialize the computation.</p>
    <p>If the original model has been fit using posterior simulations,
    one might hope to be able to shift the curve by importance
    reweighting of the simulation draws using the normal density
    corresponding to the pseudo-data. It would then be fast to compute
    the mean of <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    under the augmented posterior distribution or to compute
    <inline-formula><alternatives>
    <tex-math><![CDATA[\mbox{E}(g(x|\theta))]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtext mathvariant="normal">E</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    in parallel at a grid of values of <inline-formula><alternatives>
    <tex-math><![CDATA[x]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>.
    Unfortunately we often will be moving the curve to values that are
    barely supported by the original model—that is one of the reasons
    for developing this method in the first place, to understand why a
    certain alternative fit does not work for the data at hand—, in
    which case simple importance weighting would not work. It could make
    sense to use some sort of particle filtering algorithm, but here we
    will assume that we will just fit the augmented model directly.</p>
    <p>When perturbing <inline-formula><alternatives>
    <tex-math><![CDATA[g(\hat\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    where <inline-formula><alternatives>
    <tex-math><![CDATA[\hat\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    is the posterior mode, the log posterior density necessarily
    decreases. When perturbing a <inline-formula><alternatives>
    <tex-math><![CDATA[\hat{g}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    using the posterior mean or median or other summary, there is no
    guarantee that the log posterior will decrease, so it is not so
    clear what should be “squealing” to indicate discomfort with the
    fit. One approach might be to follow a variational framework and
    define discomfort as the Kullback-Leibler discrepancy of
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta^*|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    relative to <inline-formula><alternatives>
    <tex-math><![CDATA[p(\theta|y)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    In this case, the point estimate <inline-formula><alternatives>
    <tex-math><![CDATA[\hat g]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mover><mml:mi>g</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:math></alternatives></inline-formula>
    is there for the graphical display but would not be used to
    summarize total error.</p>
  </sec>
  <sec id="perturbing.posterior">
    <title>Perturbing a posterior distribution</title>
    <fig id="figU003Apost1">
      <caption><p><italic>Challenge of shifting the posterior
      distribution by pulling it toward a pseudo-data point.
      <italic>Left graph:</italic> data and fitted curves
      <inline-formula><alternatives>
      <tex-math><![CDATA[g(x|\theta^s)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
      based on 100 random draws <inline-formula><alternatives>
      <tex-math><![CDATA[\theta^s]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup></mml:math></alternatives></inline-formula>
      from the posterior distribution, <inline-formula><alternatives>
      <tex-math><![CDATA[p(\theta|y)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
      for the data and model shown in Figure
      <xref alt="1" rid="figU003Aintro1">1</xref>. <italic>Right
      graph:</italic> data and pseudo-data point, along with fitted
      curves based on 100 random draws from the augmented posterior. The
      curves on the right are constricted by the “local gravity” of the
      pseudo-data point.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer4.pdf" />
    </fig>
    <p>For Bayesian applications we are often interested in the entire
    posterior distribution, and we would like to see what happens if it
    is shifted in some way. Unfortunately, our “gravitational” approach
    leads to an artifact by which the posterior distribution of the
    shifted curve <inline-formula><alternatives>
    <tex-math><![CDATA[g^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    is constricted in the neighborhood of each pseudo-data point. We
    would like to have a way to shift the entire distribution without
    pinning it in any particular place. One idea that might seem
    appealing is to shift the posterior draws of
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    by a fixed amount, that is, to define simulations
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta^{*s} = \theta^s + \theta^* - \hat\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msup><mml:mi>θ</mml:mi><mml:mrow><mml:mi>*</mml:mi><mml:mi>s</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup><mml:mo>+</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>−</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover></mml:mrow></mml:math></alternatives></inline-formula>,
    but that gives poor results in examples such as this one where the
    dependence structure of <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    is not translation invariant. A shift on the log scale also
    fails.</p>
    <p>Ultimately the challenge here is that the augmented posterior
    distribution contains additional information, which in some sense
    should not be counted when determining uncertainty in
    <inline-formula><alternatives>
    <tex-math><![CDATA[g^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>.
    For the examples in the remainder of this paper we will just shift
    the point estimates.</p>
  </sec>
  <sec id="supplementing-statistical-graphics-with-sound">
    <title>Supplementing statistical graphics with sound</title>
    <p>For the benefit of vision-impaired researchers, tools have
    recently been developed that engage sound, smell, touch, muscular
    resistance, voice dialogue, balance, and multiple senses at once
    (Bornmann, 2024; <named-content content-type="nocase">Dayé &amp; de
    Campo</named-content>, 2006; Gelman &amp; Sturdevant, 2023;
    Sturdevant et al., 2022). Here we discuss a different use case in
    which sound is used to supplement a dynamic visual display.</p>
    <p>Sound has a much lower information bandwidth than vision, but it
    has the advantage of not requiring attention. An audible signal can
    reach us even when our eyes and hands are occupied with dynamic
    graphics. In the present paper, we develop a visual dashboard and
    sonic feedback to facilitate the exploration of fitted models by
    allowing the user to perturb the model parameters, with the feedback
    conveying when and where the fit is getting worse. The goal is for
    the user to develop a better understanding of where the model fits
    the data, where it doesn’t, and why a better fit is not
    possible.</p>
  </sec>
</sec>
<sec id="examples">
  <title>Examples</title>
  <sec id="secU003Agolf">
    <title>A two-parameter model for golf putting</title>
    <p>We begin with an example where a subtle model misfit can be
    identified by a loud squeal caused by forcing the curve go through a
    pseudodata point that is just a little bit off of the best-fit
    curve.</p>
    <p>We start with a two-parameter model from Broadie (2018) and
    Gelman (2019) presents the probability of a success of a putt in
    golf as a function of the distance <inline-formula><alternatives>
    <tex-math><![CDATA[x]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>
    (measured in feet) from the hole:
    <styled-content id="eqU003Agolf1"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{eq:golf1}
    g(x|\theta) = \left(2\Phi\left(\frac{\sin^{-1}((R-r)/x)}{\sigma_{\textrm{angle}}}\right)-1\right)\left(\Phi\left(\frac{2}{(x+1)\,\sigma_{\textrm{distance}}}\right)-\Phi\left(\frac{-1}{(x+1)\,\sigma_{\textrm{distance}}}\right)\right),
    \end{equation} \qquad(2)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mn>2</mml:mn><mml:mi mathvariant="normal">Φ</mml:mi><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mfrac><mml:mrow><mml:msup><mml:mrow><mml:mi mathvariant="normal">sin</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mrow><mml:mi>−</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>R</mml:mi><mml:mo>−</mml:mo><mml:mi>r</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>/</mml:mi><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mtext mathvariant="normal">angle</mml:mtext></mml:msub></mml:mfrac><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mo>−</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mi mathvariant="normal">Φ</mml:mi><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mfrac><mml:mn>2</mml:mn><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mspace width="0.167em"></mml:mspace><mml:msub><mml:mi>σ</mml:mi><mml:mtext mathvariant="normal">distance</mml:mtext></mml:msub></mml:mrow></mml:mfrac><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mo>−</mml:mo><mml:mi mathvariant="normal">Φ</mml:mi><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mfrac><mml:mrow><mml:mi>−</mml:mi><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mspace width="0.167em"></mml:mspace><mml:msub><mml:mi>σ</mml:mi><mml:mtext mathvariant="normal">distance</mml:mtext></mml:msub></mml:mrow></mml:mfrac><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mo>,</mml:mo></mml:mrow><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>2</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    where <inline-formula><alternatives>
    <tex-math><![CDATA[\Phi]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi mathvariant="normal">Φ</mml:mi></mml:math></alternatives></inline-formula>
    is the normal cumulative distribution function;
    <inline-formula><alternatives>
    <tex-math><![CDATA[R]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>R</mml:mi></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[r]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>r</mml:mi></mml:math></alternatives></inline-formula>
    are the radius of the hole and the ball; and
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta=(\sigma_{\textrm{angle}}, \sigma_{\textrm{distance}})]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>θ</mml:mi><mml:mo>=</mml:mo><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>σ</mml:mi><mml:mtext mathvariant="normal">angle</mml:mtext></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>σ</mml:mi><mml:mtext mathvariant="normal">distance</mml:mtext></mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    are the standard deviation of the variation in the angle and the log
    distance of the shot, relative to the aimed angle and distance.</p>
    <p>We fit this model to a database of 1.25 million attempted putts
    from pro golfers, assuming the probability of success depends only
    on the distance from the hole. It would make sense to later fit a
    hierarchical model allowing this probability to vary by player,
    weather, and characteristics of the golf course, but it is
    reasonable to start with aggregate data to get a sense of the
    overall model fit.</p>
    <p>Distances from the hole are binned into 31 categories
    <inline-formula><alternatives>
    <tex-math><![CDATA[i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>i</mml:mi></mml:math></alternatives></inline-formula>,
    centered at distances <inline-formula><alternatives>
    <tex-math><![CDATA[x_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    of 0.25, 1, 2, 3, …, with the bins becoming wider at greater
    distances and with the final bin centered at 75 feet. For each bin,
    we fit the model,
    <styled-content id="eqU003Agolf2"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{eq:golf2}
    n_i y_i\sim\mbox{binomial}(n_i, g(x_i|\theta)),
    \end{equation} \qquad(3)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:msub><mml:mi>n</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>∼</mml:mo><mml:mtext mathvariant="normal">binomial</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo></mml:mrow><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>3</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    where <inline-formula><alternatives>
    <tex-math><![CDATA[n_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>n</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    is the number of shots from that distance bin and
    <inline-formula><alternatives>
    <tex-math><![CDATA[y_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    is the proportion of those shots that went in.</p>
    <fig id="figU003Agolf0">
      <caption><p><italic>Data on the proportion of successful golf
      putts as a function of distance from the hole, along with the
      curve corresponding to the best-fit estimate from a specified
      two-parameter model. The model fit shows some problems for
      distances between 10 and 50 feet, and we would like to explore
      what happens if we try to move the curve toward the
      data.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer_golf_0.pdf" />
    </fig>
    <p>Figure <xref alt="4" rid="figU003Agolf0">4</xref> shows the data
    <inline-formula><alternatives>
    <tex-math><![CDATA[(x,y)_i,\ i=1,\dots,N]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo>,</mml:mo><mml:mi>y</mml:mi><mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>i</mml:mi></mml:msub><mml:mo>,</mml:mo><mml:mspace width="0.222em"></mml:mspace><mml:mi>i</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>…</mml:mi><mml:mo>,</mml:mo><mml:mi>N</mml:mi></mml:mrow></mml:math></alternatives></inline-formula>,
    along with the best-fit curve <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\hat\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    With over a million data points and only two parameters, the model
    is estimated so precisely that curves corresponding to posterior
    simulation draws, <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta^s)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mi>s</mml:mi></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    would be visually indistinguishable from the best fit.</p>
    <p>It is impressive how well this two-parameter curve lines up with
    the data—but the fit is not perfect. There is a region between
    <inline-formula><alternatives>
    <tex-math><![CDATA[x=10]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>10</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[x=50]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>50</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    where the curve is too low, and we would like to pull it upward.
    This is a job for the Squealer!</p>
    <fig id="figU003Agolf1">
      <caption><p><italic><italic>Top row:</italic> first try to adjust
      the golf model to line up with the data, obtained by dragging the
      curve upward at one point at <inline-formula><alternatives>
      <tex-math><![CDATA[x=20]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>20</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>.
      <italic>Bottom row:</italic> second try, dragging the curve at two
      points (<inline-formula><alternatives>
      <tex-math><![CDATA[x=10]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>10</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
      and <inline-formula><alternatives>
      <tex-math><![CDATA[x=30]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>30</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>),
      yields a much improved visual fit to the data. Point-by-point
      details are shown in Figure
      <xref alt="6" rid="figU003Agolf3">6</xref>. These graphs are
      intended to display multiple curves corresponding to posterior
      simulation draws of <inline-formula><alternatives>
      <tex-math><![CDATA[\theta]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>,
      but in this case the posteriors are so precisely determined that
      no variation in the curves is visible.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer_golf_1.pdf" />
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer_golf_2.pdf" />
    </fig>
    <p>Because we have not yet set up the dynamic graphics, we perturb
    the curve by trial and error. First we grab the value of
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    at <inline-formula><alternatives>
    <tex-math><![CDATA[x=20]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>20</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    and move it upward to match the data; the result is shown in the top
    row of Figure <xref alt="5" rid="figU003Agolf1">5</xref>. This fixes
    the misfit between <inline-formula><alternatives>
    <tex-math><![CDATA[x=20]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>20</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[x=50]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>50</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    but creates a new problem for <inline-formula><alternatives>
    <tex-math><![CDATA[x]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>
    between 5 and 15. But we can fix this by tying the curve to two
    pseudo-data points, as demonstrated in the bottom row of Figure
    <xref alt="5" rid="figU003Agolf1">5</xref>.</p>
    <fig id="figU003Agolf3">
      <caption><p><italic>Squealer applied to the golf model. It is
      possible to pull the fitted curve <inline-formula><alternatives>
      <tex-math><![CDATA[g(x|\hat{\theta})]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mover><mml:mi>θ</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
      toward two pseudo-data points and obtain a new curve
      <inline-formula><alternatives>
      <tex-math><![CDATA[g^*=g(x|\theta^*)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msup><mml:mi>g</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>=</mml:mo><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
      that is a better visual match to the data, but the log-posterior
      density for <inline-formula><alternatives>
      <tex-math><![CDATA[\theta^*]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
      is much lower. The rightmost plot shows that the poor fit is
      coming from the data points with the lowest values of
      <inline-formula><alternatives>
      <tex-math><![CDATA[x]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="squealer_golf_3.pdf" />
    </fig>
    <p>We next turn to the Squealer dashboard and point-by-point summary
    to understand the statistical price paid by the apparently better
    fit. Figure <xref alt="6" rid="figU003Agolf3">6</xref> shows the
    result. The new curve <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    looks good but it pays a huge price in the likelihood, coming from a
    few points on the left of the graph. What is happening is that there
    are hundreds of thousands of putt attempts in these first few bins
    (consider that the short putts in the dataset include the failed
    attempts from other distances that came close but did not go in,
    hence there is a pileup of data near <inline-formula><alternatives>
    <tex-math><![CDATA[x=0]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>x</mml:mi><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>),
    hence the binomial likelihood is very strong there, so much that it
    does not easily tolerate even very small departures of the data
    <inline-formula><alternatives>
    <tex-math><![CDATA[y_i]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>y</mml:mi><mml:mi>i</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    from their expected values <inline-formula><alternatives>
    <tex-math><![CDATA[g(x_i|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>No model is perfect, and it is not ideal for the fit of the
    entire curve to be driven so strongly by these few data points.
    <named-content content-type="nocase">Gelman et al.</named-content>
    (2026) extend the model by adding an error term to account for
    imperfections in (<xref alt="(2)" rid="eqU003Agolf1">(2)</xref>) and
    (<xref alt="(3)" rid="eqU003Agolf2">(3)</xref>); our point here is
    to demonstrate how the Squealer can both facilitate a better fit to
    data and give insight into why the initial fitting procedure did not
    get there.</p>
    <p>We include a software prototype with the golf example at
    <ext-link ext-link-type="uri" xlink:href="https://github.com/elc45/squealer-prototype/">https://github.com/elc45/squealer-prototype/</ext-link>.
    In this interface, the starting display shows the data superimposed
    with the curve of the posterior mode fit. The user can click the
    plot to add a pseudo-data point at the location of the cursor,
    optionally using the sliding scale at the bottom of the console to
    control the “gravitational pull” of the point, and the curve will
    automatically adjust to be the mode of the new posterior augmented
    with the pseudo-data point. The program then makes a noise whose
    pitch is proportional to the decrease in log likelihood
    <italic>under the original model</italic> incurred by this change in
    fit. Under the hood, this new pseudo-mode is found in real time
    using the L-BFGS optimizer. The user can subsequently add more
    points in different locations, adjust the gravitational pull, or
    remove points, with the curve responding in real time.</p>
  </sec>
  <sec id="secU003Adilution">
    <title>A model for calibration in bioassays</title>
    <fig id="figU003Adilution1">
      <caption><p><italic>A model for laboratory assays fit to
      calibration data (top row) and samples with unknown concentrations
      (remaining rows). For each, data have been gathered at multiple
      dilutions, and the curves show expected measurement value as a
      function of the dilution level. The unknown samples are displayed
      in decreasing order of mean measurements. The curves for samples
      23 and 3 show some misfit to the data; we explore this with the
      Squealer in Figure
      <xref alt="8" rid="figU003Adilution2">8</xref>.</italic></p></caption>
      <graphic mimetype="image" mime-subtype="png" xlink:href="Figure3.png" />
    </fig>
    <p>We next show an example of the Squealer applied to a hierarchical
    data structure. Gelman et al. (2004) present a Bayesian approach to
    inference from laboratory assays in which a model is simultaneously
    fit to calibration data (from samples with known concentrations) and
    unknown samples whose concentration is then estimated. More recently
    we have expanded the model by allowing for contamination. The
    challenge is that sometimes a single model does not appear to fit
    all the data well. Figure
    <xref alt="7" rid="figU003Adilution1">7</xref> shows an example of a
    plate with several dilutions of the calibration data and 22 unknown
    samples. The curves for samples 23 and 3 show some misfit to the
    data; we will explore this with the Squealer.</p>
    <fig id="figU003Adilution2">
      <caption><p><italic>Applying the Squealer to the data and model
      from Figure <xref alt="7" rid="figU003Adilution1">7</xref> to
      perturb the curves for samples 23 and 3. The curves fit to the
      original data are in black; the Squealer results are in red.
      Except for the two affected samples, the two fits are essentially
      identical. The next step is to understand what was constraining
      the original fit to be off for samples 23 and
      3.</italic></p></caption>
      <graphic mimetype="image" mime-subtype="png" xlink:href="Figure3_squealer.png" />
    </fig>
    <p>For each of samples 23 and 3 in Figure
    <xref alt="7" rid="figU003Adilution1">7</xref>, we add three
    pseudo-data points (indicated by red asterisks on the plots for
    those samples) and re-fit the model. Figure
    <xref alt="8" rid="figU003Adilution2">8</xref> shows the result,
    with the original fit shown in black and the new fit in red. All the
    parameter estimates in the model change, but the differences in the
    fitted curves and their uncertainties are imperceptible except for
    the two affected samples.</p>
    <fig id="figU003Adilution3">
      <caption><p><italic>Parameter estimates corresponding to the
      fitted models in Figures
      <xref alt="7" rid="figU003Adilution1">7</xref> and
      <xref alt="8" rid="figU003Adilution2">8</xref>. The model has two
      parameters that vary across the 23 unknown samples:
      <inline-formula><alternatives>
      <tex-math><![CDATA[\beta_2]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>β</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:math></alternatives></inline-formula>,
      which is proportional to the concentration of the compound of
      interest within the sample, and <inline-formula><alternatives>
      <tex-math><![CDATA[\sigma_y]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>σ</mml:mi><mml:mi>y</mml:mi></mml:msub></mml:math></alternatives></inline-formula>,
      the scale of modeling/measurement error. The plots show the
      posterior estimates <inline-formula><alternatives>
      <tex-math><![CDATA[\pm 1]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>±</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
      standard error for <inline-formula><alternatives>
      <tex-math><![CDATA[\log \beta_2]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:msub><mml:mi>β</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>
      and <inline-formula><alternatives>
      <tex-math><![CDATA[\log \sigma_y]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:msub><mml:mi>σ</mml:mi><mml:mi>y</mml:mi></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>
      for each sample. Perturbing the fit altered the inferences for
      samples 3 and 23 while barely changing anything for the other
      samples. Note the different scales of the two
      graphs.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="Scatterplot_squealer.pdf" />
    </fig>
    <p>It seems, then, that it is possible to get an improved (if
    imperfect) fit for those two unknown samples without interfering
    with the overall model fit, so where is the problem? Why did the
    model not fit this way originally?</p>
    <p>The answer to this question can be seen in Figure
    <xref alt="9" rid="figU003Adilution3">9</xref>, which displays the
    inferences for the parameters in the model that explain the
    differences between the samples. After applying the Squealer with
    the pseudo-data, the estimated concentrations for samples 23 and 3
    are much bigger, and the set of 23 values of the parameter
    <inline-formula><alternatives>
    <tex-math><![CDATA[\beta_2]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>β</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:math></alternatives></inline-formula>
    no longer fit a tight lognormal distribution. The penalty is being
    paid in the prior, with the cost being a higher group-level variance
    in the hierarchical model for the <inline-formula><alternatives>
    <tex-math><![CDATA[\beta_2]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>β</mml:mi><mml:mn>2</mml:mn></mml:msub></mml:math></alternatives></inline-formula>’s.
    Also the posterior uncertainties for those two values are much
    smaller; this is an unfortunate artifact of the pseudo-data
    implementation, as discussed in Section
    <xref alt="1.4" rid="perturbing.posterior">1.4</xref>.</p>
  </sec>
  <sec id="secU003Acosmology">
    <title>A model of power spectra in cosmology</title>
    <p>In the standard model of cosmology, most of the information is
    contained in the two-point function (power spectra or correlation
    functions) of astrophysical observables such as the number density
    of galaxies in a set of observed voxels or the intensity of the
    cosmic microwave background (CMB) measured at pixels on the sphere
    of the sky (e.g., Hu et al., 1997; Dodelson, 2003;
    <named-content content-type="nocase">Planck Collaboration et
    al.</named-content>, 2020b). These spectra or correlation functions
    are completely determined by the vector of underlying cosmological
    parameters <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>
    (e.g., <inline-formula><alternatives>
    <tex-math><![CDATA[H_0]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>H</mml:mi><mml:mn>0</mml:mn></mml:msub></mml:math></alternatives></inline-formula>,
    the Hubble constant which describes the present-day expansion rate;
    <inline-formula><alternatives>
    <tex-math><![CDATA[\Omega_\mathrm{c}h^2]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi mathvariant="normal">c</mml:mi></mml:msub><mml:msup><mml:mi>h</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[\Omega_\mathrm{b}h^2]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi mathvariant="normal">Ω</mml:mi><mml:mi mathvariant="normal">b</mml:mi></mml:msub><mml:msup><mml:mi>h</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>,
    composite quantities which describe the densities of the cold dark
    matter and baryons; <inline-formula><alternatives>
    <tex-math><![CDATA[A_\mathrm{s}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>A</mml:mi><mml:mi mathvariant="normal">s</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[n_s]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>n</mml:mi><mml:mi>s</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    which describe the distribution of matter in the universe at early
    times; <inline-formula><alternatives>
    <tex-math><![CDATA[\tau]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>τ</mml:mi></mml:math></alternatives></inline-formula>,
    which describes the effect of the earliest stars and galaxies on the
    ionization state of gas in the universe). For quantities measured on
    the sphere of the sky, such as the CMB, the power spectrum
    <inline-formula><alternatives>
    <tex-math><![CDATA[C_\ell(\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    determines the statistical properties of the observables, with a
    distribution that is typically well-described by a multivariate
    normal distribution. Here, <inline-formula><alternatives>
    <tex-math><![CDATA[\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula>
    denotes the spherical harmonic multipole, the equivalent of the
    Fourier mode <inline-formula><alternatives>
    <tex-math><![CDATA[k]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>k</mml:mi></mml:math></alternatives></inline-formula>.
    The power spectrum is measured at spherical harmonic multipoles
    <inline-formula><alternatives>
    <tex-math><![CDATA[2\le\ell\le\ell_\mathrm{max}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mn>2</mml:mn><mml:mo>≤</mml:mo><mml:mi>ℓ</mml:mi><mml:mo>≤</mml:mo><mml:msub><mml:mi>ℓ</mml:mi><mml:mrow><mml:mi mathvariant="normal">m</mml:mi><mml:mi mathvariant="normal">a</mml:mi><mml:mi mathvariant="normal">x</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>
    as <inline-formula><alternatives>
    <tex-math><![CDATA[{\hat C}_\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>ℓ</mml:mi></mml:msub></mml:math></alternatives></inline-formula>.
    The quantity <inline-formula><alternatives>
    <tex-math><![CDATA[C_\ell(\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    depends on the cosmological parameters in a complicated, nonlinear
    way. Formulated in our framework, <inline-formula><alternatives>
    <tex-math><![CDATA[\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula>
    is equivalent to <inline-formula><alternatives>
    <tex-math><![CDATA[x]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>,
    <inline-formula><alternatives>
    <tex-math><![CDATA[g(x|\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>g</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    to <inline-formula><alternatives>
    <tex-math><![CDATA[C_\ell(\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[y]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>y</mml:mi></mml:math></alternatives></inline-formula>
    to <inline-formula><alternatives>
    <tex-math><![CDATA[{\hat C}_\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>ℓ</mml:mi></mml:msub></mml:math></alternatives></inline-formula>.
    Because of this dependence, this gives us a posterior distribution
    <styled-content id="eqU003Acmbmodel"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{eq:cmbmodel}
    p(\theta|d) \propto p(\theta) p(d|\theta) = p(\theta) p\left(d|C_\ell(\theta)\right).
    \end{equation} \qquad(4)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>d</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>∝</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>d</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>p</mml:mi><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mi>d</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mi>.</mml:mi></mml:mrow><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>4</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content></p>
    <p>As a slight subtlety, this posterior can be realized in several
    different ways. The most self-consistent (Bayesian) algorithm is to
    consider the multivariate normal likelihood corresponding to the
    model
    <styled-content id="jrepU003AeqU003A5"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:5}
    d_p \sim \textrm{MVN}(0, \Sigma_{pp'}+N_{pp'})
    \end{equation} \qquad(5)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mrow><mml:msub><mml:mi>d</mml:mi><mml:mi>p</mml:mi></mml:msub><mml:mo>∼</mml:mo><mml:mtext mathvariant="normal">MVN</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mi mathvariant="normal">Σ</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>5</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    where the data are measured at pixels <inline-formula><alternatives>
    <tex-math><![CDATA[p=1,\dots, n_\mathrm{pix}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mi>…</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">p</mml:mi><mml:mi mathvariant="normal">i</mml:mi><mml:mi mathvariant="normal">x</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>,
    and <inline-formula><alternatives>
    <tex-math><![CDATA[\Sigma_{pp'}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi mathvariant="normal">Σ</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[N_{pp'}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub></mml:math></alternatives></inline-formula>
    are covariance matrices: <inline-formula><alternatives>
    <tex-math><![CDATA[\Sigma_{pp'}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi mathvariant="normal">Σ</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub></mml:math></alternatives></inline-formula>
    depends linearly on <inline-formula><alternatives>
    <tex-math><![CDATA[C_\ell(\theta)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    and <inline-formula><alternatives>
    <tex-math><![CDATA[N_{pp'}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>p</mml:mi><mml:msup><mml:mi>p</mml:mi><mml:mo>′</mml:mo></mml:msup></mml:mrow></mml:msub></mml:math></alternatives></inline-formula>
    is a fixed noise covariance matrix, often well-approximated as
    diagonal. This is an accurate expression for our model of the
    underlying CMB field, but can be very expensive to compute, scaling
    as <inline-formula><alternatives>
    <tex-math><![CDATA[O(n_\mathrm{pix}^3)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>O</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msubsup><mml:mi>n</mml:mi><mml:mrow><mml:mi mathvariant="normal">p</mml:mi><mml:mi mathvariant="normal">i</mml:mi><mml:mi mathvariant="normal">x</mml:mi></mml:mrow><mml:mn>3</mml:mn></mml:msubsup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>In many cases, we consider the multivariate mode of
    <inline-formula><alternatives>
    <tex-math><![CDATA[p(d|C_\ell)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>d</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    as estimates <inline-formula><alternatives>
    <tex-math><![CDATA[{\hat C}_\ell={\hat C}_\ell(d)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>ℓ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>d</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    and the likelihood can then be written as
    <inline-formula><alternatives>
    <tex-math><![CDATA[p({\hat C}_\ell|C_\ell)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̂</mml:mo></mml:mover><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    The shape around this mode can itself be approximated as a
    multivariate normal, although more precise approximations are
    sometimes available (Bond et al., 2000). Alternatively, the mode
    itself can be approximated at much lower computational cost as an
    unbiased estimator using the inverse spherical harmonic transform
    (Alonso et al., 2019; Hivon et al., 2002).</p>
    <p>These developments let us treat this as a curve-fitting problem
    to be visualized using the Squealer. Pseudo-data enforcing
    <inline-formula><alternatives>
    <tex-math><![CDATA[C_{\ell^*} = {\widetilde C}_{\ell^*}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>C</mml:mi><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̃</mml:mo></mml:mover><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:msub></mml:mrow></mml:math></alternatives></inline-formula>
    (at some particular multipole <inline-formula><alternatives>
    <tex-math><![CDATA[\ell=\ell^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>=</mml:mo><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mrow></mml:math></alternatives></inline-formula>)
    can always be added as a new term in the likelihood
    <inline-formula><alternatives>
    <tex-math><![CDATA[(C_{\ell^*}-{\widetilde C}_{\ell^*})^2/(2{\bar\sigma}_{\ell^*}^2)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:msub><mml:mo>−</mml:mo><mml:msub><mml:mover><mml:mi>C</mml:mi><mml:mo accent="true">̃</mml:mo></mml:mover><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:msub><mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mn>2</mml:mn></mml:msup><mml:mi>/</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>2</mml:mn><mml:msubsup><mml:mover><mml:mi>σ</mml:mi><mml:mo accent="true">‾</mml:mo></mml:mover><mml:msup><mml:mi>ℓ</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mn>2</mml:mn></mml:msubsup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    no matter the form of the original likelihood.</p>
    <fig id="figU003ACMB1">
      <caption><p><italic>The Squealer applied to the CMB power spectrum
      as measured by the Planck satellite. The
      <inline-formula><alternatives>
      <tex-math><![CDATA[x]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>x</mml:mi></mml:math></alternatives></inline-formula>-axis
      is on an idiosyncratic scale to more evenly display the data.
      Here, <inline-formula><alternatives>
      <tex-math><![CDATA[D_\ell = \ell(\ell+1)C_\ell/(2\pi)]]></tex-math>
      <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:msub><mml:mi>D</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mo>=</mml:mo><mml:mi>ℓ</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>ℓ</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub><mml:mi>/</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>2</mml:mn><mml:mi>π</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
      as is traditionally plotted in cosmology. Panel (a) shows the data
      (blue error bars), the overall best-fit (posterior mode) spectrum
      (red curve) and residuals between the two (red points in bottom
      panel, standard error units), along with inferred parameter
      values. Panels b, c, and d show an application of the Squealer.
      The orange star shows the pseudo-data point, the orange curve
      shows the new maximum posterior, with orange points in the bottom
      panel showing residuals. The right sub-panel shows the shift in
      each of the parameters (in standard error units), and is labeled
      by the cost, the decrease in the log-likelihood induced by the
      addition of the pseudo-data.</italic></p></caption>
      <graphic mimetype="application" mime-subtype="pdf" xlink:href="cmb_squealer_multipanel.pdf" />
    </fig>
    <p>Figure <xref alt="10" rid="figU003ACMB1">10</xref>a shows
    measurements of the CMB power spectrum
    (<named-content content-type="nocase">Planck Collaboration et
    al.</named-content>, 2020b). For <inline-formula><alternatives>
    <tex-math><![CDATA[\ell<30]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>&lt;</mml:mo><mml:mn>30</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>,
    the spectrum is calculated as the mode of the full posterior
    (<xref alt="(4)" rid="eqU003Acmbmodel">(4)</xref>), whereas for
    <inline-formula><alternatives>
    <tex-math><![CDATA[\ell\ge 30]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>≥</mml:mo><mml:mn>30</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    it is calculated by inverse spherical harmonic transform and binned
    in <inline-formula><alternatives>
    <tex-math><![CDATA[\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula>
    for display. The red curve shows the best fit model, calculated as
    the posterior mode. For these calculations, we use the
    <monospace>plik-lite</monospace> likelihood for
    <inline-formula><alternatives>
    <tex-math><![CDATA[\ell>30]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>&gt;</mml:mo><mml:mn>30</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    and the <monospace>Commander</monospace> likelihood for
    <inline-formula><alternatives>
    <tex-math><![CDATA[\ell\le30]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>≤</mml:mo><mml:mn>30</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>,
    in both cases only using temperature data (these codes are described
    in <named-content content-type="nocase">Planck Collaboration et
    al.</named-content>, 2020a). We model the effect of polarization
    data by including an informative prior on the parameter
    <inline-formula><alternatives>
    <tex-math><![CDATA[\tau\sim \mbox{normal}(0.0543, 0.0073)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>τ</mml:mi><mml:mo>∼</mml:mo><mml:mtext mathvariant="normal">normal</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>0.0543</mml:mn><mml:mo>,</mml:mo><mml:mn>0.0073</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <p>We can immediately see that there are regions where the residuals
    with respect to the curve, shown in the bottom panel, differ
    systematically from the data, for example the deficit of power
    around <inline-formula><alternatives>
    <tex-math><![CDATA[\ell\simeq20]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>≃</mml:mo><mml:mn>20</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    and the positive and negative excursions around
    <inline-formula><alternatives>
    <tex-math><![CDATA[\ell\simeq450]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>≃</mml:mo><mml:mn>450</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>.
    What happens if we force the curve to go through these regions? In
    this case we care not only about the goodness of fit when new
    pseudo-data are added, but the induced values
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta^*]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>θ</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    are physically meaningful and might have relevance for other
    astrophysical observations. We show values of seven parameters being
    fit: <inline-formula><alternatives>
    <tex-math><![CDATA[A_\mathrm{Pl}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mi mathvariant="normal">P</mml:mi><mml:mi mathvariant="normal">l</mml:mi></mml:mrow></mml:msub></mml:math></alternatives></inline-formula>
    is an instrumental nuisance parameter describing the relative
    amplitude of different photon frequency measurements measured by the
    Planck satellite; the other six are parameters describing the
    cosmological model (<named-content content-type="nocase">Planck
    Collaboration et al.</named-content>, 2020b).</p>
    <p>The other three panels of Figure
    <xref alt="10" rid="figU003ACMB1">10</xref> show the Squealer
    applied to different regions of the plot. (Unlike the other
    applications discussed here, we show only the new best fit, rather
    than a set of samples.) Figure
    <xref alt="10" rid="figU003ACMB1">10</xref>b shows an attempt to fit
    to the dip at <inline-formula><alternatives>
    <tex-math><![CDATA[\ell\simeq20]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>≃</mml:mo><mml:mn>20</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>;
    there are no parameter values which modify the spectrum only in this
    region, and so the total cost to such a change is substantial.
    Figure <xref alt="10" rid="figU003ACMB1">10</xref>c shows a
    modification at <inline-formula><alternatives>
    <tex-math><![CDATA[\ell=464]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>ℓ</mml:mi><mml:mo>=</mml:mo><mml:mn>464</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>,
    which induces less drastic changes to the spectrum and to the
    parameters but requires larger negative excursions to accommodate
    the pseudo-data. As a further example, not actually favored by the
    data, Figure <xref alt="10" rid="figU003ACMB1">10</xref>d shows how
    modifying the spectrum at exactly the first peak can be accommodated
    at even lower cost. In the latter two cases, known physical
    processes account for the ability to remain a relatively good
    fit.</p>
  </sec>
  <sec id="secU003Agp">
    <title>A nonparametric Gaussian process model for temperature
    recordings</title>
    <p>Gaussian processes (GPs) are commonly used for non-parametric
    modeling of time series data ((Rasmussen &amp; Williams, 2005)). In
    a typical setting, a researcher or practitioner is interested in
    recovering an unknown function <inline-formula><alternatives>
    <tex-math><![CDATA[f]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>f</mml:mi></mml:math></alternatives></inline-formula>
    from noisy samples from that function. A GP distribution is used as
    a prior for the unknown function that enforces domain knowledge
    about the smoothness of the <inline-formula><alternatives>
    <tex-math><![CDATA[f]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>f</mml:mi></mml:math></alternatives></inline-formula>.
    Specifically, a simple GP model uses a normal observation model with
    fixed and (possibly unknown) residual standard deviation and a GP
    prior on the unknown function.</p>
    <p>Here, we use this model in a simulated example, to estimate an
    individual’s body temperature from noisy thermometer recordings.
    This example has the benefit that it’s a commonly-used, easily
    interpretable model, and it’s also straightforward to implement a
    Squealer—the pseudo-data point method is available in closed form
    when hyperparameters are fixed.</p>
    <p>The simulated data is thermometer recordings taken every few
    minutes for several hours from one (potentially sick) person. The
    readings are noisy (see Figure
    <xref alt="14" rid="figU003Agp_samples1">14</xref>) and we use a
    Gaussian process model to estimate the true
    temperature.<xref ref-type="fn" rid="fn5">5</xref> Specifically, we
    use the following model:
    <styled-content id="jrepU003AeqU003A6"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:6}\begin{aligned}
    y & \sim \text{normal}(f(t), \sigma) \end{aligned}
    \end{equation} \qquad(6)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right" style="text-align: right; padding-right: 0"><mml:mi>y</mml:mi></mml:mtd><mml:mtd columnalign="left" style="text-align: left; padding-left: 0"><mml:mo>∼</mml:mo><mml:mtext mathvariant="normal">normal</mml:mtext><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo><mml:mi>σ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>6</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    <styled-content id="jrepU003AeqU003A7"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:7}\begin{aligned}
    f(t) & \sim \mathcal{GP}(98.6, k),
    \end{aligned}
    \end{equation} \qquad(7)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right" style="text-align: right; padding-right: 0"><mml:mi>f</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>t</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mtd><mml:mtd columnalign="left" style="text-align: left; padding-left: 0"><mml:mo>∼</mml:mo><mml:mrow><mml:mi mathvariant="script">𝒢</mml:mi><mml:mi mathvariant="script">𝒫</mml:mi></mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>98.6</mml:mn><mml:mo>,</mml:mo><mml:mi>k</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>,</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>7</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    where <inline-formula><alternatives>
    <tex-math><![CDATA[k]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>k</mml:mi></mml:math></alternatives></inline-formula>
    is the squared exponential kernel ((Rasmussen &amp; Williams,
    2005)),
    <styled-content id="jrepU003AeqU003A8"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:8}\begin{aligned}
        k(t, t') = \alpha \exp\left(\frac{-(t - t')^2}{2\ell^2}\right).
    \end{aligned}
    \end{equation} \qquad(8)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right" style="text-align: right"><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>t</mml:mi><mml:mo>,</mml:mo><mml:msup><mml:mi>t</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mi>α</mml:mi><mml:mrow><mml:mi mathvariant="normal">exp</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="true" form="prefix">(</mml:mo><mml:mfrac><mml:mrow><mml:mi>−</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>t</mml:mi><mml:mo>−</mml:mo><mml:msup><mml:mi>t</mml:mi><mml:mo>′</mml:mo></mml:msup><mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mn>2</mml:mn></mml:msup></mml:mrow><mml:mrow><mml:mn>2</mml:mn><mml:msup><mml:mi>ℓ</mml:mi><mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:mfrac><mml:mo stretchy="true" form="postfix">)</mml:mo></mml:mrow><mml:mi>.</mml:mi></mml:mtd></mml:mtr></mml:mtable><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>8</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    We fit the hyperparameters of the model—the variance
    <inline-formula><alternatives>
    <tex-math><![CDATA[\alpha]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>α</mml:mi></mml:math></alternatives></inline-formula>,
    the length scale <inline-formula><alternatives>
    <tex-math><![CDATA[\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula>,
    and the residual standard deviation <inline-formula><alternatives>
    <tex-math><![CDATA[\sigma]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>σ</mml:mi></mml:math></alternatives></inline-formula>—by
    maximizing the log marginal likelihood. That is, assuming
    <inline-formula><alternatives>
    <tex-math><![CDATA[\theta = (\alpha, \ell, \sigma)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>θ</mml:mi><mml:mo>=</mml:mo><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>α</mml:mi><mml:mo>,</mml:mo><mml:mi>ℓ</mml:mi><mml:mo>,</mml:mo><mml:mi>σ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    we maximize the function (defined up to an additive constant)
    <styled-content id="jrepU003AeqU003A9"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:9}\begin{aligned}
    \log p(y | \theta) = -\frac{1}{2} y^T (K(\theta) + \sigma^2 I)^{-1} y - \frac{1}{2} \log | K(\theta) + \sigma^2 I |
    \end{aligned}
    \end{equation} \qquad(9)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right" style="text-align: right"><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mi>p</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>y</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>=</mml:mo><mml:mi>−</mml:mi><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:msup><mml:mi>y</mml:mi><mml:mi>T</mml:mi></mml:msup><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>K</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>+</mml:mo><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mi>I</mml:mi><mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mrow><mml:mi>−</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mi>y</mml:mi><mml:mo>−</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mi mathvariant="normal">log</mml:mi><mml:mo>&#8289;</mml:mo></mml:mrow><mml:mo stretchy="false" form="prefix">|</mml:mo><mml:mi>K</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>+</mml:mo><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mi>I</mml:mi><mml:mo stretchy="false" form="prefix">|</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>9</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    over <inline-formula><alternatives>
    <tex-math><![CDATA[\theta]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>θ</mml:mi></mml:math></alternatives></inline-formula>.</p>
    <p>After fitting hyperparameters, we sample from the GP, conditional
    on the observed data, fitted hyperparameters, and residual standard
    deviation (see Figure
    <xref alt="11" rid="figU003Agp_samples1a">11</xref>). The posterior
    draws look reasonable, other than the large observation noise near
    6am and the small observation noise near noon. The posterior draws
    estimate a temperature around <inline-formula><alternatives>
    <tex-math><![CDATA[100 ^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>F
    after around 9am. However, a possible concern is the upward-sloping
    temperature recordings above <inline-formula><alternatives>
    <tex-math><![CDATA[100.2 ^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100.2</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>
    F towards the end of the interval. The posterior doesn’t place much
    mass near these points, but a nervous doctor might want to get a
    sense why. Does the Gaussian process prior not allow it? Are there
    too few recordings there? How “easy&quot; would it be to move the
    posterior through these points? To get a sense of the answer for
    these questions, we use the Squealer.</p>
    <p>Adding the pseudo-data point <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*, y^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>,
    we now maximize a new log marginal likelihood (now marginalizing
    over <inline-formula><alternatives>
    <tex-math><![CDATA[N+1]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>N</mml:mi><mml:mo>+</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:math></alternatives></inline-formula>
    instead of <inline-formula><alternatives>
    <tex-math><![CDATA[N]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>N</mml:mi></mml:math></alternatives></inline-formula>
    dimensions) where
    <styled-content id="jrepU003AeqU003A10"><disp-formula><alternatives>
    <tex-math><![CDATA[\begin{equation}
    \label{jrep:eq:10}\begin{aligned}
    y \to
    \begin{bmatrix}
    y \\
    y^*
    \end{bmatrix}, \qquad
    K(\theta) \to
    \begin{bmatrix}
    K(\theta) & k(x^*, x)\\
    k(x^*, x)^T & k(x^*, x^*)
    \end{bmatrix}, \qquad
    \sigma^2 I \to
    \begin{bmatrix}
    \sigma^2 I & 0 \\
    0 & 10^{-6}
    \end{bmatrix}.
    \end{aligned}
    \end{equation} \qquad(10)]]></tex-math>
    <mml:math display="block" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mtable><mml:mtr><mml:mtd columnalign="right" style="text-align: right"><mml:mi>y</mml:mi><mml:mo>→</mml:mo><mml:mrow><mml:mo stretchy="true" form="prefix">[</mml:mo><mml:mtable><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:mi>y</mml:mi></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup></mml:mtd></mml:mtr></mml:mtable><mml:mo stretchy="true" form="postfix">]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="2.0em"></mml:mspace><mml:mi>K</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mo>→</mml:mo><mml:mrow><mml:mo stretchy="true" form="prefix">[</mml:mo><mml:mtable><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:mi>K</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mi>θ</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mtd><mml:mtd columnalign="center" style="text-align: center"><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:mi>x</mml:mi><mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo><mml:mi>T</mml:mi></mml:msup></mml:mtd><mml:mtd columnalign="center" style="text-align: center"><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mtd></mml:mtr></mml:mtable><mml:mo stretchy="true" form="postfix">]</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mspace width="2.0em"></mml:mspace><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mi>I</mml:mi><mml:mo>→</mml:mo><mml:mrow><mml:mo stretchy="true" form="prefix">[</mml:mo><mml:mtable><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:msup><mml:mi>σ</mml:mi><mml:mn>2</mml:mn></mml:msup><mml:mi>I</mml:mi></mml:mtd><mml:mtd columnalign="center" style="text-align: center"><mml:mn>0</mml:mn></mml:mtd></mml:mtr><mml:mtr><mml:mtd columnalign="center" style="text-align: center"><mml:mn>0</mml:mn></mml:mtd><mml:mtd columnalign="center" style="text-align: center"><mml:msup><mml:mn>10</mml:mn><mml:mrow><mml:mi>−</mml:mi><mml:mn>6</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable><mml:mo stretchy="true" form="postfix">]</mml:mo></mml:mrow><mml:mi>.</mml:mi></mml:mtd></mml:mtr></mml:mtable><mml:mspace width="2.0em"></mml:mspace><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:mn>10</mml:mn><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></disp-formula></styled-content>
    Here, <inline-formula><alternatives>
    <tex-math><![CDATA[k(x^*, x)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:mi>x</mml:mi><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>
    is a column vector whose <inline-formula><alternatives>
    <tex-math><![CDATA[i^{\text{th}}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mi>i</mml:mi><mml:mtext mathvariant="normal">th</mml:mtext></mml:msup></mml:math></alternatives></inline-formula>
    element is <inline-formula><alternatives>
    <tex-math><![CDATA[k(x^*, x_i)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>k</mml:mi><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mi>i</mml:mi></mml:msub><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.
    We use a variance of <inline-formula><alternatives>
    <tex-math><![CDATA[10^{-6}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>10</mml:mn><mml:mrow><mml:mi>−</mml:mi><mml:mn>6</mml:mn></mml:mrow></mml:msup></mml:math></alternatives></inline-formula>
    for the pseudo-data point which has the effect of strongly dragging
    the posterior through <inline-formula><alternatives>
    <tex-math><![CDATA[(x^*, y^*)]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mo stretchy="false" form="prefix">(</mml:mo><mml:msup><mml:mi>x</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo>,</mml:mo><mml:msup><mml:mi>y</mml:mi><mml:mo>*</mml:mo></mml:msup><mml:mo stretchy="false" form="postfix">)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>.</p>
    <fig-group id="figU003Agp_samples1">
      <caption><p><italic>Fitted curves corresponding to draws from the
      GP posterior with pseudo-data, fixing the fitted hyperparameters
      of the covariance kernel.</italic></p></caption>
      <fig id="figU003Agp_samples1a">
        <caption><p>original</p></caption>
        <graphic mimetype="image" mime-subtype="png" xlink:href="squealer_gp_samples0.png" />
      </fig>
      <fig id="figU003Agp_samples1b">
        <caption><p>one pseudo-data point</p></caption>
        <graphic mimetype="image" mime-subtype="png" xlink:href="squealer_gp_samples1.png" />
      </fig>
      <fig id="figU003Agp_samples1c">
        <caption><p>two pseudo-data points</p></caption>
        <graphic mimetype="image" mime-subtype="png" xlink:href="squealer_gp_samples2.png" />
      </fig>
    </fig-group>
    <p>In Figure <xref alt="12" rid="figU003Agp_samples1b">12</xref>, we
    add a pseudo-data point of <inline-formula><alternatives>
    <tex-math><![CDATA[100.3^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100.3</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>F
    at 11am, adjusting the posterior so that it moves through the
    pseudo-data point in a smooth way. But the posterior still doesn’t
    “want to&quot; go through the points over
    <inline-formula><alternatives>
    <tex-math><![CDATA[100.2^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100.2</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>F.
    The smoothness imposed by the squared-exponential kernel still
    allows the posterior to return to its former posterior mean (without
    a pseudo-data point) by noon, the end of the interval. When we add a
    second pseudo-data point (see Figure
    <xref alt="13" rid="figU003Agp_samples1c">13</xref>), the posterior
    now goes roughly through the points above
    <inline-formula><alternatives>
    <tex-math><![CDATA[100.2^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100.2</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>F.</p>
    <table-wrap>
      <caption>
        <p><italic>Fitted values of hyperparameters, timescale
        <inline-formula><alternatives>
        <tex-math><![CDATA[\ell]]></tex-math>
        <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula>,
        variance <inline-formula><alternatives>
        <tex-math><![CDATA[\alpha]]></tex-math>
        <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>α</mml:mi></mml:math></alternatives></inline-formula>,
        and residual standard deviation <inline-formula><alternatives>
        <tex-math><![CDATA[\sigma]]></tex-math>
        <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>σ</mml:mi></mml:math></alternatives></inline-formula>
        for the original model and for both versions with
        pseudo-data.</italic></p>
      </caption>
      <table id="tU003Ahyperparams">
        <thead>
          <tr>
            <th align="left"></th>
            <th align="center"><inline-formula><alternatives>
            <tex-math><![CDATA[\ell]]></tex-math>
            <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>ℓ</mml:mi></mml:math></alternatives></inline-formula></th>
            <th align="center"><inline-formula><alternatives>
            <tex-math><![CDATA[\alpha]]></tex-math>
            <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>α</mml:mi></mml:math></alternatives></inline-formula></th>
            <th align="center"><inline-formula><alternatives>
            <tex-math><![CDATA[\sigma]]></tex-math>
            <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>σ</mml:mi></mml:math></alternatives></inline-formula></th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td align="left">original</td>
            <td align="center">0.23</td>
            <td align="center">0.52</td>
            <td align="center">0.10</td>
          </tr>
          <tr>
            <td align="left">one pseudo-point</td>
            <td align="center">0.23</td>
            <td align="center">0.48</td>
            <td align="center">0.14</td>
          </tr>
          <tr>
            <td align="left">two pseudo-points</td>
            <td align="center">0.26</td>
            <td align="center">0.58</td>
            <td align="center">0.17</td>
          </tr>
        </tbody>
      </table>
    </table-wrap>
    <p>Table <xref alt="1" rid="tU003Ahyperparams">1</xref> shows the
    fitted hyperparameter values for the original posterior, and the
    posteriors with one and then two pseudo-data points. The residual
    standard deviation, <inline-formula><alternatives>
    <tex-math><![CDATA[\sigma]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>σ</mml:mi></mml:math></alternatives></inline-formula>,
    increases from <inline-formula><alternatives>
    <tex-math><![CDATA[0.10]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>0.10</mml:mn></mml:math></alternatives></inline-formula>
    to <inline-formula><alternatives>
    <tex-math><![CDATA[0.14]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>0.14</mml:mn></mml:math></alternatives></inline-formula>
    to <inline-formula><alternatives>
    <tex-math><![CDATA[0.17]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mn>0.17</mml:mn></mml:math></alternatives></inline-formula>
    when going from zero to one to two pseudo-data points. So the model
    is allowing the posterior to go through the pseudo-data points by
    fitting a larger observation noise. In other words, in order to get
    the posterior to go through the high temperature points, the
    pseudo-data points forced the posterior observation noise to be
    larger than the original data indicated. The combination of the
    normal observation model and a large number of measurements just
    less than <inline-formula><alternatives>
    <tex-math><![CDATA[100^{\circ}]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msup><mml:mn>100</mml:mn><mml:mo>∘</mml:mo></mml:msup></mml:math></alternatives></inline-formula>F
    makes the original posterior concentrate on a smaller residual
    standard deviation and puts little weight on high temperatures.</p>
  </sec>
</sec>
<sec id="discussion">
  <title>Discussion</title>
  <p>The Squealer uses sonic feedback to supplement rather than replace
  a visual display. Often it is not immediately clear why a model is not
  fitting a dataset as the practitioner expects, or why the model is
  neglecting some fit that seems obvious to the user’s eye. Even with
  very expressive models like Gaussian processes, the factors
  constraining how they can fit data are opaque, especially for the
  non-expert. Allowing the modeler to make the curve go where they think
  it should can sometimes resolve this confusion, for instance by
  demonstrating that certain other points are very poorly fit by the new
  curve. But the likelihood may suffer in ways that are not visually
  apparent. Supplementing the visual fit with auditory feedback can give
  the modeler helpful intuition as to why the model behaves as it
  does.</p>
  <p>In the present paper we have demonstrated the principles of
  Squealer with static graphics, but ultimately it is designed to
  operate dynamically, so that a user can grab, move, and pin a fitted
  curve, see the consequences for the estimated parameters and the fit
  to individual data points, and hear the decline in the overall
  fit.</p>
  <p>Several challenges remain to reach that goal.</p>
  <p>First, with a tool that’s meant to be interactive, the program
  needs to quickly converge to the updated best fit or posterior
  distribution quickly to allow smooth operation. Using existing
  software this is done by nested loops, with the outer loop being the
  steps that move the curve as it is being dragged, and the inner loop
  being the iterations of Stan (or some other probabilistic program)
  fitting the model at each step along that path. It would make more
  sense to thread these loops, so that the target distribution is
  gradually shifting while the simulations are happening, in the manner
  of sequential Monte Carlo (Liu &amp; Chen, 1998).</p>
  <p>Second, details of the Squealer will depend on the problem under
  study. In the same way that maximum likelihood, variational inference,
  or Bayesian inference are general methods that have different
  implementations for different models, so must the computation and
  visual display of the Squealer be adapted to the mathematical
  structure and goals of the models being fit. We suspect that the best
  way to develop the Squealer will be to begin by setting it up for
  particular classes of models and then ultimately designing a more
  general implementation.</p>
  <p>Third, we would like the different parts of the dashboard to work
  in concert, so that, in addition to being able to grab and pin fitted
  curves and see how these shift the fitted curves and change the fit to
  individual data points, the user can also shift and pin parameter
  values directly. Again, it will make the most sense to first implement
  this for a particular example.</p>
  <p>Fourth, as discussed in Section
  <xref alt="1.4" rid="perturbing.posterior">1.4</xref>, the
  gravitational implementation of the Squealer causes the posterior
  distribution to be constricted in the range of the pseudo-data points.
  We would like to develop a method for shifting the posterior that does
  not suffer from this artifact.</p>
  <p>Finally, the sensification could be done in different ways. One
  appealing idea is haptic feedback, where the user would use a joystick
  to drag the curve, and moving it away from its best fit would induce
  resistance on the controller so that the user would physically feel
  the resistance to degrading the fit to prior and data.</p>
  <p>Our larger goal is to be able to look under the hood of models
  better to see why they don’t fit as we’d expect. Specifically, we want
  to see which parameters suffer from the fit we want to impose on the
  model, and why. This could be a valuable step in the statistical and
  machine-learning workflow in the modern computing environment in which
  probabilistic programming tools allow us to fit increasingly
  complicated models.</p>
</sec>
<sec id="acknowledgements">
  <title>Acknowledgements</title>
  <p>The first two authors did this work as visiting scholars at the
  Flatiron Institute. We also thank Sam Felgran, Riley Carlin, Nidhi
  Ram, Siquan Wang, and an anonymous reviewer for helpful collaboration
  and the U.S. Office of Naval Research for partial support of this
  work.</p>
</sec>
<sec id="data-and-code-availability" sec-type="data-availability">
  <title>Data and Code Availability</title>
  <p>All the data and code for this article will be freely available and
  posted on Github.</p>
</sec>
</body>
<back><ref-list><ref id="ref1"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Alonso</surname><given-names>David</given-names></name><name><surname>Sanchez</surname><given-names>Javier</given-names></name><name><surname>Slosar</surname><given-names>Anže</given-names></name><string-name>LSST Dark Energy Science Collaboration</string-name></person-group><article-title>A unified pseudo-&lt;i&gt;C&lt;/i&gt;ℓ framework</article-title><source>Monthly Notices of the Royal Astronomical Society</source><year>2019</year><volume>484</volume><issue>3</issue><fpage>4127</fpage><lpage>4151</lpage><publisher-name>Oxford University Press (OUP)</publisher-name><pub-id pub-id-type="doi">10.1093/mnras/stz093</pub-id></element-citation></ref><ref id="ref2"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bond</surname><given-names>J. R.</given-names></name><name><surname>Jaffe</surname><given-names>A. H.</given-names></name><name><surname>Knox</surname><given-names>L.</given-names></name></person-group><article-title>Radical Compression of Cosmic Microwave Background Data</article-title><source>The Astrophysical Journal</source><year>2000</year><volume>533</volume><issue>1</issue><fpage>19</fpage><lpage>37</lpage><publisher-name>American Astronomical Society</publisher-name><pub-id pub-id-type="doi">10.1086/308625</pub-id></element-citation></ref><ref id="ref3"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Bornmann</surname><given-names>Lutz</given-names></name></person-group><article-title>The sound of science: Data sonification has emerged as possible alternative to data visualization</article-title><source>EMBO Reports</source><year>2024</year><volume>25</volume><issue>9</issue><fpage>3743</fpage><lpage>3747</lpage><publisher-name>Springer Science and Business Media LLC</publisher-name><pub-id pub-id-type="doi">10.1038/s44319-024-00230-6</pub-id></element-citation></ref><ref id="ref4"><mixed-citation>Broadie, M. (2018). Two simple putting models in golf.</mixed-citation></ref><ref id="ref5"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Dayé</surname><given-names>Christian</given-names></name><name><surname>de Campo</surname><given-names>Alberto</given-names></name></person-group><article-title>Sounds sequential: sonification in the social sciences</article-title><source>Interdisciplinary Science Reviews</source><year>2006</year><volume>31</volume><issue>4</issue><fpage>349</fpage><lpage>364</lpage><publisher-name>SAGE Publications</publisher-name><pub-id pub-id-type="doi">10.1179/030801806x143286</pub-id></element-citation></ref><ref id="ref6"><mixed-citation>Dodelson, S. (2003). Modern cosmology. Academic Press.</mixed-citation></ref><ref id="ref7"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Gelman</surname><given-names>Andrew</given-names></name></person-group><article-title>Exploratory Data Analysis for Complex Models</article-title><source>Journal of Computational and Graphical Statistics</source><year>2004</year><volume>13</volume><issue>4</issue><fpage>755</fpage><lpage>779</lpage><publisher-name>Informa UK Limited</publisher-name><pub-id pub-id-type="doi">10.1198/106186004x11435</pub-id></element-citation></ref><ref id="ref8"><mixed-citation>Gelman, A. (2019). Model building and expansion for golf putting. Stan Case Studies, 6.</mixed-citation></ref><ref id="ref9"><mixed-citation>Gelman, A. (2020). The typical set and its relevance to bayesian computation. Statistical Modeling, Causal Inference, and Social Science.</mixed-citation></ref><ref id="ref10"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Gelman</surname><given-names>Andrew</given-names></name><name><surname>Chew</surname><given-names>Ginger L.</given-names></name><name><surname>Shnaidman</surname><given-names>Michael</given-names></name></person-group><article-title>Bayesian Analysis of Serial Dilution Assays</article-title><source>Biometrics</source><year>2004</year><volume>60</volume><issue>2</issue><fpage>407</fpage><lpage>417</lpage><publisher-name>Oxford University Press (OUP)</publisher-name><pub-id pub-id-type="doi">10.1111/j.0006-341x.2004.00185.x</pub-id></element-citation></ref><ref id="ref11"><mixed-citation>Gelman, A., &amp; Sturdevant, S. G. (2023). From visualization to sensification. Amstat News, (547), 18–19.</mixed-citation></ref><ref id="ref12"><element-citation publication-type="book"><person-group person-group-type="author"><name><surname>Gelman</surname><given-names>Andrew</given-names></name><name><surname>Vehtari</surname><given-names>Aki</given-names></name><name><surname>McElreath</surname><given-names>Richard</given-names></name><name><surname>Simpson</surname><given-names>Daniel</given-names></name><name><surname>Margossian</surname><given-names>Charles C.</given-names></name><name><surname>Yao</surname><given-names>Yuling</given-names></name><name><surname>Kennedy</surname><given-names>Lauren</given-names></name><name><surname>Gabry</surname><given-names>Jonah</given-names></name><name><surname>Bürkner</surname><given-names>Paul-Christian</given-names></name><name><surname>Modrák</surname><given-names>Martin</given-names></name><name><surname>Barajas</surname><given-names>Vianey Leos</given-names></name></person-group><article-title>Bayesian Workflow</article-title><year>2026</year><publisher-name>Chapman and Hall/CRC</publisher-name><pub-id pub-id-type="doi">10.1201/9781003044024</pub-id></element-citation></ref><ref id="ref13"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hivon</surname><given-names>Eric</given-names></name><name><surname>Gorski</surname><given-names>Krzysztof M.</given-names></name><name><surname>Netterfield</surname><given-names>C. Barth</given-names></name><name><surname>Crill</surname><given-names>Brendan P.</given-names></name><name><surname>Prunet</surname><given-names>Simon</given-names></name><name><surname>Hansen</surname><given-names>Frode</given-names></name></person-group><article-title>MASTER of the Cosmic Microwave Background Anisotropy Power Spectrum: A Fast Method for Statistical Analysis of Large and Complex Cosmic Microwave Background Data Sets</article-title><source>The Astrophysical Journal</source><year>2002</year><volume>567</volume><issue>1</issue><fpage>2</fpage><lpage>17</lpage><publisher-name>American Astronomical Society</publisher-name><pub-id pub-id-type="doi">10.1086/338126</pub-id></element-citation></ref><ref id="ref14"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Hu</surname><given-names>Wayne</given-names></name><name><surname>Sugiyama</surname><given-names>Naoshi</given-names></name><name><surname>Silk</surname><given-names>Joseph</given-names></name></person-group><article-title>The physics of microwave background anisotropies</article-title><source>Nature</source><year>1997</year><volume>386</volume><issue>6620</issue><fpage>37</fpage><lpage>43</lpage><publisher-name>Springer Science and Business Media LLC</publisher-name><pub-id pub-id-type="doi">10.1038/386037a0</pub-id></element-citation></ref><ref id="ref15"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Liu</surname><given-names>Jun S.</given-names></name><name><surname>Chen</surname><given-names>Rong</given-names></name></person-group><article-title>Sequential Monte Carlo Methods for Dynamic Systems</article-title><source>Journal of the American Statistical Association</source><year>1998</year><volume>93</volume><issue>443</issue><fpage>1032</fpage><lpage>1044</lpage><publisher-name>Informa UK Limited</publisher-name><pub-id pub-id-type="doi">10.1080/01621459.1998.10473765</pub-id></element-citation></ref><ref id="ref16"><mixed-citation>Planck Collaboration, Aghanim, N., Akrami, Y., Ashdown, M., et al. (2020a). Planck 2018 results. V. CMB power spectra and likelihoods. Astronomy &amp; Astrophysics, 641, A5.</mixed-citation></ref><ref id="ref17"><mixed-citation>Planck Collaboration, Aghanim, N., Akrami, Y., Ashdown, M., et al. (2020b). Planck 2018 results. VI. Cosmological parameters. Astronomy &amp; Astrophysics, 641, A6.</mixed-citation></ref><ref id="ref18"><element-citation publication-type="book"><person-group person-group-type="author"><name><surname>Rasmussen</surname><given-names>Carl Edward</given-names></name><name><surname>Williams</surname><given-names>Christopher K. I.</given-names></name></person-group><article-title>Gaussian Processes for Machine Learning</article-title><year>2005</year><publisher-name>The MIT Press</publisher-name><pub-id pub-id-type="doi">10.7551/mitpress/3206.001.0001</pub-id></element-citation></ref><ref id="ref19"><mixed-citation>Sturdevant, S. G., Godfrey, A. J. R., &amp; Gelman, A. (2022). Delivering data differently.</mixed-citation></ref><ref id="ref20"><mixed-citation>Wickham, H. (2006). Exploratory model analysis with r and GGobi.</mixed-citation></ref><ref id="ref21"><element-citation publication-type="journal"><person-group person-group-type="author"><name><surname>Wickham</surname><given-names>Hadley</given-names></name><name><surname>Cook</surname><given-names>Dianne</given-names></name><name><surname>Hofmann</surname><given-names>Heike</given-names></name></person-group><article-title>Visualizing statistical models: Removing the blindfold</article-title><source>Statistical Analysis and Data Mining: The ASA Data Science Journal</source><year>2015</year><volume>8</volume><issue>4</issue><fpage>203</fpage><lpage>225</lpage><publisher-name>Wiley</publisher-name><pub-id pub-id-type="doi">10.1002/sam.11271</pub-id></element-citation></ref></ref-list>
<ref-list>
  <title>References</title>
  <ref id="ref-NAMASTER">
    <mixed-citation>Alonso, D., Sanchez, J., &amp; Slosar, A. (2019). A
    unified pseudo-<inline-formula><alternatives>
    <tex-math><![CDATA[C_\ell]]></tex-math>
    <mml:math display="inline" xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>C</mml:mi><mml:mi>ℓ</mml:mi></mml:msub></mml:math></alternatives></inline-formula>
    framework. <italic>Monthly Notices of the Royal Astronomical
    Society</italic>, <italic>484</italic>, 4127–4151.</mixed-citation>
  </ref>
  <ref id="ref-BJKU003A2000">
    <mixed-citation>Bond, J. R., Jaffe, A. H., &amp; Knox, L. (2000).
    Radical compression of cosmic microwave background data.
    <italic>Astrophysical Journal</italic>, <italic>533</italic>,
    19.</mixed-citation>
  </ref>
  <ref id="ref-Bornmann2024">
    <mixed-citation>Bornmann, L. (2024). The sound of science.
    <italic>EMBO Reports</italic>, <italic>25</italic>,
    3743–3747.</mixed-citation>
  </ref>
  <ref id="ref-BroadieU003A2018">
    <mixed-citation>Broadie, M. (2018). <italic>Two simple putting
    models in golf</italic>.</mixed-citation>
  </ref>
  <ref id="ref-Daye2006">
    <mixed-citation><named-content content-type="nocase">Dayé, C., &amp;
    de Campo, A.</named-content> (2006). Sounds sequential: Sonification
    in the social sciences. <italic>Interdisciplinary Science
    Reviews</italic>, <italic>31</italic>, 349–364.</mixed-citation>
  </ref>
  <ref id="ref-DodelsonU003A2003">
    <mixed-citation>Dodelson, S. (2003). <italic>Modern
    cosmology</italic>. Academic Press.</mixed-citation>
  </ref>
  <ref id="ref-ExploratoryU003A2004">
    <mixed-citation>Gelman, A. (2004). Exploratory data analysis for
    complex models (with discussion). <italic>Journal of Computational
    and Graphical Statistics</italic>, <italic>13</italic>,
    755–787.</mixed-citation>
  </ref>
  <ref id="ref-GelmanU003A2019">
    <mixed-citation>Gelman, A. (2019). Model building and expansion for
    golf putting. <italic>Stan Case Studies</italic>,
    <italic>6</italic>.</mixed-citation>
  </ref>
  <ref id="ref-TypicalU003A2020">
    <mixed-citation>Gelman, A. (2020). The typical set and its relevance
    to bayesian computation. <italic>Statistical Modeling, Causal
    Inference, and Social Science</italic>.</mixed-citation>
  </ref>
  <ref id="ref-DilutionU003A2004">
    <mixed-citation>Gelman, A., Chew, G., &amp; Shnaidman, M. (2004).
    Bayesian analysis of serial dilution assays.
    <italic>Biometrics</italic>, <italic>60</italic>,
    407–417.</mixed-citation>
  </ref>
  <ref id="ref-VisU003A2023">
    <mixed-citation>Gelman, A., &amp; Sturdevant, S. G. (2023). From
    visualization to sensification. <italic>Amstat News</italic>, (547),
    18–19.</mixed-citation>
  </ref>
  <ref id="ref-WorkflowU003A2025">
    <mixed-citation><named-content content-type="nocase">Gelman, A.,
    Vehtari, A., McElreath, R., et al.</named-content> (2026).
    <italic>Bayesian workflow</italic>. CRC Press.</mixed-citation>
  </ref>
  <ref id="ref-MASTERCMB">
    <mixed-citation>Hivon, E., Górski, K. M., Netterfield, C. B., Crill,
    B. P., Prunet, S., &amp; Hansen, F. (2002). MASTER of the cosmic
    microwave background anisotropy power spectrum: A fast method for
    statistical analysis of large and complex cosmic microwave
    background data sets. <italic>Astrophysical Journal</italic>,
    <italic>567</italic>, 2.</mixed-citation>
  </ref>
  <ref id="ref-HuSugiyamaSilkU003A1997">
    <mixed-citation>Hu, W., Sugiyama, N., &amp; Silk, J. (1997). The
    physics of microwave background anisotropies.
    <italic>Nature</italic>, <italic>386</italic>, 37–43.
    <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/386037a0">https://doi.org/10.1038/386037a0</ext-link></mixed-citation>
  </ref>
  <ref id="ref-LiuU003A1998">
    <mixed-citation>Liu, J. S., &amp; Chen, R. (1998). Sequential monte
    carlo methods for dynamic systems. <italic>Journal of the American
    Statistical Association</italic>, <italic>93</italic>,
    1032–1044.</mixed-citation>
  </ref>
  <ref id="ref-PlanckLikelihood">
    <mixed-citation><named-content content-type="nocase">Planck
    Collaboration, Aghanim, N., Akrami, Y., Ashdown, M., et
    al.</named-content> (2020a). Planck 2018 results. V. CMB power
    spectra and likelihoods. <italic>Astronomy &amp;
    Astrophysics</italic>, <italic>641</italic>, A5.</mixed-citation>
  </ref>
  <ref id="ref-PlanckCosmology">
    <mixed-citation><named-content content-type="nocase">Planck
    Collaboration, Aghanim, N., Akrami, Y., Ashdown, M., et
    al.</named-content> (2020b). Planck 2018 results. VI. Cosmological
    parameters. <italic>Astronomy &amp; Astrophysics</italic>,
    <italic>641</italic>, A6.</mixed-citation>
  </ref>
  <ref id="ref-RasmussenU003A2005">
    <mixed-citation>Rasmussen, C. E., &amp; Williams, C. K. I. (2005).
    <italic>Gaussian processes for machine learning</italic>. MIT
    Press.</mixed-citation>
  </ref>
  <ref id="ref-DeliveringU003A2022">
    <mixed-citation>Sturdevant, S. G., Godfrey, A. J. R., &amp; Gelman,
    A. (2022). <italic>Delivering data
    differently</italic>.</mixed-citation>
  </ref>
  <ref id="ref-WickhamU003A2006">
    <mixed-citation>Wickham, H. (2006). <italic>Exploratory model
    analysis with r and GGobi</italic>.</mixed-citation>
  </ref>
  <ref id="ref-Wickham-Cook-HofmannU003A2015">
    <mixed-citation>Wickham, H., Cook, D., &amp; Hofmann, H. (2015).
    Visualizing statistical models: Removing the blindfold.
    <italic>Statistical Analysis and Data Mining</italic>,
    <italic>8</italic>, 203–225.</mixed-citation>
  </ref>
</ref-list>
<fn-group>
  <fn id="fn1">
    <label>1</label><p>Department of Statistics and Department of
    Political Science, Columbia University, New York.</p>
  </fn>
  <fn id="fn2">
    <label>2</label><p>Department of Physics, Blackett Laboratory,
    Imperial College, London.</p>
  </fn>
  <fn id="fn3">
    <label>3</label><p>Center for Computational Mathematics, Flatiron
    Institute, New York.</p>
  </fn>
  <fn id="fn4">
    <label>4</label><p>Center for Computational Neuroscience, Flatiron
    Institute, New York.</p>
  </fn>
  <fn id="fn5">
    <label>5</label><p>We code the GP by hand in python, using
    elementary functions from <monospace>torch</monospace>.</p>
  </fn>
</fn-group>
</back>
<sub-article id="pr-r1-letter" article-type="editor-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r1.letter</article-id>
<title-group>
<article-title>Decision letter, round 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-8638-5276</contrib-id>
<string-name>Matthias Templ</string-name>
<role specific-use="editor">Editor</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="editor-decision-sent">
<event-desc>Editor decision sent</event-desc>
<date iso-8601-date="2026-10-26"><day>26</day><month>10</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>0</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>minor-revision</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><bold>Minor revision.</bold> Confirmed and signed by Matthias Templ on 2026-10-26.</p>
<p>Thank you for your submission to JRepStat. We are inviting a minor revision. The reviewers’ points follow, grouped by weight.</p>
<p>The paper introduces an interactive method for exploring model misfit by dragging a fitted curve toward user-specified pseudo-data points, re-fitting under a soft “gravitational” constraint, and reporting the resulting loss of fit through visual and auditory feedback. It will interest applied statisticians and domain modelers who want to interrogate why a fitted curve misses the data, demonstrated across golf putting, serial-dilution assays, CMB cosmology, and a Gaussian process. We would be glad to see the revised version.</p>
<p>How to read this letter. The decision rests on the items marked required. If a required item seems wrong to you, or cannot be done within this paper, decline it on the revision page and give the reason. A reasoned decline is a legitimate answer, and the editor weighs it. Reviewers can be mistaken. Items marked recommended or optional are advice from the reviewers. Adopt them, decline them with a sentence, or leave them for later work. None of that counts against the paper. The reviewer reports below carry the same marks. The editor who signs this decision may weigh an item differently in the accompanying message, and that message prevails.</p>
<p><sc>required</sc> (the decision rests on these):</p>
<list list-type="bullet">
  <list-item>
    <p>[writing-quality] ` Several word-level errors that are not extraction artefacts should be corrected: “1.25 million attempted puts” should be “putts”; “the final bin cantered at 75 feet” should be “centered”; “forcing the curve go through” is missing “to”; “adjusting the posterior the posterior so that” repeats “the posterior”; and “The data binned by distance from the hole, binned into 31 categories” is missing a verb and repeats “binned”. These change or obscure meaning, so the authors should decide the correct wording.</p>
  </list-item>
  <list-item>
    <p>[methods-soundness] In Section 1.3 the augmented posterior is written p(θ<italic>|y) ∝ p(θ|y) normal(y</italic>|x<italic>, σ</italic>); the normal density should be conditioned on the curve, normal(y<italic>|g(x</italic>|θ), σ*), as given correctly in Section 1.2. Correct the density argument so the augmented target is unambiguous.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 1] Formula (1) defines the posterior sd of g(x*) as the posterior average of the conditional sds, which is not the sd of the posterior of g. Correct the integral or state it as an approximation.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 1] The golf interpretation rests on the claim that short-distance bins contain failed attempts from longer putts. Justify this from the data structure or qualify it.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 2] Equation (1) defines σ* incoherently: the integrand sd(g(x<italic>|θ)) is zero for fixed θ because g is deterministic given θ, the differential reads dy where θ is the variable of integration, and a posterior sd cannot equal a posterior average of per-θ sds. State the intended quantity (the posterior standard deviation of g(x</italic>)).</p>
  </list-item>
  <list-item>
    <p>[Reviewer 2] The quantity conveyed by sound is described two ways. Figure 1 and Figure 2 captions use the change in log posterior, log p(θ*|x,y) − log p(θ̂|x,y), while the Section 2.1 prototype text uses the decrease in log likelihood under the original model. Reconcile which quantity drives the squeal and use it consistently.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 2] Equation (1) is offered as the default σ* rule but is not the rule used in the GP example (fixed 10⁻⁶) or the CMB example (σ̄_ℓ<italic>), and the squeal magnitude (e.g. cost 150.4 vs 20.2) has no absolute scale because it depends on σ</italic>. Either add a short treatment of what the squeal magnitude means and why σ* differs by example, or qualify eq (1) as one default and the squeal as a relative diagnostic.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 3] Post runnable code and data for all four examples, not only the golf prototype, each with a command that regenerates its figure. The paper’s four demonstrations are its evidence, and only one has a linked artifact.</p>
  </list-item>
</list>
<p><sc>recommended</sc>:</p>
<list list-type="bullet">
  <list-item>
    <p>[software-landscape] The interactive prototype at the GitHub link is a manipulable-graphics system in the same space as GGobi (already cited), loon, plotly and Shiny. Please add one or two sentences placing the dragging-and-updating interface relative to existing interactive graphics systems, so a reader can see what the Squealer adds beyond brushing and linked views.</p>
  </list-item>
  <list-item>
    <p>[software-landscape] The Gaussian process example and the dilution model are fit with the authors’ own Stan and closed-form R code. Since these serve only to illustrate the method, no cross-check is required, but one line naming an established GP implementation (kernlab, GPfit, or GPy/GPflow) alongside the Rasmussen and Williams citation would help readers who want to reproduce the GP fit with a standard tool.</p>
  </list-item>
  <list-item>
    <p>[statistical-rigor] The predicted “approximately 80% shift toward the pseudo-data point” is derived from a normal, locally linear baseline (the ratio 1²/(1²+0.5²)), then stated as a general expectation. The example models (the golf arcsine-normal curve, the four-parameter logistic assay, the CMB spectrum, the GP) are nonlinear, so the actual shift will depart from 80%. Add one sentence stating that this figure is a normal-linear approximation and that realized shifts in the nonlinear examples differ.</p>
  </list-item>
  <list-item>
    <p>[statistical-rigor] The “cost” of each perturbation (for example 150.4, 40.0, 20.2 in Figure 10, and the hyperparameter changes in Table 1) is reported as a single log-likelihood decrement with no indication of sampling or Monte Carlo uncertainty. For a tool whose purpose is to quantify discomfort with a fit, a reader cannot tell which differences are meaningful. State whether these costs are deterministic given the fitted mode or carry Monte Carlo error, and if the latter give a rough magnitude.</p>
  </list-item>
  <list-item>
    <p>[statistical-rigor] The ±1 standard error intervals shown for log β2 and log σy in Figure 9 are, for the two perturbed samples, shrunk by the pseudo-data mechanism rather than by the data, as the text notes in Section 1.4 and 2.2. Readers may still read those narrowed intervals as genuine posterior precision. Mark in the Figure 9 caption that the intervals for samples 3 and 23 are artifacts of the gravitational constraint and do not represent real uncertainty reduction.</p>
  </list-item>
  <list-item>
    <p>[visualisation] In Figure 10 the best-fit curve is red and the Squealer curve is orange, with blue data error bars. Red against orange is hard to separate for readers with protan or deutan colour vision, and these are the two curves the reader must compare. Please separate them more, for example a solid dark line for the best fit and a distinct dashed line plus a non-orange hue for the Squealer curve, so the contrast survives in greyscale. The red/blue coding in Figures 1, 2, 5, 6 and 8 reads more safely, since dark blue, light blue and red stay distinguishable.</p>
  </list-item>
  <list-item>
    <p>[visualisation] Figure 9 places the two panels on different axis scales and notes this in the caption. The side-by-side layout invites a direct visual comparison that the differing scales defeat, since the apparent spread of points is not comparable across panels. Consider a shared x-axis range, or an explicit marker of the common region, so the shift in samples 3 and 23 reads against a fixed frame.</p>
  </list-item>
  <list-item>
    <p>[visualisation] The central dashboard panels in Figures 1, 2, 5 and 6 carry many small stacked labels (theta[1] through theta[6], log prior, log lik, log post) and the right-hand residual panels use axis ticks like “-1e-05 1e-05 3e-05” in small type. At print size these are hard to read. Larger tick labels and a short key for the dashboard rows would help, given the paper leans on these panels to carry its argument.</p>
  </list-item>
  <list-item>
    <p>[methods-soundness] For point summaries other than the mode the paper states there is no guarantee the log posterior decreases, so the quantity to be sonified is undefined, and the KL alternative is proposed but not applied in any example. Please state in one sentence which scalar is actually used for the auditory signal in each example (the examples appear to use the mode or the fixed-hyperparameter closed form).</p>
  </list-item>
  <list-item>
    <p>[Reviewer 1] The abstract describes sound that grows “louder and more unpleasant” while the prototype maps discrepancy to pitch. Reconcile these and add a sentence on the rationale for the sonic mapping.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 1] The Figure 11 caption states hyperparameters are fixed, while Table 1 shows them changing across conditions. Clarify what is held fixed and when.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 2] Report how far the curve moves and how large the squeal is as σ* varies, for at least the golf and GP examples, so a reader can judge the sensitivity of the diagnostic to this tuning choice.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 3] Capture the compute environment (Stan, R or Python, optimizer library versions) and the seeds for the simulated GP example and the posterior draws, with a short determinism note.</p>
  </list-item>
  <list-item>
    <p>[Reviewer 3] Document the sound mapping used by the prototype (how pitch and loudness follow the change in log likelihood) so the sonification is reproducible, not only the curve-fitting.</p>
  </list-item>
</list>
<p><sc>optional</sc>:</p>
<list list-type="bullet">
  <list-item>
    <p>[Reviewer 1] A small user study of whether the auditory channel aids misfit understanding would support the claims about non-expert intuition.</p>
  </list-item>
</list>
<p>We will correct these in production, and you confirm them in the proof:</p>
<list list-type="bullet">
  <list-item>
    <p>[consistency-check] Section 2.2 states Figure 7 shows “22 unknown samples”, but the rest of the paper uses 23: samples are numbered 1 to 23 in Figure 9, the text refers to “samples 23 and 3”, “the set of 23 values of the parameter β2”, and Figure 9’s caption says “23 unknown samples”. The “22” contradicts the count the paper otherwise uses and should be reconciled to the correct value.</p>
  </list-item>
  <list-item>
    <p>[consistency-check] The Figure 8 caption reads “Applying the Squealer to the data and model from Figure 8”, referring to itself. From the text (Section 2.2 introduces the plate and curves in Figure 7) the intended reference is Figure 7.</p>
  </list-item>
  <list-item>
    <p>[consistency-check] Section 1.1 refers to “Figure 2.2” when discussing the four-parameter logistic assay model (“as discussed further in Figure 2.2”). No Figure 2.2 exists; the intended target is Section 2.2.</p>
  </list-item>
  <list-item>
    <p>[consistency-check] In Section 2.1 the full paragraph describing the software prototype (“We include a software prototype with the golf example at https://github.com/elc45/squealer-prototype … responding in real time.”) is printed twice in succession. One copy should be removed.</p>
  </list-item>
  <list-item>
    <p>[methods-soundness] In Eq (1) the averaging integral is written with measure dy but integrates p(θ|y) over θ, so the measure should be dθ. (the correct form is fixed by the surrounding text)</p>
  </list-item>
  <list-item>
    <p>[methods-soundness] The software-prototype paragraph in Section 2.1 is duplicated verbatim.</p>
  </list-item>
  <list-item>
    <p>[prose-and-style] Section 2.4, “adjusting the posterior the posterior so that it moves through the pseudo-data point” repeats “the posterior”.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r1-report1" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r1.report1</article-id>
<title-group>
<article-title>Report Reviewer 1, round 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-1">Reviewer 1</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-10-26"><day>26</day><month>10</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>0</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>minor-revision</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the application reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: minor.</p>
<p>This is an appealing and well-motivated contribution. The central idea, inverting the usual direction of exploration so that the user moves the curve and lets the parameters follow under a soft constraint, matches how applied modelers actually think about misfit. The framing in terms of pulling a fitted curve toward pseudo-data, then reading off the statistical price in the likelihood and in individual data points, is a genuine addition to the exploratory toolkit. The four examples are chosen well and span a useful range, from a tightly constrained two-parameter model to a nonparametric GP, and each one teaches something about why a model resists the fit the eye wants.</p>
<p>My largest application concern is the golf narrative, because it carries the paper’s cleanest interpretive payoff. The explanation for the large likelihood cost is that the short-distance bins hold “a pileup of data near x = 0” made up of failed attempts from other distances that came close. In the aggregate putting data I am aware of, each attempt is recorded at its true starting distance, so a missed long putt does not re-enter a short bin. If the data here are structured differently, say by recording a follow-up putt, that needs stating, because the whole point of the panel depends on where those hundreds of thousands of attempts actually come from. Please either justify this from the data definition or qualify the sentence so the conclusion rests on bin counts rather than on a claimed re-binning of misses.</p>
<p>On the method itself, equation (1) sets the gravitational scale to half the posterior sd of g(x<italic>), then writes that quantity as the posterior average of the conditional sds of g(x</italic>|theta). Those are not equal in general, since the sd of a mixture is not the mixture of the component sds, and the displayed integral is also written with dy where dθ is meant. For a method paper this formula is load-bearing, so it should be corrected or presented explicitly as an approximation with a note on when it is adequate.</p>
<p>On sonification, which is where the title places the paper, the sonic layer is described rather than demonstrated, and the manuscript says as much. That is a defensible scope for a method paper. Two things would still help a reader from the sonification side. The abstract promises a sound that grows louder and more unpleasant, while the golf prototype maps the discrepancy to pitch, and these are different perceptual channels with different detectability properties. A sentence reconciling the two, and a sentence on why the chosen mapping was expected to work, would ground the design in the auditory-display literature the introduction already gestures at. The claim that the tool builds intuition for non-experts is reasonable as a motivation and is currently unsupported by any use evidence, which is fine to leave as future work if stated that way.</p>
<p>The bioassay and cosmology examples read well, and the honest treatment of the posterior-constriction artifact in Section 1.4, carried through to the shrunken sample 3 and 23 uncertainties in Figure 9, is the right way to handle a known limitation. In the GP example, the caption says the kernel hyperparameters are fixed while Table 1 reports them moving across the zero, one, and two pseudo-point fits. I take it the hyperparameters are re-fit and then held at their new values for sampling, but the reader should not have to reconstruct that.</p>
<p>A few cross-references and a repeated paragraph need the production pass noted above. None of these affect the result.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>required</sc> Correct equation (1): the posterior sd of g(x<italic>) is not the posterior average of the conditional sds sd(g(x</italic>|theta)), and the integral is written over dy rather than dθ. State the exact quantity, or present (1) as an approximation with a note on when it holds.</p>
  </list-item>
  <list-item>
    <p><sc>required</sc> Justify the claim in Section 2.1 that the short-distance bins include failed attempts from longer putts, from the definition of the putting data, or qualify the interpretation so it rests on the large bin counts near x = 0 rather than on a re-binning of misses.</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Remove the duplicated software-prototype paragraph in Section 2.1.</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Fix the Figure 8 caption, which refers to “Figure 8” where Figure 7 is meant, and the text reference “Figure 2.2”, which should be Section 2.2.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Reconcile the sound description in the abstract (louder and more unpleasant) with the pitch mapping in the prototype, and add one or two sentences on the rationale for the chosen sonic mapping with reference to the auditory-display work cited in Section 1.5.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Clarify the Figure 11 caption against Table 1: state which hyperparameters are re-fit and which are held fixed for sampling at each stage.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Confirm in the paper that data and code for all four examples are posted, not the golf prototype alone.</p>
  </list-item>
  <list-item>
    <p><sc>optional</sc> A small study of whether listeners detect the intended misfit from the audio channel would support the claim that the tool aids non-expert intuition.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r1-report2" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r1.report2</article-id>
<title-group>
<article-title>Report Reviewer 2, round 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-2">Reviewer 2</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-10-26"><day>26</day><month>10</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>0</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>minor-revision</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the methodology reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: minor.</p>
<p>This is a clearly written methods-and-ideas paper. The central device is appealing and, as far as I can tell, sound in its basic logic: multiply the posterior by a normal “gravity” term centred on a user-placed pseudo-data point, re-optimise, and read off how much the fit resists the pull. Treating the squeal as the model’s resistance to a desired curve shape is a reasonable exploratory diagnostic, and the four examples cover a useful range of structures, from a two-parameter curve to a nonparametric GP. The precision-weighting argument for the roughly 80% shift (1/(1 + 0.5²) = 0.8) is correct, and the honesty about the method’s limits in Sections 1.3 and 1.4 is welcome. My comments are mostly about tightening the statistical statements, because a method paper is judged on whether its formulas and its reported diagnostic mean what they say.</p>
<p>The definition of the gravity scale in equation (1) does not hold as written. The right-hand side sets the posterior standard deviation of g(x<italic>) equal to one half of a posterior average of sd(g(x</italic>|θ)). For fixed θ the curve value g(x<italic>|θ) = E(y|x</italic>,θ) is a single number, so its standard deviation is zero, and the integral is written against dy rather than the posterior over θ. The intended object is the posterior standard deviation of g(x*) across draws of θ, which is what the surrounding text and Figure 3 clearly use. Please restate eq (1) so the symbol matches that quantity.</p>
<p>A second clarity point concerns the quantity that squeals. The captions of Figures 1 and 2 map sound to the change in log posterior density, while the prototype description in Section 2.1 maps it to the decrease in log likelihood under the original model. These coincide only when the prior contribution does not change, which is exactly the hierarchical case (dilution assays) where it does change, since the paper itself states the penalty there is paid in the prior. Pick one quantity and carry it through the captions, the prototype text, and the discussion.</p>
<p>The deeper methodological question is how to read the squeal. Equation (1) is presented as the default scale, but the GP example pins the pseudo-point with variance 10⁻⁶ and the CMB example uses its own σ̄_ℓ<italic>, so the default rule is used in at most two of the four cases. Because the reported cost scales with σ</italic>, the numbers in Figure 10 (150.4, 40.0, 20.2) are interpretable only relative to one another within a fixed σ*, and the same is true of the golf change-in-log-likelihood plot. The paper would be on firmer ground if it said this plainly: the squeal is a relative diagnostic, eq (1) is one default, and different problems warrant different scales. A sensitivity curve for the golf and GP cases would make the point concrete without new data.</p>
<p>On reproducibility, the prototype covers the golf case; the dilution, CMB, and GP results, including the hyperparameters in Table 1, are the ones I would most want to rerun, since they involve real fitting choices. Posting the code for all four would let a reader verify the figures. Two production-level items: the prototype paragraph in Section 2.1 is duplicated verbatim, and the Figure 8 caption points at Figure 8 where it means Figure 7.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>required</sc> Correct equation (1) so σ* is defined as (one half of) the posterior standard deviation of g(x*) over draws of θ. As written the integrand is zero for fixed θ, the differential reads dy, and a posterior sd is set equal to a posterior mean of per-θ sds.</p>
  </list-item>
  <list-item>
    <p><sc>required</sc> Use a single quantity for the squeal throughout. The Figure 1 and 2 captions use the change in log posterior; the Section 2.1 prototype text uses the decrease in log likelihood. These differ exactly in the hierarchical dilution case where the prior term moves.</p>
  </list-item>
  <list-item>
    <p><sc>required</sc> Say what the squeal magnitude means and why σ* is chosen differently across examples (eq (1) default, 10⁻⁶ in the GP, σ̄_ℓ* in the CMB), or add one or two sentences qualifying eq (1) as a default and the squeal as a scale-dependent relative diagnostic.</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Remove the duplicated prototype paragraph in Section 2.1.</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Change the Figure 8 caption reference from Figure 8 to Figure 7.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Post runnable code for all four examples so the dilution, CMB, GP figures and Table 1 can be reproduced, not only the golf prototype.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Show how the curve shift and the squeal change as σ* varies for the golf and GP examples, so the sensitivity of the diagnostic to this tuning choice is visible.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r1-report3" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r1.report3</article-id>
<title-group>
<article-title>Report Reviewer 3, round 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-3">Reviewer 3</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-10-26"><day>26</day><month>10</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>0</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>major-revision</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the software reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: major.</p>
<p>I read this as a software and reproducibility reviewer. My questions are whether I can run the thing, whether the code is sound, and whether the figures in the paper are the code’s output. The method itself is clearly described and the idea is attractive. The paper is also plain that it demonstrates principles with static graphics and that the dynamic, sonic, and haptic forms are future work, so I am not holding it to a standard of a shipped interactive tool.</p>
<p>The central gap for me is coverage of the artifacts. The abstract and body present four worked examples (golf, dilution assays, CMB power spectrum, GP temperature), and each figure is an output of code. Only the golf example has a linked prototype, at the GitHub URL in Section 2.1. The footnote says all data and code “will be freely available and posted on Github”, in the future tense. For a new-method paper whose argument rests entirely on these four demonstrations, the reproducibility minimum is code plus a command that regenerates each figure, available at submission. Please post the code and data for all four examples, each with a runnable entry point. I could not inspect the repository contents, so I am asking only that the artifacts exist and run, not for anything about their internal structure.</p>
<p>Two formula statements are wrong as printed and should be fixed because a reader reconstructing the method from them would be misled. In Section 1.3 the augmented posterior is written p(θ<italic>|y) ∝ p(θ|y) normal(y</italic>|x<italic>, σ</italic>); the normal density should be centered at g(x*|θ), matching the construction in Section 1.2. In equation (1) the integral averages over the posterior but is written with dy where it should be dθ. Both are quick corrections.</p>
<p>A few things fall to the production list rather than to you as analysis. Section 2.1 contains a full paragraph printed twice, the block beginning “We include a software prototype with the golf example” and ending at the L-BFGS sentence. The Figure 8 caption refers to “Figure 8” where it means Figure 7, and the Figure 1 discussion writes “Figure 2.2” for what is Section 2.2.</p>
<p>On reproducibility beyond the minimum, two additions would let the journal verify the examples and would document what you already have. The GP temperature case uses simulated data, fitted hyperparameters, and posterior draws, and the fitted values in Table 1 depend on the random draws and the optimizer. Recording the environment versions (Stan, R or Python, the optimizer library) and the seeds, with a one-line determinism note, would make Table 1 and Figure 11 reproducible. Separately, the sonification is the paper’s headline move, and right now only the curve fitting is described well enough to repeat. A short statement of how pitch and loudness map to the change in log likelihood in the prototype would make the sound reproducible too.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>required</sc> Post runnable code and data for all four examples, not only the golf prototype, each with a command that regenerates its figure.</p>
  </list-item>
  <list-item>
    <p><sc>required</sc> Correct the augmented-posterior density in Section 1.3 to be centered at g(x*|θ), and change the integration variable in equation (1) from dy to dθ.</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Remove the duplicated paragraph in Section 2.1 (the “We include a software prototype … L-BFGS optimizer” block printed twice).</p>
  </list-item>
  <list-item>
    <p>[editor_fix] Fix the Figure 8 caption to reference Figure 7, and change “Figure 2.2” in the Figure 1 discussion to Section 2.2.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Capture the compute environment versions and the seeds for the simulated GP example and the posterior draws, with a short determinism note, so Table 1 and Figure 11 can be reproduced.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Document the prototype’s sound mapping (how pitch and loudness follow the change in log likelihood) so the sonification can be reproduced alongside the curve fitting.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r1-response" article-type="author-comment">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r1.response</article-id>
<title-group>
<article-title>Authors&#x27; response, round 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<string-name>Andrew Gelman</string-name>
<role specific-use="author">Author</role>
</contrib>
<contrib contrib-type="author">
<string-name>Andrew H. Jaffe</string-name>
<role specific-use="author">Author</role>
</contrib>
<contrib contrib-type="author">
<string-name>Eliot Carlson</string-name>
<role specific-use="author">Author</role>
</contrib>
<contrib contrib-type="author">
<string-name>Philip Greengard</string-name>
<role specific-use="author">Author</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="author-comment-received">
<event-desc>Author comment received</event-desc>
<date iso-8601-date="2026-11-17"><day>17</day><month>11</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16.r1.letter" document-id-type="doi" document-type="editor-report"/>
<related-object document-id="10.68365/jrepstat.2026.16.r1.report1" document-id-type="doi" document-type="reviewer-report"/>
<related-object document-id="10.68365/jrepstat.2026.16.r1.report2" document-id-type="doi" document-type="reviewer-report"/>
<related-object document-id="10.68365/jrepstat.2026.16.r1.report3" document-id-type="doi" document-type="reviewer-report"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>0</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>Authors confirm each required point as done or give their reason for declining it. Further answers are voluntary, because the review compares every revision with the previous version and the next round&#x27;s reports say what remains open.</p>
<list list-type="simple">
<list-item>
<p><sc>required</sc> ` Several word-level errors that are not extraction artefacts should be corrected: &quot;1.25 million attempted puts&quot; should be &quot;putts&quot;; &quot;the final bin cantered at 75 feet&quot; should be &quot;centered&quot;; &quot;forcing the curve go through&quot; is missing &quot;to&quot;; &quot;adjusting the posterior the posterior so that&quot; repeats &quot;the posterior&quot;; and &quot;The data binned by distance from the hole, binned into 31 categories&quot; is missing a verb and repeats &quot;binned&quot;. These change or obscure meaning, so the authors should decide the correct wording.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> In Section 1.3 the augmented posterior is written p(θ*|y) ∝ p(θ|y) normal(y*|x*, σ*); the normal density should be conditioned on the curve, normal(y*|g(x*|θ), σ*), as given correctly in Section 1.2. Correct the density argument so the augmented target is unambiguous.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> Formula (1) defines the posterior sd of g(x*) as the posterior average of the conditional sds, which is not the sd of the posterior of g. Correct the integral or state it as an approximation.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> The golf interpretation rests on the claim that short-distance bins contain failed attempts from longer putts. Justify this from the data structure or qualify it.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> Equation (1) defines σ* incoherently: the integrand sd(g(x*|θ)) is zero for fixed θ because g is deterministic given θ, the differential reads dy where θ is the variable of integration, and a posterior sd cannot equal a posterior average of per-θ sds. State the intended quantity (the posterior standard deviation of g(x*)).</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> The quantity conveyed by sound is described two ways. Figure 1 and Figure 2 captions use the change in log posterior, log p(θ*|x,y) − log p(θ̂|x,y), while the Section 2.1 prototype text uses the decrease in log likelihood under the original model. Reconcile which quantity drives the squeal and use it consistently.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> Equation (1) is offered as the default σ* rule but is not the rule used in the GP example (fixed 10⁻⁶) or the CMB example (σ̄_ℓ*), and the squeal magnitude (e.g. cost 150.4 vs 20.2) has no absolute scale because it depends on σ*. Either add a short treatment of what the squeal magnitude means and why σ* differs by example, or qualify eq (1) as one default and the squeal as a relative diagnostic.</p>
<p><bold>Done.</bold></p>
</list-item>
<list-item>
<p><sc>required</sc> Post runnable code and data for all four examples, not only the golf prototype, each with a command that regenerates its figure. The paper&#x27;s four demonstrations are its evidence, and only one has a linked artifact.</p>
<p><bold>Done.</bold></p>
</list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r2-letter" article-type="editor-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r2.letter</article-id>
<title-group>
<article-title>Decision letter, round 2</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<contrib-id contrib-id-type="orcid">https://orcid.org/0000-0002-8638-5276</contrib-id>
<string-name>Matthias Templ</string-name>
<role specific-use="editor">Editor</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="editor-decision-sent">
<event-desc>Editor decision sent</event-desc>
<date iso-8601-date="2026-11-18"><day>18</day><month>11</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>1</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>accept</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><bold>Accepted.</bold> Signed by Matthias Templ on 2026-11-18.</p>
<p>Accepted. All three reviewers recommend acceptance or a minor revision of the revised paper. The authors supplied code and data for all four examples, and the journal ran them: every figure regenerates, with small differences in Table 1 and the CMB costs. Open points go to the authors as suggestions with the proof.</p>
<p>Congratulations, your manuscript has been accepted for publication in JRepStat. Production begins now.</p>
<p>Where it is not on file yet, we still need the following for production.</p>
<list list-type="bullet">
  <list-item>
    <p>a valid ORCID iD for every author</p>
  </list-item>
  <list-item>
    <p>a captured computational environment (dependencies/lockfile/container)</p>
  </list-item>
  <list-item>
    <p>a signed determinism attestation for the entry-point command</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r2-report1" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r2.report1</article-id>
<title-group>
<article-title>Report Reviewer 1, round 2</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-1">Reviewer 1</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-11-17"><day>17</day><month>11</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>1</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>accept</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the application reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: accept.</p>
<p>Of the four must-fix points and three lighter ones I raised, all of the required and editor-fix items are met and nothing material remains open.</p>
<p>Equation (1) now reads as the posterior variance of g(x*), the integral is over dθ, and the formula is no longer the average of conditional standard deviations. This was the load-bearing correction and it is done. On the golf example, the panel’s conclusion now turns on the large bin counts near x = 0 (“hundreds of thousands of putt attempts … hence the binomial likelihood is very strong there”), with the pileup of short putts offered as the reason those bins are large. That is the right ordering, and for ShotLink-style data the pileup of short second putts after missed long putts is a defensible account of the counts. The phrasing about failed attempts “from other distances” is still slightly loose, since the follow-up putt rather than the original miss is what lands in the short bin, but the statistical point the panel depends on holds, so I would not hold the paper for it.</p>
<p>One recommended item remains the author’s choice. The repository footnote is still written in the future tense, so a reader cannot yet tell whether data and code for all four examples are posted or only the golf prototype. A one-word change to the present tense, once the artifacts are up, settles it. This does not bear on the recommendation.</p>
<p>The remaining recommended items from the prior round (reconciling the abstract’s “more unpleasant” sound with the prototype’s pitch mapping, and clarifying the Figure 11 caption against Table 1) would still strengthen the paper, and they are optional strengthenings rather than anything the result rests on.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>recommended</sc> Change the repository footnote to the present tense once the data and code for all four examples are posted, so a reader can confirm the full set is available rather than the golf prototype alone.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r2-report2" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r2.report2</article-id>
<title-group>
<article-title>Report Reviewer 2, round 2</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-2">Reviewer 2</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-11-17"><day>17</day><month>11</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>1</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>accept</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the methodology reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: accept.</p>
<p>Of the three required points and two editor fixes I raised, equation (1) and both caption/reference fixes are met. Equation (1) now reads as the posterior standard deviation of g(x<italic>), integrated against p(θ|y) dθ with ḡ(x</italic>) the posterior mean, so the earlier problems (the dy differential, a per-θ sd that is zero, a posterior sd equated to a mean of per-θ sds) are gone. The duplicated prototype paragraph is removed and the Figure 8 caption now points at Figure 7.</p>
<p>Two residuals remain, and neither blocks the paper. The squeal quantity is still described as the change in log posterior in the Figure 1 caption (p. 2) and as the decrease in log likelihood in the Section 2.1 prototype text (p. 7). For the golf prototype the two nearly coincide, since that two-parameter fit with a million observations barely moves the prior term, so the choice is defensible. The paper does not say so, and a reader meeting both descriptions will wonder which drives the sound. One sentence noting the prototype uses the likelihood change because the prior contribution is negligible there would close it.</p>
<p>On the scale question, equation (1) is now framed as “a reasonable first choice,” which does present it as one default among possible σ* rules, and that addresses the main part of my earlier point. What is still absent is a single sentence saying the cost numbers are comparable only within a fixed σ*. The CMB costs in Figure 10 (150.4, 40.0, 20.2) read naturally as relative to one another, and stating that explicitly would keep a reader from treating them as absolute.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>recommended</sc> In Section 2.1 (p. 7), add one clause reconciling the prototype’s log-likelihood squeal with the log-posterior squeal in the Figure 1 caption (p. 2), for example that the prior term is negligible in the golf fit so the two agree there.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Add one sentence near Section 1.2 (p. 3) or the Figure 10 discussion (p. 14) stating that the squeal magnitude is comparable only within a fixed σ*, so the reported costs are a relative diagnostic.</p>
  </list-item>
</list>
</body>
</sub-article>
<sub-article id="pr-r2-report3" article-type="reviewer-report">
<front-stub>
<article-id pub-id-type="doi">10.68365/jrepstat.2026.16.r2.report3</article-id>
<title-group>
<article-title>Report Reviewer 3, round 2</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<collab>JRepStat review engine</collab>
<role specific-use="reviewer" content-type="reviewer-3">Reviewer 3</role>
</contrib>
</contrib-group>
<pub-history>
<event event-type="reviewer-report-received">
<event-desc>Reviewer report received</event-desc>
<date iso-8601-date="2026-11-17"><day>17</day><month>11</month><year>2026</year></date>
</event>
</pub-history>
<related-object document-id="10.68365/jrepstat.2026.16" document-id-type="doi" document-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta><meta-name>peer-review-stage</meta-name><meta-value>pre-publication</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-revision-round</meta-name><meta-value>1</meta-value></custom-meta>
<custom-meta><meta-name>peer-review-recommendation</meta-name><meta-value>minor-revision</meta-value></custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p><italic>Written by the journal&#x27;s review engine in the role of the software reviewer, and read by the editor before the decision. How the engine works is on the <ext-link ext-link-type="uri" xlink:href="https://jrepstat.fairpressjournals.com/about/peer-review/">peer review page</ext-link>.</italic></p>
<p>Recommendation: minor.</p>
<p>Of the two required points and two production fixes I raised, the three I can verify in the text are met: equation (1) now integrates over θ, the Section 1.3 augmented posterior is centered at g(x|θ∗), the duplicated prototype paragraph in Section 2.1 is gone, and the Figure 8 caption and the “Section 2.2” cross-reference are correct.</p>
<p>One item is still open, and it is the one I flagged as the central gap. The availability footnote on page 1 remains in the future tense (“will be freely available and posted on Github”), and the golf prototype URL in Section 2.1 is still the only linked artifact. The response marks the required coverage point as done, and I cannot see the repository to confirm what is now in it. If the code and data for the dilution assay, CMB, and GP examples are posted, the fix is to update the footnote and add the links so a reader can find them. Until the manuscript points to them, the paper’s four demonstrations still read as having one reproducible artifact.</p>
<p>The one recommended point I can check is not addressed: the GP temperature example (page 14) still gives no seeds or library versions, so Table 1 and Figure 11 cannot be reproduced exactly. This was voluntary and does not hold the paper. The sound-mapping description is now adequate for the prototype, since Section 2.1 states that pitch is proportional to the decrease in log likelihood.</p>
<p>Numbered suggestions to the authors:</p>
<list list-type="order">
  <list-item>
    <p><sc>required</sc> Update the availability footnote on page 1, which still reads “will be freely available and posted on Github” and links only the golf prototype, to link the posted code and data for all four examples, each with a command that regenerates its figure.</p>
  </list-item>
  <list-item>
    <p><sc>recommended</sc> Record the seeds and environment versions (python, torch, optimizer) for the GP example on page 14, with a one-line determinism note, so Table 1 and Figure 11 can be reproduced.</p>
  </list-item>
</list>
</body>
</sub-article>
</article>
