qqplot of the quantiles of x versus the ppf of a distribution.
Parameters: | data : array-like
dist : scipy.stats.distribution or string
|
---|---|
Returns: | matplotlib figure. : |
Notes
Only the default arguments currently work. Depends on matplotlib.
Examples
>>> import scikits.statsmodels as sm
>>> from matplotlib import pyplot as plt
>>> data = sm.datasets.longley.Load()
>>> data.exog = sm.add_constant(data.exog)
>>> mod_fit = sm.OLS(data.endog, data.exog).fit()
>>> res = mod_fit.resid
>>> std_res = (res - res.mean())/res.std()
Import qqplots from the sandbox
>>> from scikits.statsmodels.sandbox.graphics import qqplot
>>> qqplot(std_res)
>>> plt.show()