Create a Monte Carlo design of experimentsΒΆ

In this basic example we are going to create a MonteCarlo probabilistic design experiment.

In [9]:
from __future__ import print_function
import openturns as ot
In [10]:
# Define underlying distribution, size
distribution = ot.Normal(2)
size = 50
In [11]:
# Create the design
myPlane = ot.MonteCarloExperiment(distribution, size)
sample = myPlane.generate()
In [12]:
# Plot the design
graph = ot.Graph("MC design", "x1", "x2", True, "")
cloud = ot.Cloud(sample, "blue", "fsquare", "")
graph.add(cloud)
graph
Out[12]:
../../_images/examples_uncertainty_quantification_monte_carlo_experiment_5_0.svg