# Find the best line through data points slope = np.corrcoef(heights, weights)[0,1] # Correlation print(f"Correlation: {slope:.2f}") # Close to 1 = strong pattern