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.

    References listed on IDEAS

    as
    1. Constantinides, George M & Duffie, Darrell, 1996. "Asset Pricing with Heterogeneous Consumers," Journal of Political Economy, University of Chicago Press, vol. 104(2), pages 219-240, April.
    2. Basak, Suleyman & Cuoco, Domenico, 1998. "An Equilibrium Model with Restricted Stock Market Participation," The Review of Financial Studies, Society for Financial Studies, vol. 11(2), pages 309-341.
    3. YiLi Chien & Hanno Lustig, 2010. "The Market Price of Aggregate Risk and the Wealth Distribution," The Review of Financial Studies, Society for Financial Studies, vol. 23(4), pages 1596-1650, April.
    4. John C. Cox & Jonathan E. Ingersoll Jr. & Stephen A. Ross, 2005. "A Theory Of The Term Structure Of Interest Rates," World Scientific Book Chapters, in: Sudipto Bhattacharya & George M Constantinides (ed.), Theory Of Valuation, chapter 5, pages 129-164, World Scientific Publishing Co. Pte. Ltd..
    5. Fernández-Villaverde, Jesús & Levintal, Oren, 2024. "The Distributional Effects of Asset Returns," CEPR Discussion Papers 18855, C.E.P.R. Discussion Papers.
    6. Merton, Robert C., 1971. "Optimum consumption and portfolio rules in a continuous-time model," Journal of Economic Theory, Elsevier, vol. 3(4), pages 373-413, December.
    7. Fatih Guvenen, 2009. "A Parsimonious Macroeconomic Model for Asset Pricing," Econometrica, Econometric Society, vol. 77(6), pages 1711-1750, November.
    8. Vasicek, Oldrich Alfons, 2005. "The economics of interest rates," Journal of Financial Economics, Elsevier, vol. 76(2), pages 293-307, May.
    9. George M. Constantinides & Anisha Ghosh, 2017. "Asset Pricing with Countercyclical Household Consumption Risk," Journal of Finance, American Finance Association, vol. 72(1), pages 415-460, February.
    10. repec:dau:papers:123456789/4724 is not listed on IDEAS
    11. Francis A. Longstaff & Jiang Wang, 2012. "Asset Pricing and the Credit Market," The Review of Financial Studies, Society for Financial Studies, vol. 25(11), pages 3169-3215.
    12. Victor Duarte & Diogo Duarte & Dejanir H Silva, 2024. "Machine Learning for Continuous-Time Finance," The Review of Financial Studies, Society for Financial Studies, vol. 37(11), pages 3217-3271.
    13. Yves Achdou & Jiequn Han & Jean-Michel Lasry & Pierre-Louis Lionse & Benjamin Moll, 2022. "Income and Wealth Distribution in Macroeconomics: A Continuous-Time Approach," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 89(1), pages 45-86.
    14. Nicolae Gârleanu & Stavros Panageas, 2015. "Young, Old, Conservative, and Bold: The Implications of Heterogeneity and Finite Lives for Asset Pricing," Journal of Political Economy, University of Chicago Press, vol. 123(3), pages 670-685.
    15. Vasicek, Oldrich Alfons, 2013. "General equilibrium with heterogeneous participants and discrete consumption times," Journal of Financial Economics, Elsevier, vol. 108(3), pages 608-614.
    16. Isaenko, Sergei, 2008. "The term structure of interest rates in a pure exchange economy where investors have heterogeneous recursive preferences," The Quarterly Review of Economics and Finance, Elsevier, vol. 48(3), pages 457-481, August.
    17. Ioannis Karatzas & John P. Lehoczky & Steven E. Shreve, 1990. "Existence and Uniqueness of Multi-Agent Equilibrium in a Stochastic, Dynamic Consumption/Investment Model," Mathematics of Operations Research, INFORMS, vol. 15(1), pages 80-128, February.
    18. Victor Duarte & Diogo Duarte & Dejanir H. Silva, 2024. "Machine Learning for Continuous-Time Finance," CESifo Working Paper Series 10909, CESifo.
    19. Aiyagari, S. Rao & Gertler, Mark, 1991. "Asset returns with transactions costs and uninsured individual risk," Journal of Monetary Economics, Elsevier, vol. 27(3), pages 311-331, June.
    20. Jaksa Cvitanic & Elyès Jouini & Semyon Malamud & Clotilde Napp, 2011. "Financial Markets Equilibrium with Heterogeneous Agents," Review of Finance, European Finance Association, vol. 16(1), pages 285-321.
    21. Radner, Roy, 1972. "Existence of Equilibrium of Plans, Prices, and Price Expectations in a Sequence of Markets," Econometrica, Econometric Society, vol. 40(2), pages 289-303, March.
    22. Phelan, Thomas & Eslami, Keyvan, 2022. "Applications of Markov chain approximation methods to optimal control problems in economics," Journal of Economic Dynamics and Control, Elsevier, vol. 143(C).
    23. Dumas, Bernard, 1989. "Two-Person Dynamic Equilibrium in the Capital Market," The Review of Financial Studies, Society for Financial Studies, vol. 2(2), pages 157-188.
    24. Mehra, Rajnish & Prescott, Edward C., 1985. "The equity premium: A puzzle," Journal of Monetary Economics, Elsevier, vol. 15(2), pages 145-161, March.
    25. Aiyagari, S. Rao & Gertler, Mark, 1991. "Asset returns with transactions costs and uninsured individual risk," Journal of Monetary Economics, Elsevier, vol. 27(3), pages 311-331, June.
    26. Jiang, Wang, 1996. "The term structure of interest rates in a pure exchange economy with heterogeneous investors," Journal of Financial Economics, Elsevier, vol. 41(1), pages 75-110, May.
    27. Achdou, Yves & Han, Jiequn & Lasry, Jean Michel & Lions, Pierre Louis & Moll, Ben, 2022. "Income and wealth distribution in macroeconomics: a continuous-time approach," LSE Research Online Documents on Economics 107422, London School of Economics and Political Science, LSE Library.
    28. Yeung Lewis Chan & Leonid Kogan, 2002. "Catching Up with the Joneses: Heterogeneous Preferences and the Dynamics of Asset Prices," Journal of Political Economy, University of Chicago Press, vol. 110(6), pages 1255-1285, December.
    29. George M. Constantinides, 2017. "Asset Pricing: Models and Empirical Evidence," Journal of Political Economy, University of Chicago Press, vol. 125(6), pages 1782-1790.
    30. Basak, Suleyman, 2000. "A model of dynamic equilibrium asset pricing with heterogeneous beliefs and extraneous risk," Journal of Economic Dynamics and Control, Elsevier, vol. 24(1), pages 63-95, January.
    31. Andrés Schneider, 2022. "Risk‐Sharing and the Term Structure of Interest Rates," Journal of Finance, American Finance Association, vol. 77(4), pages 2331-2374, August.
    32. Basak, Suleyman, 2005. "Asset pricing with heterogeneous beliefs," Journal of Banking & Finance, Elsevier, vol. 29(11), pages 2849-2881, November.
    33. Costas Xiouros & Fernando Zapatero, 2010. "The Representative Agent of an Economy with External Habit Formation and Heterogeneous Risk Aversion," The Review of Financial Studies, Society for Financial Studies, vol. 23(8), pages 3017-3047, August.
    34. Roche, Hervé, 2011. "Asset prices in an exchange economy when agents have heterogeneous homothetic recursive preferences and no risk free bond is available," Journal of Economic Dynamics and Control, Elsevier, vol. 35(1), pages 80-96, January.
    35. Keyvan Eslami & Tom Phelan, 2021. "Applications of Markov Chain Approximation Methods to Optimal Control Problems in Economics," Working Papers 21-04R, Federal Reserve Bank of Cleveland, revised 17 May 2022.
    36. Georgy Chabakauri, 2013. "Dynamic Equilibrium with Two Stocks, Heterogeneous Investors, and Portfolio Constraints," The Review of Financial Studies, Society for Financial Studies, vol. 26(12), pages 3104-3141.
    37. Cox, John C. & Huang, Chi-fu, 1989. "Optimal consumption and portfolio policies when asset prices follow a diffusion process," Journal of Economic Theory, Elsevier, vol. 49(1), pages 33-83, October.
    38. Zapatero, Fernando, 1998. "Effects of financial innovations on market volatility when beliefs are heterogeneous," Journal of Economic Dynamics and Control, Elsevier, vol. 22(4), pages 597-626, April.
    39. Weinbaum, David, 2009. "Investor heterogeneity, asset pricing and volatility dynamics," Journal of Economic Dynamics and Control, Elsevier, vol. 33(7), pages 1379-1397, July.
    40. Nicolae Gârleanu & Stavros Panageas, 2023. "Heterogeneity and Asset Prices: An Intergenerational Approach," Journal of Political Economy, University of Chicago Press, vol. 131(4), pages 839-876.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Chabakauri, Georgy, 2010. "Asset pricing with heterogeneous investors and portfolio constraints," LSE Research Online Documents on Economics 43142, London School of Economics and Political Science, LSE Library.
    2. Harjoat S. Bhamra & Raman Uppal, 2014. "Asset Prices with Heterogeneity in Preferences and Beliefs," The Review of Financial Studies, Society for Financial Studies, vol. 27(2), pages 519-580.
    3. Georgy Chabakauri, 2012. "Asset Pricing with Heterogeneous Investors and Portfolio Constraints," 2012 Meeting Papers 636, Society for Economic Dynamics.
    4. Chabakauri, Georgy & Rytchkov, Oleg, 2021. "Asset pricing with index investing," Journal of Financial Economics, Elsevier, vol. 141(1), pages 195-216.
    5. Panageas, Stavros, 2020. "The Implications of Heterogeneity and Inequality for Asset Pricing," Foundations and Trends(R) in Finance, now publishers, vol. 12(3), pages 199-275, November.
    6. Christian Heyerdahl-Larsen & Philipp Illeditsch, 2018. "Demand Disagreement," 2018 Meeting Papers 607, Society for Economic Dynamics.
    7. Cvitanic, Jaksa & Malamud, Semyon, 2011. "Price impact and portfolio impact," Journal of Financial Economics, Elsevier, vol. 100(1), pages 201-225, April.
    8. Tyler Abbot, 2017. "General Equilibrium Under Convex Portfolio Constraints and Heterogeneous Risk Preferences," Papers 1706.05877, arXiv.org, revised Jun 2018.
    9. Wei Xiong & Hongjun Yan, 2010. "Heterogeneous Expectations and Bond Markets," The Review of Financial Studies, Society for Financial Studies, vol. 23(4), pages 1433-1466, April.
    10. Suresh M. Sundaresan, 2000. "Continuous‐Time Methods in Finance: A Review and an Assessment," Journal of Finance, American Finance Association, vol. 55(4), pages 1569-1622, August.
    11. Hansen, Simon Lysbjerg, 2015. "Cross-sectional asset pricing with heterogeneous preferences and beliefs," Journal of Economic Dynamics and Control, Elsevier, vol. 58(C), pages 125-151.
    12. Daniel Andrei & Bruce Carlin & Michael Hasler, 2019. "Asset Pricing with Disagreement and Uncertainty About the Length of Business Cycles," Management Science, INFORMS, vol. 67(6), pages 2900-2923, June.
    13. Chabakauri, Georgy, 2012. "Asset pricing with heterogeneous investors and portfolio constraints," LSE Research Online Documents on Economics 119046, London School of Economics and Political Science, LSE Library.
    14. Idan Hodor & Andrea Buffa, 2017. "Institutional Investors, Heterogeneous Benchmarks and the Comovement of Asset Prices," 2017 Meeting Papers 374, Society for Economic Dynamics.
    15. Buffa, Andrea M. & Hodor, Idan, 2023. "Institutional investors, heterogeneous benchmarks and the comovement of asset prices," Journal of Financial Economics, Elsevier, vol. 147(2), pages 352-381.
    16. Ricardo J Caballero & Alp Simsek, 2021. "A Model of Endogenous Risk Intolerance and LSAPs: Asset Prices and Aggregate Demand in a “COVID-19” Shock [Financial intermediaries and the cross-section of asset returns]," The Review of Financial Studies, Society for Financial Studies, vol. 34(11), pages 5522-5580.
    17. Lei Shi, 2010. "Portfolio Analysis and Equilibrium Asset Pricing with Heterogeneous Beliefs," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 2-2010, January-A.
    18. Yeung Lewis Chan & Leonid Kogan, 2002. "Catching Up with the Joneses: Heterogeneous Preferences and the Dynamics of Asset Prices," Journal of Political Economy, University of Chicago Press, vol. 110(6), pages 1255-1285, December.
    19. John Y. Campbell, 2000. "Asset Pricing at the Millennium," Journal of Finance, American Finance Association, vol. 55(4), pages 1515-1567, August.
    20. Matthieu Gomez, 2017. "Asset Prices and Wealth Inequality," 2017 Meeting Papers 1155, Society for Economic Dynamics.

    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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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.