Created
July 31, 2012 13:42
-
-
Save phobson/3217134 to your computer and use it in GitHub Desktop.
Test script to show probabilities on QQ plot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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