></span>Evaluating models by generating simulated data</p>
</div>
<p>Generate data from the simulation function assuming a log-normal likelihood and then generate data from the function you wrote in Part 2 that assumes a normal likelihood. Compare the distributions of the two sets of simulated data to the observed distributions. Which simulation code produces more realistic data, and why?</p>
<div class="exercise">
<p><span id="exr:SimulationexercisesPart4" class="exercise"><strong>Exercise 8.4  </strong></