--------------------------------------------------- lines 5-162 of file: xrst/table/data_sim_table.xrst --------------------------------------------------- {xrst_begin data_sim_table} Simulated Measurements and Adjusted Standard Deviations ####################################################### Discussion ********** The ``data_sim`` table is created during a :ref:`simulate_command-name` . It contains :ref:`simulate_command@number_simulate` sets of measurements where each set has one value for each entry in the :ref:`data_subset_table-name` . data_sim_id *********** This column has type ``integer`` and is the primary key for this table. Its initial value is zero, and it increments by one for each row. Given the :ref:`model_variables-name` as specified by :ref:`truth_var_table-name` , the measurement uncertainty is independent for each row and has standard deviation :ref:`data_table@meas_std` . simulate_index ************** The column has type ``integer`` . It specifies the index for this simulated measurement set. This index starts at zero, repeats as the same for the entire subset of *data_id* values, and then increments by one between measurement sets. The final (maximum) value for *simulate_index* is :ref:`simulate_command@number_simulate` minus one. data_subset_id ************** This column has type ``integer`` and is the primary key for the :ref:`data_subset_table-name` . This identifies which :ref:`data_subset_table@data_id` each row of the data_sim table corresponds to. If *n_subset* is the number of rows in the data_subset table, *data_sim_id* = *simulate_index* * *n_subset* + *data_subset_id* for *simulate_index* equal zero to *number_simulate* ``-1`` and *data_subset_id* equal zero to ``n_subset`` *-1* . data_sim_value ************** This column has type ``real`` and is the simulated measurement value that for the specified row of the data table; see :ref:`data_sim_table@Method@z` in the method below. If the density for this *data_id* is censored (not censored) *data_sim_value* has value ``max`` ( *z* , 0) , ( *z* ). Method ****** data_id ======= We use *data_id* to denote the :ref:`data_subset_table@data_id` corresponding to the *data_subset_id* corresponding to this *data_sim_id* . y = We use :math:`y` to denote the data table :ref:`data_table@meas_value` corresponding to this *data_id* . Capital Delta ============= We use :math:`\Delta` to denote the :ref:`minimum cv standard deviation` corresponding to the data table and this *data_id* . d = We use :math:`d` to denote the :ref:`data_table@density_id` corresponding to the data table and this *data_id* . eta === We use :math:`\eta` to denote the :ref:`data_table@eta` corresponding to the data table and this *data_id* . A = We use :math:`A` denote the :ref:`average integrand` corresponding to the truth_var table value for the model variables, the values in the data table, and this *data_id* . Capital E ========= We use :math:`E` for the :ref:`average noise effect` corresponding to the truth_var table value for the model variables, the values in the data table, and this *data_id* . sigma ===== We use :math:`\sigma` to denote the adjusted standard deviation :ref:`sigma` corresponding to the data table and this *data_id* . Note that :math:`\sigma` does not depend on simulated noise :math:`e` defined below (because it is defined using :math:`y` instead of :math:`z`). delta ===== We use :math:`\delta` to denote the transformed standard deviation :ref:`delta` corresponding to the truth_var table value for the model variables, the values in the data table, and this *data_id* . Note that :math:`\delta` does not depend on simulated noise :math:`e` defined below. e = We use :math:`e` to denote the noise simulated with mean zero, standard deviation :math:`\delta`, and density corresponding to this *data_id* without log qualification. For example, if the data density for this *data_id* is ``log_gaussian`` , the :math:`e` is simulate using a Gaussian distribution. z = We use :math:`z` to denote the simulated data value *data_sim_value* corresponding to this *data_sim_id* . It the density is :ref:`density_table@Notation@Linear` , .. math:: z = A + e It the density is :ref:`density_table@Notation@Log Scaled` , .. math:: :nowrap: \begin{eqnarray} e & = & \log( z + \eta ) - \log( A + \eta ) \\ \exp (e) & = & ( z + \eta ) / ( A + \eta ) \\ z & = & \exp(e) ( A + \eta ) - \eta \end{eqnarray} Example ******* See the :ref:`user_data_sim.py-name` and :ref:`simulate_command.py-name` examples / tests. {xrst_end data_sim_table}