BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

Practicing Statistics Interview Questions in R

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

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

# Calculate the correlation coefficient of price and area
___(___, ___)
Kodu Düzenle ve Çalıştır