Use a randomized QMC algorithmΒΆ

In this example we are going to estimate a failure probability on the stressed beam.

from openturns.usecases import stressed_beam
import openturns as ot

We load the data class containing the probabilistic modeling of the beam.

We load the joint probability distribution of the input parameters :

We load the model as well,

We create the event whose probability we want to estimate.

Define the low discrepancy sequence.

Create a simulation algorithm.

Retrieve results.

result = algo.getResult()
probability = result.getProbabilityEstimate()
print("Pf=", probability)
Pf= 0.02970000000000001