Financial Engineering and Artificial Intelligence in Python

Financial Analysis, Time Series Analysis, Portfolio Optimization, CAPM, Algorithmic Trading, Q-Learning, and MORE!

Generative AI
4.7/5
$54.99
$219.99
75% OFF!
  • All levels
  • 157 Lectures
  • 23h 11m
  • English
  • Lifetime access, certificate of completion (shareable on LinkedIn, Facebook, and Twitter), Q&A forum, LaTeX notes, subtitles in English
Login or signup to
register for this course

Course Description

Have you ever thought about what would happen if you combined the power of machine learning and artificial intelligence with financial engineering?

Today, you can stop imagining, and start doing.

This course will teach you the core fundamentals of financial engineering, with a machine learning twist.

We will cover must-know topics in financial engineering, such as:

  • Exploratory data analysis, significance testing, correlations, alpha and beta
  • Time series analysis, simple moving average, exponentially-weighted moving average
  • Holt-Winters exponential smoothing model
  • ARIMA and SARIMA
  • Efficient Market Hypothesis
  • Random Walk Hypothesis
  • Time series forecasting ("stock price prediction")
  • Modern portfolio theory
  • Efficient frontier / Markowitz bullet
  • Mean-variance optimization
  • Maximizing the Sharpe ratio
  • Convex optimization with Linear Programming and Quadratic Programming
  • Capital Asset Pricing Model (CAPM)
  • Algorithmic trading (VIP only)
  • Statistical Factor Models (VIP only)
  • Regime Detection with Hidden Markov Models (VIP only)


In addition, we will look at various non-traditional techniques which stem purely from the field of machine learning and artificial intelligence, such as:

  • Regression models
  • Classification models
  • Unsupervised learning
  • Reinforcement learning and Q-learning


We will learn about the greatest flub made in the past decade by marketers posing as "machine learning experts" who promise to teach unsuspecting students how to "predict stock prices with LSTMs". You will learn exactly why their methodology is fundamentally flawed and why their results are complete nonsense. It is a lesson in how not to apply AI in finance.

As the author of ~30 courses in machine learning, deep learning, data science, and artificial intelligence, I couldn't help but wander into the vast and complex world of financial engineering.

This course is for anyone who loves finance or artificial intelligence, and especially if you love both!

Whether you are a student, a professional, or someone who wants to advance their career - this course is for you.

Thanks for reading, I will see you in class!

Suggested Prerequisites:

  • Matrix arithmetic
  • Probability
  • Decent Python coding skills
  • Numpy, Matplotlib, Scipy, and Pandas (I teach this for free, no excuses!)

Lectures

  • 18 sections
  • 157 lectures
  • 23h 11m total length
