geometric.plot | R Documentation |
Constructs a probability plot to visually see if a group of spacings satisfies a geometric distribution with a constant probability of success.
geometric.plot(y, ...)
y |
vector of spacings |
... |
any arguments that can be used in the stat.smooth function |
a geometric probability plot using the ggplot2 package
Jim Albert
Albert, J. (2013), Looking at Spacings to Access Streakiness, Journal of Quantitative Analysis of Sports, Vol 9, Issue 2, 151-163.
x <- rgeom(500, prob=0.5)
s <- find.spacings(x)
geometric.plot(s$y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.