Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Introduction to R for Quantitative Finance

You're reading from  Introduction to R for Quantitative Finance

Product type Book
Published in Nov 2013
Publisher Packt
ISBN-13 9781783280933
Pages 164 pages
Edition 1st Edition
Languages

Table of Contents (17) Chapters

Introduction to R for Quantitative Finance
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Time Series Analysis Portfolio Optimization Asset Pricing Models Fixed Income Securities Estimating the Term Structure of Interest Rates Derivatives Pricing Credit Risk Management Extreme Value Theory Financial Networks References Index

Solution concepts


In the last 50 years, many great algorithms have been developed for numerical optimization and these algorithms work well, especially in case of quadratic functions. As we have seen in the previous section, we only have quadratic functions and constraints; so these methods (that are implemented in R as well) can be used in the worst case scenarios (if there is nothing better).

However, a detailed discussion of numerical optimization is out of the scope of this book. Fortunately, in the special case of linear and quadratic functions and constraints, these methods are unnecessary; we can use the Lagrange theorem from the 18th century.

Theorem (Lagrange)

If and , (where ) have continuous partial derivatives and is a relative extreme point of f(x) subject to the constraint where .

Then, there exist the coefficients such that

In other words, all of the partial derivatives of the function are 0 (Bertsekas Dimitri P. (1999)).

In our case, the condition is also sufficient. The...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}