The Sea Level Predictor is a data analysis project that utilizes historical sea level data to predict future trends. This project applies statistical modeling and visualization techniques to analyze the data and forecast potential sea level changes. Instructions for building the project can be found here.
- Loads and processes historical sea level data from a dataset.
- Generates a scatter plot of recorded sea levels over time.
- Fits a linear regression model to predict future sea levels.
- Provides an extended forecast using regression modeling.
- Visualizes trends using Matplotlib for clear and informative graphs.
To set up and run the project, follow these steps:
- Clone the Repository:
git clone https://github.com/ibringfaith/sea-level-predictor.git cd sea-level-predictor - Install Dependencies:
Ensure you have Python installed (preferably 3.7+). Install the required dependencies using:
pip install -r requirements.txt
- Run the Script:
python sea_level_predictor.py
When executed, the script will generate a scatter plot with a regression line predicting future sea levels. The output might look similar to:
To test the functionality of the script, run:
pytest test_sea_level_predictor.pyEnsure all tests pass before making modifications.
