2021-11-06

Evolving project 1

 1. Map data science

On Oct I participated in dataKind.org 's data hack and got a first "hack" on map data analysis. I chose this project because I had always been intereseted in geo-spatial data. This is a snap shot of the final colab I finished by following a geo-spatial tutorial)


It's Florida's map superimposed with  total-renter-occupied-households (how many households have renters living alone or with the owner) in Hillsborough. : The overlay is segragated by Hillsborough's census tract and each one polygon is colored with the "intensity" of total renters. The intensity is captured simply by binning the "total-renter-occupied-households" numbers into 5 bins and using a color scheme to represent it.
I think this is a draft version of Cholorpeth maps: https://en.wikipedia.org/wiki/Choropleth_map 
(side note: there are different ways to bin, mine simply uses geopandas' "quantiles" scheme)

....

I was also interested in the Ookla Internet Speed Test dataset, I was interested in what the ookla tiles represent. Let's pick state Kentucky, I thought each ookla tiles represents the internet speed of a whole county in Kentucky. Surely, a square tile won't cover it entirely, but how much? My intention was to merge the download speed data captured from Ookla with another dataset. One way was to compute the spatial weight of each tile on the county's area  -- but after plotting, I found out that I'm wrong! 

Each tile is "approximately 610.8 meters by 610.8 meters at the equator (18 arcsecond blocks)" but the KY state is 640 km x 302 km! So the tile speed only represents an 610.8m^2 area 

Plotting all the ookla tiles within Florida reveals the "pixels"(tiles) :



So the tiles "should" cover the entire KY state, however due to infrastructure costs there is bound to be missing data.

work in progress...

Couple of takeaways:

  1. Left me with a problem that is commonly seen in data science: How should one merge 2 sources of data where the data contains overlapping entities? (Eg. in this case the entity refer to the same "place" -- state or county) There is the problem of determining:
    1. which ones are the same id? 
    2. how to get a combined result?
  2. Understood how geo-spatial data is commonly stored: shape files, geojson
  3. Picked up tools and libraries to plot the maps
    1. geopandas, (link to geo-spatial tutorial)
  4. hackathons:
    1. knowing front end js is super helpful to the team
    2. Proof of concept prototype end product would be great!
    3. hacking is all about determining what's possible + technical know-hows of what tool can be used. 
      • It's probably also about how to be confident of copying some code to your problem when you have 0 knowledge of what you're copying (ie don't need to be a pro) but outputs what you want. At least one needs to understand what they want first.
      • It takes some experience to know what to create by half knowing.