Predictive Analysis using Linear Regression
Predictive analysis is a powerful tool for deriving insights and making informed decisions from data. In this project, I demonstrate how I utilized a linear regression model in Python to predict the water temperature based on salinity?.
Libraries used are : Pandas,NumPy,Matplotlib,Seaborn,Scikit-learn. I collected dataset from Kaggle and performed EDA in python by importing dataset using Pandas.
For this prediction task, I chose a linear regression model due to its simplicity and interpretability. Using Python and the scikit-learn library, I implemented the model to establish a relationship between temperature (dependent variable) and salinity (independent variable).I trained the linear regression model on the training dataset, where salinity serves as the predictor variable and temperature as the target variable. After training, I evaluated the model's performance using metrics such as R-squared on the testing dataset. This allowed me to assess how well the model generalizes to new data.