Skip to content

Instantly share code, notes, and snippets.

@phobson
Created July 31, 2012 13:42
Show Gist options
  • Save phobson/3217134 to your computer and use it in GitHub Desktop.
Save phobson/3217134 to your computer and use it in GitHub Desktop.
Test script to show probabilities on QQ plot
import numpy as np
import statsmodels.api as sm
import matplotlib.pyplot as plt
x = np.random.normal(4.0, 1.75, size=37)
fig, (ax1, ax2) = plt.subplots(nrows=2)
sm.qqplot(x, prob=False, ax=ax1)
sm.qqplot(x, prob=True, ax=ax2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment