CovariatedPrediction¶
Description¶
CovariatedPrediction class contains three distinct trasformations used to calculate the compound prediction and the full covariance matrix for it. The trasformations are the following:
Prediction transformation calculates the concatenated prediction based on several input predictions.
Covbase transformation calculates the predefined part of the block covariance matrix based on input covaraince matrices given as is.
Cov transformation calculates the extra systematic part of the covariance matrix based on the known parameters uncertainties.
The result is not the covariance matrix
Prediction transformation¶
Description¶
Calculate compound prediction vector
Inputs¶
Input vector
.Optional input vector
.etc.
Vectors append(obs)
method.
Outputs¶
'prediction.prediction'
— Prediction vector .
Implementation¶
Calculates
Covbase transformation¶
Description¶
Calculate compound covariance matrix based on statistical uncertainties (diagonal)
, optional covariation matrices for each prediction
This is the constant predefined covariance matrix part: the base.
Inputs¶
Covariance matrix. Options:
covariance matrix
for model .cross covariance matrix
for models .
etc.
Inputs are assigned via covariate(cov, obs1, n1, obs2, n2)
method.
Outputs¶
'covbase.covbase'
— basic covariance matrix with optional pull-terms.
Implementation¶
Calculates
Returns constructed covariance matrix.
.. Returns the Cholesky decomposition
Cov transformation¶
Description¶
- Calculate the final covariance matrix based on:
predefined covariance base.
extra (optional) systematical part based on the variation of the prediction
due to variation of the systematical parameters .
Inputs¶
'cov.covbase'
— Base covariance matrix .Optional systematical covariance matrix due to propagation of uncertain parameters.
See Jacobian
, ParMatrix
and MatrixProduct
transformations. Parameters
Outputs¶
'cov.L'
— full covariance matrix Cholesky decomposition : .
IMPORTANT: Be sure to use
Implementation¶
Calculates covariance matrix
where
Considering prediction column of size
Then the Cholesky decomposition is applied to the full covaraince matrix
Returns the Cholesky decomposition