I started with a uniform Prior of Beta [1,1] to model a probability Theta. P(Theta)
I used the Beta Binomial conjugacy approach, and got a posterior Beta [3,1]. P(Theta|X)
This is because ( I got 3 success in 3 trials).
Now I know I can visualize this Beta[3,1] as a PDF and draw information from it.(such as credible interval of Theta).
However, What I am interested in , is the Total Probability given the Theta.(Denominator of Bayes rule) . P(X)
I am not that good in integration. So is there some function in R, which will, calculate the Total Probability, using my new Posterior Beta prior. So that I can get a predictive interval.