Package cbinom. June 10, 2018

Similar documents
Package dng. November 22, 2017

4. Basic distributions with R

Package ald. February 1, 2018

Package smam. October 1, 2016

Package XNomial. December 24, 2015

Package cnbdistr. R topics documented: July 17, 2017

Package tailloss. August 29, 2016

It is common in the field of mathematics, for example, geometry, to have theorems or postulates

Package gmediation. R topics documented: June 27, Type Package

Package LNIRT. R topics documented: November 14, 2018

UQ, STAT2201, 2017, Lectures 3 and 4 Unit 3 Probability Distributions.

Package FMStable. February 19, 2015

Lecture 23. STAT 225 Introduction to Probability Models April 4, Whitney Huang Purdue University. Normal approximation to Binomial

BIOINFORMATICS MSc PROBABILITY AND STATISTICS SPLUS SHEET 1

Normal Distribution. Notes. Normal Distribution. Standard Normal. Sums of Normal Random Variables. Normal. approximation of Binomial.

Package multiassetoptions

4-2 Probability Distributions and Probability Density Functions. Figure 4-2 Probability determined from the area under f(x).

Session Window. Variable Name Row. Worksheet Window. Double click on MINITAB icon. You will see a split screen: Getting Started with MINITAB

Commonly Used Distributions

1 PMF and CDF Random Variable PMF and CDF... 4

Package GenOrd. September 12, 2015

Package EMT. February 19, 2015

Package uqr. April 18, 2017

mfx: Marginal Effects, Odds Ratios and Incidence Rate Ratios for GLMs

Package ratesci. April 21, 2017

Package bbdetection. September 8, 2017

Package conf. November 2, 2018

Package GCPM. December 30, 2016

Package cumstats. R topics documented: January 16, 2017

Probability and distributions

Package rmda. July 17, Type Package Title Risk Model Decision Analysis Version 1.6 Date Author Marshall Brown

Lecture 2. Probability Distributions Theophanis Tsandilas

STATISTICAL LABORATORY, May 18th, 2010 CENTRAL LIMIT THEOREM ILLUSTRATION

Chapter 7 1. Random Variables

Basic Probability Distributions Tutorial From Cyclismo.org

Package optimstrat. September 10, 2018

Business Statistics, Can. ed. By Black, Chakrapani & Castillo

Package MixedPoisson

LAB 2 INSTRUCTIONS PROBABILITY DISTRIBUTIONS IN EXCEL

Statistics/BioSci 141, Fall 2006 Lab 2: Probability and Probability Distributions October 13, 2006

Lecture 3: Probability Distributions (cont d)

Package stable. February 6, 2017

Probability and Statistics

Package scenario. February 17, 2016

Statistical Tables Compiled by Alan J. Terry

Normal distribution Approximating binomial distribution by normal 2.10 Central Limit Theorem

Probability Theory and Simulation Methods. April 9th, Lecture 20: Special distributions

Package semsfa. April 21, 2018

Package ELMSO. September 3, 2018

Objective: To understand similarities and differences between geometric and binomial scenarios and to solve problems related to these scenarios.

Martingales, Part II, with Exercise Due 9/21

Package mle.tools. February 21, 2017

Probability Distributions: Discrete

Much of what appears here comes from ideas presented in the book:

Package eesim. June 3, 2017

Describing Uncertain Variables

continuous rv Note for a legitimate pdf, we have f (x) 0 and f (x)dx = 1. For a continuous rv, P(X = c) = c f (x)dx = 0, hence

Package MSMwRA. August 7, 2018

Review. Binomial random variable

Package ensemblemos. March 22, 2018

Package fmdates. January 5, 2018

Lab 9 Distributions and the Central Limit Theorem

Package ProjectManagement

Lab #7. In previous lectures, we discussed factorials and binomial coefficients. Factorials can be calculated with:

Introduction to the Practice of Statistics using R: Chapter 4

Monte Carlo Simulation (Random Number Generation)

BloxMath Library Reference

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi

Statistics 431 Spring 2007 P. Shaman. Preliminaries

STATISTICS and PROBABILITY

AP Statistics Ch 8 The Binomial and Geometric Distributions

MA : Introductory Probability

CS 361: Probability & Statistics

R Lab Session : Part 2

4 Random Variables and Distributions

Unit 6 Bernoulli and Binomial Distributions Homework SOLUTIONS

Package beanz. June 13, 2018

Chapter Learning Objectives. Discrete Random Variables. Chapter 3: Discrete Random Variables and Probability Distributions.

Engineering Statistics ECIV 2305

Continuous random variables

LEC. 3: USING R FUNCTIONS

The Lmoments Package

Package SMFI5. February 19, 2015

Chapter 4 Continuous Random Variables and Probability Distributions

Statistics & Flood Frequency Chapter 3. Dr. Philip B. Bedient

Random Variables and Probability Distributions

Chapter 5. Continuous Random Variables and Probability Distributions. 5.1 Continuous Random Variables

Statistics and Probability

Binomial Distributions

Binomal and Geometric Distributions

Chapter 6 Continuous Probability Distributions. Learning objectives

CS145: Probability & Computing

Chapter 3 Statistical Quality Control, 7th Edition by Douglas C. Montgomery. Copyright (c) 2013 John Wiley & Sons, Inc.

Package SimCorMultRes

LAB 2 Random Variables, Sampling Distributions of Counts, and Normal Distributions

Some Discrete Distribution Families

Central Limit Theorem (CLT) RLS

Package Strategy. R topics documented: August 24, Type Package

