https://github.com/garymengcom/assignment_linear_regression
https://github.com/garymengcom/assignment_linear_regression
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/garymengcom/assignment_linear_regression
- Owner: garymengcom
- Created: 2023-06-13T16:49:43.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-13T16:56:56.000Z (over 2 years ago)
- Last Synced: 2025-01-27T13:06:15.099Z (11 months ago)
- Language: Jupyter Notebook
- Size: 1.24 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Assignment of Multiple Linear Regression Model
This is a simple Multiple Linear Regression Model using both and **statsmodel** and **sklearn**.
# File explanation
- `Course3_Assignment_Linear_Regression.ipynb`: Jupyter file can run directly
- `Linear+Regression+Subjective+Questions.pdf`: The answer of the subjective questions
# How does it works?
1. Import dataset with `pandas`
2. EDA
3. Divide dataset to training data and test data
4. Remove variables with `RFE`
5. Train data and drop variables by `p-value` and `VIF`
6. Evaluate model with R squared and residual