
AI Foundations: From Math to Neural Networks
A first-principles mathematical breakdown of vanilla multi-layer neural networks. Covers feature vectors, dense layer transformations, loss functions, multivariable gradients, and backpropagation traces without external framework abstractions.
Module 1The Forward Pass
Forward data flow in neural networks: feature vectors, dot products, baseline biases, activation functions, and multi-layer dense matrix layers.
The Forward Pass
Forward data flow in neural networks: feature vectors, dot products, baseline biases, activation functions, and multi-layer dense matrix layers.
01 • Vectors & Dot Products
Feature Vectors
Ordered numeric lists and arrays that establish mathematical identity profiles for real-world attributes in neural network layers.
Vector Addition and Scaling
Position-wise vector addition and scalar multiplication that combine feature profiles, scale attribute values, and combine multidimensional data.
Dot Products and Weights
Pairwise feature-weight multiplication and summation that accumulate attribute influences into single scalar decision scores in neural network layers.
From Vectors to Neural Networks
The bridge from raw dot products to artificial neurons, exposing unbounded score scales and motivating baseline bias offsets and activation functions.
Vectors and Dot Products In Practice
Manual problem sets covering vector construction, position-wise arithmetic, and dot products with weights in abstract and applied decision settings.
02 • The Artificial Neuron & Activations
Linear Step and Baseline Bias
Baseline bias offsets that establish independent starting thresholds, completing the linear step and shifting dot products along the decision threshold.
Sigmoid Activation Function
The S-shaped Sigmoid activation function that squashes unbounded linear scores into standardized probabilities between zero and one.
Artificial Neuron Architecture
The computational pipeline combining input features, influence weights, bias offsets, and non-linear activation functions to yield a single neuron output.
Artificial Neuron In Practice
Manual step-by-step calculations of linear scores, Sigmoid probabilities, and baseline bias offsets to evaluate decision thresholds.
03 • Matrices & Multiple Neurons
Weight Matrix and Matrix-Vector Multiplication
Stacking multiple neuron weight vectors into a weight matrix to evaluate multiple criteria on the same input vector simultaneously.
Bias Vector and Multi-Neuron Linear Step
Independent baseline offsets for each decision criterion bundled into a bias vector to compute the multi-neuron linear step (z = Wx + b).
Multi-Neuron Forward Pass
Applying the element-wise Sigmoid function to the linear score vector to compute independent probabilities and parallel classifications.
Multi-Neuron Layer Architecture
Grouping parallel neurons into a layer, calculating multi-criteria forward passes, and examining the final-decision limit that motivates network depth.
Matrices and Multiple Neurons In Practice
Manual problem sets covering weight matrix construction, matrix-vector multiplication, bias vectors, and multi-neuron layer forward pass classifications.
04 • Hidden Layers & Depth
Hidden Layers and Output Layers
Chaining a hidden layer into an output layer with superscript notation to weigh intermediate hidden activations and produce a single final prediction.
ReLU Activation Function
Why Sigmoid saturation limits hidden layers, and how the ReLU activation function sets negative scores to zero while passing positive scores forward.
Multi-Layer Forward Pass and Final Prediction
Weighing hidden layer activations in the output layer and applying Sigmoid compression to produce a single final probability prediction for the model.
Two-Layer Forward Pass Simulation
Complete two-layer forward pass mapping movie script features through hidden ReLU activations, layer weights, biases, and Sigmoid greenlight probability.
The Backward Pass
Backward pass mechanics in neural networks: loss functions, single-variable derivatives, multivariable gradient vectors, and chain rule backpropagation.
Synthesis & Interpretability
Synthesis of the complete forward-backward computational graph, end-to-end mathematical compile traces, and mechanistic interpretability foundations.