:orphan: 





.. _gen_full_fit_diag_tut:



Full matrix generation diagonal matrix fit
##########################################

[Generated automatically as a Tutorial summary]

Inputs
******



Description
===========

:Name: gen_full_fit_diag

:Title: Full matrix generation diagonal matrix fit

:Author: Wright Dose Ltd

:Abstract: 

| One compartment model with absorption compartment and CL/V parametrisation.
| This script uses a full covariance matrix to generate the data, but a diagonal matrix to fit.

:Keywords: dep_one_cmp_cl; one compartment model; diagonal matrix; full matrix

:Input Script: :download:`gen_full_fit_diag_tut.pyml <gen_full_fit_diag_tut.pyml>`

:Diagram: 


.. thumbnail:: ./compartment_diagram.svg
    :width: 200px


True f[X] values
================

.. code-block:: pyml

    f[KA] = 0.3000
    f[CL] = 3.0000
    f[V] = 20.0000
    f[PNOISE_STD] = 0.1000
    f[ANOISE_STD] = 0.0500
    f[CL_isv,V_isv] = [
        [ 0.1500, 0.0500 ],
        [ 0.0500, 0.1500 ],
    ]



Starting f[X] values
====================

.. code-block:: pyml

    f[KA] = 0.3000
    f[CL] = 3.0000
    f[V] = 20.0000
    f[PNOISE_STD] = 0.1000
    f[ANOISE_STD] = 0.0500
    f[CL_isv,V_isv] = [
        [ 0.0100, 0.0000 ],
        [ 0.0000, 0.0100 ],
    ]



Outputs
*******



Generating and Fitting Summaries
================================

* Gen: :ref:`gen_full_fit_diag_gen` (gen)
* Fit: :ref:`gen_full_fit_diag_fit` (fit)

Fitted f[X] values
==================

.. code-block:: pyml

    f[KA] = 0.3000
    f[CL] = 3.0000
    f[V] = 20.0000
    f[PNOISE_STD] = 0.1000
    f[ANOISE_STD] = 0.0500
    f[CL_isv,V_isv] = [
        [ 0.1175, 0.0000 ],
        [ 0.0000, 0.1240 ],
    ]



Plots
*****



Dense comp plots
================



.. thumbnail:: images/comp_dense/000001.svg
    :width: 200px


.. thumbnail:: images/comp_dense/000002.svg
    :width: 200px


.. thumbnail:: images/comp_dense/000003.svg
    :width: 200px


Alternatively see :ref:`gen_full_fit_diag_dense_comp_plots`

Comparison
**********



True objective value
====================


.. code-block:: pyml

    -2209.4035



Final fitted objective value
============================


.. code-block:: pyml

    -2187.5407



Compare Main f[X]
=================


No Main f[X] values to compare.

Compare Noise f[X]
==================


No Noise f[X] values to compare.

Compare Variance f[X]
=====================



.. csv-table:: 
    :file: fx_comp_variance.csv
    :header-rows: 1
