Principle of AK methods ======================= The reliability problem to solve is: :math:`P_f = \mathbb{P}[g\left( \mathbf{X},\mathbf{d} \right) \leq T)]` :math:`\mathbf{X}` is the input random vector of dimension :math:`n`, :math:`f_\mathbf{X}(\mathbf{x})` its joint density probability function. :math:`\mathbf{d}` is a deterministic vector, :math:`g(\mathbf{X},\mathbf{d})` is the limit state function of the model. :math:`D_f = \{\mathbf{X} \in \mathbb{R}^n \, \vert \, g(\mathbf{X},\mathbf{d}) \leq T\}` is the domain definition of the event to consider (failure). :math:`g(\cdot) = 0` is called the limit state. The failure condition can also be :math:`g(\mathbf{X},\mathbf{d})\geq T`. The probability of failure can be defined as follows : :math:`P_f = \mathbb{P}[g(\mathbf{X},\mathbf{d})\leq T]= \int_{D_f} f_\mathbf{X}(\mathbf{x}) d\mathbf{x}` This probability can also be written as : :math:`P_f = \int_{\mathbb{R}^n} \mathbf{1}_{ \left\{ g(\mathbf{X},\mathbf{d}) \leq T \right\} }f_\mathbf{X}(\mathbf{x}) d\mathbf{x}` In case of rare event probability estimation, the surrogate model has to be accurate in the zones that are relevant to the failure probability estimation i.e. in the vicinity of failure threshold :math:`T` and in the high probability content regions. The use of the exact function :math:`g` and its surrogate :math:`\hat{g}` in the probability calculation will lead to the same result if :math:`\forall \mathbf{x} \in \mathbb{R}^d, \mathbf{1}_{g(\mathbf{x})