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 using the Henry line test, which is the QQ plot adapted for Gaussian distirbutions.

from __future__ import print_function
import openturns as ot
# Create data
distribution = ot.Normal(2.0, 0.5)
sample1 = distribution.getSample(100)
# Draw Henry line plot (good)
# Draw Henry line plot for a Beta (bad)
sample2 = ot.Beta(0.7, 0.9, 0.0, 2.0).getSample(100)