Smu {LearningStats} | R Documentation |
Standard Deviation Estimator when the Population Mean is Known
Description
Smu
computes a estimation of the standard deviation, given a sample x
with known mean (denoted by mu
).
Usage
Smu(x, mu)
Arguments
x |
a numeric vector containing the sample. |
mu |
the population mean. |
Details
Given \{x_1,\ldots,x_n\}
a sample of a random variable, the standard deviation estimator
when the population mean (denoted by \mu
) is known can be computed as S_\mu=\sqrt{\frac{1}{n}\sum_{i=1}^n (x_i-\mu)^2}
.
Value
A single numerical value corresponding with the standard deviation estimation when the population mean is known.
Examples
x=rnorm(20)
Smu(x,mu=0)
[Package LearningStats version 0.1.0 Index]