01The unit: a dot product, a shift, a squash
A neuron takes a vector of inputs, multiplies each by a learned weight, sums them, adds a learned bias, and passes the result through a non-linear activation function. Two lines of maths that you should be able to write from memory.
For the house: area 120 m², age 8 years, distance 600 m. Weights of +2400, −1500 and −3 respectively say 'each extra square metre adds £2,400; each year of age costs £1,500; each metre from the station costs £3'. That is what a weight is — a learned sensitivity, the partial derivative of the output with respect to one input.
The bias is the intercept: the output when every input is zero. Drop it and you force every decision boundary through the origin, which is a real and unnecessary constraint. It costs one parameter per neuron and it is almost never worth removing.
z = w·x + b = Σᵢ wᵢxᵢ + b
The pre-activation. A dot product plus a shift — one multiply-accumulate per input.
a = σ(z)
The activation. Without a non-linear σ here, depth buys you nothing at all.
Try it
One neuron, three inputs
Move the weights and watch w·x + b add up. Then let gradient descent set them for you.