Back to Blog

Math

·Reha Tuncer·Math
MathLinear AlgebraNumPyPythonMatricesFoundations
View source on GitHub

Math

Foundational mathematics for machine learning — linear algebra, calculus, probability, and visualization progressing from manual Python implementations to NumPy and Matplotlib.

Modules

ModuleDescriptionFiles
Linear AlgebraMatrix operations: slicing, shape, transpose, element-wise ops, concatenation, multiplication — manual → NumPy19 tasks
Advanced Linear AlgebraDeterminant, minor, cofactor, adjugate, inverse, definiteness — pure Python → NumPy verification7 tasks
CalculusDerivatives, partial derivatives, integrals, definite/indefinite, double integrals17 tasks
Bayesian ProbabilityLikelihood, intersection, marginal, posterior probability with NumPy4 tasks
PlottingMatplotlib: line, scatter, bar, frequency, all-in-one, gradient descent, PCA9 tasks
ProbabilityStatistical distributions: binomial, normal, poisson, exponential4 tasks

Learning Path

  1. Python Slicing (Tasks 0–1): Master array indexing and 2D extraction
  2. Manual Matrix Operations (Tasks 2–8): Build intuition with nested loops — shape, transpose, add, concat, multiply
  3. NumPy Transition (Task 9): First contact with NumPy arrays and transpose
  4. NumPy Vectorization (Tasks 10–14): Replace loops with built-in methods — shape, transpose, broadcasting, @ operator
  5. Advanced Generalization (Tasks 100–102): N-dimensional operations with recursion, slice objects, tuple indexing
  6. Advanced Linear Algebra (det → minor → cofactor → adjugate → inverse → definiteness)
  7. Calculus (derivatives → partial derivatives → integrals → double integrals)
  8. Probability & Bayesian (distributions → likelihood → posterior)
  9. Visualization (basic plots → gradient descent → PCA)

Resources