Return to Video

How we found the worst place to park in New York City — using big data | Ben Wellington | TEDxNewYork

  • 0:17 - 0:20
    Six thousand miles of road,
  • 0:20 - 0:22
    600 miles of subway track,
  • 0:22 - 0:24
    400 miles of bike lanes,
  • 0:24 - 0:26
    and a half a mile of tram track,
  • 0:26 - 0:28
    if you've ever been to Roosevelt Island.
  • 0:28 - 0:31
    These are the numbers that make up
    the infrastructure of NYC,
  • 0:31 - 0:33
    these are the statistics
    of our infrastructure.
  • 0:33 - 0:36
    They're the kind of numbers
    released in reports by city agencies.
  • 0:36 - 0:39
    For example, the Department
    of Transportation will probably tell you
  • 0:39 - 0:41
    how many miles of road they maintain.
  • 0:41 - 0:44
    The MTA will boast how many miles
    of subway track there are.
  • 0:44 - 0:46
    But most city agencies give us statistics.
  • 0:46 - 0:49
    This is from a report this year
    from the Taxi & Limousine Commission,
  • 0:49 - 0:53
    where we've learned that there is
    about 13,500 taxis here in NYC.
  • 0:53 - 0:54
    Pretty interesting, right?
  • 0:54 - 0:57
    But did you ever think about
    where these numbers came from?
  • 0:57 - 1:00
    Because for these numbers to exist
    somebody at the city agency
  • 1:00 - 1:04
    has to stop and say hmm, here's a number
    that somebody might want to know.
  • 1:04 - 1:06
    Here's a number
    that our citizens want to know.
  • 1:06 - 1:08
    So they go back to their raw data,
  • 1:08 - 1:09
    they count, they add, they calculate,
  • 1:09 - 1:11
    and then they put out reports.
  • 1:11 - 1:14
    And those reports
    will have numbers like this.
  • 1:14 - 1:16
    The problem is, how do they know
    all of our questions?
  • 1:16 - 1:17
    We have lots of questions.
  • 1:17 - 1:21
    In fact, in some ways there's literally
    an infinite number of questions
  • 1:21 - 1:22
    that we can ask about our city.
  • 1:22 - 1:24
    So the agencies can never keep up.
  • 1:24 - 1:26
    So the paradigm isn't exactly working
  • 1:26 - 1:28
    and I think our policy makers realize that
  • 1:28 - 1:32
    because in 2012, Mayor Bloomberg
    signed into law what he called
  • 1:32 - 1:36
    the most ambitious and comprehensive
    open data legislation in the country.
  • 1:36 - 1:38
    In a lot of ways he's right.
  • 1:38 - 1:42
    In the last two years the city's released
    1,000 data sets on our open data portal
  • 1:42 - 1:44
    and, it's pretty awesome.
  • 1:44 - 1:46
    You look at data like this,
  • 1:46 - 1:48
    and instead of counting
    the number of cabs,
  • 1:48 - 1:50
    we can start to ask different questions.
  • 1:50 - 1:52
    So I had a question:
    When is rush hour in NYC?
  • 1:52 - 1:55
    It can be pretty bothersome.
    When is rush hour exactly?
  • 1:55 - 1:58
    And I thought to myself,
    these cabs aren't just numbers,
  • 1:58 - 2:01
    these are GPS recorders driving around
    in our city's streets recording
  • 2:01 - 2:03
    each and every right they take.
  • 2:03 - 2:04
    There's data there.
  • 2:04 - 2:06
    And I looked at that data
    and I made a plot
  • 2:06 - 2:09
    of the average speed of taxis in NYC
    throughout the day.
  • 2:09 - 2:13
    You can see that from around midnight
    to around 5:18 AM, speed increases,
  • 2:13 - 2:16
    and at that point, things turn around.
  • 2:16 - 2:20
    They get slower, slower and slower
    until about 8:35 AM
  • 2:20 - 2:23
    when they end up at 11.5 mph.
  • 2:23 - 2:26
    The average taxi is going at 11.5 mph
    in our city streets,
  • 2:26 - 2:28
    and it turns out it stays that way
  • 2:28 - 2:31
    for the entire day.
  • 2:31 - 2:33
    (Laughter)
  • 2:33 - 2:36
    So I said to myself, I guess
    there's no rush hour in NYC,
  • 2:36 - 2:37
    there's just a "rush day."
  • 2:37 - 2:38
    (Laughter)
  • 2:38 - 2:39
    Makes sense.
  • 2:39 - 2:41
    This is important
    for a couple of reasons.
  • 2:41 - 2:45
    If you are a transportation planner,
    this might be pretty interesting to know.
  • 2:45 - 2:47
    But if you want to get somewhere quickly
  • 2:47 - 2:50
    you now know to set your alarm
    for 4:45 AM and you're all set.
  • 2:50 - 2:50
    New York, right?
  • 2:50 - 2:52
    But there's story behind this data,
  • 2:52 - 2:54
    it wasn't just available as it turns out.
  • 2:54 - 2:58
    It actually came from something called
    a Freedom of Information Law Request,
  • 2:58 - 2:59
    or a FOIL Request.
  • 2:59 - 3:02
    This is a form you can find on
    the Taxi & Limousine Commission website.
  • 3:02 - 3:04
    In order to access this data,
    you need to go get this form,
  • 3:04 - 3:06
    fill it out, and they will notify you.
  • 3:06 - 3:09
    And a guy name Chris Whong
    did exactly that.
  • 3:09 - 3:11
    Chris went down and they told him,
  • 3:11 - 3:14
    "Just bring a brand new hard drive
    to our office,
  • 3:14 - 3:17
    leave it here for 5 hours,
    we'll copy the data and you take it back."
  • 3:17 - 3:19
    And that's where this data came from.
  • 3:19 - 3:22
    Now, Chris is the kind of guy
    that wants to make the data public,
  • 3:22 - 3:26
    so it ended up online for all to use
    and that's where this graph came from.
  • 3:26 - 3:28
    And the fact that it exists is amazing.
  • 3:28 - 3:30
    These GPS recorders - really cool!
  • 3:30 - 3:33
    But the fact that we have citizens
    walking around with hard drives
  • 3:33 - 3:35
    picking up data from city agencies
    to make it public -
  • 3:35 - 3:38
    it was already kind of public,
    you could get to it,
  • 3:38 - 3:40
    but it was "public", it wasn't public.
  • 3:40 - 3:42
    And we can do better than that as a city,
  • 3:42 - 3:44
    we don't need our citizens
    walking around with hard drives.
  • 3:44 - 3:47
    Now, not every dataset
    is behind a FOIL request.
  • 3:47 - 3:51
    Here's a map I made with
    the most dangerous intersections in NYC
  • 3:51 - 3:53
    based on cyclist accidents.
  • 3:53 - 3:55
    So the red areas are more dangerous.
  • 3:55 - 3:57
    What it shows is first
    the East side of Manhattan,
  • 3:57 - 4:01
    especially in the lower area of Manhattan,
    has more cycle accidents.
  • 4:01 - 4:02
    That might makes sense
  • 4:02 - 4:05
    because there are more cyclist
    coming off the bridges over there.
  • 4:05 - 4:07
    But there's other hotspots worth studying.
  • 4:07 - 4:10
    There's Williamsburg.
    There's Roosevelt Avenue in Queens.
  • 4:10 - 4:13
    This is exactly the type of data
    we need for vision zero.
  • 4:13 - 4:15
    This is exactly what we're looking for.
  • 4:15 - 4:17
    But there's story
    behind this data as well.
  • 4:17 - 4:18
    This data didn't just appear.
  • 4:18 - 4:21
    How many of you guys know this logo?
  • 4:21 - 4:22
    Yeah, I see some shakes.
  • 4:22 - 4:25
    Have you ever tried to copy
    and paste data out of a PDF
  • 4:25 - 4:26
    and make sense of it?
  • 4:26 - 4:27
    I see more shakes.
  • 4:27 - 4:31
    More of you tried to copying and pasting
    than knew the logo. I like that.
  • 4:31 - 4:34
    What happen is, the data
    that you just saw was actually on a PDF.
  • 4:34 - 4:39
    In fact, hundreds, and hundreds,
    of pages of PDF put out by our own NYPD,
  • 4:39 - 4:41
    and in order to access it,
  • 4:41 - 4:44
    you either have to copy and paste
    for hundred and hundred of hours,
  • 4:44 - 4:46
    or you could be John Krauss.
  • 4:46 - 4:47
    John Krauss is like,
  • 4:47 - 4:50
    I'm not going to copy and paste this data,
    I'm going to write a program.
  • 4:50 - 4:52
    It's called the NYPD Crash Data Band-Aid.
  • 4:52 - 4:55
    And it goes to the NYPD's website
    and it would download PDFs.
  • 4:55 - 4:57
    Every day with it would search;
  • 4:57 - 4:59
    if it found a PDF, it would download it,
  • 4:59 - 5:01
    and it would run
    some PDF-scraping program,
  • 5:01 - 5:02
    and out would come the text
  • 5:02 - 5:06
    and it would go on the Internet,
    and people could make maps like that.
  • 5:06 - 5:09
    And the fact that the data is here,
    that we can have access to it -
  • 5:09 - 5:11
    every accident, by the way, is a row
    on this table.
  • 5:11 - 5:13
    You can imagine how many PDF that is.
  • 5:13 - 5:15
    The fact that we
    have access to that is great.
  • 5:15 - 5:18
    But let's not release it in PDF form.
  • 5:18 - 5:21
    Because then we're having our citizens
    write PDF scrapers.
  • 5:21 - 5:23
    It's not the best use
    of our citizens' time,
  • 5:23 - 5:25
    and we, as a city,
    can do better than that.
  • 5:25 - 5:27
    The good news is that
    the de Blasio Administration
  • 5:27 - 5:30
    actually released this data
    a few months ago,
  • 5:30 - 5:32
    so now, we can have access to it.
  • 5:32 - 5:34
    But there's a lot of data
    still entombed in PDF.
  • 5:34 - 5:38
    For example our crime data,
    still is only available in PDF.
  • 5:38 - 5:39
    And not just our crime data,
  • 5:39 - 5:42
    our own city budget.
  • 5:42 - 5:45
    Our city budget is only
    readable right now in PDF form.
  • 5:45 - 5:47
    And it's not just us
    that can't analyze it -
  • 5:47 - 5:50
    our own legislators
    who vote for the budget,
  • 5:50 - 5:52
    also only get it in PDF.
  • 5:52 - 5:56
    So our legislators cannot analyze
    the budget that they are voting for.
  • 5:56 - 6:00
    And I think as a city we can do
    a little better than that as well.
  • 6:00 - 6:02
    Now, there's a lot of data
    that's not hidden in PDFs.
  • 6:02 - 6:04
    This is an example of a map I made.
  • 6:04 - 6:07
    And this is the dirtiest waterways in NYC.
  • 6:07 - 6:08
    How do I measure dirty?
  • 6:08 - 6:10
    Well, it's kind of a little weird,
  • 6:10 - 6:12
    but I looked at the level
    of fecal coliform,
  • 6:12 - 6:16
    which is a measurement of fecal matter
    in each of our waterways.
  • 6:16 - 6:19
    The larger the circle,
    the dirtier the water.
  • 6:19 - 6:22
    The large circles are dirty waters,
    the smaller circles are cleaner.
  • 6:22 - 6:24
    What you see is inland waterways.
  • 6:24 - 6:27
    This is all data that was sampled
    by the city over the last 5 years.
  • 6:27 - 6:30
    And inland waterways are,
    in general, dirtier.
  • 6:30 - 6:31
    That makes sense, right?
  • 6:31 - 6:33
    And I learned a few things from this.
  • 6:33 - 6:39
    Number 1: never swim in anything
    that ends in creek or canal.
  • 6:39 - 6:42
    Number 2: I also found
    the dirtiest waterways in New York City
  • 6:42 - 6:44
    by this measure, one measure.
  • 6:44 - 6:45
    In Coney Island Creek,
  • 6:45 - 6:48
    which is not Coney Island you swim in,
    luckily, it's on the other side.
  • 6:48 - 6:53
    But Coney Island Creek, 94% of samples
    taken over the last 5 years
  • 6:53 - 6:55
    have had fecal levels so high,
  • 6:55 - 6:58
    that it would be against state law
    to swim in the water.
  • 6:58 - 7:01
    And this is not the kind of fact
    that you're going to see
  • 7:01 - 7:04
    boasted in a city report
    or on the front page of nyc.gov.
  • 7:04 - 7:05
    You're not going to see it there,
  • 7:05 - 7:08
    but the fact that we can
    get to that data, is awesome.
  • 7:08 - 7:10
    Once again, it wasn't super easy,
  • 7:10 - 7:12
    because this data was not
    on the open data portal.
  • 7:12 - 7:14
    If you were to go to the open data portal,
  • 7:14 - 7:17
    you'd see just a snippet of it,
    a year or a few months.
  • 7:17 - 7:20
    It was actually on the Department
    of Environmental Protection's website.
  • 7:20 - 7:24
    Each one of these links is an Excel sheet,
    and this Excel sheet is different.
  • 7:24 - 7:27
    Every heading is different:
    you copy, paste, reorganize.
  • 7:27 - 7:30
    When you do you can make maps
    and that's great, but once again,
  • 7:30 - 7:32
    we can do better than that as a city,
    we can normalize things.
  • 7:32 - 7:36
    We're getting there because
    there's this website that Socrata makes,
  • 7:36 - 7:37
    called the Open Data Portal NYC.
  • 7:37 - 7:39
    This is where 1100 data sets,
    that don't suffer
  • 7:39 - 7:41
    from the things I told you live,
  • 7:41 - 7:43
    and that number is growing,
    and that's great.
  • 7:43 - 7:47
    You can download data in any format,
    be it CSV or PDF or Excel document.
  • 7:47 - 7:50
    Whatever you want,
    you can download the data that way.
  • 7:50 - 7:51
    The problem is, once you do,
  • 7:51 - 7:56
    you'll find that each agency
    codes their addresses differently.
  • 7:56 - 7:58
    So, one is street name,
    intersection street,
  • 7:58 - 8:00
    street, borough, address building,
    building, address.
  • 8:00 - 8:03
    So, once again, you're spending time,
    even when we have this portal,
  • 8:03 - 8:06
    you're spending time
    normalizing our address field.
  • 8:06 - 8:08
    I think that's not the best use
    of our citizens' time,
  • 8:08 - 8:10
    we can do better than that as a city.
  • 8:10 - 8:12
    We can standardize our addresses.
  • 8:12 - 8:14
    If we do, we can get more maps like this.
  • 8:14 - 8:16
    This is a map of fire hydrants
    in New York City.
  • 8:16 - 8:18
    But not just any fire hydrant.
  • 8:18 - 8:20
    These are the top 250
    grossing fire hydrants
  • 8:20 - 8:23
    in terms of parking tickets.
  • 8:23 - 8:25
    (Laughter)
  • 8:25 - 8:27
    So I learned a few things from this map.
  • 8:27 - 8:30
    Number 1: just don't park
    on the Upper East side.
  • 8:30 - 8:34
    Just don't. No matter where you park,
    you will get a hydrant ticket.
  • 8:34 - 8:38
    Number 2: I found the two highest
    grossing hydrants in all of New York City.
  • 8:38 - 8:39
    They are on the Lower East side,
  • 8:39 - 8:45
    and they are bringing in over
    55,000 dollars a year in parking tickets.
  • 8:45 - 8:47
    And that seemed a little strange to me
    when I noticed it,
  • 8:47 - 8:49
    so I did a little digging,
    and it turns out
  • 8:49 - 8:53
    what you had is a hydrant
    and something called a curb extension,
  • 8:53 - 8:55
    which is like a seven-foot space
    to walk on,
  • 8:55 - 8:56
    and then a parking spot.
  • 8:56 - 8:58
    So these cars came along and the hydrant -
  • 8:58 - 9:00
    "It's all the way over there, I'm fine,"
  • 9:00 - 9:03
    and there was actually a parking spot
    painted there beautifully for them.
  • 9:03 - 9:06
    They would park there and the NYPD
    disagree with the designation,
  • 9:06 - 9:08
    and would ticket them.
  • 9:08 - 9:10
    And it wasn't just me
    who found a parking ticket.
  • 9:10 - 9:14
    This is the Google street view car
    driving by, finding same parking ticket.
  • 9:14 - 9:16
    So I wrote about this
    on my blog, on I Quant NY,
  • 9:16 - 9:18
    and the DOT responded and they said,
  • 9:18 - 9:23
    "While the DOT has not received
    any complaints about this location,
  • 9:23 - 9:27
    we will review the roadway markings
    and make any appropriate alterations."
  • 9:27 - 9:30
    I thought to myself, you know,
    typical government response,
  • 9:30 - 9:32
    all right, moved on with my life.
  • 9:32 - 9:37
    But then, a few weeks later,
    something incredible happened.
  • 9:37 - 9:39
    They repainted the spot.
  • 9:39 - 9:41
    And for a second I thought
    I saw the future of open data
  • 9:41 - 9:43
    because think about what happened here.
  • 9:43 - 9:48
    For five years, this spot
    was being ticketed, and it was confusing.
  • 9:48 - 9:53
    And then a citizen found something,
    they told the city and within a few weeks,
  • 9:53 - 9:55
    the problem was fixed. It's amazing.
  • 9:55 - 9:58
    A lot of people see open data
    as being a watch dog, it's not.
  • 9:58 - 9:59
    It's about being a partner.
  • 9:59 - 10:03
    We can empower our citizens to be
    better partners for government,
  • 10:03 - 10:04
    and it's not that hard.
  • 10:04 - 10:06
    All we need are a few changes.
  • 10:06 - 10:07
    If you're FOILing data,
  • 10:07 - 10:09
    if you seeing your data
    being FOILed over and over again,
  • 10:09 - 10:12
    let's release it to the public, that's
    a sign that it should be made public.
  • 10:12 - 10:15
    And if you're a government agency
    releasing a PDF,
  • 10:15 - 10:19
    let's pass a legislation that requires you
    to post it with your underlying data,
  • 10:19 - 10:21
    because that data
    is coming from somewhere.
  • 10:21 - 10:24
    I don't know where,
    but you can release it with the PDF.
  • 10:24 - 10:26
    And let's adopt and share
    some open data standards.
  • 10:26 - 10:29
    Let's start with our addresses
    here in New York City.
  • 10:29 - 10:31
    Let's just start
    normalizing our addresses.
  • 10:31 - 10:33
    Because New York is a leader in open data.
  • 10:33 - 10:35
    Despite all this, we're absolutely
    a leader in open data,
  • 10:35 - 10:38
    and if we start normalizing things,
    and set an open data standard,
  • 10:38 - 10:39
    others will follow.
  • 10:39 - 10:42
    The state will follow,
    maybe the federal government,
  • 10:42 - 10:43
    other countries could follow,
  • 10:43 - 10:47
    and we're not that far off from a time
    where you can write one program
  • 10:47 - 10:49
    and map information from a 100 countries.
  • 10:49 - 10:52
    It's not science fiction,
    we're actually quite close.
  • 10:52 - 10:54
    And by the way, who are we
    empowering with this?
  • 10:54 - 10:58
    Because it's not just John Krauss,
    it's not just Chris Whong.
  • 10:58 - 11:01
    There are hundred of meetups
    going around in New York City right now,
  • 11:01 - 11:02
    active meetups.
  • 11:02 - 11:05
    There are thousands of people
    attending these meetups.
  • 11:05 - 11:07
    These people are going after work
    and on weekends,
  • 11:07 - 11:10
    and they're attending these meetups
    to look at open data,
  • 11:10 - 11:11
    and make our city a better place.
  • 11:11 - 11:16
    Groups like BetaNYC who just last week,
    released something called citygram.nyc
  • 11:16 - 11:18
    that allows you to subscribe
    to 311 complaints
  • 11:18 - 11:20
    around your own home,
    or around your office.
  • 11:20 - 11:23
    You put in your address,
    you get local complaints.
  • 11:23 - 11:26
    And it's not just the tech community
    that are after these things.
  • 11:26 - 11:28
    It's urban planners like the students
    I teach at Pratt.
  • 11:28 - 11:30
    It's policy advocates, it's everyone,
  • 11:30 - 11:33
    it's citizens from a diverse
    set of backgrounds.
  • 11:33 - 11:36
    And with some small incremental changes,
  • 11:36 - 11:39
    we can unlock the passion
    and the ability of our citizens
  • 11:39 - 11:42
    to harness open data
    and make our city even better,
  • 11:42 - 11:46
    whether is one data set
    or one parking spot at a time.
  • 11:46 - 11:47
    Thank you.
  • 11:47 - 11:50
    (Applause)
Title:
How we found the worst place to park in New York City — using big data | Ben Wellington | TEDxNewYork
Description:

City agencies have access to a wealth of data and statistics reflecting every part of urban life. But as data analyst Ben Wellington suggests in this entertaining talk, sometimes they just don't know what to do with it. He shows how a combination of unexpected questions and smart data crunching can produce strangely useful insights, and shares tips on how to release large sets of data so that anyone can use them.

more » « less
Video Language:
English
Team:
closed TED
Project:
TEDxTalks
Duration:
11:52
  • I think at 11:25-11:28 he said: "...at -- Pratt" -- the name is Pratt Institute, but I can't get the word before that.

English subtitles

Revisions