N f(x) for a Gaussian f. The defaults are the book's dice-sum
experiment: ten dice, mean 35, sigma 5.4, repeated 100,000 times.
Usage
GaussCount(x, n_reps = 1e+05, mu = 35, sigma = 5.4)
Arguments
- x
outcome value.
- n_reps
number of repetitions, > 0.
- mu, sigma
Gaussian mean and standard deviation; sigma > 0.
Value
list(expected_count, mu, sigma).
References
Morin, D. J. (2016). Probability: For the Enthusiastic
Beginner. Createspace. Eq (5.28).
Examples
GaussCount(35)$expected_count
#> [1] 7387.82