I'm reading a paper, and it has a very simply generative model, which is represented by this .
They calculate the posterior P(A|X) in a way I don't understand, though. It doesn't look like a reformulation of Bayes rule, but maybe I'm wrong. I'm a probability noob so I could be. . They are marginilizing over W, but I don't understand how this produces the posterior. How did they derive this formula? How does it work?
Likewise, they then calculate the posterior P(W|X) . This look similar but identical, because they're now marginalizing over A, including p(A), whereas before when marginalizing over W, there was no p(W) involved. Is this the same method?
I've studied up on marginalization and I can't put the pieces together. Likewise, I'm familiar with Bayes rule, but I can't see how it's utilised here. Can anyone help me out with an explanation?