menu_book Course Curriculum (Statistics) expand_more
Descriptive Statistics
Probability
Distributions
Sampling & Estimation
Hypothesis Testing
simple linear regression
Learn simple linear regression in Statistics with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.
12 min read
•
Advanced
statistics-044.py
python
from scipy.stats import linregress
x=[1,2,3,4,5]; y=[2,4,5,8,10]
r=linregress(x,y)
print(r.slope,r.intercept,r.rvalue**2)
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content