Generative AI for Trading and Asset Management
Expert guide on using AI to supercharge traders' productivity, optimize portfolios, and suggest new trading strategies

Generative AI for Trading and Asset Management is an essential guide to understand how generative AI has emerged as a transformative force in the realm of asset management, particularly in the context of trading, due to its ability to analyze vast datasets, identify intricate patterns, and suggest complex trading strategies. Practically, this book explains how to utilize various types of AI: unsupervised learning, supervised learning, reinforcement learning, and large language models to suggest new trading strategies, manage risks, optimize trading strategies and portfolios, and generally improve the productivity of algorithmic and discretionary traders alike. These techniques converge into an algorithm to trade on the Federal Reserve chair's press conferences in real time.

Written by Hamlet Medina, chief data scientist Criteo, and Ernie Chan, founder of QTS Capital Management and Predictnow.ai, this book explores topics including:

  • How large language models and other machine learning techniques can improve productivity of algorithmic and discretionary traders from ideation, signal generations, backtesting, risk management, to portfolio optimization
  • The pros and cons of tree-based models vs neural networks as they relate to financial applications. How regularization techniques can enhance out of sample performance
  • Comprehensive exploration of the main families of explicit and implicit generative models for modeling high-dimensional data, including their advantages and limitations in model representation and training, sampling quality and speed, and representation learning.
  • Techniques for combining and utilizing generative models to address data scarcity and enhance data augmentation for training ML models in financial applications like market simulations, sentiment analysis, risk management, and more.
  • Application of generative AI models for processing fundamental data to develop trading signals.
  • Exploration of efficient methods for deploying large models into production, highlighting techniques and strategies to enhance inference efficiency, such as model pruning, quantization, and knowledge distillation.
  • Using existing LLMs to translate Federal Reserve Chair's speeches to text and generate trading signals.

Generative AI for Trading and Asset Management earns a well-deserved spot on the bookshelves of all asset managers seeking to harness the ever-changing landscape of AI technologies to navigate financial markets.

1146864119
Generative AI for Trading and Asset Management
Expert guide on using AI to supercharge traders' productivity, optimize portfolios, and suggest new trading strategies

Generative AI for Trading and Asset Management is an essential guide to understand how generative AI has emerged as a transformative force in the realm of asset management, particularly in the context of trading, due to its ability to analyze vast datasets, identify intricate patterns, and suggest complex trading strategies. Practically, this book explains how to utilize various types of AI: unsupervised learning, supervised learning, reinforcement learning, and large language models to suggest new trading strategies, manage risks, optimize trading strategies and portfolios, and generally improve the productivity of algorithmic and discretionary traders alike. These techniques converge into an algorithm to trade on the Federal Reserve chair's press conferences in real time.

Written by Hamlet Medina, chief data scientist Criteo, and Ernie Chan, founder of QTS Capital Management and Predictnow.ai, this book explores topics including:

  • How large language models and other machine learning techniques can improve productivity of algorithmic and discretionary traders from ideation, signal generations, backtesting, risk management, to portfolio optimization
  • The pros and cons of tree-based models vs neural networks as they relate to financial applications. How regularization techniques can enhance out of sample performance
  • Comprehensive exploration of the main families of explicit and implicit generative models for modeling high-dimensional data, including their advantages and limitations in model representation and training, sampling quality and speed, and representation learning.
  • Techniques for combining and utilizing generative models to address data scarcity and enhance data augmentation for training ML models in financial applications like market simulations, sentiment analysis, risk management, and more.
  • Application of generative AI models for processing fundamental data to develop trading signals.
  • Exploration of efficient methods for deploying large models into production, highlighting techniques and strategies to enhance inference efficiency, such as model pruning, quantization, and knowledge distillation.
  • Using existing LLMs to translate Federal Reserve Chair's speeches to text and generate trading signals.

Generative AI for Trading and Asset Management earns a well-deserved spot on the bookshelves of all asset managers seeking to harness the ever-changing landscape of AI technologies to navigate financial markets.

33.0 In Stock
Generative AI for Trading and Asset Management

Generative AI for Trading and Asset Management

by Hamlet Jesse Medina Ruiz, Ernest P. Chan
Generative AI for Trading and Asset Management

Generative AI for Trading and Asset Management

by Hamlet Jesse Medina Ruiz, Ernest P. Chan

eBook

$33.00 

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers

LEND ME® See Details

Overview

In Generative AI for Trading and Asset Management, a team of veteran finance and technology experts delivers a transformative new guide to using contemporary forms of AI technology—including unsupervised learning, supervised learning, reinforcement learning, and large language models—to improve the productivity of algorithmic and discretionary traders.

The book explains how large language models and other machine learning techniques can contribute to trader efficiency and effectiveness, from ideation to signal generation, backtesting, risk management, and portfolio optimization. It demonstrates the pros and cons of tree-based models and neural networks as they relate to financial applications and how regularization techniques can enhance out-of-sample performance.

Generative AI for Trading and Asset Management offers comprehensive explorations of the most common families of explicit and implicit generative modeling of high-dimensional data and covers their advantages and limitations in model representation and training, sampling quality and speed, and representation learning.

You’ll learn how to develop new trading strategies, manage risks, optimize your own trading behavior, and improve your portfolios. The authors explain how to train your AI models to learn and evolve in real-time positions, helping readers capitalize on market opportunities to swiftly mitigate risk.

The book also discusses how to deploy many of its insightful methods at scale, showing you effective techniques for pushing large models into production and demonstrating strategies to enhance inference efficiency, like model pruning, quantization, and knowledge distillation.

Perfect for asset managers everywhere, Generative AI for Trading and Asset Management is an invaluable resource for anyone seeking to harness the ever-changing landscape of AI tech to navigate financial markets.

Expert guide on using AI to supercharge traders' productivity, optimize portfolios, and suggest new trading strategies

Generative AI for Trading and Asset Management is an essential guide to understand how generative AI has emerged as a transformative force in the realm of asset management, particularly in the context of trading, due to its ability to analyze vast datasets, identify intricate patterns, and suggest complex trading strategies. Practically, this book explains how to utilize various types of AI: unsupervised learning, supervised learning, reinforcement learning, and large language models to suggest new trading strategies, manage risks, optimize trading strategies and portfolios, and generally improve the productivity of algorithmic and discretionary traders alike. These techniques converge into an algorithm to trade on the Federal Reserve chair's press conferences in real time.

Written by Hamlet Medina, chief data scientist Criteo, and Ernie Chan, founder of QTS Capital Management and Predictnow.ai, this book explores topics including:

  • How large language models and other machine learning techniques can improve productivity of algorithmic and discretionary traders from ideation, signal generations, backtesting, risk management, to portfolio optimization
  • The pros and cons of tree-based models vs neural networks as they relate to financial applications. How regularization techniques can enhance out of sample performance
  • Comprehensive exploration of the main families of explicit and implicit generative models for modeling high-dimensional data, including their advantages and limitations in model representation and training, sampling quality and speed, and representation learning.
  • Techniques for combining and utilizing generative models to address data scarcity and enhance data augmentation for training ML models in financial applications like market simulations, sentiment analysis, risk management, and more.
  • Application of generative AI models for processing fundamental data to develop trading signals.
  • Exploration of efficient methods for deploying large models into production, highlighting techniques and strategies to enhance inference efficiency, such as model pruning, quantization, and knowledge distillation.
  • Using existing LLMs to translate Federal Reserve Chair's speeches to text and generate trading signals.

Generative AI for Trading and Asset Management earns a well-deserved spot on the bookshelves of all asset managers seeking to harness the ever-changing landscape of AI technologies to navigate financial markets.


Product Details

ISBN-13: 9781394266999
Publisher: Wiley
Publication date: 04/30/2025
Sold by: JOHN WILEY & SONS
Format: eBook
Pages: 320
File size: 12 MB
Note: This product may take a few minutes to download.

About the Author

HAMLET JESSE MEDINA RUIZ holds the position of Chief Data Scientist at Criteo. He specializes in time series forecasting, machine learning, deep learning, and Generative AI. He actively explores the potential of cutting-edge AI technologies, such as Generative AI across diverse applications. He holds an electronic engineering degree from Universidad Rafael Belloso Chacin in Venezuela, as well as two master’s degrees with honors in mathematics and machine learning from the Institut Polytechnique de Paris and Université Paris-Saclay. Additionally, he earned a PhD in physics from Université Paris-Saclay. Hamlet has consistently achieved first place and top ten rankings in global machine learning contests, earning the titles of Kaggle Expert and Numerai Expert for these challenges. Recently, he also earned a MicroMaster’s in finance from MIT’s Sloan School of Management.

ERNEST CHAN (ERNIE) is the Founder and Chief Scientific Officer of PredictNow.ai (www.predictnow.ai), which offers AI-driven adaptive optimization solutions to the finance industry and beyond. He is also the Founder and Non-executive Chairperson of QTS Capital Management (www.qtscm.com), a quantitative CTA/CPO since 2011. He started his career as a machine learning researcher at IBM’s T.J. Watson Research Center’s language modeling group, which produced some of the best-known quant fund managers. Ernie is the acclaimed author of three previous books, Quantitative Trading (2nd Edition), Algorithmic Trading, and Machine Trading, all published by Wiley. More about these books and Ernie’s workshops on topics in quantitative investing and machine learning can be found at www.epchan.com. He obtained his PhD in physics from Cornell University and his BS in physics from the University of Toronto.

Read an Excerpt

Praise for GENERATIVE AI FOR TRADING AND ASSET MANAGEMENT

“Kudos to Medina Ruiz and Chan for sharing their hard-earned knowledge and creating a practitioner resource that is timely, relevant, and ‘roll up your sleeves’ practical. They have the distinction of bringing to life a text that is both information-dense and comprehensive yet highly engaging and readable—a rare combination! Whether you plan to engage with Generative AI as your co-pilot or go deep into coding custom solutions, this book will serve as both a trusted guide and as a foundational reference. The addition of accompanying code repositories and notebooks will allow organizations to hit the ground running with Generative AI. I anticipate that I’ll have a well-thumbed copy near my computer monitor in the very near future!”
—JAY VYAS, Chief Strategy Officer, Firinne Capital; former Head of Research and Innovation, Canada Pension Plan Investment Board

“The book by Medina Ruiz and Chan has appeared when people are still wondering what ChatGPT in particular and LLMs in general are all about. Those who will read and implement it first will have an undisputed advantage: they have learned the industry-defining subject from experts who are known for their knack for making the complex easily accessible. The book is not just about LLMs. It is about Generative AI and its intelligent use in trading and, more generally, finance. Highly recommended for practitioners and academics alike.”
—PAUL ALEXANDER BILOKON, CEO, Thalesians Ltd; Visiting Professor, Imperial College London

Generative AI for Trading and Asset Management by renowned quant Hamlet Medina Ruiz and Ernest Chan is the definitive guide to harnessing Generative AI in financial markets. From no-code AI for finance beginners to the fine-tuning of deep, multi-layered models, this book unpacks cutting-edge techniques with clarity and precision. Dive into deep autoregressive models, latent variable architectures, flow-based models, sentiment analysis, GANs, and LLMs—all tailored for quantitative trading and asset management. Whether you’re an aspiring quant, a hedge fund strategist, or a Goldman Sachs MD, this book is your blueprint for staying ahead in the AI-driven evolution of finance.”
—ALEXANDER FLEISS, CEO of Rebellion Research, AI Asset Manager & Research Think Tank, Advisory Board Member of both Cornell Financial Engineering & Fordham Gabelli Quantitative Finance, Editor of The Journal of Financial Data Science

Table of Contents

Preface xv

Acknowledgments xix

About the Authors xxi

Part I Generative AI for Trading and Asset Management: A No-code Introduction 1

Chapter 1 No-code Generative AI for Basic Quantitative Finance 3

1.1 Retrieving Historical Market Data 4

1.2 Computing Sharpe Ratio 7

1.3 Data Formatting and Analysis 8

1.4 Translating Matlab Codes to Python Codes 11

1.5 Conclusion 16

Chapter 2 No-code Generative AI for Trading Strategies Development 17

2.1 Creating Codes from a Strategy Specification 19

2.2 Summarizing a Trading Strategy Paper and Creating Backtest Codes from It 34

2.3 Searching for a Portfolio Optimization Algorithm Based on Machine Learning 45

2.4 Explore Options Term Structure Arbitrage Strategies 50

2.5 Conclusion 64

2.6 Exercises 66

2A.1 Computing Next-day’s Return 67

2A.2 Uploading the Fama-French Factors 68

2A.3 Combining Fama-French Factors with Next-day’s Returns 68

Chapter 3 Whirlwind Tour of ML in Asset Management 71

3.1 Unsupervised Learning 72

3.2 Supervised Learning 77

3.3 Deep Reinforcement Learning 99

3.4 Data Engineering 100

3.5 Feature Engineering 102

3.6 Conclusion 106

Part II Deep Generative Models for Trading and Asset Management 107

Chapter 4 Understanding Generative AI 109

4.1 Why Generative Models 110

4.2 Difference with Discriminative Models 110

4.3 How Can We Use Them? 111

4.4 Illustrating Generative Models with ChatGPT 113

4.5 Hybrid Modeling: Combining Generative and Discriminative Models 119

4.6 Taxonomy of Generative Models 123

4.7 Conclusion 124

Chapter 5 Deep Autoregressive Models for Sequence Modeling 125

5.1 Representation Complexity 126

5.2 Representation and Complexity Reduction 127

5.3 A Short Tour of Key Model Families 128

5.4 Model Fitting 155

5.5 Conclusions 157

Chapter 6 Deep Latent Variable Models 159

6.1 Introduction 160

6.2 Latent Variable Models 162

6.3 Examples of Traditional Latent Variable Models 162

6.4 Learning 171

6.5 Variational Autoencoder (VAE) 176

6.6 VAEs for Sequential Data and Time Series 177

6.7 Conclusion 181

Chapter 7 Flow Models 183

7.1 Introduction 183

7.2 Model Training 185

7.3 Linear Flows 185

7.4 Designing Nonlinear Flows 187

7.5 Coupling Flows 188

7.6 Autoregressive Flows 195

7.7 Continuous Normalizing Flows 195

7.8 Modeling Financial Time Series with Flow Models 196

7.9 Conclusion 199

Chapter 8 Generative Adversarial Networks 201

8.1 Introduction 202

8.2 Training 204

8.3 Some Theoretical Insight in GANs 208

8.4 Why Is GAN Training Hard? Improving GAN Training Techniques 209

8.5 Wasserstein GAN (WGAN) 211

8.6 Extending GANs for Time Series 214

8.7 Conclusion 215

Chapter 9 Leveraging LLMs for Sentiment Analysis in Trading 217

9.1 Sentiment Analysis in Fed Press Conference Speeches Using Large Language Models 217

9.2 Data: Video + Market Prices 221

9.3 Speech-to-text Conversion 221

9.4 Sentiment Analysis 225

9.5 Experiment Results 232

9.6 Conclusion 234

Chapter 10 Efficient Inference 235

10.1 Introduction 235

10.2 Scaling Large Language Models: High Performance, High Computational Cost, and Emergent Abilities 236

10.3 Making FinBERT Faster 240

10.4 Model Quantization 247

10.5 Customizing Your LLM: Adapting Models to Your Needs 252

10.6 Conclusions 256

Chapter 11 Afterword 257

11.1 Diffusion Models 260

11.2 Combining Generative Model Variants 260

11.3 LLMs as Financial Advisors 261

References 263

Appendix 271

A.1 Retrieving Adjusted Closing Prices and Computing Daily Returns 271

A.2 Installing Python 273

A.2.1 Step 1: Download Python 273

A.2.2 Step 2: Install Python 274

A.2.3 Step 3: Set Up a Virtual Environment (Optional but Recommended) 274

A.2.4 Step 4: Install Packages with pip 274

A.2.5 Step 5: Consider an Integrated Development Environment (IDE) 274

A.2.6 Additional Tips 275

A.3 Plotting the Risk-free-rate over the Years 276

A.4 Computing the Sharpe Ratio of SPY 278

A.5 Matlab Code for Computing Efficient Frontier and Finding the Tangency Portfolio 280

Index 283

What People are Saying About This

“It is no exaggeration to view the last few years as the beginning of a new epoch in technology, much of which is propelled by the enormous advances in deep learning and generative AI. Hamlet and Ernie have done the investment community a great service by providing the foundation of a very difficult but exciting subject from the practitioners’ perspective. It is not only accessible to readers with rudimentary backgrounds in AI, but also informative and inspiring for even experienced machine learning experts.”

Will Cong, The Rudd Family Professor of Management & Professor of Finance, Cornell University SC Johnson College of Business

 

“As a researcher in signal and image processing, I have witnessed firsthand how deep learning and generative AI have revolutionized fields like computer vision and natural language processing. This book demonstrates how these powerful tools can bring similar transformations to finance. With a clear and concise approach, it serves as a guide for a broad audience ––– whether you come from an engineering background or the financial sector ––– seeking to understand and apply generative AI in tackling financial challenges. By seamlessly translating core concepts from statistical signal processing and machine learning into finance, the authors provide intuitive explanations, solid mathematical foundations, and practical coding examples.

The result is a resource that not only bridges disciplines but also equips readers with the knowledge and tools to address real-world financial problems. Whether you are an engineer venturing into finance or a finance professional embracing AI, this book distills insights typically spread across hundreds of pages into a single, accessible volume ––– a must read for anyone looking to stay ahead in this rapidly evolving field.”

Dr. Giuseppe Valenzise, CNRS (French National Centre for Scientific Research) researcher, Université Paris-Saclay, Editor-in-Chief of EURASIP Journal on Image and Video Processing

From the B&N Reads Blog

Customer Reviews