mycltb: My Central Limit Theorem Binomial Function

Description Usage Arguments Value Examples

View source: R/mycltb.R

Description

mycltb takes a random sample from a binomial distribution. CLT will work with discrete OR continuous distributions

Usage

1
mycltb(n, iter, p = 0.5, ...)

Arguments

n

- size of sample

iter

- number of iterations

p

- The probability of success in a single binomial trial

...

Value

a histogram of sample mean theoretical normal curve line added in Red

Examples

1
2
mycltb(n=3, iter=10000, p=0.5)
mycltb(n=9, iter=10000)

gabescott10/MATH4753scot0068 documentation built on March 15, 2020, 4:01 p.m.