REVISION AND PRACTICE
Week 1 Quick Revision
On this page 5 headings
Swipe long formulas, tables or code sideways to see the rest.
Start here All of Week 1 on one page. Read this the night before the quiz.
- Biological neuron: dendrite (receives) → soma (processes) → axon (sends) → synapse (connects). The brain has ~ neurons, works in parallel, and is organised in layers (simple → complex).
- MP neuron (1943): inputs 0/1, add them, output 1 if sum . Any inhibitory input output 0.
- Perceptron (Rosenblatt 1958, refined by Minsky–Papert 1969): weights + real inputs + learnable bias. if , with .
- PLA: wrong on a positive point ; wrong on a negative point . Converges if the data is linearly separable.
- XOR is not linearly separable → one perceptron can’t do it.
- MLP: 1 hidden layer of perceptrons + 1 output perceptron can represent any Boolean function of n inputs.
| Idea | Formula |
|---|---|
| MP neuron | if , else 0 |
| Perceptron | if , else |
| Angle | |
| PLA updates | |
| Convergence bound | is bounded |
| Boolean functions of n inputs | (n = 2 → 16, of which 14 separable) |
| Hidden units in the theorem | (sufficient, not necessary) |
| Gate | MP neuron | Perceptron |
|---|---|---|
| AND | (−1.5, 1, 1) or (−2, 1, 1) | |
| OR | (−1, 1.1, 1.1) or (−0.5, 1, 1) | |
| NOR | all inputs inhibitory, | (0.5, −1, −1) |
| NOT | input inhibitory, | (0.5, −1) |
| NAND | — | (1.5, −1, −1) |
| XOR / XNOR | impossible | impossible with one unit — needs a hidden layer |
- counts as output 1 (the rule is ).
- A perceptron is not more powerful than an MP neuron in what kinds of Boolean functions it can represent: both can do only linearly separable functions. The gain is weights, real inputs and learning.
- PLA convergence needs linearly separable data. On XOR it never stops.
- hidden-unit network uses ±1 inputs and hidden bias −n (−2 for 2 inputs, −3 for 3 inputs).
- Slide errata: the error table shows 1 error for with — the correct count for OR is 3. In the convergence proof, the denominator should be .
Exam words: dendrite, soma, axon, synapse, thresholding logic, excitatory, inhibitory, perceptron, bias, prior, linearly separable, error surface, Perceptron Learning Algorithm, convergence, XOR, hidden layer, MLP, representation power.
