Statisticians have long been separated into two camps as to how they philosophically interpret their trade. These schools of thought are usually called *Frequentists* and *Bayesians*.

Frequentists believe that a probability, , associated with a *specific* possible outcome of an observable occurrence or process, is simply telling you that, could you *observe* this occurrence (or process) infinitely many times, the fraction of such observations that would yield that *specific* outcome is . Using the age-old coin toss example: tossing the coin is the occurrence or process and recording a Heads or Tails are the two observation. The number 0.5 tells a Frequentist that, in the pursuit of infinitely many coin tosses, the ratio of Heads recorded to the number of tosses performed asymptotically approaches 0.5. And that’s all! The value should not be interpreted as the most likely outcome for the next observation or sample taken from the process (though I’ve always wondered how a Frequentist would gamble…). If taken to its logical extreme, the Frequentist interpretation effects how one should reason about probabilities, but such a discussion would be, aside from boring, beyond the scope of this article.

In admittedly subtle contrast, those of the Bayesian school of thought say *everything* has a probability of occurring. This is a direct conclusion from Bayes’ rule: to know how the probability of event is effected by event , you must also know the probability of events and .

Of course in reality, both Frequentists and Bayesians make use of Bayes’ Rule which is the only *correct* way to reason about conditional probabilities. Bayes Rule is

,

where is the conditional probability of given : i.e. the probability associated with given that exists or has occurred. Bayes’ Rule follows from a basic law of probability: since the probability of both and happening, must be the same whether we know that happened first or that happened first:

.

So why are *you* a Bayesian? Well suppose you are being accosted by a large, noisy, flying insect (this is a fairly realistic scenario here in Africa) and, to add some trauma, suppose it’s night time. How does your brain tell where the danger is coming from?

Your brain has two sources of information available to it: you can both hear the insect and, to some extent, see it. But which one does it trust? Vision? But it’s dark and you can hardly see! Hearing? But this is hardly precise… The answer is BOTH!

We can model this mathematically using Bayes’ rule. Suppose your eyes are telling you that the insect is at point , but you can’t be sure, so you say it’s at give or take . On the other hand, it sounds like the insect is at position , give or take .

Both the auditory and visual systems are giving your brain a *probability distribution* for where *that sensory system* detects the the insect is, given that there is an insect out there. In this case, let’s express these beliefs about where the insect is with Gaussian distributions^{1}, centred at the the best-guess values and each with their respective variances.

So the auditory system is giving you a distribution for where the source of the noise is, given that it’s actually at (which neither we, nor the insect, will ever truly know). Similarly, the visual system gives you a distribution over where the visually detected object is, given that it’s at .

Of course, your wily brain has every reason to believe these two ‘objects’ are in fact the same vicious winged buzzing beast! So assume . How do we now best infer what really is? Or rather, what’s our best guess for the insect’s location?

Figure 1 gives a schematic idea of what’s going on: given that there is a vicious killer insect in the world at ‘true’ position the signals from our auditory and visual systems give us uncertain information (i.e. distributions) about where point is. So we write:

(distribution of insect’s position from auditory cue),

(distribution of insect’s position from visual cue).

Where and are distributions over the position of the auditory and visual source locations respectively. Here, denotes a Gaussian distribution with mean and variance .

What’s our best guess for where the insect is? Bayes’ rule tells us:

Where we’ve assumed the independence of the auditory and visual cues^{2}. If we further assume that the *prior*, is Gaussian too (), we can compute this new distribution explicitly. Note we’re only interested in the factors with explicit dependence, hence we write:

Now, if we define , we can “complete the square” in to notice that . Now it makes sense to define so we can write

The reason we don’t care about the constant terms is the same reason we didn’t worry about the denominator of earlier: we’re interested in obtaining a *probability distribution* over , so any multiplicative constants are absorbed into the normaliser. More technically, a Gaussian distribution is fully defined by its sufficient statistics; the mean and variance, so that’s all we need.

So out estimate for the position of the dreaded insect is given by a Gaussian distribution with mean and variance .

It’s worth taking a moment to think about what these results are telling us. Consider the definition of : it’s really just a weighted sum of the expected position values obtained from audio and visual cues. In particular, if the audio cue was extremely uncertain (i.e. ) then . This agrees with our intuition, that when one cue is very uncertain, our best estimate is only dependent on the more precise of the two. Similarly, in the same limit, . Of course, if the audio signal was far more *accurate* () then we'd naturally ignore the uncertainty in the visual signal: .

So Bayesian inference is the natural way to integrate different beliefs (probabilities) about something, but what's that got to do with you? Well, there is a lot of experimental evidence that this exactly what your brain does! In particular, Bayesian models like the simple one above don't just tell us the best prediction given the information, but they tell us how *uncertain* we should be. Experimentalists have found that similar models correctly predict how often people get spatial location tasks right/wrong given the precision of the visual and tactile data they receive[1]! There are many other ways in which Bayesian inference appears in neural function, so I encourage the interested reader to follow the references below.

### References

1. Pouget, A. et al. *Probabilistic Brains: knowns and unknowns*, Nature Neuroscience vol. 16, no. 9 Sept. 2013.

2. Doyi, K. et al. *Bayesian Brains: Probabilistic Approaches to Neural Coding*, MIT Press 2007.

### Footnotes

1. In reality, these variable should be three dimensional, since your visual system locates points in three dimensions. For simplicity here, we’re sticking to one.

2. This is not a particularly realistic assumption, and much evidence indicates otherwise. But correlations can be taken into account in this framework.

## Leave a Reply