# What is the conceptual difference between causal inference and 'prediction'

Unifying brain theories of cortical function often describe the brain as a prediction machine, based on a generative model (given X, what's the probability of Y). In this context, from Bayesian perspective, our brain attempts to infer hidden causes about what is perceived through sensory organs (I see a ball about to hit me (X), who threw it (Y)).

A similar thought is presented in predictive coding, where the brain would 'predict' what will happen in the future, or what happened in the past. ('I see a ball about to hit me (X), I predict it was thrown by Y')

Intuitively (and colloquially speaking), predictions and causes are orthogonal to me - but in this context they seem remarkably equivalent. Are they different, and if so, how?

• I do like the first answer, but I think I would say causal inference is more specific to meta-cognition (i.e. reflection of an event) that is less associated from my understanding to automatic processes than prediction is. I would use the term prediction for an at least partially automatic process used to lessen the cognitive load, which may rely on past causal inference. Cognitive load being, if a situation looks familiar, it takes less attentional resources to process it. – M. Erickson May 9 at 1:05

Correct me if I'm wrong here, but after some more reading and thinking this is what I took away: both the term 'prediction' and 'cause' here refer to the maximum likelihood of a distribution ($$Y$$), meaning the probability of an event ($$X$$), given sensory data ($$Y_{1}$$) and the likelihood given prior data ($$Y_{2}$$) .

Even though maybe seemingly orthogonal to some (like me), the terms here would actually represent the same thing (i.e. no difference).

Please post a better answer if this is partially or completely incorrect =)

Causal inference is about making inferences about how causes lead to effects. If you have a generative model of the world, you have made some inferences about what will result from some set of conditions.

A prediction, on the other hand, is a guess you make about the state of the world given some conditions. If your generative model makes predictions that match what you actually observe, you have a good model. However, if you have some prediction error, you either need to update your estimate of the conditions (as part of a higher-order generative model), or you need to change your model parameters.

Let's say you have a room with a light switch and a red light. You notice when the switch is flipped, the red light comes on. Causal inference would lead you to think that the switch causes the light to come on, so in the future when you see the switch flipped you make a prediction that the red light comes on.

If you want you can think about this in terms of a statistical model of the form:

Y = β * X

where X is the state of the world, Y is your prediction, and β are the weights in your generative model. Causal inference would be choosing the weights β. Prediction would be obtaining Y given X. If we think about this as a logistic model predicting the probability of red light on (Y) given X (state of switch), our causal inference would lead us to set a very high value for β, which in turn would lead us to predict Y is "on" when X is "switch active".