Numerical Methods: Linear Regression in Python (Numpy Package) + Plotting

Опубликовано: 10 Декабрь 2020
на канале: STEM Tutorials
452
8

Don't worry if you're a beginner in Python, in this video we will show you step-by-step how to calculate the linear regression line and coefficient of determination (r^2) in Python, and then plot the final result. We focus on the numpy Python package and use the polyfit and polyval functions (analogous to Matlab functions).

We use the program Spyder (from Anaconda) to code in Python. It's free to download and easy to use. To install, check out our 10-minute installation video:    • Python: Installing Anaconda on macOS ...  

We also offer a free Numerical Methods (Computational Methods) course on our website. You can access it via this link: https://stem-tutorials.com/tutorials/...

Video Sections:
0:00 - Introduction
1:10 - Linear Regression Line
7:24 - Coefficient of Determination (R^2)
9:44 - Plotting Data & Regression Line