Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib as plot
- import seaborn as sns
- x1 = np.array([0.0, 0.0, 0.0, 0.0, 0.5, -0.12500000000000003, 0.0, -0.4, 0.0, 0.25])
- ## Simple histogram, weighted to reveal probabilities
- plt.hist(x1, weights=np.ones(len(x1))/len(x1));
- ## Histogram + kde, but clearly something has gone wrong
- sns.distplot(x1, hist=True, kde=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement