.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_probabilistic_modeling/copulas/plot_create_copula.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_probabilistic_modeling_copulas_plot_create_copula.py: Create a copula =============== .. GENERATED FROM PYTHON SOURCE LINES 6-8 In this example we are going to create a Normal copula from a correlation matrix. .. GENERATED FROM PYTHON SOURCE LINES 10-14 .. code-block:: Python import openturns as ot ot.Log.Show(ot.Log.NONE) .. GENERATED FROM PYTHON SOURCE LINES 15-16 create the distribution .. GENERATED FROM PYTHON SOURCE LINES 16-21 .. code-block:: Python R = ot.CorrelationMatrix(3) R[0, 1] = 0.25 R[1, 2] = 0.25 copula = ot.NormalCopula(R) print(copula) .. rst-class:: sphx-glr-script-out .. code-block:: none NormalCopula(R = [[ 1 0.25 0 ] [ 0.25 1 0.25 ] [ 0 0.25 1 ]]) .. _sphx_glr_download_auto_probabilistic_modeling_copulas_plot_create_copula.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_create_copula.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_create_copula.py `