.. _book_fig_chapter3_fig_transform_distribution: Transformation of Distribution ------------------------------ Figure 3.4. An example of transforming a uniform distribution. In the left panel, x is sampled from a uniform distribution of unit width centered on x = 0.5 (:math:`\mu` = 0 and W = 1; see Section 3.3.1). In the right panel, the distribution is transformed via y = exp(x). The form of the resulting pdf is computed from eq. 3.20. .. image:: ../images/chapter3/fig_transform_distribution_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_transform_distribution.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_transform_distribution.py :lines: 12- .. raw:: html
:download:`[download source: fig_transform_distribution.py] ` .. raw:: html