If you have read about ReLU, sigmoid or softmax without ever being told what a neural network actually is, this page fixes that. It assumes you know what a machine learning model is and have met linear regression. Nothing else.
Start with one neuron
A single neuron is barely more complicated than linear regression. It takes some inputs, weights them, adds a bias, and applies one more function:
$$\text{output} = f(w_1x_1 + w_2x_2 + \dots + w_nx_n + b)$$
The weighted sum inside is a dot product between the input vector and the weight vector. If that phrase means something to you, you already understand most of the arithmetic in deep learning.
Why a neural network needs the activation function
This is the part that is usually skipped, and it is the reason the whole field works.
Suppose you removed the activation functions and stacked three layers of pure weighted sums. Layer one computes a linear function of the input. Layer two computes a linear function of that — but a linear function of a linear function is just another linear function. So does layer three.
⚠️ Without activation functions, depth is worthless
Neurons become layers, layers become a network
One neuron is not much use. Put several side by side, each with its own weights, and you have a layer. Feed one layer’s outputs into the next and you have a neural network.

The diagram above has 3 inputs, 4 hidden neurons and 2 outputs. Count the connections: 3 × 4 = 12 into the hidden layer, plus 4 × 2 = 8 into the output layer, giving 20 weights, plus 6 biases. Every one of those 26 numbers is learned from data.
🧪 Scale check
Nothing about the arithmetic changes — it is the same multiply, add, activate at every scale. There is simply a great deal more of it.
What “deep” means
A neural network with one hidden layer is called shallow. Two or more, and people say deep learning. That is the whole definition — there is no magic threshold.
Depth matters because each layer builds on the last. In an image network, early layers detect edges, middle layers combine edges into shapes like eyes and wheels, and later layers combine those into faces and cars. Each layer works with what the previous one found, which is far more efficient than trying to jump from raw pixels to “cat” in one step.
How a neural network learns
Exactly the same loop as every other model on this site:
- Forward pass. Push the data through the network and get predictions.
- Measure the error with a loss function — MSE for numbers, cross entropy for classes.
- Backward pass. Work out how much each of those 26 (or 26 billion) weights contributed to the error. This is backpropagation, and it is just the chain rule applied repeatedly.
- Update every weight a small step in the direction that reduces the error, then repeat.
The next two posts in this sequence take steps 1 and 3 apart in detail: how a single layer works, then backpropagation explained.
When a neural network is the wrong choice
⚠️ Neural networks are not the default answer
- On ordinary table data — spreadsheets of numbers and categories — gradient boosting and decision trees usually beat neural networks, and train in seconds.
- With a small dataset, a network with thousands of parameters will overfit immediately.
- When you must explain the decision — for a loan or a diagnosis — a network gives you no readable reason.
🔑 Key Takeaways
- A neuron is linear regression plus an activation function.
- Without activation functions, stacking layers gains you nothing — they collapse to one straight line.
- A neural network is neurons in layers: input, one or more hidden, output.
- “Deep” simply means more than one hidden layer.
- They excel on images, audio and text — and often lose to simpler models on spreadsheet data.
Further reading
3Blue1Brown’s neural networks series is the best visual explanation available, and Google’s crash course on neural networks lets you add layers in the browser and watch the decision boundary change.
Where to go next
- How a neural network layer works — the next post in this sequence
- Activation functions — sigmoid, ReLU, tanh and when to use each
- The vanishing gradient problem — what breaks in deep networks
- Start Here — the full learning path