kerrich | R Documentation |
A data set containing 2,000 trials of coin flips from statistician John Edmund Kerrich's 1940s experiments while imprisoned by the Nazis during World War Two.
data(kerrich)
A data frame with 1216 rows and 21 variables:
trial
outcome of each trial; TRUE = heads, FALSE = tails
cumulative mean of outcomes
https://stats.stackexchange.com/questions/76663/john-kerrich-coin-flip-data/77044#77044
https://books.google.com/books/about/An_experimental_introduction_to_the_theo.html?id=JBTvAAAAMAAJ&hl=en
https://en.wikipedia.org/wiki/John_Edmund_Kerrich
str(kerrich) if (require("ggplot2")) { ggplot(data = kerrich) + geom_hline(mapping = aes(yintercept = .5, color = "p(heads)")) + geom_line(mapping = aes(x = id, y = average)) + ylim(0,1) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.