Math 0-1: Matrix Calculus for Data Science & Machine Learning

A Casual Guide for Artificial Intelligence, Deep Learning, and Python Programmers

Register for this Course

$19.99 $199.99 USD 90% OFF!

Login or signup to register for this course

Have a coupon? Click here.

Course Data

Lectures: 39
Length: 6h 49m
Skill Level: All Levels
Languages: English
Includes: Lifetime access, certificate of completion (shareable on LinkedIn, Facebook, and Twitter), Q&A forum

Course Description

Welcome to the exciting world of Matrix Calculus, a fundamental tool for understanding and solving problems in machine learning and data science. In this course, we will dive into the powerful mathematics that underpin many of the algorithms and techniques used in these fields. By the end of this course, you'll have the knowledge and skills to navigate the complex landscape of derivatives, gradients, and optimizations involving matrices.

Course Objectives:

  • Understand the basics of matrix calculus, linear and quadratic forms, and their derivatives.
  • Learn how to utilize the famous Matrix Cookbook for a wide range of matrix calculus operations.
  • Gain proficiency in optimization techniques like gradient descent and Newton's method in one and multiple dimensions.
  • Apply the concepts learned to realworld problems in machine learning and data science, with handson exercises and Python code examples.
Why Matrix Calculus? Matrix calculus is the language of machine learning and data science. In these fields, we often work with high-dimensional data, making matrices and their derivatives a natural representation for our problems. Understanding matrix calculus is crucial for developing and analyzing algorithms, building predictive models, and making sense of the vast amounts of data at our disposal.

Section 1: Linear and Quadratic Forms In the first part of the course, we'll explore the basics of linear and quadratic forms, and their derivatives. The linear form appears in all of the most fundamental and popular machine learning models, including linear regression, logistic regression, support vector machine (SVM), and deep neural networks. We will also dive into quadratic forms, which are fundamental to understanding optimization problems, which appear in regression, portfolio optimization in finance, signal processing, and control theory.

The Matrix Cookbook is a valuable resource that compiles a wide range of matrix derivative formulas in one place. You'll learn how to use this reference effectively, saving you time and ensuring the accuracy of your derivations.

Section 2: Optimization Techniques Optimization lies at the heart of many machine learning and data science tasks. In this section, we will explore two crucial optimization methods: gradient descent and Newton's method. You'll learn how to optimize not only in one dimension but also in high-dimensional spaces, which is essential for training complex models. We'll provide Python code examples to help you grasp the practical implementation of these techniques.

Course Structure:

  • Each lecture will include a theoretical introduction to the topic.
  • We will work through relevant mathematical derivations and provide intuitive explanations.
  • Handson exercises will allow you to apply what you've learned to realworld problems.
  • Python code examples will help you implement and experiment with the concepts.
  • There will be opportunities for questions and discussions to deepen your understanding.

  • Basic knowledge of linear algebra, calculus, and Python programming is recommended.
  • A strong desire to learn and explore the fascinating world of matrix calculus.
Conclusion: Matrix calculus is an indispensable tool in the fields of machine learning and data science. It empowers you to understand, create, and optimize algorithms that drive innovation and decision-making in today's data-driven world. This course will equip you with the knowledge and skills to navigate the intricate world of matrix calculus, setting you on a path to become a proficient data scientist or machine learning engineer. So, let's dive in, embrace the world of matrices, and unlock the secrets of data science and machine learning together!

Testimonials and Success Stories

I am one of your students. Yesterday, I presented my paper at ICCV 2019. You have a significant part in this, so I want to sincerely thank you for your in-depth guidance to the puzzle of deep learning. Please keep making awesome courses that teach us!

I just watched your short video on “Predicting Stock Prices with LSTMs: One Mistake Everyone Makes.” Giggled with delight.

You probably already know this, but some of us really and truly appreciate you. BTW, I spent a reasonable amount of time making a learning roadmap based on your courses and have started the journey.

Looking forward to your new stuff.

Thank you for doing this! I wish everyone who call’s themselves a Data Scientist would take the time to do this either as a refresher or learn the material. I have had to work with so many people in prior roles that wanted to jump right into machine learning on my teams and didn’t even understand the first thing about the basics you have in here!!

I am signing up so that I have the easy refresh when needed and the see what you consider important, as well as to support your great work, thank you.

Thank you, I think you have opened my eyes. I was using API to implement Deep learning algorithms and each time I felt I was messing out on some things. So thank you very much.

I have been intending to send you an email expressing my gratitude for the work that you have done to create all of these data science courses in Machine Learning and Artificial Intelligence. I have been looking long and hard for courses that have mathematical rigor relative to the application of the ML & AI algorithms as opposed to just exhibit some 'canned routine' and then viola here is your neural network or logistical regression. ...


I have now taken a few classes from some well-known AI profs at Stanford (Andrew Ng, Christopher Manning, …) with an overall average mark in the mid-90s. Just so you know, you are as good as any of them. But I hope that you already know that.

