Study interactive :: Progress tools open in the Study Hub reader.

All lessons in this module

Next lesson. Python Basics for Machine Learning

Module 00: Prerequisites

Build programming and math foundations before the ML modules. This stage is Stage 0 in the learning path.

What You'll Learn

Modules

01-python-basics

Learn Python from scratch: structured as AI programming with Python: core syntax, functional and object-oriented patterns, files, and exceptions before math-heavy ML topics.

Topics:

Capstone project:

Time Estimate: 2-3 weeks

Complete Guide

Additional Resources:

02-linear-algebra

Deep dive into linear algebra. The mathematical foundation of machine learning.

Topics:

Time Estimate: 2-3 weeks

Complete Guide

03-statistics-probability

Statistics and probability for evaluating models and reasoning about uncertainty.

Topics:

Time Estimate: 2-3 weeks

Complete Guide

04-calculus

Calculus for optimization and training machine learning models.

Topics:

Time Estimate: 1-2 weeks

Complete Guide

05-environment-setup

Set up your development environment for ML work.

Topics:

Time Estimate: 1 day

Complete Guide

Note: The file was renamed from 03-environment-setup.md to 05-environment-setup.md to maintain logical ordering.

Additional Resources

Learning Objectives

By the end of this phase, you should be able to:

Essential vs Optional (math)

Module 00 math guides are long on purpose. You do not need every MIT-style chapter before Module 01.

Essential (Gate A)

Enough to pass Gate A and start Module 01:

Area Minimum you can do
Linear algebra Add/scale vectors. Dot product. Multiply small matrices. Say why tensors and matrix multiply show up in ML
Statistics Mean, median, variance, std. Sketch a normal distribution. Basic conditional probability intuition
Calculus Derivative as slope. Gradient points uphill. Gradient descent + learning rate in plain language
Python + env Functions, classes, file I/O, Big-O of nested loops, venv + Jupyter

Optional (MIT-breadth depth)

Study later when a later module or project needs them. Not required for Gate A:

Guides still include optional depth so you can return. Skim Essential first. Circle back for optional chapters when PCA, SVD, or backprop demand them.

Foundation exit criteria (before Module 01)

Do not start Module 01 until you can pass this gate. Weak foundations here are the main reason learners stall later.

Skill Self-check
Python Write a function + class that reads a CSV and handles a missing-file error
Complexity State Big-O of a single loop vs nested loop over n items
Linear algebra Multiply two 2×2 matrices; explain what a dot product measures
Statistics Compute mean and standard deviation; explain when median beats mean
Calculus Describe gradient descent and the role of learning rate
Environment Create a venv, pip install packages, open Jupyter

Proof of work (required): Movie script capstone plus the skill checklist above.

Optional stretch: NumPy neural network tutorial after the movie-script capstone. It does not replace Gate A.

Full job-market context: Foundation & Job Market Readiness

Exercises

Each module includes:

Getting Started

  1. Start with 01-python-basics
  2. Complete all exercises
  3. Study 02-linear-algebra (foundation of ML)
  4. Study 03-statistics-probability (for model evaluation)
  5. Study 04-calculus (for optimization)
  6. Set up your environment in 05-environment-setup

Tips

Documentation & Learning Resources

Python Programming

Official Documentation:

Free Courses:

Interactive Learning:

Mathematics for ML

Linear Algebra:

Statistics:

Calculus:

Mathematics for ML (Combined):

Git & Version Control

Essential for ML Projects:

Why Learn Git:


Exit gate (Stage 0)

Before starting Module 01, complete Gate A: Python fluency, Big-O, linear algebra basics, stats, gradient intuition, and the required movie-script capstone. The NumPy NN tutorial is optional stretch only.

Next Module: 01-python-for-data-science


Important Notes

Mathematics Learning Strategy

  1. Don't Skip Math: Strong mathematical foundation makes ML much easier
  2. Focus on Intuition: Understand concepts, not just formulas
  3. Practice with Code: Use NumPy to implement concepts
  4. Visual Learning: Watch 3Blue1Brown videos for geometric intuition
  5. Apply to ML: Connect each concept to ML applications
  1. Linear Algebra First: Foundation for everything
  2. Statistics Second: Needed for data understanding
  3. Calculus Third: Needed for optimization
  4. Practice Together: Work on exercises combining all three

Time Investment


Try next: A strong mathematical foundation will make all subsequent ML learning much smoother. Take your time with this phase!

All lessons in this module

Next lesson. Python Basics for Machine Learning