Skip to content

Instantly share code, notes, and snippets.

@mmajogn
Created February 28, 2015 06:25
Show Gist options
  • Save mmajogn/1273f9b00492964f280a to your computer and use it in GitHub Desktop.
Save mmajogn/1273f9b00492964f280a to your computer and use it in GitHub Desktop.
#varianza#
x<-c(3.0,5.8,5.6,4.8,5.1,3.6,5.5,4.7,5.7,5.0,5.9,5.7,4.4,5.4,4.2,5.3,0.3,0.14)
plot(x)
k<-var(x)
k
plot(x, col="blue", ylab="Eje Y", xlab="Eje X", main="Varianza de datos")
points(k, col="green")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment