correlation_plot#
- normtest.filliben.correlation_plot(axes, x_data)[source]#
This function creates an axis with the Filliben test [1] correlation graph.
- Parameters:
- axesmatplotlib.axes.SubplotBase
The axis of the graph;
- x_datanumpy array
One dimension numpy array with at least
4observations.
- Returns:
- axesmatplotlib.axes.SubplotBase
The axis of the graph;
References
[1]FILLIBEN, J. J. The Probability Plot Correlation Coefficient Test for Normality. Technometrics, v. 17, n. 1, p. 111-117, 1975.
Examples
>>> from normtest import filliben >>> import matplotlib.pyplot as plt >>> import numpy as np >>> x_data = np.array([6, 1, -4, 8, -2, 5, 0]) >>> fig, ax = plt.subplots() >>> ax = filliben.correlation_plot(ax, x_data) >>> # plt.savefig("correlation_plot.png") >>> plt.show()