pastas.rfunc.HantushWellModel.variance_gain#

static HantushWellModel.variance_gain(A, b, var_A, var_b, cov_Ab, r=1.0)[source]#

Calculate variance of the gain from parameters A and b.

Variance of the gain is calculated based on propagation of uncertainty using optimal values, the variances of A and b and the covariance between A and b.

Notes

Estimated variance can be biased for non-linear functions as it uses truncated series expansion.

Parameters
  • A (float) – optimal value of parameter A, (e.g. ml.parameters.optimal).

  • b (float) – optimal value of parameter b, (e.g. ml.parameters.optimal).

  • var_A (float) – variance of parameter A, can be obtained from the diagonal of the covariance matrix (e.g. ml.fit.pcov).

  • var_b (float) – variance of parameter A, can be obtained from the diagonal of the covariance matrix (e.g. ml.fit.pcov).

  • cov_Ab (float) – covariance between A and b, can be obtained from the covariance matrix ( e.g. ml.fit.pcov).

  • r (float or array_like, optional) – distance(s) between observation well and stress(es), default value is 1.0.

Returns

var_gain – variance of the gain calculated based on propagation of uncertainty of parameters A and b.

Return type

float or array_like

See also

ps.WellModel.variance_gain