Description Usage Arguments Details Value Examples
sample.var
computes the sample variance of a sample x
.
1 | sample.var(x)
|
x |
a numeric vector containing the sample. |
Given \{x_1,…,x_n\} a sample of a random variable, the sample variance can be computed as S^2=\frac{1}{n}∑_{i=1}^n (x_i-\bar{x})^2.
A single numerical value corresponding with the sample variance.
1 2 | x=rnorm(20)
sample.var(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.