1 2 3 4 5 6 7 8 9 10 11 | import numpy as np import matplotlib.pyplot as plt m = 10; sigma = 2 x1 = np.random.randn(10000) x2 = m+sigma*np.random.randn(10000) plt.figure(figsize=(10,6)) plt.hist(x1, bins=20, alpha=0.4) # 20°³ÀÇ »óÀÚ¸¦ ÀÌ¿ëÇÏ¿© È÷½ºÅä±×·¥ °è»ê plt.hist(x2, bins=20, alpha=0.4) plt.show() | cs |