THE GENIUS PROJECT
๐Ÿง  Lesson 1 of 6

What Is Deep Learning?

๐Ÿ•’ About 30 minutes ๐Ÿงฎ Weighted sums, bias, activation, layers ๐ŸŽ›๏ธ 1 interactive neuron

In Week 2 you trained models that learn rules from data. Deep learning is the same game with a different machine: instead of one equation or one tree, you connect thousands of tiny calculators called neurons into layers. Nothing inside is magic. By the end of this lesson you will compute a neuron's output with your own hands.

Where deep learning sits in your journey

Quick map of everything you have done this summer. Week 1-2: statistics and classic machine learning (averages, logistic regression, decision trees). Week 3: prediction on real financial data. Those models are powerful but shallow: they learn ONE equation or ONE set of splits. Deep learning stacks many simple learners into layers, and the layers learn to build on each other. That stack is a neural network, and "deep" literally means "many layers".

Why does that matter? Because layered learning discovers its own features. In Week 3 YOU decided the model should look at "yesterday's price" and "the 5-day average". A deep network, given enough data, invents its own versions of those, including ones no human thought of. That is why it powers speech recognition, hurricane track forecasting, medical imaging, and every chatbot you have used.

The neuron: a three-step calculator

A neuron takes numbers in and pushes one number out. Three steps:

โœ–๏ธ1. Weighmultiply each input by its weight
โž•2. Sum + biasadd everything, plus a bias number
โšก3. Activatesquash the result through a function
output = activation( w1x1 + w2x2 + w3x3 + b )

Concrete example. A neuron guesses if a football team will score, from two inputs: shots taken (x1 = 12) and shots on target (x2 = 5). Suppose the weights are w1 = 0.2, w2 = 0.8, and bias b = −4:

(0.2 × 12) + (0.8 × 5) − 4 = 2.4 + 4.0 − 4 = 2.4

Notice the weights encode judgement: shots on target (0.8) matter four times more than mere shots (0.2). The bias (−4) sets the bar the evidence has to clear. Training is nothing more than the network finding good values for every weight and bias.

๐ŸŽš๏ธ Why the bias matters

Rerun the example with no bias. The sum becomes 2.4 + 4.0 = 6.4, and sigmoid(6.4) ≈ 0.998: the neuron screams "they will score!" at almost any input. The bias of −4 is a demand for evidence: the weighted inputs must add up to more than 4 before the neuron even reaches a 50-50 verdict. Push the bias toward 0 and the neuron gets easier to convince; push it further negative and it turns skeptical. Weights decide WHAT counts as evidence, the bias decides HOW MUCH evidence is enough.

Activation: the neuron's attitude

Step 3 passes the sum through an activation function. Why not just output 2.4 directly? Because stacking plain sums gives youโ€ฆ one big sum. Linear in, linear out, no matter how many layers. The activation adds a bend, and bends are what let networks learn curves, edges, and rhythms. The two you will meet constantly:

๐Ÿ“ˆReLU

"If the sum is negative, output 0. Otherwise pass it through." Brutally simple, and it is the default inside modern networks. ReLU(2.4) = 2.4, ReLU(−1.3) = 0.

๐ŸŽš๏ธSigmoid

Squashes any number into 0 to 1, perfect for probabilities. Sigmoid(2.4) ≈ 0.92, so "92% chance they score". You met this in logistic regression, Week 2!

๐Ÿ”— Where you already met this

Look again at the sigmoid neuron: weighted sum, plus bias, squashed into a probability. That is EXACTLY the logistic regression you trained in Week 2. One neuron with a sigmoid activation IS logistic regression. So a deep network is not an alien machine: it is layers of Week 2 models wired together, each one passing its verdict to the next as a fresh input. If you understood Week 2, you already understand every individual part of this lesson; the new idea is only the stacking.

๐ŸŽ›๏ธ Interactive: drive a real neuron

