Goal: Consolidate Week 2 with derivations + short computational checks.
Outcome: Students can derive key results, verify with small code experiments, and communicate clearly under interview constraints.
- Fork this repository.
- Open
math_student_lab.ipynbin Google Colab. - Complete derivations + TODO code.
- Restart runtime → Run All cells.
- Push changes and submit a Pull Request.
- ✅ Show steps (but be concise)
- ✅ Validate with a small numeric experiment
- ✅ Call out assumptions
- Do NOT rename the notebook
- Do NOT delete TODOs
- Do NOT hardcode outputs
- Notebook must run top-to-bottom
- Synthetic matrices/vectors and toy probability setups
- Keeps focus on derivation + verification
- Mirrors interview whiteboard + quick sanity check workflow
Checkpoint Questions:
- What does idempotent mean?
- Why is orthogonal projection symmetric?
Interview Angle:
- Where does PSD show up in ML (covariance, kernels)?
FAANG Gotcha:
- Avoid matrix inverse; use solve/lstsq.
Checkpoint Questions:
- Why does base rate dominate when prevalence is low?
Interview Angle:
- How does PCA relate to embeddings and compression?
Students must submit:
- Derivations written clearly
- TODO code complete
- Checks passing
| Skill | Evaluated |
|---|---|
| Derivation correctness | ✅ |
| Verification discipline | ✅ |
| ML intuition | ✅ |
| Explanation clarity | ✅ |
- Linear algebra: projections, orthogonality, PSD matrices
- Probability: expectation, variance, Bayes
- ML links: least squares, PCA, Naive Bayes