Is the height of a person related to its weight? Correlation doubts.

Code snippet for correlation in R
height=c(120,130,140,150,155,160,165,170,175,185)
weight=c(25,28,30,40,50,53,55,60,65,70)
correlation=cor(height,weight,method=c("pearson"))
plot(height,weight)
Code snippet from R — correlation coefficient
Screenshot from RStudio plot

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Maja Analytics

Maja Analytics

17 Followers

Hello! I’m Maja and I have a huge passion towards data analytics. Currently working on my projects and tutorials for non-data scientists (in R).