Professional Documents
Culture Documents
R Exam
R Exam
the dataset?
The above image is the output of the multiple linear regression. We can predict the popularity of
a song given the values of other variables in the dataset. We have to put coefficients near
predictors and get predictor values from the given dataset, thus we would be able to get the
popularity of the song.
3) If you wish to author a popular song on Spotify, which features would you mostly consider?
Again, from the image above which is the output of linear regression we can see that:
danceability
energy
mode
time_signature
These variables are significantly related to popularity. It might be important to consider those
features mostly. Then from correlation plot, we would see which other predictors are closely
correlated with popularity of a song.
MRL diagnostics: