Lawfare Academy

AI & COMPUTER SCIENCE ACADEMY · Intermediate

Extended teaching and cumulative practice

Open the course workbook: six explained laboratories, transfer problems, twelve new cumulative questions and the project rubric →

Full teaching sequence and cumulative subject work

Derive and verify a two-parameter least-squares fit — primary material, constructed-response tasks, complete worked model and changed-case examination →

CS 230 — Mathematics, Statistics and Data for AI

Study mathematics, statistics and data for ai through six sequenced teaching units, original explanations, worked code, changed-condition exercises, explained checks and full assigned primary-source study.

Preparation: CS 101; algebra, functions and graphs. Work the mathematical prerequisites before machine learning.

A suggested sixteen-week study sequence. Allow 8–12 hours weekly for original instruction, full assigned readings, coding and practice; web/database study may require additional time. Adjust to your preparation.

Follow this course in My Learning →

Sixteen-week study map

The sequence integrates complete on-site readings, original instruction and applied practice. Readings reused for review are not counted again in teaching totals.

  1. Week 1: Vectors, matrices and dimensional reasoning

    Trace the original worked example and reproduce its result.

  2. Week 2: Vectors, matrices and dimensional reasoning

    Work the changed-condition problem before opening its solution.

  3. Week 3: Derivatives, gradients and optimization steps

    Trace the original worked example and reproduce its result.

  4. Week 4: Derivatives, gradients and optimization steps

    Work the changed-condition problem before opening its solution.

  5. Week 5: Derivatives, gradients and optimization steps

    Complete the transfer problem and diagnose a deliberately wrong answer.

  6. Week 6: Probability, conditional reasoning and base rates

    Trace the original worked example and reproduce its result.

  7. Week 7: Probability, conditional reasoning and base rates

    Work the changed-condition problem before opening its solution.

  8. Week 8: Probability, conditional reasoning and base rates

    Complete the transfer problem and diagnose a deliberately wrong answer.

  9. Week 9: Sampling, uncertainty and causal limits

    Trace the original worked example and reproduce its result.

  10. Week 10: Sampling, uncertainty and causal limits

    Work the changed-condition problem before opening its solution.

  11. Week 11: Sampling, uncertainty and causal limits

    Complete the transfer problem and diagnose a deliberately wrong answer.

  12. Week 12: Missing data, preprocessing and leakage

    Trace the original worked example and reproduce its result.

  13. Week 13: Missing data, preprocessing and leakage

    Work the changed-condition problem before opening its solution.

  14. Week 14: Missing data, preprocessing and leakage

    Complete the transfer problem and diagnose a deliberately wrong answer.

  15. Week 15: Decision metrics and a reproducible data report

    Trace the original worked example and reproduce its result.

  16. Week 16: Decision metrics and a reproducible data report

    Work the changed-condition problem before opening its solution.

Open the integrated reference project and checks →

Course sequence

Weeks 1–2

Vectors, matrices and dimensional reasoning

Study Dive into Deep Learning: Data Manipulation and Linear Algebra in full; complete their exercises. Write shapes beside every operation.

Read the lesson and worked example →

Weeks 3–5

Derivatives, gradients and optimization steps

Study Dive into Deep Learning: Calculus and Automatic Differentiation; work chain-rule and gradient exercises before reading optimization chapters.

Read the lesson and worked example →

Weeks 6–8

Probability, conditional reasoning and base rates

Study Dive into Deep Learning: Probability and Statistics; CS50 AI Uncertainty is an optional extension. Build contingency tables before manipulating conditional formulas.

Read the lesson and worked example →

Weeks 9–11

Sampling, uncertainty and causal limits

Study the statistical estimation material in Dive into Deep Learning and scikit-learn model evaluation. Review sampling assumptions and selection mechanisms before interpreting uncertainty.

Read the lesson and worked example →

Weeks 12–14

Missing data, preprocessing and leakage

Study scikit-learn: Imputation, Preprocessing, Pipelines and Common Pitfalls. Map the time each feature becomes available before constructing training rows.

Read the lesson and worked example →

Weeks 15–16

Decision metrics and a reproducible data report

Study scikit-learn Model Selection and Evaluation, especially classification metrics and cross-validation. Complete the mathematical exercises in the assigned sources before the final data report.

Read the lesson and worked example →

Optional integration project

Analyze a fictional service dataset: define its unit of observation, audit missingness, calculate summaries, derive a simple regression update and design an honest validation split.

Assess your work

Return to the academy →