
Matrices and Layer Width In Practice
Master matrix-vector multiplication, layer width scaling, affine layer transformations, and parallel multi-output evaluation through manual calculation.
Part 1: The Underlying Mechanics Drill
Work through each problem on paper before revealing the step-by-step solution.
Problem 1: Matrix-Vector Multiplication
Calculate the matrix-vector product for the given weight matrix and input vector :
Reveal Solution
Compute each row dot product:
- Row 1:
- Row 2:
Assemble the resulting output vector:
The matrix transforms the 2D input vector into the 2D output vector .
Problem 2: Transformation (Dimensional Expansion)
Calculate the matrix-vector product for the given matrix and vector :
Reveal Solution
Compute each row dot product:
- Row 1:
- Row 2:
- Row 3:
Assemble the resulting output vector:
Dimensionality Insight: The matrix accepts a 2-dimensional input vector () and maps it into a 3-dimensional output coordinate space ().
Problem 3: Affine Layer Linear Sum ()
Calculate the pre-activation vector for the given weight matrix , input vector , and bias vector :
Reveal Solution
Step 1: Compute matrix-vector multiplication :
- Row 1:
- Row 2:
Step 2: Add the bias vector :
The affine linear sum vector is .
Problem 4: Dimension Compatibility & Layer Sizing
Given the following matrices and vectors:
-
-
-
-
-
Part A: Is the product mathematically defined? If so, what is the dimension of the resulting vector?
-
Part B: Is the product mathematically defined? Explain why or why not.
-
Part C: Is the product mathematically defined? (Recall ). If so, what is the output dimension?
-
Part D: If an engineer designs a dense layer with layer width that accepts an input vector of features, what must the dimensions of the weight matrix and bias vector be?
Reveal Solution
- Part A: Yes, is defined.
- Shape check: . The inner dimensions match ().
- The resulting output vector has shape ().
- Part B: No, is undefined.
- Shape check: . The inner dimensions do not match (). Matrix expects an input vector with 4 features, but vector has only 3 entries.
- Part C: Yes, is defined.
- Shape check: . The inner dimensions match ().
- The resulting output vector has shape ().
- Part D: For layer width and input dimension :
- Weight Matrix: ( rows for the 5 parallel neurons, columns for the 3 input features).
- Bias Vector: ( baseline offsets, one for each neuron).
Problem 5: Zero-Row Nullification and Parameter Isolation
Consider a 3-neuron layer parameterized by the following weight matrix and bias vector , processing an extreme input vector :
- Part A: Calculate the pre-activation value for the second neuron (Row 2).
- Part B: Explain why remains completely unchanged regardless of whether the input vector entries are , , or .
Reveal Solution
Part A: Pre-activation Calculation for Neuron 2 ()
Part B: Mathematical Isolation
Because every weight in Row 2 is exactly zero (), the dot product is identically zero for all possible input vectors .
Neuron 2 is mathematically decoupled from the input data. Its output depends exclusively on its baseline bias: . In neural networks, zeroing out a row of weights completely nullifies that neuron's sensitivity to the input features.
Part 2: Applied Scenario: The VC Decision Matrix
In Topics 1 and 2, we evaluated startup pitch decks for a venture capital firm using a 4-dimensional feature vector across locked features [Team Experience, Market Size, Competition, Risk]:
Rather than evaluating a single Unicorn score, the investment committee uses a 3-channel decision matrix to evaluate every startup across three independent investment outcomes simultaneously:
- Channel 1 (Unicorn Potential): Looks for massive market size and exceptional team pedigree; penalizes heavy competition.
- Channel 2 (Capital Efficiency / Cash Flow): Requires strong team execution and low capital burn; heavily penalizes high risk and execution uncertainty.
- Channel 3 (M&A Strategic Acquisition Target): Looks for startups operating in crowded, high-competition sectors with high risk that established tech giants frequently acquire for talent and niche market share.
We assemble these three investment channels into the Weight Matrix and Bias Vector :
Problem 6: Multi-Output Startup Evaluation
- Part A: Compute the raw matrix product for both OmniFlow and Solaris AI.
- Part B: Compute the affine pre-activation vector for both startups.
- Part C: Calculate the Sigmoid activation probability vector for both startups (use reference values: , , , , , ).
- Part D: Provide a concise investment committee synthesis explaining how the multi-neuron layer reveals distinct strategic profiles for each startup.
Reveal Solution
Part A & B: Matrix-Vector Multiplication and Affine Sums
For OmniFlow ():
-
Channel 1 (Unicorn Potential):
-
Channel 2 (Capital Efficiency):
-
Channel 3 (M&A Acquisition Target):
For Solaris AI ():
-
Channel 1 (Unicorn Potential):
-
Channel 2 (Capital Efficiency):
-
Channel 3 (M&A Acquisition Target):
Part C: Sigmoid Activation Vectors
Applying the Sigmoid activation function :
For OmniFlow:
For Solaris AI:
To visually compare how both startup pitch vectors flow through the 3-channel investment decision matrix, examine the computational flow below:

Part D: Investment Committee Strategic Synthesis
The multi-output layer reveals that evaluating startups across a single dimension produces an incomplete picture:
- OmniFlow is rejected for a standalone Unicorn fund investment () because severe sector competition drags down its score. However, its veteran team and high market competition make it an ideal M&A Strategic Acquisition Target (), representing a strong opportunity for a private equity or strategic growth fund.
- Solaris AI is a clear Unicorn Fund Greenlight () driven by an uncontested, massive total addressable market (). However, its low Capital Efficiency score () warns the partners that the company will require substantial follow-on capital reserves to survive its high technical risk profile ().
By stacking decision channels into a single matrix forward pass (), the neural network converts a single raw pitch profile into a multidimensional strategic assessment in a single computational step.