Recall & Review
beginner
What does the
corr() function do in data analysis?The
corr() function calculates the correlation between columns in a dataset, showing how strongly two variables move together.Click to reveal answer
beginner
What type of values does
corr() return?It returns values between -1 and 1, where 1 means perfect positive correlation, -1 means perfect negative correlation, and 0 means no correlation.
Click to reveal answer
beginner
How can you interpret a correlation value of 0.8 between two variables?
A value of 0.8 means a strong positive relationship; as one variable increases, the other tends to increase too.
Click to reveal answer
beginner
Which Python library provides the
corr() function for dataframes?The
pandas library provides the corr() function to calculate correlation between dataframe columns.Click to reveal answer
beginner
Can
corr() handle non-numeric data?No,
corr() only works with numeric data columns. Non-numeric columns are ignored.Click to reveal answer
What does a correlation value of -1 indicate?
✗ Incorrect
A correlation of -1 means the two variables move exactly in opposite directions.
Which Python library do you use to call
corr() on a dataframe?✗ Incorrect
corr() is a method in pandas dataframes.If two variables have a correlation close to 0, what does it mean?
✗ Incorrect
A correlation near 0 means no linear relationship between the variables.
What kind of data does
corr() require?✗ Incorrect
corr() works only with numeric data columns.Which of these correlation values shows the strongest relationship?
✗ Incorrect
The value -0.9 is closest to -1, showing a very strong negative correlation.
Explain what correlation means and how the
corr() function helps in data analysis.Think about how two things can move together or opposite.
You got /4 concepts.
Describe how to interpret a correlation matrix output from
corr().Imagine a table showing how each pair of columns relate.
You got /4 concepts.