IDEAS home Printed from https://ideas.repec.org/a/eee/mateco/v116y2025ics0304406824001381.html
   My bibliography  Save this article

How to build and solve continuous-time heterogeneous agents models in asset pricing? The martingale approach and the finite difference method

Author

Listed:
  • Galindo Gil, Hamilton

Abstract

This paper serves as a tutorial, offering a step-by-step guide for building and numerically solving a preference-heterogeneous agent model in asset pricing. Using a three-stage framework, we clarify the modeling and solution process through a detailed example. Within this framework, we demonstrate how to apply the finite difference method with implicit and upwind schemes to solve the partial differential equation for stock prices, thereby deriving the optimal portfolio, equilibrium asset prices, and their volatility. Additionally, we explore other contexts where this numerical method can be applied, including models with preference heterogeneity using dynamic programming, external habits, and incomplete markets with income heterogeneity and recursive utility. We also address practical considerations in its implementation. This paper does not cover models that incorporate both aggregate and idiosyncratic risks.

Suggested Citation

  • Galindo Gil, Hamilton, 2025. "How to build and solve continuous-time heterogeneous agents models in asset pricing? The martingale approach and the finite difference method," Journal of Mathematical Economics, Elsevier, vol. 116(C).
  • Handle: RePEc:eee:mateco:v:116:y:2025:i:c:s0304406824001381
    DOI: 10.1016/j.jmateco.2024.103078
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0304406824001381
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.jmateco.2024.103078?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    More about this item

    Keywords

    Heterogeneous agents; Preferences; Asset pricing; Martingale; Finite difference; Continuous time;
    All these keywords.

    JEL classification:

    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G51 - Financial Economics - - Household Finance - - - Household Savings, Borrowing, Debt, and Wealth

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:mateco:v:116:y:2025:i:c:s0304406824001381. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/jmateco .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.