Answers for "r value on poly fit python"

0

r value on poly fit python

x_values = [1,2,3]
y_values = [1,5,25]

correlation_matrix = np.corrcoef(x_values, y_values)
correlation_xy = correlation_matrix[0,1]
r_squared = correlation_xy**2

print(r_squared)
Posted by: Guest on March-25-2021

Python Answers by Framework

Browse Popular Code Answers by Language