First page Back Continue Last page Overview Image

Gauß und Poisson

Zufallszahl aus einer Gaußverteilung mit μ = 1.8 und einer Standardabweichung von 3.0:

>>> np.random.normal(1.8,3.0)

-0.16612363511229078

>>> np.random.normal(1.8,3.0)

5.0289376864903925

>>> np.random.normal(1.8,3.0)

1.0003403329041398

Eine Zufallszahl aus einer Poisson-Verteilung mit λ = 4.0:

>>> np.random.poisson(4.0)

1

>>> np.random.poisson(4.0)

3

>>> np.random.poisson(4.0)

2