Snacks keep going missing, and it’s always the dog or the cat. Before any clue, it was the dog with chance base_chance. Each clue alone (crumbs on the dog’s bed, a muddy paw print, cat hair on the plate), starting from that same base, would make it the dog with chance clue_chances[i]. The clues are independent: each one is separate evidence. Write combine(base_chance, clue_chances): the chance it was the dog given all the clues.
A snack went missing, and it was the dog or the cat: half the time it’s the dog. Each clue, on its own and from that same start, would make it 80% the dog. How likely was it the dog with both?
what should combine() say with both? that’s for you to work out
combine(base_chance, clue_chances)| base_chance | chance it was the dog before any clue | e.g. 0.5 |
| clue_chances | chance it was the dog with each clue alone (same base) | e.g. [0.8] |
| returns | the chance it was the dog with all the clues | |