Skip to contents

X-bar = (X1 + ... + Xn)/n.

Usage

SampMean(x)

Arguments

x

numeric sample, non-empty.

Value

list(mean, n).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (3.54).

Examples

SampMean(c(1, 2, 3, 4))$mean
#> [1] 2.5