I had this question on using Bayesian analysis for situations where we believe there is measurement error (i.e. $x$ is not error-free). This goes against the traditional Frequentist and Bayesian estimation frameworks in which we believe that the distribution of $x$ is not important.
I collect some data ($x,y$) in which I believe that its possible if I had collected the data under similar circumstances, $x$ might have been different.
More formally, for observation $i = 1,...,n$, we observe pairs $(\tilde{\mathbf{x}}_i, y_i)$ where $\tilde{\mathbf{x}}_i$ represents our observed covariates. I am willing to make the assumptions that the true covariates $\mathbf{x}_i$ are normally distributed centered around the observed value and some "prior" variance I decide called $\tau$. In effect, (unlike the traditional Bayesian setting) we are placing priors on the variables themselves and not the parameters:
$$ \begin{align} y_i &= \mathbf{x}_i^\top\boldsymbol{\beta} + \epsilon_i, \quad \epsilon_i \sim N(0, \sigma^2) \\ x_{ij} &\sim N(\tilde{x}_{ij}, \tau^2_j), \quad j = 1,...,p \end{align} $$
- $\tilde{x}_{ij}$ is the observed value for covariate $j$ in observation $i$
- $x_{ij}$ is the true (unobserved) value
- $\tau^2_j$ represents our uncertainty about covariate $j$
- $\boldsymbol{\beta}$ are fixed regression parameters
Using the laws of probability, the likelihood function would be (i.e. $y$ depends on $x$, and $x$ depends on some probability distribution):
$$ \begin{align} L(\boldsymbol{\beta}, \sigma^2, \{\tau^2_j\}|\mathbf{y}, \tilde{\mathbf{X}}) &= \prod_{i=1}^n \int p(y_i|\mathbf{x}_i,\boldsymbol{\beta},\sigma^2) \prod_{j=1}^p p(x_{ij}|\tilde{x}_{ij},\tau^2_j) d\mathbf{x}_i \\ &= \prod_{i=1}^n \int \frac{1}{\sqrt{2\pi\sigma^2}}\exp\left(-\frac{(y_i - \mathbf{x}_i^\top\boldsymbol{\beta})^2}{2\sigma^2}\right) \\ &\quad \times \prod_{j=1}^p \frac{1}{\sqrt{2\pi\tau^2_j}}\exp\left(-\frac{(x_{ij} - \tilde{x}_{ij})^2}{2\tau^2_j}\right) d\mathbf{x}_i \end{align} $$
I see that this model might be subject to identifiability problems (i.e. impossible to tell how much much of the variance is contributed from random error vs measurement error, different combinations of parameter estimates can result in similar values of the likelihood).
To remedy this problem, I thought that the easiest thing to do would be to add a constraint:
$$ \tau^2_j \leq k_j\sigma^2 \quad \text{for all } j=1,...,p $$
Optimizing the likelihood then becomes:
$$ \begin{align} \max_{\boldsymbol{\beta}, \sigma^2, \{\tau^2_j\}} &\sum_{i=1}^n \log \int p(y_i|\mathbf{x}_i,\boldsymbol{\beta},\sigma^2) \prod_{j=1}^p p(x_{ij}|\tilde{x}_{ij},\tau^2_j) d\mathbf{x}_i \\ \text{subject to: } & \tau^2_j \leq k_j\sigma^2 \quad \text{for all } j=1,...,p \\ & \sigma^2 > 0 \\ & \tau^2_j > 0 \quad \text{for all } j=1,...,p \end{align} $$
Is this a reasonable approach to dealing with measurement error? Can we place (Bayesian) priors on variables instead of parameters in an effort to counter against measurement error problems? (Note: in this model, there will be no Posterior Distributions)