qis.plot_qq¶
- qis.plot_qq(df, colors=None, markers=None, legend_loc='upper left', var_format='{:.2f}', is_drop_na=True, fontsize=10, markersize=2, title=None, xlabel='Theoretical quantiles', ylabel='Empirical quantiles', desc_table_type=DescTableType.SHORT, legend_stats=LegendStats.NONE, x_limits=None, y_limits=None, ax=None, **kwargs)[source]¶
quantile-quantile plot of each column against the normal distribution.
The diagnostic for whether a return series is normal, and where it is not: points bending away from the reference line in the lower left are the left tail being fatter than normal, which is the usual finding and the reason the package reports skew and kurtosis alongside volatility.
Arguments shared with every
plot_*function are documented inqis/docs/plotting_kwargs.md.- Parameters:
df (DataFrame | Series) – returns, one column per series. A Series is plotted alone
is_drop_na (bool) – drop missing observations before ranking. False leaves them in and shifts the empirical quantiles, so leave this True unless the gaps are meaningful
desc_table_type (DescTableType) – descriptive statistics table drawn beside the plot; see
DescTableType. Observed infinity is rejected before drawing when this is enabledlegend_stats (LegendStats) – summary statistics appended to each legend entry
legend_loc (str)
var_format (str)
fontsize (int)
markersize (int)
title (str)
xlabel (str)
ylabel (str)
ax (Axes)
- Returns:
the figure drawn on
- Raises:
ValueError – If descriptive statistics are enabled and
dfcontains infinity.- Return type: