I have seen the following for maximum likelihood estimation (MLE) for linear regression in multiple sources, e.g. here:
$$ \mathcal{D} \equiv \{(x_1, y_1), ..., (x_n, y_n)\} $$
I do not understand how exactly we derive this:
$$ p(\mathcal{D} | \theta) = \prod_{i=1}^n p(y_i | x_i, \theta) $$
I understand that we can write the product due to the assumtion of independent $y_i$. However, I do not understand why $x_i$ is suddenly on the right side. Shouldn't it be:
$$ p(\mathcal{D} | \theta) = \prod_{i=1}^n p(y_i , x_i | \theta) $$