Visualize empirical CDFΒΆ

In this example we are going to draw the empirical CDF of an unidimensional sample.

[4]:
from __future__ import print_function
import openturns as ot
[5]:
# Create data to visualize
size = 100
normal = ot.Normal(1)
sample = normal.getSample(size)
[6]:
# Draw empirial CDF
xmin = sample.getMin()[0] - 1.0
xmax = sample.getMax()[0] + 1.0
ot.UserDefined(sample).drawCDF(xmin, xmax)
[6]:
../../_images/examples_data_analysis_visualize_empirical_cdf_4_0.svg