Perceptron
Money Management — Perceptron
Perceptron
Perceptron — The Single Artificial Neuron
Core Concept
The perceptron (Rosenblatt, 1958) is the simplest neural network: one artificial neuron that learns to classify inputs into two classes by finding a linear decision boundary.
It computes a weighted sum of inputs plus a bias, then applies a step function:
The decision boundary is the line .
Learning rule: on each misclassified point (predicted true ), update weights:
The Perceptron Convergence Theorem proves this terminates in finite steps if — and only if — the data is linearly separable. It fails on XOR because XOR is not linearly separable; that limitation drove the invention of multi-layer networks.
Key Formula
Weight update rule (on misclassification):
Worked Example
Weights implement a logical AND gate:
| 0 | 0 | −1.5 | −1 |
| 1 | 0 | −0.5 | −1 |
| 0 | 1 | −0.5 | −1 |
| 1 | 1 | +0.5 | +1 |
For OR, use : output whenever .
Real-World Connection
The perceptron is the direct ancestor of modern deep learning. Stack thousands of perceptrons in layers, swap the step function for smooth activations (ReLU, sigmoid), and train with backpropagation — that is a deep neural network. Today's large language models, image classifiers, and recommendation engines all descend from this 1958 idea.
Quick Check
-
A perceptron has . What does it output for inputs ? Is this closer to AND or OR behaviour?
-
Why does the perceptron fail to learn XOR, even with many training iterations and any choice of weights?
Key Takeaways (TL;DR)
- Core Concept
- Key Formula
- Worked Example
- Real-World Connection
Master this topic with Drishti OS
Get unlimited mock tests, AI-powered mentorship, and complete video courses when you join.
Start Free Practice