geometric.plot: Geometric Probability Plot of a Binary Sequence

geometric.plotR Documentation

Geometric Probability Plot of a Binary Sequence

Description

Constructs a probability plot to visually see if a group of spacings satisfies a geometric distribution with a constant probability of success.

Usage

geometric.plot(y, ...)

Arguments

y

vector of spacings

...

any arguments that can be used in the stat.smooth function

Value

a geometric probability plot using the ggplot2 package

Author(s)

Jim Albert

References

Albert, J. (2013), Looking at Spacings to Access Streakiness, Journal of Quantitative Analysis of Sports, Vol 9, Issue 2, 151-163.

Examples

x <- rgeom(500, prob=0.5)
s <- find.spacings(x)
geometric.plot(s$y)

bayesball/BayesTestStreak documentation built on April 28, 2024, 6:28 a.m.