This is the documentation for a Shiny application that demonstrates the concept of correlation. The application is online here.
The Pearson correlation coefficient refers to the linear dependence between two variables. The correlation coefficient ranges from \(-1\) to \(1\) where \(0\) indicates no correlation. The values of \(-1\) and \(1\) indicate a perfect negative and positive relationship, respectively.
Note that the correlations can represent linear relationship only. Even if there is no correlation between two random variables \(y\) and \(y\), there might be another type of dependency, for example, a polynomial relationship.
In the Shiny application, the slider can be used to choose a correlation value. The relationship between the data points displayed in the scatter plot (first tab) will change accordingly. Try some values and have a look at the results.
