Login
📚 Python for Introductory Statistics
Chapters ▾

Linear Regression

from scipy import stats
stats.linregress(x_list, y_list)

Adapted from Python for Introductory Statistics, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.