I wish you a happy and safe holiday season. I am glad you chose to share your knowledge with the rest of us.

Hi Sir I am a student from India. I've been wanting to write a note to thank you for the courses that you've made because they have changed my career. I wanted to work in the field of data science but I was not having proper guidance but then I stumbled upon your "Logistic Regression" course in March and since then, there's been no looking back. I learned ANNs, CNNs, RNNs, Tensorflow, NLP and whatnot by going through your lectures. The knowledge that I gained enabled me to get a job as a Business Technology Analyst at one of my dream firms even in the midst of this pandemic. For that, I shall always be grateful to you. Please keep making more courses with the level of detail that you do in low-level libraries like Theano.

I just wanted to reach out and thank you for your most excellent course that I am nearing finishing.

And, I couldn't agree more with some of your "rants", and found myself nodding vigorously!

You are an excellent teacher, and a rare breed.

And, your courses are frankly, more digestible and teach a student far more than some of the top-tier courses from ivy leagues I have taken in the past.

(I plan to go through many more courses, one by one!)

I know you must be deluged with complaints in spite of the best content around That's just human nature.

Also, satisfied people rarely take the time to write, so I thought I will write in for a change. :)

Hello, Lazy Programmer!

In the process of completing my Master’s at Hunan University, China, I am writing this feedback to you in order to express my deep gratitude for all the knowledge and skills I have obtained studying your courses and following your recommendations.

The first course of yours I took was on Convolutional Neural Networks (“Deep Learning p.5”, as far as I remember). Answering one of my questions on the Q&A board, you suggested I should start from the beginning – the Linear and Logistic Regression courses. Despite that I assumed I had already known many basic things at that time, I overcame my “pride” and decided to start my journey in Deep Learning from scratch. ...


By the way, if you are interested to hear. I used the HMM classification, as it was in your course (95% of the script, I had little adjustments there), for the Customer-Care department in a big known fintech company. to predict who will call them, so they can call him before the rush hours, and improve the service. Instead of a poem, I Had a sequence of the last 24 hours' events that the customer had, like: "Loaded money", "Usage in the food service", "Entering the app", "Trying to change the password", etc... the label was called or didn't call. The outcome was great. They use it for their VIP customers. Our data science department and I got a lot of praise.



3 Lectures · 15min
  1. Introduction and Outline (04:36) (FREE preview available)
  2. How to Succeed in this Course (08:45)
  3. Where to get the code (02:06)

Matrix and Vector Derivatives

15 Lectures · 02hr 28min
  1. Derivatives - Section Introduction (03:31)
  2. Linear Form (06:19)
  3. Quadratic Form (pt 1) (22:36)
  4. Quadratic Form (pt 2) (05:00)
  5. Exercise: Quadratic (03:41)
  6. Exercise: Least Squares (08:42)
  7. Exercise: Gaussian (21:45)
  8. Chain Rule (09:50)
  9. Chain Rule in Matrix Form (12:05)
  10. Chain Rule Generalized (17:30)
  11. Exercise: Quadratic with Constraints (08:30)
  12. Left and Right Inverse as Optimization Problems (16:38)
  13. Derivative of Determinant (07:31)
  14. Derivatives - Section Summary (01:18)
  15. Suggestion Box (03:10)

Optimization Techniques

10 Lectures · 01hr 42min
  1. Optimization - Section Introduction (02:18)
  2. Second Derivative Test in Multiple Dimensions (09:17)
  3. Gradient Descent (One Dimension) (22:40)
  4. Gradient Descent (Multiple Dimensions) (06:08)
  5. Newton's Method (One Dimension) (09:14)
  6. Newton's Method (Multiple Dimensions) (15:01)
  7. Exercise: Newton's Method for Least Squares (08:59)
  8. Exercise: Code Preparation (13:41)
  9. Gradient Descent and Newton's Method in Python (13:08)
  10. Optimization - Section Summary (01:55)

Setting Up Your Environment (Appendix/FAQ by Student Request)

4 Lectures · 53min
  1. Pre-Installation Check (04:13)
  2. Anaconda Environment Setup (20:21)
  3. How to install Numpy, Scipy, Matplotlib, Pandas, IPython, Theano, and TensorFlow (17:33)
  4. How to use Github & Extra Coding Tips (Optional) (11:12)

Effective Learning Strategies for Machine Learning (Appendix/FAQ by Student Request)

5 Lectures · 01hr 20min
  1. Math Order for Machine Learning & Data Science (16:20)
  2. Can YouTube Teach Me Calculus? (Optional) (15:08)
  3. Is this for Beginners or Experts? Academic or Practical? Fast or slow-paced? (22:05)
  4. What order should I take your courses in? (part 1) (11:19)
  5. What order should I take your courses in? (part 2) (16:07)

Appendix / FAQ Finale

2 Lectures · 08min
  1. What is the Appendix? (02:48)
  2. Where to get discount coupons and FREE deep learning material (05:49)
This website is using cookies. That's Fine