LoslegenKostenlos loslegen

Linear relationship

You can spot a correlation in the business landscape around you. If the demand rises, the price increases. On a macro scale, if the consumers spend more, the GDP increases.

The correlation coefficient measures the strength of the linear relationship between two variables.

In this exercise, you will analyze the linear relationship on the women dataset from the datasets package. The dataset is available as women in the environment.

The dataset includes the average heights and weights for American women aged 30-39.

Diese Übung ist Teil des Kurses

Practicing Statistics Interview Questions in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Draw the scatterplot
___(women$height, ___)
Code bearbeiten und ausführen