r value on poly fit python

Solutions on MaxInterview for r value on poly fit python by the best coders in the world

showing results for - "r value on poly fit python"
Daniele
23 Jan 2017
1x_values = [1,2,3]
2y_values = [1,5,25]
3
4correlation_matrix = np.corrcoef(x_values, y_values)
5correlation_xy = correlation_matrix[0,1]
6r_squared = correlation_xy**2
7
8print(r_squared)
similar questions
queries leading to this page
r value on poly fit python