Introduction to statsmodels

Many Python modules that have statistical capabilities are not completely disjoint. You probably have noticed that there is some measure of overlap between scipy.stats, numpy, pandas, and sckit-learn (for example, scipy.stats can perform linear regression using the linregress method). This is to simplify the import process when making basic statistical calculations on arrays and dataframe data. On the other hand, there comes a point where major differences become obvious. This motivating example compares the functionality of the linregress method against the ols method from statsmodels. Follow this tutorial to see how the statsmodels module improves upon a module such as scipy.stats when building statistical models.


Source: Marcin Swiatek, https://www.youtube.com/watch?v=1u3Ec6lRD4s
Creative Commons License This work is licensed under a Creative Commons Attribution 3.0 License.

Last modified: Monday, July 8, 2024, 11:07 AM