शुरू करेंमुफ़्त में शुरू करें

Nonlinear relationship

Covariance and correlation measure the strength of a linear relationship.

If these metrics are low, it doesn't mean that the variables are not related at all!

In some cases, you can achieve linearity using a transformation of one or more of the variables. If your data is heavily skewed, a log-transformation usually helps.

In your environment, you can find the houses data frame with two variables: area and price.

यह अभ्यास पाठ्यक्रम का हिस्सा है

Practicing Statistics Interview Questions in R

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

इस अभ्यास को इस नमूना कोड को पूरा करके आज़माएँ।

# Draw a scatterplot of price vs. area
___(___ ~ ___, data = ___)

# Calculate the correlation coefficient of price and area
___(___, ___)
कोड संपादित करें और चलाएँ