piest: Estimation of Pi Using Binomial Experiment

Description Usage Arguments Value References Examples

Description

Uses iterative methods to estimate pi with standard error for the simulation discussed in Example 4.8.1 on page 293 of the book.

Usage

1
piest(n)

Arguments

n

Iterations (number of simulations) to repeat.

Value

Tuple containing estimate value of pi and standard error.

References

Hogg, R. McKean, J. Craig, A (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson

Examples

1
2
3
4
5
6
# Example where parameters are passed in as variables.
n <- 1000
result <- piest(n)

# Example where parameters are passed in as values.
result <- piest(1000)

joemckean/mathstat documentation built on May 30, 2019, 2:01 p.m.