Outliergram#
- class skfda.exploratory.visualization.Outliergram(fdata, chart=None, *, fig=None, axes=None, factor=1.5)[source]#
Outliergram method of visualization.
Plots the
Modified Band Depth (MBD)
on the Y axis and theModified Epigraph Index (MEI)
on the X axis. These points will create the form of a parabola. The shape outliers will be the points that appear far from this curve.- Parameters:
fdata (FDataGrid) – functional data set that we want to examine.
chart (Figure | Axes | None) – figure over with the graphs are plotted or axis over where the graphs are plotted. If None and ax is also None, the figure is initialized.
fig (Figure | None) – figure over with the graphs are plotted in case ax is not specified. If None and ax is also None, the figure is initialized.
axes (Axes | None) – axis where the graphs are plotted. If None, see param fig.
n_rows – designates the number of rows of the figure to plot the different dimensions of the image. Only specified if fig and ax are None.
n_cols – designates the number of columns of the figure to plot the different dimensions of the image. Only specified if fig and ax are None.
factor (float) –
- Attributes:
mbd – result of the calculation of the Modified Band Depth on our dataset. Represents the mean time a curve stays between other pair of curves, being a good measure of centrality.
mei – result of the calculation of the Modified Epigraph Index on our dataset. Represents the mean time a curve stays below other curve.
References
López-Pintado S., Romo J.. (2011). A half-region depth for functional data, Computational Statistics & Data Analysis, volume 55 (page 1679-1695). Arribas-Gil A., Romo J.. Shape outlier detection and visualization for functional data: the outliergram https://academic.oup.com/biostatistics/article/15/4/603/266279
Methods
hover
(event)Activate the annotation when hovering a point.
plot
()Plot the object and its data.
- hover(event)[source]#
Activate the annotation when hovering a point.
Callback method that activates the annotation when hovering a specific point in a graph. The annotation is a description of the point containing its coordinates.
- Parameters:
event (MouseEvent) – event object containing the artist of the point hovered.
- Return type:
None