User Tools

Site Tools


variance:ro2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
variance:ro2 [2026/03/10 23:15] – created hkimscilvariance:ro2 [2026/03/10 23:29] (current) – removed hkimscil
Line 1: Line 1:
-<code> +
-> rnorm2 <- function(n,mean,sd) { mean+sd*scale(rnorm(n)) }  +
-> set.seed(1) +
-> a <- rnorm2(100000000, 100, 10) +
-> a.mean <- mean(a) +
-> ss <- sum((a-a.mean)^2) +
-> n <- length(a) +
-> df <- n-1 +
-> ss/n +
-[1] 100 +
-> ss/df +
-[1] 100 +
-</code>+
variance/ro2.1773184538.txt.gz · Last modified: by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki