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

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
主站蜘蛛池模板: 陆丰市| 汶川县| 凉山| 格尔木市| 衡山县| 东乡县| 满城县| 龙川县| 军事| 瓮安县| 温州市| 沁阳市| 黔南| 鸡西市| 贵德县| 巴东县| 三穗县| 巍山| 普陀区| 商水县| 来宾市| 柳河县| 阳东县| 新晃| 南川市| 永昌县| 湟中县| 澜沧| 大理市| 凭祥市| 宜昌市| 塔河县| 敖汉旗| 辽宁省| 大冶市| 土默特左旗| 桑植县| 玉山县| 湾仔区| 和硕县| 双流县|