This is the exact neuron from the example. Drag the sliders and watch every step recompute. Challenge: find weights where 12 shots and 5 on target give a probability BELOW 30%.

12
5
0.20
0.80
-4.0
Weighted sum + bias2.40
Sigmoid output0.92
Verdict92% they score
โšฝ๐Ÿ”ฅ
Check your understanding

A neuron has weights wโ‚ = 0.5, wโ‚‚ = 1.0, bias b = −2, with inputs xโ‚ = 2, xโ‚‚ = 3. What is the weighted sum plus bias?

Multiply each input by its weight (1 and 3), add them (4), then add the bias (−2). Result: 2. Forgetting the bias leaves you at 4; adding the raw inputs without weights gives 3. With ReLU the output stays 2; with sigmoid it becomes about 0.88.

From neurons to layers to deep

One neuron draws one straight boundary (the preteens literally drag that line in their course). The power move is composition:

A network for our weather task might be 7 inputs → 16 hidden neurons → 8 hidden neurons → 1 output. Tiny by industry standards (GPT-class models have hundreds of billions of weights), but the machinery is identical.

๐ŸŽ›๏ธ
New Word! Parameter

Any number the network learns for itself: every weight and every bias. The football neuron above has 3 parameters (w₁, w₂, b). The 7 → 16 → 8 → 1 weather network has 273 (count every connection plus every bias). GPT-class models have hundreds of billions. Different scale, exact same idea: knobs the training algorithm gets to turn.

INPUTS LAYER 1 LAYER 2 ANSWER your data each layer learns patterns of the previous layer's patterns the prediction ๐ŸŒก๏ธ

Follow one prediction through a whole network

The diagram stays abstract until you push numbers through it, so let's run a mini version by hand: 2 inputs, a hidden layer of 2 ReLU neurons (call them A and B), then 1 sigmoid output. Inputs: x1 = 2, x2 = 1.

A: ReLU( (0.5 × 2) + (−1.0 × 1) + 0 ) = ReLU(1 − 1) = ReLU(0) = 0
B: ReLU( (1.0 × 2) + (0.5 × 1) − 1 ) = ReLU(2 + 0.5 − 1) = ReLU(1.5) = 1.5
out: sigmoid( (2.0 × 0) + (1.0 × 1.5) − 0.5 ) = sigmoid(1.0) ≈ 0.73

Two things to notice. First, the hidden neurons' OUTPUTS became the output neuron's INPUTS: that hand-off is all the word "layers" means. Second, ReLU switched neuron A off completely, so the final verdict came from B alone. Feed in a different x1 and x2 and A might wake up while B goes quiet. That switching is the payoff of the activation's bend: one network can behave like many different simple models, choosing which of its parts speak for each input.

๐Ÿฅ Sound system analogy

Think of a sound engineer's mixing board. Each slider (weight) controls how much of one input makes it into the mix. The bias is the master volume offset, and the activation is the limiter that shapes the final signal. Training a network = a very patient engineer adjusting thousands of sliders until the output sounds exactly right, except the "engineer" is an algorithm, which is Lesson 2.

๐Ÿง  Misconception: "a neural network is a little brain"

The word "neuron" makes this easy to believe, and headlines lean into it. But you just computed everything a neuron does: multiply, add, squash. No thoughts, no wants, no understanding. A network with billions of parameters is billions of multiply-add-squash steps, tuned by the algorithm you meet in Lesson 2. Hold on to that picture and AI news becomes much easier to judge: the useful question is never "what does it think?", it is "what was it trained to predict, and on what data?"

๐Ÿ“Œ Lesson recap

1) A neuron computes activation(weights × inputs + bias). 2) Activations like ReLU and sigmoid add the bends that make learning curves possible. 3) Layers of neurons build features out of features, and "deep" = many layers. 4) Training means finding good weights and biases, which is the next lesson.

Next: how the network finds those weights. Bring your hiking boots. โ›ฐ๏ธ