How does a single tiny decision get made from a few clues?
Lesson 20.1 · One Neuron: Going to the Party?
Owen
Friends: +. Homework: −. Distance: −. Add it up. That’s a neuron.
Owen is deciding whether to go to a party.
Four friends are going, which pulls him toward yes. Three hours of homework pull toward no.
It’s six miles away, a small pull toward no. He adds it up in his head. That head-math is one neuron.
The short answer
Artificial neuron: An artificial neuron takes several inputs, multiplies each by a weight, adds them up with a bias, and passes the total through a simple rule that turns it into an output, like yes or no. The weights are the neuron’s opinion about which inputs matter. Learning means adjusting them.
Try it yourself
Slide the weights. Each one says how much that clue matters. Watch the decision flip.
Stay home
-0.6
What you just did has a name
Artificial neuron
An artificial neuron takes several inputs, multiplies each by a weight, adds them up with a bias, and passes the total through a simple rule that turns it into an output, like yes or no.
The weights are the neuron’s opinion about which inputs matter. Learning means adjusting them.
A few more things
It’s Module 15’s line, wearing a hat
Multiply each clue by a weight and add them up: that’s a regression. The neuron adds one step: squash the total into a decision. Module 16’s logistic regression is literally one neuron.
Weights are learned, not typed
Nobody sets “homework matters 0.8.” Training shows the neuron thousands of past decisions and nudges the weights until its yes/no matches them. The weights end up wherever the examples push them.
One neuron can only draw a line
A single neuron splits the world into two halves with a straight cut. Go on one side, stay on the other. Anything curvier than that needs more than one, which is the next lesson.
Go deeper
The longer version, if you want it.
The activation function
The squash at the end is called the activation function. The classic one is the sigmoid, which turns any total into a number between 0 and 1, a probability of yes. Modern networks mostly use ReLU, which is even simpler: if the total is negative, output zero; otherwise output the total. It sounds too dumb to work. It works better than the elegant options, for reasons that took researchers years to accept.
Without an activation function, stacking neurons would just make one bigger line. The squash is what lets layers build curves.
Quick check
A neuron decides “bring an umbrella.” Its inputs are clouds (weight 0.7), forecast percent rain (weight 0.9) and wind speed (weight 0). The wind doubles. What happens to the decision?
Let’s take it slower
Think of it as a scorecard. Each clue gets a number, and each number gets multiplied by how much you care about that clue. Care a lot: big multiplier. Care the other way: negative multiplier. Don’t care: zero. Add the multiplied numbers up, add a starting nudge for how you lean before any clues arrive, and see whether the total lands above or below the line. That’s a neuron. The multipliers are the weights, and they’re the only part that changes when it learns.
More examples
The coach picking starters
A coach picks a starting five in her head: practice effort counts a lot, height counts a little, missing the team bus counts against you hard. Three clues, three weights, one yes or no per player. She’s running five neurons before tip-off.
The card that got declined
Your card gets declined at a gas station two states from home. A neuron added it up: far from home (positive), odd hour (positive), small amount (slightly negative), and the total tipped over the line. Nobody wrote a rule about gas stations: the weights did it.
Back to the question
So how does the tiny decision get made?
Show the answer
Four friends times a positive weight, three hours times a negative weight, six miles times a small negative one, plus a bias for how much Owen likes parties in general. Add it up. Positive means go. Owen’s weights say go, narrowly, which is also what happened.
One last question
What does a weight in a neuron mean?
Talk Card
Talk Card · 20.1
A neuron weighs a few inputs, adds them up and decides. Change a weight and the decision flips. A neural network is millions of these, stacked.
Data to AI · pettigrewlab.com/learn