Introduction and Outline
Preview
06:39
Scope of the course
03:48
How to Practice
05:39
Warmup (Optional)
04:46
Where to get the code
02:06
Temporary 403 Errors
02:58
Financial Basics Section Introduction
05:32
Getting Financial Data
07:20
Getting Financial Data (Code)
07:16
Understanding Financial Data
05:05
Understanding Financial Data (Code)
12:08
Dealing with Missing Data
05:58
Dealing with Missing Data (Code)
07:00
Returns
09:15
Adjusted Close, Stock Splits, and Dividends
11:30
Adjusted Close (Code)
03:49
Back to Returns (Code)
07:21
QQ-Plots
05:29
QQ-Plots (Code)
07:19
The t-Distribution
03:55
The t-Distribution (Code)
08:07
Skewness and Kurtosis
07:34
Confidence Intervals
10:28
Confidence Intervals (Code)
02:16
Statistical Testing
14:18
Statistical Testing (Code)
07:07
Covariance and Correlation
08:16
Covariance and Correlation (Code)
05:56
Alpha and Beta
06:55
Alpha and Beta (Code)
08:09
Mixture of Gaussians
06:41
Mixture of Gaussians (Code)
06:13
Volatility Clustering
03:03
Price Simulation
03:04
Price Simulation (Code)
02:34
Financial Basics Section Summary
02:20
Suggestion Box
03:10
Time Series Analysis Section Introduction
06:52
Efficient Market Hypothesis
11:17
Random Walk Hypothesis
14:25
The Naive Forecast
06:45
Simple Moving Average (Theory)
04:17
Simple Moving Average (Code)
08:41
Exponentially-Weighted Moving Average (Theory)
11:07
Exponentially-Weighted Moving Average (Code)
11:05
Simple Exponential Smoothing for Forecasting (Theory)
10:13
Simple Exponential Smoothing for Forecasting (Code)
10:24
Holt's Linear Trend Model (Theory)
07:55
Holt's Linear Trend Model (Code)
03:11
Holt-Winters (Theory)
11:20
Holt-Winters (Code)
08:00
Autoregressive Models - AR(p)
12:51
Moving Average Models - MA(q)
03:31
ARIMA
10:45
ARIMA in Code (pt 1)
20:25
Stationarity
12:20
Stationarity Code
09:50
ACF (Autocorrelation Function)
10:10
PACF (Partial Autocorrelation Funtion)
06:55
ACF and PACF in Code (pt 1)
08:26
ACF and PACF in Code (pt 2)
07:03
Auto ARIMA and SARIMAX
09:41
Model Selection, AIC and BIC
09:52
ARIMA in Code (pt 2)
14:39
ARIMA in Code (pt 3)
16:21
ACF and PACF for Stock Returns
07:35
Forecasting
09:14
Time Series Analysis Section Conclusion
04:12
Portfolio Optimization Section Introduction
03:35
The S&P500
02:46
What is Risk?
07:03
Why Diversify?
08:28
Describing a Portfolio (pt 1)
09:51
Describing a Portfolio (pt 2)
06:30
Visualizing Random Portfolios and Monte Carlo Simulation (pt 1)
13:07
Visualizing Random Portfolios and Monte Carlo Simulation (pt 2)
15:07
Maximum and Minimum Portfolio Return
09:35
Maximum and Minimum Portfolio Return in Code
04:59
Mean-Variance Optimization
07:26
The Efficient Frontier
07:23
Mean-Variance Optimization And The Efficient Frontier in Code
09:13
Global Minimum Variance (GMV) Portfolio
01:56
Global Minimum Variance (GMV) Portfolio in Code
02:14
Optimal Portfolio Closed-Form Solution
20:11
Optimal Portfolio Closed-Form Solution in Code
05:38
Sharpe Ratio
08:01
Maximum Sharpe Ratio in Code
06:35
Portfolio with a Risk-Free Asset and Tangency Portfolio
09:52
Risk-Free Asset and Tangency Portfolio in Code
02:16
Capital Asset Pricing Model (CAPM)
12:26
Problems with Markowitz Portfolio Theory and Robust Estimation
09:13
Portfolio Optimization Section Conclusion
02:25
Algorithmic Trading Section Introduction
02:55
Trend-Following Strategy
13:14
Trend-Following Strategy in Code (pt 1)
08:27
Trend-Following Strategy in Code (pt 2)
09:38
Machine Learning-Based Trading Strategy
07:53
Machine Learning-Based Trading Strategy in Code
09:25
Classification-Based Trading Strategy in Code
03:40
Using a Random Forest Classifier for Machine Learning-Based Trading
05:00
Algorithmic Trading Section Summary
05:56
Reinforcement Learning Section Introduction
06:34
Elements of a Reinforcement Learning Problem
20:18
States, Actions, Rewards, Policies
09:24
Markov Decision Processes (MDPs)
10:07
The Return
04:56
Value Functions and the Bellman Equation
09:53
What does it mean to “learn”?
07:18
Solving the Bellman Equation with Reinforcement Learning (pt 1)
09:49
Solving the Bellman Equation with Reinforcement Learning (pt 2)
12:04
Epsilon-Greedy
06:09
Q-Learning
14:15
How to Learn Reinforcement Learning
05:56
Trend-Following Strategy with Reinforcement Learning API
12:33
Trend-Following Strategy Revisited (Code)
09:14
Q-Learning in an Algorithmic Trading Context
07:39
Representing States
07:27
Q-Learning for Algorithmic Trading in Code
15:33
Statistical Factor Models (Beginner)
15:41
Statistical Factor Models (Intermediate)
10:09
Statistical Factor Models (Advanced)
19:50
Statistical Factor Models (Code)
16:13
Why Sequence Models? (pt 1)
14:06
Why Sequence Models? (pt 2)
12:14
HMM Parameters
09:26
HMM Tasks and the Viterbi Algorithm
15:15
HMM for Modeling Volatility Clustering in Code
18:38
Predicting A Recession (Demo Walkthrough)
13:05
Predicting A Recession Discussion
02:40
Let's Beat the Naive Forecast
13:25
Final Thoughts and Course Summary
06:10
Creating Your Personalized Trading Strategy
14:01
Applying This Course
08:30
Trading APIs and Deploying Your Strategy in the Real World
05:53
High Frequency Trading (HFT)
03:54
The Importance of Data
09:14
Why do I have to learn statistics to learn finance?
10:37
Get a Plug-and-Play Trading Bot Without Math
05:11
Slippage and Bid-Ask Spread
03:16
Eliminating the Naive Mindset (pt 1)
16:01
Eliminating the Naive Mindset (pt 2)
15:13
VIP: Finance Enthusiasts, Beware of Marketers!
02:03
What is the Appendix?
03:47
Pre-Installation Check
04:13
Anaconda Environment Setup
20:21
How to install Numpy, Scipy, Matplotlib, Pandas, PyTorch, and TensorFlow
17:33
Beginner's Coding Tips
13:22
How to Code Yourself (part 1)
15:55
How to Code Yourself (part 2)
09:24
Proof that using Jupyter Notebook is the same as not using it
12:29
Python 2 vs Python 3
04:38
How to use Github & Extra Coding Tips (Optional)
11:12
How to Succeed in this Course (Long Version)
10:25
Is this for Beginners or Experts? Academic or Practical? Fast or slow-paced?
22:05
What order should I take your courses in? (part 1)
11:19
What order should I take your courses in? (part 2)
16:07
Where to get discount coupons and FREE AI tutorials
05:49

