Conditional Probability
- Conditional probability of given , denoted by
- If and are independent events
- Example Considering a gamer who rolls the dice twice without showing us the result. Event is the sum being greater or equal to 10, can be denoted by ; Let be the event that the sum is even.
The Law of Total Probability
- This is useful when there exists some partition of , namely, . A partition of a set is a collection of non-empty sets that are mutally disjoint and whose union is . Such a partition allows us to represent as a diajoint union of the sets , thus we have the law of total probability
- Example
- Considering the world of semi-conductor manufacturing. Room cleaness in the manufacturing process is critical, and dust particles are kept to a minimum. Let be the event of a manufacturing failure, and assume that it dependents on the number of dust particles via
- Where is the event of having dust particles in the room, further assume that
- is Riemann Zeta Funciton
- Approximate by Julia
using SpecialFunctions
n = 2000
probAgivenB(k) = 1 - 1/(k+1)
probB(k) = 6/(pi^2*(k+1)^2)
numerical = sum([probAgivenB(k)*probB(k) for k in 1:n])
analytic = 1-6/pi^2*zeta(3)
println("Analytic: ", analytic, "\tNumerical: ", numerical)