IDEAS home Printed from https://ideas.repec.org/a/gam/jstats/v8y2025i2p40-d1659287.html
   My bibliography  Save this article

An Analysis of Vectorised Automatic Differentiation for Statistical Applications

Author

Listed:
  • Chun Fung Kwok

    (St. Vincent’s Institute of Medical Research, Melbourne 3065, Australia)

  • Dan Zhu

    (Department of Econometrics and Business Statistics, Monash University, Melbourne 3800, Australia)

  • Liana Jacobi

    (Department of Economics, University of Melbourne, Melbourne 3010, Australia)

Abstract

Automatic differentiation (AD) is a general method for computing exact derivatives in complex sensitivity analyses and optimisation tasks, particularly when closed-form solutions are unavailable and traditional analytical or numerical methods fall short. This paper introduces a vectorised formulation of AD grounded in matrix calculus. It aligns naturally with the matrix-oriented style prevalent in statistics, supports convenient implementations, and takes advantage of sparse matrix representation and other high-level optimisation techniques that are not available in the scalar counterpart. Our formulation is well-suited to high-dimensional statistical applications, where finite differences (FD) scale poorly due to the need to repeat computations for each input dimension, resulting in significant overhead, and is advantageous in simulation-intensive settings—such as Markov Chain Monte Carlo (MCMC)-based inference—where FD requires repeated sampling and multiple function evaluations, while AD can compute exact derivatives in a single pass, substantially reducing computational cost. Numerical studies are presented to demonstrate the efficacy and speed of the proposed AD method compared with FD schemes.

Suggested Citation

  • Chun Fung Kwok & Dan Zhu & Liana Jacobi, 2025. "An Analysis of Vectorised Automatic Differentiation for Statistical Applications," Stats, MDPI, vol. 8(2), pages 1-27, May.
  • Handle: RePEc:gam:jstats:v:8:y:2025:i:2:p:40-:d:1659287
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2571-905X/8/2/40/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2571-905X/8/2/40/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Geweke, John & Zhou, Guofu, 1996. "Measuring the Pricing Error of the Arbitrage Pricing Theory," The Review of Financial Studies, Society for Financial Studies, vol. 9(2), pages 557-587.
    2. Genevera I. Allen & Logan Grosenick & Jonathan Taylor, 2014. "A Generalized Least-Square Matrix Decomposition," Journal of the American Statistical Association, Taylor & Francis Journals, vol. 109(505), pages 145-159, March.
    3. Brennan, Michael J. & Chordia, Tarun & Subrahmanyam, Avanidhar, 1998. "Alternative factor specifications, security characteristics, and the cross-section of expected stock returns," Journal of Financial Economics, Elsevier, vol. 49(3), pages 345-373, September.
    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. Cederburg, Scott & O’Doherty, Michael S., 2015. "Asset-pricing anomalies at the firm level," Journal of Econometrics, Elsevier, vol. 186(1), pages 113-128.
    2. Chu Zhang, 2009. "Testing the APT with the Maximum Sharpe Ratio of Extracted Factors," Management Science, INFORMS, vol. 55(7), pages 1255-1266, July.
    3. Mumtaz, Haroon & Theodoridis, Konstantinos, 2017. "Common and country specific economic uncertainty," Journal of International Economics, Elsevier, vol. 105(C), pages 205-216.
    4. Pastor, Lubos & Stambaugh, Robert F., 2003. "Liquidity Risk and Expected Stock Returns," Journal of Political Economy, University of Chicago Press, vol. 111(3), pages 642-685, June.
    5. Sabbaghi, Omid & Sabbaghi, Navid, 2011. "Carbon Financial Instruments, thin trading, and volatility: Evidence from the Chicago Climate Exchange," The Quarterly Review of Economics and Finance, Elsevier, vol. 51(4), pages 399-407.
    6. Ciciretti, Rocco & Dalò, Ambrogio & Dam, Lammertjan, 2023. "The contributions of betas versus characteristics to the ESG premium," Journal of Empirical Finance, Elsevier, vol. 71(C), pages 104-124.
    7. Mu-Shun Wang & Shaio Yan Huang & An An Chiu, 2011. "Liquidity, Management Effort And Performance," Global Journal of Business Research, The Institute for Business and Finance Research, vol. 5(1), pages 1-14.
    8. Bauer, Rob & Cosemans, Mathijs & Eichholtz, Piet, 2009. "Option trading and individual investor performance," Journal of Banking & Finance, Elsevier, vol. 33(4), pages 731-746, April.
    9. Thomas Paul & Thomas Walther & André Küster-Simic, 2022. "Empirical analysis of the illiquidity premia of German real estate securities," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 36(2), pages 203-260, June.
    10. Aßmann, Christian & Boysen-Hogrefe, Jens & Pape, Markus, 2012. "The directional identification problem in Bayesian factor analysis: An ex-post approach," Kiel Working Papers 1799, Kiel Institute for the World Economy (IfW Kiel).
    11. Paul Gompers & Joy Ishii & Andrew Metrick, 2003. "Corporate Governance and Equity Prices," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 118(1), pages 107-156.
    12. Guobin Fan & Eric Girardin & Wong K. Wong & Yong Zeng, 2015. "The Risk of Individual Stocks’ Tail Dependence with the Market and Its Effect on Stock Returns," Discrete Dynamics in Nature and Society, Hindawi, vol. 2015, pages 1-17, November.
    13. Zaremba, Adam & Bianchi, Robert J. & Mikutowski, Mateusz, 2021. "Long-run reversal in commodity returns: Insights from seven centuries of evidence," Journal of Banking & Finance, Elsevier, vol. 133(C).
    14. Gabriel Frahm, 0. "Arbitrage Pricing Theory In Ergodic Markets," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 21(05), pages 1-28.
    15. Lischewski, Judith & Voronkova, Svitlana, 2012. "Size, value and liquidity. Do They Really Matter on an Emerging Stock Market?," Emerging Markets Review, Elsevier, vol. 13(1), pages 8-25.
    16. José Miralles Marcelo & María Miralles Quirós & José Miralles Quirós, 2004. "The Pricing of Systematic Liquidity Risk in Stock Markets," Notas Económicas, Faculty of Economics, University of Coimbra, issue 20, pages 162-176, December.
    17. Leger, Lawrence & Leone, Vitor, 2008. "Changes in the risk structure of stock returns: Consumer Confidence and the dotcom bubble," Review of Financial Economics, Elsevier, vol. 17(3), pages 228-244, August.
    18. Kent Daniel & Sheridan Titman, 2006. "Market Reactions to Tangible and Intangible Information," Journal of Finance, American Finance Association, vol. 61(4), pages 1605-1643, August.
    19. Conti, Gabriella & Frühwirth-Schnatter, Sylvia & Heckman, James J. & Piatek, Rémi, 2014. "Bayesian exploratory factor analysis," Journal of Econometrics, Elsevier, vol. 183(1), pages 31-57.
    20. An-Pin Wei & Chi-Lu Peng & Hao-Chen Huang & Shang-Pao Yeh, 2020. "Effects of Corporate Social Responsibility on Firm Performance: Does Customer Satisfaction Matter?," Sustainability, MDPI, vol. 12(18), pages 1-18, September.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;

    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:gam:jstats:v:8:y:2025:i:2:p:40-:d:1659287. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.