Here is the probability density function for heads plotted for each of your coins.
python code
import numpy as npl=np.linspace(0,1,32)def f(a): a=np.array([a,1-a]) b=a for i in range(199): b=np.convolve(b,a) return b
q=np.arange(201)import matplotlib.pyplot as pltff=[f(i) for i in l]plt.plot(ff);plt.show()
for i in ff: _=plt.plot(q,i)
plt.show()plt.xlabel(“heads”)Text(0.5, 0, ‘heads’)plt.ylabel(“prob”)Text(0, 0.5, ‘prob’)for i in ff: _=plt.plot(q,i)
plt.show()
Here is the probability density function for heads plotted for each of your coins.
python code
import numpy as np
l=np.linspace(0,1,32)
def f(a):
a=np.array([a,1-a])
b=a
for i in range(199):
b=np.convolve(b,a)
return b
q=np.arange(201)
import matplotlib.pyplot as plt
ff=[f(i) for i in l]
plt.plot(ff);plt.show()
for i in ff:
_=plt.plot(q,i)
plt.show()
plt.xlabel(“heads”)
Text(0.5, 0, ‘heads’)
plt.ylabel(“prob”)
Text(0, 0.5, ‘prob’)
for i in ff:
_=plt.plot(q,i)
plt.show()