Skip to content

nogibjj/Pandas-Descriptive-Statistics-Scrip

Repository files navigation

Data Analysis: Log GDP per Capita and Infant Mortality Rate

GitHub Actions Workflow

Data Source

The dataset used in this analysis is sourced from the World Development Indicators dataset for the year 2015. You can access the data from the following URL: World Development Indicators 2015 Dataset.

Code Overview

1. Loading the Dataset

The script loads the World Development Indicators dataset into a Pandas DataFrame.

2. Logarithm Transformation

It calculates the logarithm of the GDP per capita variable to analyze its relationship with the infant mortality rate.

3. Data Visualization

A scatterplot is created using Seaborn to visually represent the relationship between log GDP per capita and infant mortality rate.

4. Descriptive Statistics

A function named computation is defined to compute descriptive statistics for the log GDP per capita variable, including the mean, median, and standard deviation.

5. Function Execution

The computation function is called with the DataFrame as input to calculate and display the statistics.

Results

After executing the code, the following descriptive statistics were obtained for the log GDP per capita variable:

  • Mean: 8.6995653667
  • Median: 8.7217498371
  • Standard Deviation: 1.47

These statistics offer insights into the central tendency and spread of the log GDP per capita data, contributing to a better understanding of its distribution.

The visualization below illustrates the relationship between the predictor variable (Log GDP Per Capita) and Infant Mortality Rate.

Visualization Example

Conclusion

This script facilitates the exploration of the relationship between log GDP per capita and infant mortality rate using World Development Indicators data. It provides essential descriptive statistics for further analysis.

About

Pandas_Descriptive_Statistics_Scrip_Mini_Project_2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •