# Residuals

Most of the discussion in these pages is about what could be done with a fixed store of sensory+motivational contexts ([math]\mathbf{W}[/math]). In that case, what matters is that the current context, [math]\vec{r}[/math], identifies a unique 'recognised context', [math]\mathbf{W(k,:)}[/math]. Of course, the current context, will never be quite the same as the stored context; the difference, or residual, is important for learning and memory.

If a person carries out a familiar task, like walking to work, the current context will pass through a set of established Voronoi cells. If they get to work and remember something particular about that journey, they must have generated new Voronoi cells, as the figure illustrates. It is well established in neuroscience that contexts can trigger actions (e.g. heat leading to a withdrawal response, or mechanical resistance triggering a stretch reflex in the spinal cord) but then the signal of mismatch or error is passed up the chain (e.g. to the cerebellum^{[1]}) leading to an adjustment of the programming of subsequent movements, i.e. learning.

## References

- ↑ Ito, M. (2013). Error detection and representation in the olivo-cerebellar system. Frontiers in Neural Circuits, 7, 1. http://doi.org/10.3389/fncir.2013.00001