Problem: Consider a simple coin-flipping experiment in which we are given a pair of coins A and B of unknown biases, $\theta_{A}$ and $\theta_{B}$ respectively (that is, on any given flip, coin A will land on heads with probability $\theta_{A}$ and tails with probability $1-\theta_{A}$ and similar for coin B).
Repeating the following procedure five times: randomly choose one of the two coins, and perform 10 independent coin tosses with the selected coin. The probability of selecting coin A and coin B for each set is equal and this selection is made once per set of 10 tosses.
Suppose that we keep track of two vectors $x=(x_{1},x_{2},\ldots,x_{5})$ and $z=(z_{1},z_{2},\ldots,z_{5})$, where $x_{i}\in\{0,1,\ldots,10\}$ is the number of heads observed during the $i^{th}$ set of tosses, and $z_{i}\in\{A,B\}$ is the identity of the coin used during the $i^{th}$ set of tosses. Then the outcomes of 5 sets, can be represented by a vector $y=(y_{1},y_{2},y_{3},y_{4},y_{5})$. Each element in vector y, is denoted by $y_{i}=(x_{i},z_{i})$.
For example, $y_{3}=(x_{3}=8,z_{3}=A)$ means that there are 8 heads among 10 tosses for the 3rd set given coin A is chosen.
Let $f(y|\theta)$ denote the probability density function (PDF) that specifies the probability of observing data vector $y=(y_{1},y_{2},\ldots,y_{i},\ldots,y_{5})$ given the parameter $\theta=(\theta_{A},\theta_{B})$. If individual observation, $y_{i}$'s are statistically independent of one another, then according to the theory of probability, the PDF for the observation data $y=(y_{1},y_{2},\ldots,y_{i},\ldots,y_{5})$ given the parameter vector $\theta=(\theta_{A},\theta_{B})$ can be expressed as a multiplication of PDFs for individual observations
\begin{equation} \label{1} f(y=(y_{1},y_{2},\ldots,y_{i},\ldots,y_{5})|\theta)=f_{1}(y_{1}|\theta)f_{2}(y_{2}|\theta)\ldots f_{5}(y_{5}|\theta) \end{equation}
In a simplest case, there are only one observation and one parameter, that is, $y$ is a single element variable, and $\theta$ is a single element constant. Suppose that the single element independent variable y represents the number of heads observed in a single set of 10 Bernoulli trials(e.g. tossing a coin 10 times) and that the probability of a head on any one trial, represented by the single element parameter $\theta$; is 0.8. The PDF in this case is given by \begin{equation} f(y|n=10,\theta=0.8)=\frac{10!}{y!(10-y)!}(0.8)^{y}(0.2)^{10-y} \end{equation} where (y=0,1,...,10).
In the case I described at the beginning, there are 5 observations and two parameters, that is, the independent variable of y is a 5-element variable here $y=(y_{1},y_{2},\ldots,y_{i},\ldots,y_{5})$ and the parameter $\theta$ is a two element vector $\theta=(\theta_{A},\theta_{B})$ given that $\theta_{A}=0.8$, $\theta_{B}=0.45$.
Q: what is equation of PDF of $f(y=(y_{1},y_{2},\ldots,y_{i},\ldots,y_{5})| \theta=(\theta_{A}=0.8,\theta_{B}=0.45))$ here?
The reason I want to ask this question is to find out the maximum likelihood function since MLE is a inverse problem here.
Thanks