Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
3 ways to do test of normality with Scipy library in Python
import scipy.stats as stats
fig2 = plt.figure(figsize=(10, 5))
ax3 = fig2.add_subplot(1, 2, 1)
ax4 = fig2.add_subplot(1, 2, 2)
stats.probplot(a, dist='norm', plot=ax3)
stats.probplot(b, dist='norm', plot=ax4)
fig2.tight_layout()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment