Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python plot n numbers from normal distribution

import numpy as np
import matplotlib.pyplot as plt

def get_normal(n):
  mu,sigma = 10,1
  s = np.random.normal(mu, sigma, n)
  plt.hist(s, density=True)
  plt.show()

get_normal(100)
 
PREVIOUS NEXT
Tagged: #python #plot #numbers #normal #distribution
ADD COMMENT
Topic
Name
4+7 =