【发布时间】:2018-10-28 07:14:33
【问题描述】:
我有一个随机整数数组,我计算了mean 和std 的标准偏差。接下来我在这个(平均值,标准)的正态分布内有一个随机数数组。
我现在想使用 matplotlib 绘制正态分布数组的散点图。你能帮忙吗?
代码:
random_array_a = np.random.randint(2,15,size=75) #random array from [2,15)
mean = np.mean(random_array_a)
std = np.std(random_array_a)
sample_norm_distrib = np.random.normal(mean,std,75)
散点图需要x轴和y轴...但是应该是什么?
【问题讨论】:
-
很难知道,你要求什么,当你不知道,它是什么。也许你的任务是关于Normal Probability Plot?
标签: python numpy matplotlib data-science scatter-plot