.. _book_fig_chapter5_fig_distribution_gaussgauss: Gaussian/Gaussian distribution ------------------------------ Figure 5.6 The distribution of 106 points drawn from :math:`\mathcal{N}(0,1)` and sampled with heteroscedastic Gaussian errors with widths, :math:`e_i`, uniformly distributed between 0 and 3. A linear superposition of these Gaussian distributions with widths equal to :math:`\sqrt{1 + e_i^2} results in a non-Gaussian distribution. The best-fit Gaussians centered on the sample median with widths equal to sample standard deviation and quartile-based :math:`\sigma_G` (eq.3.36) are shown for comparison. .. image:: ../images/chapter5/fig_distribution_gaussgauss_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_distribution_gaussgauss.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_distribution_gaussgauss.py :lines: 14- .. raw:: html
:download:`[download source: fig_distribution_gaussgauss.py] ` .. raw:: html