官术网_书友最值得收藏!

Uniform distribution

This very common distribution is the first continuous distribution that we will see. As the name implies, it has a constant probability value for any interval of the domain.

In order to integrate to 1, a and b being the extreme of the function, this probability has the value of 1/(b-a).

Let's generate a plot with a sample uniform distribution using a very regular histogram, as generated by the following code:

    plt.figure() 
uniform_low=0.25
uniform_high=0.8

plt.hist(uniform, 50, normed=1)
plt.show()

Take look at the following graph:

Uniform distribution
主站蜘蛛池模板: 鹿邑县| 柳林县| 文山县| 兴义市| 镇康县| 香格里拉县| 昌邑市| 旬阳县| 昌吉市| 东港市| 舞阳县| 双流县| 山东省| 孝昌县| 白玉县| 吉首市| 铁力市| 舒兰市| 哈巴河县| 南宫市| 会泽县| 乐安县| 彰化市| 宜州市| 南汇区| 阿坝| 周至县| 新干县| 肥乡县| 东台市| 全州县| 海原县| 天台县| 泸定县| 仲巴县| 绥棱县| 东兰县| 高台县| 句容市| 玉山县| 茌平县|