correlation coefficient

  • Statistical simulation of the correlation coefficient with R-Project

    
    x<- c(88,80,83,84,78,62,82,85,80,84,80,62)
    
    y<- c(300,302,316,330,300,250,300,340,315,330,310,243)
    
    cor(x,y)
    
    [1] 0.897579
    



  • Statistical simulation of the correlation coefficient with Mathematica

    x := {88,80,83,84,78,62,82,85,80,84,80,62};
    y := {300,302,316,330,300,250,300,340,315,330,310,243};
    Correlation[x,y]
    N[%]
    
    0.8975789838630521`