Reviews

4.7

38 reviews for this course

5 Stars
(57%)
4 Stars
(35%)
3 Stars
(6%)
2 Stars
(1%)
1 Stars
(1%)

Testimonials and Success Stories

student-avatar

H. Z.

Machine Learning Research Scientist
flag-usa
United States

“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!”

5.0
student-avatar

Wade J.

Data Scientist
flag-usa
United States

“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.”

5.0
student-avatar

Kris M.

Data Scientist
flag-usa
United States

“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.”

5.0
student-avatar

Steve M.

Machine Learning Research Scientist
flag-usa
United States

“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.

Your courses are just what I have been seeking. I am a retired mathematician, statistician and Supply Chain executive from a large Fortune 500 company in Ohio. I also taught mathematics, statistics and operations research courses at a couple of universities in Northern Ohio.

I have taken many courses and have enjoyed the journey, I am not going to be critical of any of the organizations from whom I have taken courses. However, when I read a review about one of your courses in which the student was complaining that one would need a PhD in Mathematics to understand it, I knew this was the course (or series of courses) that I wanted. (Having advanced degrees in mathematics, I knew that it was highly unlikely that a PhD would actually be required.)”

5.0
student-avatar

Saurabh W.

Data Scientist
flag-india
India

“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.”

5.0
student-avatar

David P.

Financial Analyst
flag-usa
United States

“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. :)”

5.0
student-avatar

P. C.

Deep Learning Research Scientist
flag-china
China

“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.

Course by course, I was renewing the basics and the prerequisites. Thus, in several months, after every day studying under your guidance, I was able to gain enough intuitions and practical skills in order to begin progressing in my research. Having a solid background, it was just a pleasure to read all the relevant papers in the field as well as to make all the experiments needed for achieving my goal – creating a high-performance CNN for offline HCCR.

I believe, the professionalism of any teacher can be estimated by the feedback received from their students, and it’s of the utmost importance for me to thank you, Lazy Programmer!

I want you to know, in spite, that we have never actually met and you haven’t taught me privately, I consider you one of my greatest Teachers.

The most important things I have learned from you (some in the hard way, though) beside many exciting modern Deep Learning/AI techniques and algorithms are:

1) If one doesn’t know how to program something, one doesn’t understand it completely.

2) If one is not honest with oneself about one’s prior knowledge, one will never succeed in studying more advanced things.

3) Developing skills in BOTH Math and Programming is what makes one a good student of this major.

I am still studying your courses, and am certain I will ask you more than just a few technical questions regarding their content, but I already would like to say, that I will remember your contribution to my adventure in the Deep Learning field, and consider it as big as one of such great scientists’ as Andrew Ng, Geoffrey Hinton, and my supervisor.

Thank you, Lazy Programmer! 非常感谢您,Lazy 老师!

If you are interested, you can find my first paper’s preprint here:

https://arxiv.org/abs/xxx”

5.0
student-avatar

Dima K.

Data Scientist
flag-ukraine
Ukraine

“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.”

5.0
student-avatar

Andres Lopez C.

Data Engineer
flag-usa
United States

“This course is exactly what I was looking for. The instructor does an impressive job making students understand they need to work hard in order to learned. The examples are clear, and the explanations of the theory is very interesting.”

5.0
student-avatar

Mohammed K.

Machine Learning Engineer
flag-germany
Germany

“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.”

5.0
student-avatar

Tom P.

Machine Learning Engineer
flag-usa
United States

“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.”

5.0
Start learning today

Join 30 day bootcamp for free

4.7/5 from — 600k+ learners