From the course: Practical Python for Time Series Analysis
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Regression diagnostics and assumptions - Python Tutorial
From the course: Practical Python for Time Series Analysis
Regression diagnostics and assumptions
- [Speaker] Now that you have understood the most important measures to interpret the model, which is the R-squared and the p-value, we go to the following table, which is in the results, the second one in the list, and here, we get the constant and the CPI in the rows and the type of values in the columns. The most important is the coefficient because they establish the mathematical equation of the formula, which is calculating the mortgage rates being equal to the constant value plus the CPI value. And because the CPI is a variable from the data set that we pass to the model, it's being multiplied to a number that we must pass, which is the CPI. Now, if we want to put this as a function, we can use Lambda at the beginning with the CPI as the variable, and this function will be called the mortgage rate. We execute. And now if we pass, for example, a CPI equal to one and we execute, we get 3.21. If we pass a CPI of two, we…
Contents
-
-
-
-
-
-
-
-
(Locked)
Linear regression fundamentals3m 4s
-
(Locked)
Implement linear regression with statsmodels7m 47s
-
(Locked)
Interpret linear regression coefficients11m
-
(Locked)
Regression diagnostics and assumptions4m 5s
-
(Locked)
Robust regression8m 11s
-
(Locked)
Robust regression for assumption violations5m 53s
-
(Locked)
-
-
-
-
-