This is related to an earlier self-study question of mine. The setup is that there are $N$ individuals, indexed by $i$, and two time periods. Individuals choose whether to "invent" something in the second period (we assume that everyone invents in the first period) depending on whether their invention was successful in the first period.
Now for the math. Each individual has some "ability" parameter $p$ drawn from a beta distribution $B(a, b)$ and this ability parameter determines the success of their invention in the first period and thus whether they invent in the second period (based on updating their prior). $d_{i2}$ is the decision in the second period (1 is invent, 0 is to work and get the outside option $w$) and $x_{i1} = 1$ indicates success in the first period, 0 for failure.
From updating the conjugate prior I get that
$$ P(d_{i2} = 1) = P \left(\frac{a + x_{i1}}{a+b+1} \geq w \right) $$
Here is where I got stuck. From the algebra I get $$ P(d_{i2} = 1) = P \left( x_{i1} \geq w(a+b+1) - b \right) $$
To get the likelihood function, I need the CDF of $x_{i1}$ but I can't figure it out. I know $$ x_{i1} = \begin{cases} 1 & \text{if } p_i > U[0,1] \\ 0 & \text{if } p_i \leq U[0,1] \end{cases} $$
But how do I translate this into a likelihood function?
The goal is to estimate the parameters $a$ and $b$ of the beta distribution using maximum likelihood, but all I observe in the dataset is the set of $d_{i2}$ (the set of $N$ decisions of whether individuals chose to invent in the second period).