Neural Coding · Lesson 1 of 3 · ~6 min

The tuning curve

Predict

A neuron in visual cortex watches a bar tilted at angle $\theta$. Its favorite tilt is $90$ deg. For which tilts does it fire?

Drag stimulus angle across its range and watch the marker ride the curve.
Try
Try itDrag stimulus angle from $45$ to $90$, then on to $150$. Watch the rate stat and the spike row.
Notice

At $\theta = 45$ the rate reads $12.99$ Hz. It climbs through $24.26$ Hz at $60$ to $40.00$ Hz at $90$. Then it falls: $24.26$ Hz again at $120$, $5.41$ Hz at $150$.

Explain

The instrument draws one function, the neuron's tuning curve:

$$r(\theta) = 40\, e^{-(\theta - 90)^2 / (2 \cdot 30^2)} \ \text{Hz}$$

It's a Gaussian bump: preferred angle $90$ deg, width $\sigma = 30$ deg, peak $40$ Hz. Check $\theta = 45$: $40\,e^{-(45-90)^2/1800} = 40\,e^{-1.125} = 12.99$ Hz, the readout. So the neuron is a graded dial, not a $90$-degree detector.

The curve is symmetric, so $24.26$ Hz could mean $60$ or $120$ deg. One neuron's rate can't tell which. Lesson 2 gets the angle back.

About this model

What it represents: the trial-averaged firing rate of an orientation-tuned visual neuron as a smooth Gaussian function of stimulus angle — the standard first picture of how a sensory neuron encodes a stimulus variable. The live spike row plays out that rate as a stream of spikes.

What it leaves out: adaptation — a real neuron's rate sags under a held stimulus; contrast dependence — the curve's height scales with stimulus strength rather than sitting fixed at $40$ Hz; and noise structure — real responses vary from trial to trial in ways this clean curve hides, which lesson 3 confronts directly.

Source: Gerstner, Kistler, Naud and Paninski, Neuronal Dynamics, Ch. 1.5 (EPFL, free online) — rate codes and tuning curves, including the variability this lesson postpones.

Apply
Checkpoint — prove it to yourself

In $r(\theta) = 40\,e^{-(\theta-90)^2/(2\cdot 30^2)}$, what does the $30$ control?

Without touching the slider: what should the instrument read at $\theta = 120$?

Transfer: you are told only that this neuron fired at $24.26$ Hz. What can you conclude about the bar?

Key idea

A tuning curve turns an angle into a rate, smoothly and broadly. One neuron's rate narrows the angle to two candidates, no further.

← All lessons