 )
\\
 = \mbox{log\_sum\_exp}(
                         \log(0.3) + \log \mathsf{normal}(y|-1,2),
                         \log(0.7) + \log \mathsf{normal}(y|3,1) ).
\]</span></p>
</div>
<div id="dropping-uniform-mixture-ratios" class="section level3 unnumbered">
<h3>Dropping uniform mixture ratios</h3>
<p>If a two-component mixture has a mixing ratio of 0.5, then the mixing
ratios can be dropped, because</p>
<pre><code>log_half = log(0.5);
for (n in 1:N)
  target += log_sum_exp(neg_log_half
               