One idea, 4 fields

Feedback & Control Loops

The unifying principle

Every system here is a loop: an output is sensed, compared to a reference, and the error is fed back into the input.

The sign of feedback decides behavior:

  • Negative feedback (ee opposes deviation): the +1+1 in 1+L1+L shrinks the error; the system self-corrects and stabilizes.
  • Positive feedback (ee reinforces deviation): effectively 1L1 - L; small perturbations amplify, giving switches, bistability, or blow-up.

Stability is set by the poles — the roots of 1+L=01 + L = 0. If any pole has positive real part, oscillation grows. A simple first-order corrector behaves like

e˙=ke    e(t)=e0ekt,\dot{e} = -k\,e \implies e(t) = e_0\,e^{-kt},

decaying for k>0k>0 (stabilizing) and exploding for k<0k<0 (runaway). Delay turns even negative feedback into oscillation: correcting based on stale information overshoots.

How it shows up in each field

Hardware — the thermostat / PID controller

The canonical negative-feedback loop. A thermostat senses temperature yy, compares to setpoint rr, and switches a heater. Continuous controllers use PID: u(t)=Kpe+Ki ⁣edt+Kde˙u(t) = K_p\,e + K_i\!\int e\,dt + K_d\,\dot{e}

  • KpK_p: proportional pushback on current error
  • KiK_i: eliminates steady-state offset
  • KdK_d: damps overshoot by reacting to error rate

Biology — homeostasis

Bodies hold internal variables near setpoints via negative feedback; positive feedback drives commitment/switch events.

  • Negative: blood glucose rises → pancreas releases insulin → cells absorb glucose → glucose falls. Error e=[glucose]re = [\text{glucose}] - r is driven to zero. Thermoregulation (sweating/shivering) is the biological thermostat.
  • Positive: oxytocin in childbirth — contractions release oxytocin, which strengthens contractions, an intentional runaway to completion. Also action-potential Na⁺ channel opening.

AI-ML — reinforcement learning & training loops

The agent's loop is control: action → environment → reward/error → policy update.

  • Negative feedback: gradient descent minimizes loss JJ by stepping down the error gradient: θt+1=θtηθJ\theta_{t+1} = \theta_t - \eta\,\nabla_\theta J This is proportional negative feedback on prediction error; the learning rate η\eta is loop gain — too high → divergent oscillation, too low → sluggish.
  • Positive feedback (pathological): reward hacking, model collapse from training on own outputs, or divergent value estimates in bootstrapped Q-learning where overestimates reinforce themselves.

Stock-Market — price correction & momentum

Prices are a feedback loop between valuation and trading.

  • Negative feedback (mean reversion): price above fair value → sellers enter → price falls. Arbitrageurs act as the corrector driving e=pricevalue0e = \text{price} - \text{value} \to 0.
  • Positive feedback (bubbles/crashes): rising prices attract momentum buyers → further rises; margin calls in a crash force selling that drives prices lower still. This is 1L1 - L behavior — self-amplifying until a nonlinearity (liquidity, circuit breakers) intervenes.

Why this bridge matters

The same three failure/success modes recur, so intuition transfers directly:

  • Stability ↔ loop gain & delay. Control theory's rule "too much gain + lag = oscillation" explains drone wobble, glucose overshoot in diabetes, exploding learning rates, and boom-bust market cycles. If you can tune a PID, you can reason about all four.
  • Negative vs positive is a design choice, not a value judgment. Biology uses positive feedback for decisive switches; markets suffer it as bubbles; ML exploits negative feedback for learning but must guard against positive-feedback collapse.
  • The error term is universal. TD-error, glucose deviation, thermostat error, and mispricing are all e=rye = r - y. Recognizing this lets a biologist read RL, or a trader read control theory, and immediately ask the right question: what's the setpoint, what's the gain, and how stale is the sensor?

Connections

  • 01-Hardware-PID-Controllers
  • 02-Hardware-Sensors-and-Actuators
  • 03-Biology-Homeostasis
  • 04-Biology-Signaling-Cascades
  • 05-AI-ML-Reinforcement-Learning
  • 06-AI-ML-Gradient-Descent
  • 07-Stock-Market-Mean-Reversion
  • 08-Stock-Market-Momentum-and-Bubbles
  • 09-Control-Theory-Stability-and-Poles

#bridge

negative: self-correct

positive: amplify

oscillation/oxytocin

model collapse

bubbles/crashes

hunting/wobble

Feedback Loop
e = r − y

Stability

Switch / Runaway

Hardware
Thermostat / PID

Biology
Homeostasis

AI-ML
RL & Gradient Descent

Stock-Market
Price Correction

Connected notes