ggeom: Graph of Probabilities of Geometric Distributions.

View source: R/ggeom.R

ggeomR Documentation

Graph of Probabilities of Geometric Distributions.

Description

Graph the probabilities of the first success on the rth trial where the elementary events are sampled from a stationary bernoulli process.

Usage

ggeom(k, p)

Arguments

k

The number of trials to display on the X axis.

p

Probability of a success

Details

The graph plots probabilities of 0:k failures before the first success.

Note

This function is a modification of code from the Rcmdr package.

Author(s)

Bruce Dudek bruce.dudek@albany.edu

Examples


ggeom(2,.5)
ggeom(10,.5)
ggeom(10,.2)
ggeom(15,.7)


bcdudek/bcdstats documentation built on Jan. 3, 2024, 10:09 p.m.