Normalize Distribution

x1, x2, x3, x4, x5
0.04, 0.12, 0.12, 0.04, 0.04 Σ=0.36
1/9, 1/3, 1/3, 1/9, 1/9 Σ=1
p(xi|Z)

sum of probability

p=[0.2,0.2,0.2,0.2]
pHit = 0.6
pMiss = 0.2

p[0]=p[0]*pMiss
p[1]=p[1]*pHit
p[2]=p[2]*pHit
p[3]=p[3]*pMiss
p[4]=p[4]*pMiss

print p
print sum(p)