IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i7p1040-d1367516.html
   My bibliography  Save this article

Transformer-Based Parameter Estimation in Statistics

Author

Listed:
  • Xiaoxin Yin

    (Independent Researchers, San Jose, CA 95129, USA)

  • David S. Yin

    (Independent Researchers, San Jose, CA 95129, USA)

Abstract

Parameter estimation is one of the most important tasks in statistics, and is key to helping people understand the distribution behind a sample of observations. Traditionally, parameter estimation is done either by closed-form solutions (e.g., maximum likelihood estimation for Gaussian distribution) or by iterative numerical methods such as the Newton–Raphson method when a closed-form solution does not exist (e.g., for Beta distribution). In this paper, we propose a transformer-based approach to parameter estimation. Compared with existing solutions, our approach does not require a closed-form solution or any mathematical derivations. It does not even require knowing the probability density function, which is needed by numerical methods. After the transformer model is trained, only a single inference is needed to estimate the parameters of the underlying distribution based on a sample of observations. In the empirical study, we compared our approach with maximum likelihood estimation on commonly used distributions such as normal distribution, exponential distribution and beta distribution. It is shown that our approach achieves similar or better accuracy as measured by mean-square-errors.

Suggested Citation

  • Xiaoxin Yin & David S. Yin, 2024. "Transformer-Based Parameter Estimation in Statistics," Mathematics, MDPI, vol. 12(7), pages 1-11, March.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:7:p:1040-:d:1367516
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/7/1040/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/7/1040/
    Download Restriction: no
    ---><---

    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:jmathe:v:12:y:2024:i:7:p:1040-:d:1367516. 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: 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.