14
Where to invest? Wanderson Batista Roldão

Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

  • Upload
    vuphuc

  • View
    239

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Where to invest? Wanderson Batista Roldão

Page 2: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Data Science Workflow❖ Identify the problem

❖ Acquire the data

❖ Parse the data

❖ Mine the data

❖ Refine the data

❖ Build a model

❖ Present the results

Page 3: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Which is a good country to invest?Based on the Doing Business Indicator from the World Bank, specifically the costs of the % of the income per capita.

Data from official sources are based on different keys, but sometimes we don’t see what the data is trying to say.

Identify the problem

Page 4: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Aquire the datahttps://datacatalog.worldbank.org/dataset/doing-businessDoing Business website

Page 5: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Parse the dataOriginal Data (CSV)

Original Dataframe

Page 6: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Mine the data

Page 7: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Refine the dataTransform the data to a format that can be used for data science

Page 8: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Refine the dataMelt and Pivot the dataset

1. Melt

2. Pivot table

3. Rename columns

Page 9: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Build a modelThe proposed model is Unsupervised Learning: K-Means

Due to inconsistency with the resultsthe DataFrame was reduced to only the last year and removed NaN

Page 10: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Present the results

Silhouette Coefficient determinea number of cluster of 5

Page 11: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Present the results

Page 12: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Present the results

Page 13: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality

Present the results

Page 14: Where to invest? - Cloudinaryres.cloudinary.com/general-assembly-profiles/image/upload/v... · Country Code AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG AFG Indicator Name Building quality