0
0
R Programmingprogramming~5 mins

Correlation analysis in R Programming - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is correlation analysis?
Correlation analysis measures the strength and direction of a relationship between two numeric variables.
Click to reveal answer
beginner
Which R function is commonly used to calculate correlation?
The cor() function calculates the correlation coefficient between two numeric vectors or columns.
Click to reveal answer
beginner
What does a correlation coefficient of 0 indicate?
It indicates no linear relationship between the two variables.
Click to reveal answer
intermediate
How do you interpret a correlation coefficient of -0.8?
It shows a strong negative linear relationship: as one variable increases, the other tends to decrease.
Click to reveal answer
intermediate
What are the common methods for correlation in R's cor() function?
The methods are "pearson" (default), "spearman", and "kendall".
Click to reveal answer
Which R function calculates the correlation coefficient?
Acor()
Bmean()
Clm()
Dsummary()
What does a Pearson correlation coefficient of 1 mean?
ANo relationship
BPerfect positive linear relationship
CPerfect negative linear relationship
DRandom relationship
Which correlation method is non-parametric and based on ranks?
APearson
BLinear
CSpearman
DKendall
If cor(x, y) = -0.5, what does this indicate?
AModerate negative correlation
BStrong positive correlation
CNo correlation
DPerfect negative correlation
Which argument in cor() specifies the correlation method?
Astyle
Btype
Cmode
Dmethod
Explain what correlation analysis is and how you perform it in R.
Think about measuring relationships between two numbers.
You got /3 concepts.
    Describe the difference between Pearson and Spearman correlation methods.
    One uses actual values, the other uses order.
    You got /3 concepts.