Skip to content

realshubhamraut/world-population-prediction_

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Population-Prediction-System

ad

Skills Required: Python, ML, Streamlit, Pandas, Sklearn

This code is a population prediction system that uses polynomial regression to predict the population of a selected country for a given year. The code imports two datasets: "Countries_Population_final.csv" which contains the population data of various countries from 1960 to 2021, and "Countries_names.csv" which contains the names of the countries.

The code uses Streamlit to create a dashboard interface where the user selects a country and enters a year. If the year entered is numeric, the code trains a polynomial regression model using the population data of the selected country from 1960 to 2021. The model is then used to predict the population of the selected country for the given year. The predicted population and the accuracy of the model (R2 score) are displayed on the dashboard.

The predicted population and the previous year's population data are also plotted using Plotly. The predicted population for the given year is represented by a star on the plot.

The code requires the following libraries to be installed: pandas, numpy, scikit-learn, streamlit, plotly, and numerize.

About

Population Analysis with Regression Analysis

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages