Challenge - 5 Problems
Correlation Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Pearson Correlation Coefficient
Which statement correctly describes the Pearson correlation coefficient between two variables?
Attempts:
2 left
❓ Predict Output
intermediate2:00remaining
Output of Correlation Calculation in Python
What is the output of the following Python code?
ML Python
import numpy as np x = np.array([1, 2, 3, 4, 5]) y = np.array([2, 4, 6, 8, 10]) correlation = np.corrcoef(x, y)[0, 1] print(round(correlation, 2))
Attempts:
2 left
❓ Model Choice
advanced2:00remaining
Choosing Correlation Method for Nonlinear Data
You have two variables with a clear nonlinear but monotonic relationship. Which correlation method is best to measure their association?
Attempts:
2 left
❓ Metrics
advanced2:00remaining
Interpreting Correlation Matrix Output
Given the correlation matrix below, how many pairs of variables have a strong positive correlation (above 0.7)?
A B C D A 1.0 0.8 0.3 0.6 B 0.8 1.0 0.5 0.9 C 0.3 0.5 1.0 0.2 D 0.6 0.9 0.2 1.0
Attempts:
2 left
🔧 Debug
expert2:00remaining
Debugging Correlation Calculation Code
What error does the following Python code raise?
import numpy as np x = [1, 2, 3] y = [4, 5] correlation = np.corrcoef(x, y)[0, 1] print(correlation)
Attempts:
2 left