random_streak: Graph of Streaky Patterns in Coin Tossing

View source: R/random_streak.R

random_streakR Documentation

Graph of Streaky Patterns in Coin Tossing

Description

Constructs a histogram of a streaky stat applied to ofers for repeated flips of a coin.

Usage

random_streak(n = 50, p = 0.5, iter = 1000,
                          stat = sd)

Arguments

n

number of coin flips

width

probability of heads in each flip

iter

number of simulations

stat

function to be applied to the sequence of ofers

Author(s)

Jim Albert

Examples

y <- rbinom(500, size=1, prob=0.3)
mavg_plot(y, width=20)

bayesball/BayesTestStreak documentation built on Dec. 15, 2022, 11:36 a.m.