Giter Site home page Giter Site logo

mid-project-xiao's Introduction

mid-project-Xiao

Steps:

Deal with missing values:

  1. impute with time series imputation, then keep only the recent 3 yr data
  2. impute with KNN for each yr and test the primal KNN value via linear regression & r2 score --> maximum r2score test set 0.8372 at N 1

Observe country ranking over 3 yrs: Identified 6 representative countries -- Afghanistan (at bottom in 3 yr), Finland (at top in 3 yr), Kuwait (rise to top in 3 yr), Yemen, Comoros & Sri Lanka (drop to bottom in 3 yr)

Observe correlations btw features: There exist linear relations btw target variable and other variables --> safe to perform linear regression Also high correlation btw life expectancy & GDP per capita --> use Lasso to test necessity to drop one

Put aside outliers -- as half of the outliers are among the top 10 countries, better to keep them but further test needed

Try out linear regressions/Lasso(alpha = 0.1) with/without outliers, different scalers --> robust scaler + outliers better hyper parameter tuning --> alpha = 0 the best --> keep both GDP and life expectancy, correlation acceptable Linear regression + robust scaler + outliers --> most important feature to happiness is social support

Logistic regression to predict happy or not: Replace ladder life values -- 1 for 5+, 0 for 5- SMOTE to balance classification of the target variable -- start with 2 then find the primal k = 16 with the highest f1 score

Confidence interval to see globally the proportion of happy countries

Test whether the result of regressions corresponds with the observations from the latest three yrs

Trello link: https://trello.com/invite/b/VJRK4Zdl/ATTIc81447a34619a529d76ce30f5c39184967559673/xiao

mid-project-xiao's People

Contributors

xiaos799 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.