Probability
Probability
Out[2]: [3]
<NDArray 1 @cpu(0)>
Let's draw from it multiple times.
[3 4 5 3 5 3 5 2 3 3]
<NDArray 10 @cpu(0)>
[[2 2 1 5 0 5 1 2 2 4]
[4 3 2 3 2 5 5 0 2 0]
[3 0 2 4 5 4 0 5 5 5]
[2 4 4 2 3 4 4 0 4 3]
[3 0 3 5 4 3 0 2 2 1]]
<NDArray 5x10 @cpu(0)>
Let's see what happens for 1000 samples.
In [6]: counts
In [7]: x = nd.arange(1000).reshape((1,1000)) + 1
estimates = counts / x
print(estimates[:,0])
print(estimates[:,1])
print(estimates[:,100])
[0. 1. 0. 0. 0. 0.]
<NDArray 6 @cpu(0)>