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

Correlation coefficient

Correlation coefficients can give a starting assessment to a correlation test and can be used to determine the proportion of variance explained in variable x that can be attributed to variable y.

A company with a website is interested in the activity of their website users, and believes the amount of time the users spent searching on the site is positively correlated with the amount of time spent checking out on the site. Assess the company's assumption in the webdata dataset.

The webdata data set and ggplot2 package have been loaded for you.

Bu egzersiz, kursun bir parçasıdır

A/B Testing in R

Kursa Göz Atın

Egzersiz talimatları

  • Create a scatter plot of Time on the x-axis and TimeSearching on the y-axis.
  • Determine the correlation coefficient of Time and TimeSearching and store it as coeff.
  • Derive the proportion of variation in Time that can be attributed to TimeSearching.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Create a scatter plot 
ggplot(___) + 
  ___

# Determine the correlation coefficient
___

# Determine the proportion of variance
___
Kodu Düzenle ve Çalıştır