Manual problem sets covering weight matrix construction, matrix-vector multiplication, bias vectors, and multi-neuron layer forward pass classifications.
Part 1: The Underlying Mechanics
Problem 1: Weight Matrix Construction and Transpose
A neural network layer has 2 neurons evaluating a 3-dimensional input feature vector x.
Neuron A has weight vector:
wA=2.0−1.04.0
Neuron B has weight vector:
wB=0.53.0−2.0
Part A: Construct the Weight Matrix W for this layer by stacking the transposed neuron weight vectors into horizontal rows.
Part B: State the dimensions of W (rows×columns).
Part C: Which row of W corresponds to Neuron B, and what do the columns represent?
Reveal Solution
Part A:
Transposing each vertical weight vector into a horizontal row (wT) and stacking them produces the Weight Matrix W:
W=[wATwBT]=[2.00.5−1.03.04.0−2.0]
Part B:
The Weight Matrix W has 2 rows and 3 columns (shape 2×3).
Part C:
Neuron B corresponds to Row 2 (wBT). The columns represent the 3 input features of x. Because Position is Identity, column 1 pairs with feature 1, column 2 with feature 2, and column 3 with feature 3 for both neurons simultaneously.
Problem 2: Matrix Dimensions and Output Shapes
A neural network layer receives an input feature vector x and multiplies it by a weight matrix W with shape 4×5.
Part A: How many features must the input vector x contain for the matrix-vector multiplication Wx to be mathematically valid?
Part B: What is the shape of the resulting output vector Wx?
Part C: How many distinct neurons operate in this layer?
Reveal Solution
Part A:
The input vector x must contain 5 features (shape 5×1). For matrix multiplication to be valid, the inner dimensions must match:
(4×5)×(5×1)
Each row in W has 5 weights, requiring exactly 5 corresponding feature values in x.
Part B:
The output vector Wx has shape 4×1 (a 4-dimensional column vector), determined by the outer dimensions (4×1).
Part C:
There are 4 neurons in this layer. In any neural network layer, the number of rows in the weight matrix equals the number of neurons, with each neuron producing one scalar value in the 4×1 output vector.
Problem 3: Matrix-Vector Multiplication with Mixed Signs (3×2)
Given weight matrix W=2.00.0−4.0−1.03.01.5 and input vector x=[3.0−2.0]:
Calculate Wx. Show the row-by-row calculations.
Reveal Solution
Matrix-vector multiplication follows the Row × Column rule:
Notice that in Row 2, the weight for feature 1 is 0.0, completely erasing the impact of feature 1 on Neuron 2.
Problem 4: Position is Identity in Weight Matrices
A 3×2 weight matrix W evaluates a 2-dimensional feature vector x=[x1x2].
Part A: If an engineer accidentally swaps Row 1 and Row 2 of W, what changes in the output vector Wx? Does the mathematical value of each neuron's evaluation change?
Part B: If the engineer instead accidentally swaps Column 1 and Column 2 of W (while leaving x unchanged), what happens to the math? Why does this corrupt the evaluation for all three neurons?
Reveal Solution
Part A:
Swapping Row 1 and Row 2 simply swaps the positions of output 1 and output 2 in the resulting vector:
(w1⋅x)(w2⋅x)(w3⋅x)⟶(w2⋅x)(w1⋅x)(w3⋅x)
The mathematical scores themselves do not change; only their designated positions in the output vector are exchanged.
Part B:
Swapping Column 1 and Column 2 causes every neuron to multiply Feature 1 by Feature 2's weight, and Feature 2 by Feature 1's weight:
(wi,2x1)+(wi,1x2)=(wi,1x1)+(wi,2x2)
Because Position is Identity, weights are strictly bound to specific features. Column 1 must align with Feature 1, and Column 2 with Feature 2. Swapping columns scrambles the semantic pairing across every row, corrupting all three calculations.
Problem 5: Multi-Neuron Bias Offsets and Decision Thresholds
A 2-neuron layer receives input feature vector x=[4.02.0] with weight matrix W=[1.50.5−2.01.0].
Part A: Calculate Wx.
Part B: Suppose the layer has bias vector b=[−3.0+1.0]. Compute z=Wx+b. Explain why Neuron 1's bias acts as a "hurdle" while Neuron 2's bias acts as a "head start."
Part C: Find the exact bias vector b∗=[b1b2] that places both neurons simultaneously on the decision threshold (z1=0 and z2=0, yielding σ(z1)=0.50 and σ(z2)=0.50).
Neuron 1 (b1=−3.0): A negative bias acts as a hurdle. It pulls the score down, requiring the raw dot product to exceed +3.0 just to reach the neutral threshold (z=0). Because the raw score was only +2.0, Neuron 1 ends up negative (z1=−1.0).
Neuron 2 (b2=+1.0): A positive bias acts as a head start. It boosts the score by +1.0, pushing the already-positive raw score from +4.0 to +5.0.
Part C: Decision Threshold Calibration
The decision threshold occurs where the linear score equals zero (z=Wx+b∗=0):
Neuron 1:(Wx)1+b1=0⟹2.0+b1=0⟹b1=−2.0
Neuron 2:(Wx)2+b2=0⟹4.0+b2=0⟹b2=−4.0
The required bias vector is:
b∗=[−2.0−4.0]
Because neurons in a layer are independent, each bias is calibrated strictly to its own neuron's raw score.
Problem 6: Complete Multi-Neuron Forward Pass Pipeline
A neural network layer with 2 neurons evaluates input vector x=[1.02.0].
The layer is defined by:
W=[3.0−2.0−1.02.0]b=[−2.0−1.0]
Part A: Compute z=Wx+b.
Part B: Using the Sigmoid formula σ(z)=1+e−z1 and the reference values below, calculate the activation vector a=σ(z):
Reference: e−1.0≈0.3679,e0.0=1.0000,e1.0≈2.7183
Part C: Apply the standard 0.50 decision threshold (ai≥0.50→1, ai<0.50→0) to state the layer's binary classification vector.
The layer produces the binary classification vector:
[01]
Part 2: Applied Scenario: The VC Investment Predictor
In Topics 1 and 2, our Venture Capital firm evaluated startup pitch decks across four features: [Team Experience, Market Size, Competition, Risk]. Two startups submitted pitch decks:
In Topic 2, the firm evaluated them using only one question: Unicorn Potential (w1=[4.0,2.0,−3.0,1.0]T). Solaris AI passed (81.8%), but OmniFlow was rejected (33.2%).
However, evaluating on a single question misses critical opportunities. To evaluate startups from multiple angles, the firm asks three distinct questions:
Unicorn Potential (Neuron 1):Can this become a billion-dollar standalone giant?
Strategic Acquisition (Neuron 2):Would a tech giant acquire this product and team?
Category Leadership (Neuron 3):Can this company become the market leader in its space?
To evaluate these questions, the firm assigns three separate weight vectors:
Part C:
A macroeconomic downturn specifically impairs the market for massive, speculative billion-dollar initial public offerings (raising a steep −2.5 hurdle on Unicorn Potential). However, corporate acquisitions of strategic talent (b2=0.0) and market demand for focused category leadership (b3=0.0) maintain steady baseline demand regardless of interest rate cycles. Independent biases allow the model to adjust thresholds for each question without altering the others.
Problem 9: Element-Wise Sigmoid and Independent Classifications
Using the Sigmoid formula σ(z)=1+e−z1 and the reference table below:
Notice how the classifications operate in complete independence: neither startup is universally accepted or universally rejected across all three neurons.
Problem 10: Layer Synthesis and The Investment Dilemma
Part A: State the single unified formula that summarizes this layer's forward pass, and specify the dimensions of every component for this VC screening model.
Part B: Compare the resulting strategic profiles of OmniFlow and Solaris AI.
Part C: The Investment Committee must decide: "Which single startup should receive the firm's lead investment check?" Can this multi-neuron layer make that final choice on its own? Explain why or why not, and identify what architectural structure must be added to solve the dilemma.
Reveal Solution
Part A:
The unified multi-neuron forward pass formula:
a=σ(Wx+b)
Component dimensions for this model:
Input vector x: 4×1
Weight matrix W: 3×4
Bias vector b: 3×1
Linear score vector z: 3×1
Activation vector a: 3×1
Part B:
OmniFlow is rejected as a standalone unicorn (33.2%) due to heavy competition and a small market, but qualifies strongly as a Strategic Acquisition (66.8%) and a Category Leader (71.1%) because seasoned repeat founders execute reliably and dominate their specific vertical.
Solaris AI is a classic Unicorn Moonshot (81.8%) due to an immense untapped market with zero competition, but fails as a strategic acquisition (37.8%) because unproven first-time founders and high technical failure risk scare off corporate acquirers. It lands right on the break-even tipping point for category leadership (50.0%).
Part C:No, this layer cannot decide which startup gets the investment check.
Neurons within a single layer operate in total isolation: each neuron computes its score independently and has no awareness of the other two neurons. The layer produces three parallel facts, but cannot weigh the trade-offs between competing outcomes (e.g., Is a high-risk 81.8% unicorn moonshot better or worse than a safe 71.1% vertical category leader?).
To automate the final binary decision (Fund vs. Pass), the 3 activation outputs of this layer must become the inputs to a subsequent layer whose weights learn how to prioritize and synthesize those competing criteria into a single decision. Parallel neurons gave the network width; automating the final verdict requires depth—stacking layers into a Multi-Layer Neural Network in Topic 4.