Probability Theory. Probability and Statistics for Data Science CSE594 - Spring 2016

Probability Distributions for Discrete RV

Transcription:

Package cbinom June 10, 2018 Type Package Title Continuous Analog of a Binomial Distribution Version 1.1 Date 2018-06-09 Author Dan Dalthorp Maintainer Dan Dalthorp <ddalthorp@usgs.gov> Description Implementation of the d/p/q/r family of functions for a continuous analog to the standard discrete binomial with continuous size parameter and continuous support with x in [0, size + 1], following Ilienko (2013) <arxiv:1303.5990>. License GPL (>= 2) Imports Rcpp (>= 0.12.0) LinkingTo Rcpp RoxygenNote 6.0.1 NeedsCompilation yes Repository CRAN Date/Publication 2018-06-10 13:24:30 UTC R topics documented: cbinom-package....................................... 2 cbinom........................................... 2 Index 5 1

2 cbinom cbinom-package Continuous Analog of a Binomial Distribution Description Implementation of the d/p/q/r family of functions for a continuous analog to the standard discrete binomial with continuous size parameter and continuous support with x in [0, size + 1]. Details Included in the package are functions dcbinom(x, size, prob, log = FALSE), pcbinom(q, size, prob, lower.tail = qcbinom(p, size, prob, lower.tail = TRUE, log.p = FALSE), and rcbinom(n, size, prob. Usage closely parallels that of the binom family of functions in the stats R package. Author(s) Dan Dalthorp <ddalthorp@usgs.gov> References Ilienko, Andreii (2013). Continuous counterparts of Poisson and binomial distributions and their properties. Annales Univ. Sci. Budapest., Sect. Comp. 39: 137-147. http://ac.inf.elte.hu/ Vol_039_2013/137_39.pdf See Also pcbinom cbinom The Continuous Binomial Distribution Description Density, distribution function, quantile function and random generation for a continuous analog to the binomial distribution with parameters size and prob. The usage and help pages are modeled on the d-p-q-r families of functions for the commonly-used distributions (e.g., dbinom) in the stats package. Heuristically speaking, this distribution spreads the standard probability mass (dbinom) at integer x to the interval [x, x + 1] in a continuous manner. As a result, the distribution looks like a smoothed version of the standard, discrete binomial but shifted slightly to the right. The support of the continuous binomial is [0, size + 1], and the mean is approximately size * prob + 1/2.

cbinom 3 Usage Arguments dcbinom(x, size, prob, log = FALSE) pcbinom(q, size, prob, lower.tail = TRUE, log.p = FALSE) qcbinom(p, size, prob, lower.tail = TRUE, log.p = FALSE) rcbinom(n, size, prob) x, q vector of quantiles. p n size prob Details Value log, log.p vector of probabilities. number of observations. If length(n) > 1, the length is taken to be the number required. the size parameter. the prob parameter. logical; if TRUE, probabilities p are given as log(p) lower.tail logical; if TRUE (default), probabilities are P[X <= x], otherwise, P[X > x] The cbinom package is an implementation of Ilienko s (2013) continuous binomial distribution. The continuous binomial distribution with size = N and prob = p has cumulative distribution function B(x, N + 1 x, p) F (x) = B(x, N + 1 x) for x in [0, N + 1], where is the incomplete beta function and B(x, N + 1 x, p) = B(x, N + 1 x) = 1 p 1 0 t x 1 (1 t) y 1 dt t x 1 (1 t) y 1 dt is the beta function (or beta(x, N - x + 1) in R). The CDF can be expressed in R as F(x) = 1 - pbeta(prob, x, size - x + 1) and the mean calculated as integrate(function(x) pbeta(prob, x, size - x + 1 If an element of x is not in [0, N + 1], the result of dcbinom is zero. The PDF dcbinom(x, size, prob) is computed via numerical differentiation of the CDF = 1 - pbeta(prob, x, size - x + 1). dcbinom is the density, pcbinom is the distribution function, qcbinom is the quantile function, and rcbinom generates random deviates. The length of the result is determined by n for rbinom, and is the maximum of the lengths of the numerical arguments for the other functions. The numerical arguments other than n are recycled to the length of the result.

4 cbinom References Ilienko, Andreii (2013). Continuous counterparts of Poisson and binomial distributions and their properties. Annales Univ. Sci. Budapest., Sect. Comp. 39: 137-147. http://ac.inf.elte.hu/ Vol_039_2013/137_39.pdf Examples require(graphics) # Compare continous binomial to a standard binomial size <- 20 prob <- 0.2 x <- 0:20 xx <- seq(0, 21, length = 200) plot(x, pbinom(x, size, prob), xlab = "x", ylab = "P(X <= x)") lines(xx, pcbinom(xx, size, prob)) legend('bottomright', legend = c("standard binomial", "continuous binomial"), pch = c(1, NA), lty = c(na, 1)) mtext(side = 3, line = 1.5, text = "pcbinom resembles pbinom but continuous and shifted") pbinom(x, size, prob) - pcbinom(x + 1, size, prob) # Use "log = TRUE" for more accuracy in the tails and an extended range: n <- 1000 k <- seq(0, n, by = 20) cbind(exp(dcbinom(k, n,.481, log = TRUE)), dcbinom(k, n,.481))

Index Topic continuous binomial, R package cbinom-package, 2 cbinom, 2 cbinom (cbinom-package), 2 cbinom-package, 2 dbinom, 2 dcbinom (cbinom), 2 pcbinom, 2 pcbinom (cbinom), 2 qcbinom (cbinom), 2 rcbinom (cbinom), 2 5