Normal fitting test using the Henry lineΒΆ

In this example we are going to perform a visual goodness-of-fit test for an univariate normal distribution.

In [14]:
from __future__ import print_function
import openturns as ot
In [15]:
# Create data
ot.RandomGenerator.SetSeed(0)
distribution = ot.Normal(2.0, 0.5)
sample = distribution.getSample(100)
In [16]:
# Draw Henry line plot
ot.VisualTest_DrawHenryLine(sample)
Out[16]:
../../_images/examples_data_analysis_henry_line_graph_4_0.svg