IDEAS home Printed from https://ideas.repec.org/a/spr/compst/v32y2017i2d10.1007_s00180-016-0701-3.html
   My bibliography  Save this article

Computing the noncentral-F distribution and the power of the F-test with guaranteed accuracy

Author

Listed:
  • Ali Baharev

    (University of Vienna)

  • Hermann Schichl

    (University of Vienna)

  • Endre Rév

    (Budapest University of Technology and Economics)

Abstract

The computations involving the noncentral-F distribution are notoriously difficult to implement properly in floating-point arithmetic: Catastrophic loss of precision, floating-point underflow and overflow, drastically increasing computation time and program hang-ups, and instability due to numerical cancellation have all been reported. It is therefore recommended that existing statistical packages are cross-checked, and the present paper proposes a numerical algorithm precisely for this purpose. To the best of our knowledge, the proposed method is the first method that can compute the noncentrality parameter of the noncentral-F distribution with guaranteed accuracy over a wide parameter range that spans the range relevant for practical applications. Although the proposed method is limited to cases where the the degree of freedom of the denominator of the F test statistic is even, it does not affect its usefulness significantly: All of those algorithmic failures and inaccuracies that we can still reproduce today could have been prevented by simply cross-checking against the proposed method. Two numerical examples are presented where the intermediate computations went wrong silently, but the final result of the computations seemed nevertheless plausible, and eventually erroneous results were published. Cross-checking against the proposed method would have caught the numerical errors in both cases. The source code of the algorithm is available on GitHub, together with self-contained command-line executables. These executables can read the data to be cross-checked from plain text files, making it easy to cross-check any statistical software in an automated fashion.

