A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Neural Network Fundamentals

Graduate Depth 91 in the knowledge graph ☐ I know this ☆ Set as goal
96topics build on this
637prerequisites beneath it
See this on the map →
Linear Regression in Machine LearningDerivatives of Exponential Functions+5 more→→Activation Functions in Neural NetworksAdversarial Examples and Robustness+22 more
neural-networks deep-learning function-approximation

Core Idea

Neural networks compose non-linear functions (neurons) across layers. Each neuron computes a weighted sum plus bias through an activation function. Universal approximation theorem states sufficiently wide networks approximate any continuous function.

Explainer

You have already worked with linear regression, which fits a single linear function — a weighted sum of inputs — to data. Neural networks extend this idea dramatically: instead of one linear transformation, they stack many layers of simple units (neurons), each with its own weights, and crucially, each followed by a non-linear transformation. This stacking of non-linearities is what makes neural networks capable of approximating extraordinarily complex functions.

A single neuron does something familiar: it computes a weighted sum of its inputs plus a bias, exactly like linear regression. For inputs x₁, x₂, ..., xₙ with weights w₁, w₂, ..., wₙ and bias b, the pre-activation value is z = w₁x₁ + ... + wₙxₙ + b. So far this is just linear regression. The key addition is the activation function f, applied to z: the neuron's output is f(z). Common choices are ReLU (f(z) = max(0, z)), sigmoid (f(z) = 1/(1 + e-z)), and tanh. These functions are non-linear, and that non-linearity is everything.

Why does non-linearity matter so much? Because the composition of linear functions is always linear. If you stacked ten layers with no activation functions, the whole network would be equivalent to a single matrix multiplication — as limited as linear regression. Once you introduce non-linear activations, the network can bend, curve, and fold the input space in ways a single linear function cannot. The universal approximation theorem makes this precise: a sufficiently wide single hidden layer can approximate any continuous function on a compact domain to arbitrary accuracy. Deeper networks with more layers can approximate the same functions with fewer neurons — this is why depth is valuable.

Networks are organized into layers: an input layer that receives the raw features, one or more hidden layers where the actual computation and representation learning happens, and an output layer that produces the prediction. Each layer transforms its inputs into a new representation, and as you go deeper, these representations become increasingly abstract. In a network trained on images, early layers might detect edges, later layers shapes, and the final layers might represent concepts like "cat" or "chair."

Training a neural network means finding the weight values that minimize prediction error on training data. This is done by computing the gradient of the loss with respect to every weight — which requires calculus, specifically the chain rule applied repeatedly through the layers (the backpropagation algorithm). This is why derivatives and partial derivatives are prerequisites: without the ability to compute how the loss changes with respect to each weight, you cannot update the weights in the right direction. The connection to linear regression is also direct: a neural network with no hidden layers and a linear activation is exactly linear regression.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Linear Regression in Machine Learning → Neural Network Fundamentals

Longest path: 92 steps · 637 total prerequisite topics

Prerequisites (7)

Leads To (24)