Artificial Intelligence in Finance
Artificial Intelligence in Finance
For finance professionals and academics Key features of the AI in Finance Framework
Intelligence
practical and extensive guide. This book, of AI models are also addressed, providing
the first in a two-volume series, aims to a rounded perspective of AI’s current and
demystify the role of AI in finance, offering potential role in finance.
a clear and comprehensive overview that
bridges the gap between complex AI concepts Serving as a lead-up to the second volume,
in Finance
and their real-world financial applications. which will focus on reinforcement learning
in finance and applications of AI in Finance,
The content is structured to build a strong this book is an ideal resource for finance
foundation, starting with the basics of AI professionals looking to enhance their AI
and financial engineering. It delves into key knowledge and academics aiming to enter this
areas such as supervised and unsupervised evolving field. Artificial Intelligence in Finance,
learning, artificial neural networks, and Volume 1: Fundamentals and Applications offers a
natural language processing, presented in a comprehensive read for anyone interested in
manner that is accessible to both experienced
finance professionals and newcomers.
the intersection of AI and finance.
Volume1: Fundamentals and Applications
The book also covers essential aspects of
financial engineering, offering insights into
its history, theory, and practical applications.
BY MIQUEL NOGUER I ALONSO, DANIEL BLOCH
This balanced approach ensures that readers AND DAVID PACHECO AZNAR
not only gain theoretical knowledge but also
understand how these concepts are applied in
the finance industry.
Infopro Digital
133 Houndsditch
London EC3A 7BX
Tel: + 44 (0)20 7484 9700
E-mail: [email protected]
Sites: www.riskbooks.com
www.infopro-digital.com
Conditions of sale
All rights reserved. No part of this publication may be reproduced in any material form whether by photo-
copying or storing in any medium by electronic means whether or not transiently or incidentally to some
other use for this publication without the prior written consent of the copyright owner except in accordance
with the provisions of the Copyright, Designs and Patents Act 1988 or under the terms of a licence issued
by the Copyright Licensing Agency Limited of 1 St. Katharine’s Way, London E1W 1UN, UK.
Warning: the doing of any unauthorised act in relation to this work may result in both civil and criminal
liability.
Every effort has been made to ensure the accuracy of the text at the time of publication, this includes
efforts to contact each author to ensure the accuracy of their details at publication is correct. However, no
responsibility for loss occasioned to any person acting or refraining from acting as a result of the material
contained in this publication will be accepted by the copyright owner, the editor(s), the authors or Infopro
Digital Risk.
Many of the product names contained in this publication are registered trade marks, and Risk Books has
made every effort to print them with the capitalisation and punctuation used by the trademark owner. For
reasons of textual clarity, it is not our house style to use symbols such as TM, ®, etc. However, the absence
of such symbols should not be taken to indicate absence of trademark protection; anyone wishing to use
product names in the public domain should first clear such use with the product owner.
While best efforts have been intended for the preparation of this book, neither the publisher, the editor nor
any of the potentially implicitly affiliated organisations accept responsibility for any errors, mistakes and
or omissions it may provide or for any losses howsoever arising from or in reliance upon its information,
meanings and interpretations by any parties.
To all scientists and financial practitioners who have
inspired me. To my sons Jordi and Arnau; my mother,
Maria del Carmen; my dad, Jordi; and my brother, Jordi.
(Miquel)
I thank my wife and children for their patience and
support during this adventure.
(Daniel)
To everyone who has sparked my curiosity for finance,
mathematics and artificial intelligence. To my brother,
Víctor, and my parents, Fina and Jesús, for their
support. Thank you.
(David)
Contents
List of Figures xi
List of Tables xv
Preface xix
1 Introduction 1
1.1 Artificial intelligence 1
1.2 Financial engineering 2
1.3 The“AI in finance” framework 3
1.4 Supervised learning 5
1.5 Unsupervised learning 6
1.6 Artificial neural networks 7
1.7 Natural language processing 8
1.8 Volume 2 of Artificial Intelligence in Finance 9
1.9 Where to find this book on GitHub 11
2 Artificial intelligence 13
2.1 Definitions of intelligence 13
2.2 Definitions of artificial intelligence 15
2.3 The history of artificial intelligence 16
2.4 The nature of artificial intelligence environments 18
2.5 Artificial intelligence fields 22
2.6 Artificial intelligence in finance 24
2.7 A mathematical description of supervised, unsupervised
and reinforcement learning 25
2.8 The special case of large language models 32
2.9 Open source artificial intelligence resources 35
3 Financial engineering 39
3.1 Financial engineering history 39
3.2 Three areas of financial engineering 42
3.3 Probability theory and stochastic processes 46
3.4 Random matrix theory 145
3.5 Option theory and practice 146
3.6 Credit modelling 162
3.7 Portfolio allocation 167
3.8 Factor models of returns 177
3.9 Time-series models in finance 181
3.10 Market microstructure and high-frequency trading 183
3.11 Risk management 191
3.12 Unstructured data in finance 195
vii
ARTIFICIAL INTELLIGENCE IN FINANCE
viii
CONTENTS
References 651
ix
List of Figures
xi
ARTIFICIAL INTELLIGENCE IN FINANCE
xii
LIST OF FIGURES
xiii
ARTIFICIAL INTELLIGENCE IN FINANCE
xiv
List of Tables
xv
About the Authors
xvii
ARTIFICIAL INTELLIGENCE IN FINANCE
xviii
Preface
xix
ARTIFICIAL INTELLIGENCE IN FINANCE
multimodal model that can accept image and text inputs and pro-
duce text outputs. While it is less capable than humans in many
real-world scenarios, GPT-4 exhibits human-level performance on
various professional and academic benchmarks, including passing
a simulated bar exam with a score around the top 10% of test takers.
GPT-4 is a transformer-based model pretrained to predict the next
token in a document.
This book offers both a theoretical and a practical perspective
on how we can make the most appropriate use of AI and machine
learning algorithms to carry out finance tasks such as: portfolio
management; option pricing and hedging; risk management and
retail banking. This book aims to extend the literature on generative
models in finance, natural language processing, deep learning and
reinforcement learning.
xx
1
Introduction
1
ARTIFICIAL INTELLIGENCE IN FINANCE
2
INTRODUCTION
3
ARTIFICIAL INTELLIGENCE IN FINANCE
4
INTRODUCTION
5
ARTIFICIAL INTELLIGENCE IN FINANCE
6
INTRODUCTION
7
ARTIFICIAL INTELLIGENCE IN FINANCE
8
INTRODUCTION
9
ARTIFICIAL INTELLIGENCE IN FINANCE
10
INTRODUCTION
11
Artificial
For finance professionals and academics Key features of the AI in Finance Framework
Intelligence
practical and extensive guide. This book, of AI models are also addressed, providing
the first in a two-volume series, aims to a rounded perspective of AI’s current and
demystify the role of AI in finance, offering potential role in finance.
a clear and comprehensive overview that
bridges the gap between complex AI concepts Serving as a lead-up to the second volume,
in Finance
and their real-world financial applications. which will focus on reinforcement learning
in finance and applications of AI in Finance,
The content is structured to build a strong this book is an ideal resource for finance
foundation, starting with the basics of AI professionals looking to enhance their AI
and financial engineering. It delves into key knowledge and academics aiming to enter this
areas such as supervised and unsupervised evolving field. Artificial Intelligence in Finance,
learning, artificial neural networks, and Volume 1: Fundamentals and Applications offers a
natural language processing, presented in a comprehensive read for anyone interested in
manner that is accessible to both experienced
finance professionals and newcomers.
the intersection of AI and finance.
Volume1: Fundamentals and Applications
The book also covers essential aspects of
financial engineering, offering insights into
its history, theory, and practical applications.
BY MIQUEL NOGUER I ALONSO, DANIEL BLOCH
This balanced approach ensures that readers AND DAVID PACHECO AZNAR
not only gain theoretical knowledge but also
understand how these concepts are applied in
the finance industry.