Suggested Citation

  • Ali Baharev & Hermann Schichl & Endre Rév, 2017. "Computing the noncentral-F distribution and the power of the F-test with guaranteed accuracy," Computational Statistics, Springer, vol. 32(2), pages 763-779, June.
  • Handle: RePEc:spr:compst:v:32:y:2017:i:2:d:10.1007_s00180-016-0701-3
    DOI: 10.1007/s00180-016-0701-3
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s00180-016-0701-3
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s00180-016-0701-3?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. Chattamvelli, R., 1995. "On the doubly noncentral F distribution," Computational Statistics & Data Analysis, Elsevier, vol. 20(5), pages 481-489, November.
    2. Russell V. Lenth, 1987. "Computing Noncentral Beta Probabilities," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 36(2), pages 241-244, June.
    3. Benton, Denise & Krishnamoorthy, K., 2003. "Computing discrete mixtures of continuous distributions: noncentral chisquare, noncentral t and the distribution of the square of the sample multiple correlation coefficient," Computational Statistics & Data Analysis, Elsevier, vol. 43(2), pages 249-267, June.
    4. Wang, Morgan & Kennedy, W. J., 1992. "A numerical method for accurately approximating multivariate normal probabilities," Computational Statistics & Data Analysis, Elsevier, vol. 13(2), pages 197-210, March.
    5. Singh, Karan P. & Singh, Karan P. & Relyea, George E., 1992. "Computation of noncentral f probabilities : A computer program," Computational Statistics & Data Analysis, Elsevier, vol. 13(1), pages 95-102, January.
    6. H. Frick, 1990. "A Remark on Algorithm as 226: Computing Non‐Central Beta Probabilities," Journal of the Royal Statistical Society Series C, Royal Statistical Society, vol. 39(2), pages 311-312, June.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Gil, Amparo & Segura, Javier & Temme, Nico M., 2019. "On the computation and inversion of the cumulative noncentral beta distribution function," Applied Mathematics and Computation, Elsevier, vol. 361(C), pages 74-86.

    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. Chen, Z. Y. & Chou, Y. C., 2000. "Computing the noncentral beta distribution with S-system," Computational Statistics & Data Analysis, Elsevier, vol. 33(4), pages 343-360, June.
    2. Forkman, Johannes & Verrill, Steve, 2008. "The distribution of McKay's approximation for the coefficient of variation," Statistics & Probability Letters, Elsevier, vol. 78(1), pages 10-14, January.
    3. Poitevineau, Jacques & Lecoutre, Bruno, 2010. "Implementing Bayesian predictive procedures: The K-prime and K-square distributions," Computational Statistics & Data Analysis, Elsevier, vol. 54(3), pages 724-731, March.
    4. Jia‐Hau Guo & Lung‐Fu Chang, 2020. "Repeated Richardson extrapolation and static hedging of barrier options under the CEV model," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 40(6), pages 974-988, June.
    5. Yang, Nian & Chen, Nan & Liu, Yanchu & Wan, Xiangwei, 2017. "Approximate arbitrage-free option pricing under the SABR model," Journal of Economic Dynamics and Control, Elsevier, vol. 83(C), pages 198-214.
    6. Jos� Carlos Dias & João Pedro Vidal Nunes & João Pedro Ruas, 2015. "Pricing and static hedging of European-style double barrier options under the jump to default extended CEV model," Quantitative Finance, Taylor & Francis Journals, vol. 15(12), pages 1995-2010, December.
    7. Benton, Denise & Krishnamoorthy, K., 2003. "Computing discrete mixtures of continuous distributions: noncentral chisquare, noncentral t and the distribution of the square of the sample multiple correlation coefficient," Computational Statistics & Data Analysis, Elsevier, vol. 43(2), pages 249-267, June.
    8. Izabela Oliveira & Daniel Ferreira, 2013. "Computing the noncentral gamma distribution, its inverse and the noncentrality parameter," Computational Statistics, Springer, vol. 28(4), pages 1663-1680, August.
    9. Peter Carr & Vadim Linetsky, 2006. "A jump to default extended CEV model: an application of Bessel processes," Finance and Stochastics, Springer, vol. 10(3), pages 303-330, September.
    10. Dias, José Carlos & Vidal Nunes, João Pedro, 2018. "Universal recurrence algorithm for computing Nuttall, generalized Marcum and incomplete Toronto functions and moments of a noncentral χ2 random variable," European Journal of Operational Research, Elsevier, vol. 265(2), pages 559-570.
    11. Najarzadeh, Dariush, 2020. "A simple test for zero multiple correlation coefficient in high-dimensional normal data using random projection," Computational Statistics & Data Analysis, Elsevier, vol. 148(C).
    12. Aricson Cruz & José Carlos Dias, 2020. "Valuing American-style options under the CEV model: an integral representation based method," Review of Derivatives Research, Springer, vol. 23(1), pages 63-83, April.
    13. Phinikettos, Ioannis & Gandy, Axel, 2011. "Fast computation of high-dimensional multivariate normal probabilities," Computational Statistics & Data Analysis, Elsevier, vol. 55(4), pages 1521-1529, April.
    14. Alex N Nguyen Ba & Bob Strome & Jun Jie Hua & Jonathan Desmond & Isabelle Gagnon-Arsenault & Eric L Weiss & Christian R Landry & Alan M Moses, 2014. "Detecting Functional Divergence after Gene Duplication through Evolutionary Changes in Posttranslational Regulatory Sequences," PLOS Computational Biology, Public Library of Science, vol. 10(12), pages 1-15, December.
    15. Ruas, João Pedro & Dias, José Carlos & Vidal Nunes, João Pedro, 2013. "Pricing and static hedging of American-style options under the jump to default extended CEV model," Journal of Banking & Finance, Elsevier, vol. 37(11), pages 4059-4072.
    16. Dahlgran, Roger A., 2009. "The Relative Performance of In-Sample and Out-of-Sample Hedging Effectiveness Indicators," 2009 Conference, April 20-21, 2009, St. Louis, Missouri 53042, NCCC-134 Conference on Applied Commodity Price Analysis, Forecasting, and Market Risk Management.
    17. Chattamvelli, R., 1995. "On the doubly noncentral F distribution," Computational Statistics & Data Analysis, Elsevier, vol. 20(5), pages 481-489, November.
    18. José Carlos Dias & João Pedro Vidal Nunes & Aricson Cruz, 2020. "A note on options and bubbles under the CEV model: implications for pricing and hedging," Review of Derivatives Research, Springer, vol. 23(3), pages 249-272, October.
    19. Ding, Cherng G., 1999. "An efficient algorithm for computing quantiles of the noncentral chi-squared distribution," Computational Statistics & Data Analysis, Elsevier, vol. 29(3), pages 253-259, January.
    20. Marc Paolella & Ronald W. Butler, 1999. "Calculating the Density and Distribution Function of a Singly and Doubly Noncentral F Random Variable," Computing in Economics and Finance 1999 532, Society for Computational Economics.

    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:spr:compst:v:32:y:2017:i:2:d:10.1007_s00180-016-0701-3. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.