To perform simple linear regression modeling step by step using Python.
- Import the necessary data and libraries.
- Check the assumptions of the linear regression model, such as normality and linearity.
- Define the independent variable (X) and the dependent variable (y).
- Split the data into training and testing sets.
- Fit a simple linear regression model.
- Evaluate the model by checking metrics such as MSE and R-Square.
- Create a visualization comparing actual data and predicted results.
- Draw conclusions.
This is a synthetic dataset generated using AI, consisting of 100 rows and two columns: Calorie Intake and Body Weight.
- Python Programming Language.
- Jupyter Notebook.