Meaning and assumptions
A perceptron forms a weighted sum of inputs, adds a bias and uses a specified threshold to choose between two classes. A learning step changes weights after misclassification. A single unit separates linearly and cannot represent XOR on its original two inputs.[1]
This guide uses target and output classes0/1 and explicitly defines z≥0→1.The simple update uses a positive learning rate η and known training targets. Neither output nor activation is a calibrated probability.[1]
Why the approach works
Weights set the direction of the linear decision boundary, while b shifts it. In two dimensions, z=0 is a line. With the0/1 convention used here, one error-correction update is wnew=w+η(t−ŷ)x and bnew=b+η(t−ŷ).A correctly classified example has t−ŷ=0 and leaves parameters unchanged. This rule should not be confused with gradient descent through an everywhere differentiable threshold. Linear separability is an assumption of the usual convergence result; training longer does not make an unrepresentable target suddenly representable.[1]
Two complete worked examples
Calculate a class decision
- Given
- w=(0.5,−0.25), b=−0.1 and x=(2,1).
- Find
- Result
Substitute weighted terms and bias separately.
Apply the stated threshold.
Result: Result: class1.The value0.65 is not a probability here.
Check: 1−0.25−0.1=0.65; retain the signs of the weights.
One error-correction step
- Given
- w=(0,0), b=−1, x=(1,1), t=1 and η=0.5.
- Find
- Result
Classify using the old parameters first.
Update weights and bias exactly once.
Result: Result: for the same input, znew=0.5 and the new output is1.
Check: 0.5+0.5−0.5=0.5.Correcting one example does not prove all training data are now classified correctly.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Five exercises with solutions
Calculate · Application
Find the output for w=(1,1), b=−0.5 and x=(0,1).
Show hint
State the approach and assumptions before substituting.
Learning goal: Find the output for w=(1,1), b=−0.5 and x=(0,1).
Show solution and calculation
z=0+1−0.5=0.5≥0, so ŷ=1.
Interpret · Application
What does this unit output at z=0?
Show hint
State the approach and assumptions before substituting.
Learning goal: What does this unit output at z=0?
Show solution and calculation
The explicitly specified z≥0 rule returns1.Other conventions can handle equality differently.
Calculate · Application
A training example is already correctly classified. What is the parameter update?
Show hint
State the approach and assumptions before substituting.
Learning goal: A training example is already correctly classified. What is the parameter update?
Show solution and calculation
t−ŷ=0, so neither weights nor bias changes.
Error analysis · Application
Why must z=0.65 not be labelled65% confidence?
Show hint
State the approach and assumptions before substituting.
Learning goal: Why must z=0.65 not be labelled65% confidence?
Show solution and calculation
z is an uncalibrated affine activation.
The threshold only assigns a class.
A probability requires a suitable different model and possibly calibration.
Transfer · Challenge
Can one linear threshold represent XOR on(0,0),(0,1),(1,0),(1,1)?
Show hint
State the approach and assumptions before substituting.
Learning goal: Can one linear threshold represent XOR on(0,0),(0,1),(1,0),(1,1)?
Show solution and calculation
No.
The positive points lie on opposite corners and cannot be separated from the negatives by one line.
More training does not change that representational limit.
Check your understanding with the formula’s reference test.
6 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Related next steps
Related foundations: Logistic sigmoid function, Gradient descent parameter update, Dot Product.
Sources for this explanation
Quanta · Updated November 6, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Locally authored DE/EN article with two original examples, five exercises, model limits and a native diagram.
Cite this reference page
Quanta. Perceptron: weights, bias and one learning step. Updated November 6, 2026. https://quanta-study.de/en/formula-sheet/perzeptron-kuenstliches-neuron
When citing a specific scientific statement, also cite the specialist source linked to that statement.