Smu: Standard Deviation Estimator when the Population Mean is...

Description Usage Arguments Details Value Examples

View source: R/smu.R

Description

Smu computes a estimation of the standard deviation, given a sample x with known mean (denoted by mu).

Usage

1
Smu(x, mu)

Arguments

x

a numeric vector containing the sample.

mu

the population mean.

Details

Given \{x_1,…,x_n\} a sample of a random variable, the standard deviation estimator when the population mean (denoted by μ) is known can be computed as S_μ=√{\frac{1}{n}∑_{i=1}^n (x_i-μ)^2}.

Value

A single numerical value corresponding with the standard deviation estimation when the population mean is known.

Examples

1
2
x=rnorm(20)
Smu(x,mu=0)

LearningStats documentation built on April 21, 2021, 9:06 a.m.