np.random.randn
np.random.normal
>>> import numpy as np
>>> np.random.normal(size=(3,4))
array([[-0.80403424, -2.26403495, 1.39152869, -0.90893755],
[-0.2589969 , -1.31959684, 1.09861245, -0.53453221],
[ 1.66536752, -0.78309767, 1.38870488, 1.0001 ]])
>>> np.random.randn(3,4)
array([[-0.28923004, 0.14990385, -0.22618601, -0.18700602],
[ 0.39336849, -0.14007346, -0.15958946, -0.60184563],
[ 1.68451529, 0.04972581, 0.50062887, 0.61770662]])
randn是normal的一个特殊情况 μ=0, σ=1。均值为0,方差为1。
normal可以指定这两个参数。高斯分布,拉普拉斯分布,t分布都是用来描述样本特性的,这个你得自己补充知识了。