Code Monkey home page Code Monkey logo

immigrant_assimilation's Introduction

Assimilation

A study of immigrant assimilation using both Facebook advertising data and a traditional survey.

Install

Running the code requires installing packages with conda. We need Python2.7 for PySocialWatcher until it gets upgraded to Python3+ (TBD).

conda create -n assimilation_py27 python=2.7 anaconda
conda install -r requirements.txt

Running code

Before running code, the environment should be activated:

conda activate assimilation_py27

All code should be run from the base directory, e.g.:

python example_mine.py

To deactivate the environment after running code:

deactivate

Relevant papers

Resources

Progress to date

  • Activated and tested access token (src/data_processing/example_mine.py).
  • Mined audience counts for Hispanic people across languages (Spanish/Bilingual/English), age groups (young, middle-aged, old) and states, including the full Hispanic count and only Ex-pats from Mexico (src/data_processing/mine_multiple_locations.py).
  • Compared the Ex-pat estimates with ground-truth census data (src/data_processing/compare_facebook_survey_estimates.ipynb).
  • Compared the relative audience sizes of different age/language groups and found that younger Hispanic Facebook users (13-28) tended to be more bilingual and use less Spanish than older Hispanic users (28+). (src/data_processing/compare_young_old_lang_use.ipynb).
  • Computed correlation in interest percentages and found that Hispanic Ex-pats from Mexico are closer to American interests than to Mexican interests (src/data_processing/compare_facebook_survey_estimates.ipynb): metrics include Pearson's correlation, paired t-test, and KL divergence.
  • Extracted all interests related to music (src/data_processing/extract_musical_interests.ipynb)

TODO

  • Query for audience counts on music interests for (1) US Hispanic Mexican Expats and (2) US non-Expats. (7/6/18)
  • Figure out MPI policy on funding for survey deployment.
  • Assess Turk Prime as a platform for survey deployment (alternative to Facebook, in case of funding problems): how much representation of Hispanic people?

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.