I know that in bayesian linear regression, the weights are treated as random variables along with targets. However, input features are treated as deterministic values. But in my case, the input features are also random. However, I do know the probability density function of the input features(and let's say they are gaussian with some known mean and variance for simplicity). My goal is to compute the posterior distribution of weights and more importantly the predictive distribution of the targets for a new test input (which accounts for uncertainty not in just weights and intrinsic noise in training data targets but also the input features).

Additional info: The stochastic input features are actually predictions(with a certain distribution) themselves of a certain quantity that'll help in predicting the target variable. We do observe the inputs in our case but they won't be available in real-time when making predictions of target variable, so we have to rely on the predictions of input features. And to make matters worse, those input feature predictions come from a 3rd party outside our organization.

PGM view:

Below is the probabilistic graphical view of bayesian linear regression where inputs are treated as deterministic values (diagram taken from prml bishop fig 8.7), enter image description here

\begin{equation} x \text{, the input feature in small circle indicating deterministic value treatment} \end{equation} only difference in my case is \begin{equation} x \text{, should also be in bigger empty circle indicating randomness and latent/unobserved like } w \end{equation}

  • $\begingroup$ What do you mean by "input features are random"? You are given something like mean and sd for them? $\endgroup$
    – Tim
    Jun 4, 2020 at 8:56
  • $\begingroup$ yes exactly. They are given by a 3rd party. $\endgroup$
    – rteja1113
    Jun 4, 2020 at 16:50
  • $\begingroup$ After a little exploration, I found something that's close to what I need namely, EIV(error in variable) regression. However, it's not a bayesian linear regression. The weights are assumed to be deterministic in that approach. $\endgroup$
    – rteja1113
    Jun 19, 2020 at 8:18

1 Answer 1


It has been quite a while since this question has been asked, but in any case, I guess this question refers to measurement error, and indeed there are some models to take that into account, see for example this model on the STAN documentation.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.