Probabilistic design of experimentsΒΆ

In this example we are going to expose the available probabilistic design of experiments generated according to a specified distribution and a specified number of points.

[1]:
from __future__ import print_function
import openturns as ot
import math as m
[2]:
# Create the target distribution
distribution = ot.Normal(2)
N = 300
[3]:
# 1. Monte Carlo
experiment = ot.MonteCarloExperiment(distribution, N)
sample = experiment.generate()
ot.Cloud(sample)
[3]:
../../_images/examples_reliability_sensitivity_probabilistic_design_4_0.svg
[4]:
# 2. LHS
experiment = ot.LHSExperiment(distribution, N)
sample = experiment.generate()
ot.Cloud(sample)
[4]:
../../_images/examples_reliability_sensitivity_probabilistic_design_5_0.svg