Package 'Distr' Standardmethods Utility to Automatically Generate Accessor and Replacement Functions

Total Page:16

File Type:pdf, Size:1020Kb

Package 'Distr' Standardmethods Utility to Automatically Generate Accessor and Replacement Functions Package ‘distr’ March 11, 2019 Version 2.8.0 Date 2019-03-11 Title Object Oriented Implementation of Distributions Description S4-classes and methods for distributions. Depends R(>= 2.14.0), methods, graphics, startupmsg, sfsmisc Suggests distrEx, svUnit (>= 0.7-11), knitr Imports stats, grDevices, utils, MASS VignetteBuilder knitr ByteCompile yes Encoding latin1 License LGPL-3 URL http://distr.r-forge.r-project.org/ LastChangedDate {$LastChangedDate: 2019-03-11 16:33:22 +0100 (Mo, 11 Mrz 2019) $} LastChangedRevision {$LastChangedRevision: 1315 $} VCS/SVNRevision 1314 NeedsCompilation yes Author Florian Camphausen [ctb] (contributed as student in the initial phase --2005), Matthias Kohl [aut, cph], Peter Ruckdeschel [cre, cph], Thomas Stabla [ctb] (contributed as student in the initial phase --2005), R Core Team [ctb, cph] (for source file ks.c/ routines 'pKS2' and 'pKolmogorov2x') Maintainer Peter Ruckdeschel <[email protected]> Repository CRAN Date/Publication 2019-03-11 20:32:54 UTC 1 2 R topics documented: R topics documented: distr-package . .5 AbscontDistribution . 12 AbscontDistribution-class . 14 Arcsine-class . 18 Beta-class . 19 BetaParameter-class . 21 Binom-class . 22 BinomParameter-class . 24 Cauchy-class . 25 CauchyParameter-class . 27 Chisq-class . 28 ChisqParameter-class . 30 CompoundDistribution . 31 CompoundDistribution-class . 32 convpow-methods . 34 d-methods . 36 decomposePM-methods . 36 DExp-class . 37 df-methods . 39 df1-methods . 39 df2-methods . 40 dim-methods . 40 dimension-methods . 40 Dirac-class . 41 DiracParameter-class . 42 DiscreteDistribution . 44 DiscreteDistribution-class . 46 distr-defunct . 49 distrARITH . 50 Distribution-class . 51 DistributionSymmetry-class . 52 DistrList . 53 DistrList-class . 54 distrMASK . 55 distroptions . 56 DistrSymmList . 58 DistrSymmList-class . 59 EllipticalSymmetry . 59 EllipticalSymmetry-class . 60 EmpiricalDistribution . 61 EuclideanSpace-class . 62 Exp-class . 64 ExpParameter-class . 65 Fd-class . 67 flat.LCD . 69 flat.mix . 70 R topics documented: 3 FParameter-class . 71 Gammad-class . 72 GammaParameter-class . 74 gaps-methods . 75 Geom-class . 76 getLabel . 78 getLow,getUp . 79 Huberize-methods . 80 Hyper-class . 81 HyperParameter-class . 82 igamma . 84 img-methods . 84 k-methods . 85 lambda-methods . 85 Lattice-class . 86 LatticeDistribution . 87 LatticeDistribution-class . 89 Length-methods . 92 liesIn-methods . 93 liesInSupport . 93 Lnorm-class . 95 LnormParameter-class . 97 location-methods . 98 Logis-class . 99 LogisParameter-class . 101 m-methods . 102 makeAbscontDistribution . 102 Math-methods . 103 Max-methods . 104 mean-methods . 105 meanlog-methods . 105 Min-methods . 106 Minimum-methods . 106 n-methods . 108 name-methods . 108 Naturals-class . 109 Nbinom-class . 110 NbinomParameter-class . 112 ncp-methods . ..
Recommended publications
  • Relationships Among Some Univariate Distributions
    IIE Transactions (2005) 37, 651–656 Copyright C “IIE” ISSN: 0740-817X print / 1545-8830 online DOI: 10.1080/07408170590948512 Relationships among some univariate distributions WHEYMING TINA SONG Department of Industrial Engineering and Engineering Management, National Tsing Hua University, Hsinchu, Taiwan, Republic of China E-mail: [email protected], wheyming [email protected] Received March 2004 and accepted August 2004 The purpose of this paper is to graphically illustrate the parametric relationships between pairs of 35 univariate distribution families. The families are organized into a seven-by-five matrix and the relationships are illustrated by connecting related families with arrows. A simplified matrix, showing only 25 families, is designed for student use. These relationships provide rapid access to information that must otherwise be found from a time-consuming search of a large number of sources. Students, teachers, and practitioners who model random processes will find the relationships in this article useful and insightful. 1. Introduction 2. A seven-by-five matrix An understanding of probability concepts is necessary Figure 1 illustrates 35 univariate distributions in 35 if one is to gain insights into systems that can be rectangle-like entries. The row and column numbers are modeled as random processes. From an applications labeled on the left and top of Fig. 1, respectively. There are point of view, univariate probability distributions pro- 10 discrete distributions, shown in the first two rows, and vide an important foundation in probability theory since 25 continuous distributions. Five commonly used sampling they are the underpinnings of the most-used models in distributions are listed in the third row.
    [Show full text]
  • Arcsine Laws for Random Walks Generated from Random Permutations with Applications to Genomics
    Applied Probability Trust (4 February 2021) ARCSINE LAWS FOR RANDOM WALKS GENERATED FROM RANDOM PERMUTATIONS WITH APPLICATIONS TO GENOMICS XIAO FANG,1 The Chinese University of Hong Kong HAN LIANG GAN,2 Northwestern University SUSAN HOLMES,3 Stanford University HAIYAN HUANG,4 University of California, Berkeley EROL PEKOZ,¨ 5 Boston University ADRIAN ROLLIN,¨ 6 National University of Singapore WENPIN TANG,7 Columbia University 1 Email address: [email protected] 2 Email address: [email protected] 3 Email address: [email protected] 4 Email address: [email protected] 5 Email address: [email protected] 6 Email address: [email protected] 7 Email address: [email protected] 1 Postal address: Department of Statistics, The Chinese University of Hong Kong, Shatin, N.T., Hong Kong 2 Postal address: Department of Mathematics, Northwestern University, 2033 Sheridan Road, Evanston, IL 60208 2 Current address: University of Waikato, Private Bag 3105, Hamilton 3240, New Zealand 1 2 X. Fang et al. Abstract A classical result for the simple symmetric random walk with 2n steps is that the number of steps above the origin, the time of the last visit to the origin, and the time of the maximum height all have exactly the same distribution and converge when scaled to the arcsine law. Motivated by applications in genomics, we study the distributions of these statistics for the non-Markovian random walk generated from the ascents and descents of a uniform random permutation and a Mallows(q) permutation and show that they have the same asymptotic distributions as for the simple random walk.
    [Show full text]
  • Free Infinite Divisibility and Free Multiplicative Mixtures of the Wigner Distribution
    FREE INFINITE DIVISIBILITY AND FREE MULTIPLICATIVE MIXTURES OF THE WIGNER DISTRIBUTION Victor Pérez-Abreu and Noriyoshi Sakuma Comunicación del CIMAT No I-09-0715/ -10-2009 ( PE/CIMAT) Free Infinite Divisibility of Free Multiplicative Mixtures of the Wigner Distribution Victor P´erez-Abreu∗ Department of Probability and Statistics, CIMAT Apdo. Postal 402, Guanajuato Gto. 36000, Mexico [email protected] Noriyoshi Sakumay Department of Mathematics, Keio University, 3-14-1, Hiyoshi, Yokohama 223-8522, Japan. [email protected] March 19, 2010 Abstract Let I∗ and I be the classes of all classical infinitely divisible distributions and free infinitely divisible distributions, respectively, and let Λ be the Bercovici-Pata bijection between I∗ and I: The class type W of symmetric distributions in I that can be represented as free multiplicative convolutions of the Wigner distribution is studied. A characterization of this class under the condition that the mixing distribution is 2-divisible with respect to free multiplicative convolution is given. A correspondence between sym- metric distributions in I and the free counterpart under Λ of the positive distributions in I∗ is established. It is shown that the class type W does not include all symmetric distributions in I and that it does not coincide with the image under Λ of the mixtures of the Gaussian distribution in I∗. Similar results for free multiplicative convolutions with the symmetric arcsine measure are obtained. Several well-known and new concrete examples are presented. AMS 2000 Subject Classification: 46L54, 15A52. Keywords: Free convolutions, type G law, free stable law, free compound distribution, Bercovici-Pata bijection.
    [Show full text]
  • Location-Scale Distributions
    Location–Scale Distributions Linear Estimation and Probability Plotting Using MATLAB Horst Rinne Copyright: Prof. em. Dr. Horst Rinne Department of Economics and Management Science Justus–Liebig–University, Giessen, Germany Contents Preface VII List of Figures IX List of Tables XII 1 The family of location–scale distributions 1 1.1 Properties of location–scale distributions . 1 1.2 Genuine location–scale distributions — A short listing . 5 1.3 Distributions transformable to location–scale type . 11 2 Order statistics 18 2.1 Distributional concepts . 18 2.2 Moments of order statistics . 21 2.2.1 Definitions and basic formulas . 21 2.2.2 Identities, recurrence relations and approximations . 26 2.3 Functions of order statistics . 32 3 Statistical graphics 36 3.1 Some historical remarks . 36 3.2 The role of graphical methods in statistics . 38 3.2.1 Graphical versus numerical techniques . 38 3.2.2 Manipulation with graphs and graphical perception . 39 3.2.3 Graphical displays in statistics . 41 3.3 Distribution assessment by graphs . 43 3.3.1 PP–plots and QQ–plots . 43 3.3.2 Probability paper and plotting positions . 47 3.3.3 Hazard plot . 54 3.3.4 TTT–plot . 56 4 Linear estimation — Theory and methods 59 4.1 Types of sampling data . 59 IV Contents 4.2 Estimators based on moments of order statistics . 63 4.2.1 GLS estimators . 64 4.2.1.1 GLS for a general location–scale distribution . 65 4.2.1.2 GLS for a symmetric location–scale distribution . 71 4.2.1.3 GLS and censored samples .
    [Show full text]
  • Handbook on Probability Distributions
    R powered R-forge project Handbook on probability distributions R-forge distributions Core Team University Year 2009-2010 LATEXpowered Mac OS' TeXShop edited Contents Introduction 4 I Discrete distributions 6 1 Classic discrete distribution 7 2 Not so-common discrete distribution 27 II Continuous distributions 34 3 Finite support distribution 35 4 The Gaussian family 47 5 Exponential distribution and its extensions 56 6 Chi-squared's ditribution and related extensions 75 7 Student and related distributions 84 8 Pareto family 88 9 Logistic distribution and related extensions 108 10 Extrem Value Theory distributions 111 3 4 CONTENTS III Multivariate and generalized distributions 116 11 Generalization of common distributions 117 12 Multivariate distributions 133 13 Misc 135 Conclusion 137 Bibliography 137 A Mathematical tools 141 Introduction This guide is intended to provide a quite exhaustive (at least as I can) view on probability distri- butions. It is constructed in chapters of distribution family with a section for each distribution. Each section focuses on the tryptic: definition - estimation - application. Ultimate bibles for probability distributions are Wimmer & Altmann (1999) which lists 750 univariate discrete distributions and Johnson et al. (1994) which details continuous distributions. In the appendix, we recall the basics of probability distributions as well as \common" mathe- matical functions, cf. section A.2. And for all distribution, we use the following notations • X a random variable following a given distribution, • x a realization of this random variable, • f the density function (if it exists), • F the (cumulative) distribution function, • P (X = k) the mass probability function in k, • M the moment generating function (if it exists), • G the probability generating function (if it exists), • φ the characteristic function (if it exists), Finally all graphics are done the open source statistical software R and its numerous packages available on the Comprehensive R Archive Network (CRAN∗).
    [Show full text]
  • Field Guide to Continuous Probability Distributions
    Field Guide to Continuous Probability Distributions Gavin E. Crooks v 1.0.0 2019 G. E. Crooks – Field Guide to Probability Distributions v 1.0.0 Copyright © 2010-2019 Gavin E. Crooks ISBN: 978-1-7339381-0-5 http://threeplusone.com/fieldguide Berkeley Institute for Theoretical Sciences (BITS) typeset on 2019-04-10 with XeTeX version 0.99999 fonts: Trump Mediaeval (text), Euler (math) 271828182845904 2 G. E. Crooks – Field Guide to Probability Distributions Preface: The search for GUD A common problem is that of describing the probability distribution of a single, continuous variable. A few distributions, such as the normal and exponential, were discovered in the 1800’s or earlier. But about a century ago the great statistician, Karl Pearson, realized that the known probabil- ity distributions were not sufficient to handle all of the phenomena then under investigation, and set out to create new distributions with useful properties. During the 20th century this process continued with abandon and a vast menagerie of distinct mathematical forms were discovered and invented, investigated, analyzed, rediscovered and renamed, all for the purpose of de- scribing the probability of some interesting variable. There are hundreds of named distributions and synonyms in current usage. The apparent diver- sity is unending and disorienting. Fortunately, the situation is less confused than it might at first appear. Most common, continuous, univariate, unimodal distributions can be orga- nized into a small number of distinct families, which are all special cases of a single Grand Unified Distribution. This compendium details these hun- dred or so simple distributions, their properties and their interrelations.
    [Show full text]
  • Probability Distributions Used in Reliability Engineering
    Probability Distributions Used in Reliability Engineering Probability Distributions Used in Reliability Engineering Andrew N. O’Connor Mohammad Modarres Ali Mosleh Center for Risk and Reliability 0151 Glenn L Martin Hall University of Maryland College Park, Maryland Published by the Center for Risk and Reliability International Standard Book Number (ISBN): 978-0-9966468-1-9 Copyright © 2016 by the Center for Reliability Engineering University of Maryland, College Park, Maryland, USA All rights reserved. No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from The Center for Reliability Engineering, Reliability Engineering Program. The Center for Risk and Reliability University of Maryland College Park, Maryland 20742-7531 In memory of Willie Mae Webb This book is dedicated to the memory of Miss Willie Webb who passed away on April 10 2007 while working at the Center for Risk and Reliability at the University of Maryland (UMD). She initiated the concept of this book, as an aid for students conducting studies in Reliability Engineering at the University of Maryland. Upon passing, Willie bequeathed her belongings to fund a scholarship providing financial support to Reliability Engineering students at UMD. Preface Reliability Engineers are required to combine a practical understanding of science and engineering with statistics. The reliability engineer’s understanding of statistics is focused on the practical application of a wide variety of accepted statistical methods. Most reliability texts provide only a basic introduction to probability distributions or only provide a detailed reference to few distributions.
    [Show full text]
  • Arcsine Laws for Random Walks Generated from Random
    ARCSINE LAWS FOR RANDOM WALKS GENERATED FROM RANDOM PERMUTATIONS WITH APPLICATIONS TO GENOMICS XIAO FANG, HAN LIANG GAN, SUSAN HOLMES, HAIYAN HUANG, EROL PEKOZ,¨ ADRIAN ROLLIN,¨ AND WENPIN TANG Abstract. A classical result for the simple symmetric random walk with 2n steps is that the number of steps above the origin, the time of the last visit to the origin, and the time of the maximum height all have exactly the same distribution and converge when scaled to the arcsine law. Motivated by applications in genomics, we study the distributions of these statistics for the non-Markovian random walk generated from the ascents and descents of a uniform random permutation and a Mallows(q) permutation and show that they have the same asymptotic distributions as for the simple random walk. We also give an unexpected conjecture, along with numerical evidence and a partial proof in special cases, for the result that the number of steps above the origin by step 2n for the uniform permutation generated walk has exactly the same discrete arcsine distribution as for the simple random walk, even though the other statistics for these walks have very different laws. We also give explicit error bounds to the limit theorems using Stein’s method for the arcsine distribution, as well as functional central limit theorems and a strong embedding of the Mallows(q) permutation which is of independent interest. Key words : Arcsine distribution, Brownian motion, L´evy statistics, limiting distribu- tion, Mallows permutation, random walks, Stein’s method, strong embedding, uniform permutation. AMS 2010 Mathematics Subject Classification: 60C05, 60J65, 05A05.
    [Show full text]
  • Some Statistical Aspects of Spatial Distribution Models for Plants and Trees
    STUDIA FORESTALIA SUECICA Some Statistical Aspects of Spatial Distribution Models for Plants and Trees PETER DIGGLE Department of Operational Efficiency Swedish University of Agricultural Sciences S-770 73 Garpenberg. Sweden SWEDISH UNIVERSITY OF AGRICULTURAL SCIENCES COLLEGE OF FORESTRY UPPSALA SWEDEN Abstract ODC 523.31:562.6/46 The paper is an account of some stcctistical ur1alysrs carried out in coniur~tionwith a .silvicultural research project in the department of Oi_leruriotzal Efficiency. College of Forestry, Gcwpenberg. Sweden (Erikssorl, L & Eriksson. 0 in prepuratiotz 1981). 1~ Section 2, u statbtic due ro Morurz (19501 is irsed to detect spafiul intercccriorl amongst coutlts of the ~u~rnbersof yo14119 trees in stimple~~lo~slaid out in a systelnntic grid arrangement. Section 3 discusses the corlstruction of hivuriate disrrtbutions for the numbers of~:ild and plunted trees in a sample plot. Sectiorc 4 comiders the relutionship between the distributions of the number oj trees in a plot arld their rota1 busal area. Secrion 5 is a review of statistical nlerhodc for xte in cot~tlectiorz w~thpreliminai~ surveys of large areas of forest. In purticular, Secrion 5 dzscusses tests or spurrnl randotnness for a sillgle species, tests of independence betwren two species, and estimation of the number of trees per unit urea. Manuscr~ptrecelved 1981-10-15 LFIALLF 203 82 003 ISBN 9 1-38-07077-4 ISSN 0039-3150 Berllngs, Arlov 1982 Preface The origin of this report dates back to 1978. At this time Dr Peter Diggle was employed as a guest-researcher at the College. The aim of Dr Diggle's work at the College was to introduce advanced mathematical and statistical models in forestry research.
    [Show full text]
  • Multivariate Distributions
    IEOR E4602: Quantitative Risk Management Spring 2016 c 2016 by Martin Haugh Multivariate Distributions We will study multivariate distributions in these notes, focusing1 in particular on multivariate normal, normal-mixture, spherical and elliptical distributions. In addition to studying their properties, we will also discuss techniques for simulating and, very briefly, estimating these distributions. Familiarity with these important classes of multivariate distributions is important for many aspects of risk management. We will defer the study of copulas until later in the course. 1 Preliminary Definitions Let X = (X1;:::Xn) be an n-dimensional vector of random variables. We have the following definitions and statements. > n Definition 1 (Joint CDF) For all x = (x1; : : : ; xn) 2 R , the joint cumulative distribution function (CDF) of X satisfies FX(x) = FX(x1; : : : ; xn) = P (X1 ≤ x1;:::;Xn ≤ xn): Definition 2 (Marginal CDF) For a fixed i, the marginal CDF of Xi satisfies FXi (xi) = FX(1;:::; 1; xi; 1;::: 1): It is straightforward to generalize the previous definition to joint marginal distributions. For example, the joint marginal distribution of Xi and Xj satisfies Fij(xi; xj) = FX(1;:::; 1; xi; 1;:::; 1; xj; 1;::: 1). If the joint CDF is absolutely continuous, then it has an associated probability density function (PDF) so that Z x1 Z xn FX(x1; : : : ; xn) = ··· f(u1; : : : ; un) du1 : : : dun: −∞ −∞ Similar statements also apply to the marginal CDF's. A collection of random variables is independent if the joint CDF (or PDF if it exists) can be factored into the product of the marginal CDFs (or PDFs). If > > X1 = (X1;:::;Xk) and X2 = (Xk+1;:::;Xn) is a partition of X then the conditional CDF satisfies FX2jX1 (x2jx1) = P (X2 ≤ x2jX1 = x1): If X has a PDF, f(·), then it satisfies Z xk+1 Z xn f(x1; : : : ; xk; uk+1; : : : ; un) FX2jX1 (x2jx1) = ··· duk+1 : : : dun −∞ −∞ fX1 (x1) where fX1 (·) is the joint marginal PDF of X1.
    [Show full text]
  • Univariate Probability Distributions
    Journal of Statistics Education ISSN: (Print) 1069-1898 (Online) Journal homepage: http://www.tandfonline.com/loi/ujse20 Univariate Probability Distributions Lawrence M. Leemis, Daniel J. Luckett, Austin G. Powell & Peter E. Vermeer To cite this article: Lawrence M. Leemis, Daniel J. Luckett, Austin G. Powell & Peter E. Vermeer (2012) Univariate Probability Distributions, Journal of Statistics Education, 20:3, To link to this article: http://dx.doi.org/10.1080/10691898.2012.11889648 Copyright 2012 Lawrence M. Leemis, Daniel J. Luckett, Austin G. Powell, and Peter E. Vermeer Published online: 29 Aug 2017. Submit your article to this journal View related articles Full Terms & Conditions of access and use can be found at http://www.tandfonline.com/action/journalInformation?journalCode=ujse20 Download by: [College of William & Mary] Date: 06 September 2017, At: 10:32 Journal of Statistics Education, Volume 20, Number 3 (2012) Univariate Probability Distributions Lawrence M. Leemis Daniel J. Luckett Austin G. Powell Peter E. Vermeer The College of William & Mary Journal of Statistics Education Volume 20, Number 3 (2012), http://www.amstat.org/publications/jse/v20n3/leemis.pdf Copyright c 2012 by Lawrence M. Leemis, Daniel J. Luckett, Austin G. Powell, and Peter E. Vermeer all rights reserved. This text may be freely shared among individuals, but it may not be republished in any medium without express written consent from the authors and advance notification of the editor. Key Words: Continuous distributions; Discrete distributions; Distribution properties; Lim- iting distributions; Special Cases; Transformations; Univariate distributions. Abstract Downloaded by [College of William & Mary] at 10:32 06 September 2017 We describe a web-based interactive graphic that can be used as a resource in introductory classes in mathematical statistics.
    [Show full text]
  • Modeling Liver Cancer and Leukemia Data Using Arcsine-Gaussian Distribution
    Computers, Materials & Continua Tech Science Press DOI:10.32604/cmc.2021.015089 Article Modeling Liver Cancer and Leukemia Data Using Arcsine-Gaussian Distribution Farouq Mohammad A. Alam1, Sharifah Alrajhi1, Mazen Nassar1,2 and Ahmed Z. Afify3,* 1Department of Statistics, Faculty of Science, King Abdulaziz University, Jeddah, 21589, Saudi Arabia 2Department of Statistics, Faculty of Commerce, Zagazig University, Zagazig, 44511, Egypt 3Department of Statistics, Mathematics and Insurance, Benha University, Benha, 13511, Egypt *Corresponding Author: Ahmed Z. Afify. Email: [email protected] Received: 06 November 2020; Accepted: 12 December 2020 Abstract: The main objective of this paper is to discuss a general family of distributions generated from the symmetrical arcsine distribution. The considered family includes various asymmetrical and symmetrical probability distributions as special cases. A particular case of a symmetrical probability distribution from this family is the Arcsine–Gaussian distribution. Key sta- tistical properties of this distribution including quantile, mean residual life, order statistics and moments are derived. The Arcsine–Gaussian parameters are estimated using two classical estimation methods called moments and maximum likelihood methods. A simulation study which provides asymptotic distribution of all considered point estimators, 90% and 95% asymptotic confidence intervals are performed to examine the estimation efficiency of the considered methods numerically. The simulation results show that both biases and variances of the estimators tend to zero as the sample size increases, i.e., the estimators are asymptotically consistent. Also, when the sample size increases the coverage probabilities of the confidence intervals increase to the nominal levels, while the corresponding length decrease and approach zero. Two real data sets from the medicine filed are used to illustrate the flexibility of the Arcsine–Gaussian distribution as compared with the normal, logistic, and Cauchy models.
    [Show full text]