User Tools

Site Tools


c:ms:covariance_and_correlation_coefficient
rnorm2 <- function(n,mean,sd) { mean+sd*scale(rnorm(n)) } 

x <- rnorm2(100, 100, 10) 
y.error <- rnorm(100, 0, 4)
y <- 3*x + y.error
cor(x,y)
c/ms/covariance_and_correlation_coefficient.txt · Last modified: 2024/05/20 08:24 by hkimscil

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki