Just download infer.net and tested it by using the coin example from the pdc2009 video. It tested for 2 heads and I got the right answer. I would like to learn the use of infer.net but it appears you need some good probability backing so as to do something
useful with it. I will like to learn with 2 examples. If someone can help me with the code for those 2, it will serve as a good place for me to start learning.
1. Given a bag of 3 coins, 1 loaded (0.9H, 0.1T) and 2 normal(0.5H|T), if I pick a coin at random (1/3 chance of picking each coin), toss it and observe HHHTH, what is the probability that I picked the loaded coin.
2. Given a bag of 3 dice, 1 loaded (0.5(One), 0.1(Two-Six)) and 2 normal (1/6 of each value), if I pick a coin at random (1/3 chance of picking each coin), roll it and observer 1-1-1-5-1, what is the probability that I picked the loaded die?
PS: The 2nd question is the same as the 1st except with dice so I can see how the code changes if it is not just true/false.