- Regression Analysis with Python
- Luca Massaron Alberto Boschetti
- 412字
- 2021-07-16 12:47:26
Chapter 3. Multiple Regression in Action
In the previous chapter, we introduced linear regression as a supervised method for machine learning rooted in statistics. Such a method forecasts numeric values using a combination of predictors, which can be continuous numeric values or binary variables, given the assumption that the data we have at hand displays a certain relation (a linear one, measurable by a correlation) with the target variable. To smoothly introduce many concepts and easily explain how the method works, we limited our example models to just a single predictor variable, leaving to it all the burden of modeling the response.
However, in real-world applications, there may be some very important causes determining the events you want to model but it is indeed rare that a single variable could take the stage alone and make a working predictive model. The world is complex (and indeed interrelated in a mix of causes and effects) and often it cannot be easily explained without considering various causes, influencers, and hints. Usually more variables have to work together to achieve better and reliable results from a prediction.
Such an intuition decisively affects the complexity of our model, which from this point forth will no longer be easily represented on a two-dimensional plot. Given multiple predictors, each of them will constitute a dimension of its own and we will have to consider that our predictors are not just related to the response but also related among themselves (sometimes very strictly), a characteristic of data called multicollinearity.
Before starting, we'd like to write just a few words on the selection of topics we are going to deal with. Though in the statistical literature there is a large number of publications and books devoted to regression assumptions and diagnostics, you'll hardly find anything here because we will leave out such topics. We will be limiting ourselves to discussing problems and aspects that could affect the results of a regression model, on the basis of a practical data science approach, not a purely statistical one.
Given such premises, in this chapter we are going to:
- Extend the procedures for a single regression to a multiple one, keeping an eye on possible sources of trouble such as multicollinearity
- Understand the importance of each term in your linear model equation
- Make your variables work together and increase your ability to predict using interactions between variables
- Leverage polynomial expansions to increase the fit of your linear model with non-linear functions
- Mastering Entity Framework
- Learning AWS Lumberyard Game Development
- INSTANT MinGW Starter
- Python數據分析(第2版)
- Python數據可視化之Matplotlib與Pyecharts實戰
- Web程序設計(第二版)
- Modern JavaScript Applications
- Go并發編程實戰
- SQL Server與JSP動態網站開發
- 區塊鏈技術與應用
- Geospatial Development By Example with Python
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Laravel Application Development Blueprints
- SpringBoot從零開始學(視頻教學版)
- Vue.js光速入門及企業項目開發實戰