tungwaiyip.info

home

about me

links

my software

Media

Yucatán Photos

St Lucia Photos

Photo Album

Videos

Blog

< September 2010 >
SuMoTuWeThFrSa
    1 2 3 4
5 6 7 8 91011
12131415161718
19202122232425
2627282930  

past articles »

Click for San Francisco, California Forecast

San Francisco, USA

 

Traffic Data Analysis

I was doing a traffic data analysis base on the vehicle location data pull from the SF Muni website. This is an extremely interesting project. I pick up a whole lot of new skills while doing this, most notably data analysis and computational geometry. The project also turns out to be a challenging one. A few months (of part time work) has gone by I still haven't nearly achieved my original vision.

Still I think I am getting better at this work. So I'm sharing some interesting data I'm working with. On one bus route I've collected 20,000 location readings on a single day. The goal is to organize them into individual vehicle trip. After a first pass, the data are reduced to 336 trips. But how good is the quality of data? And how good is my trip segregation algorithm? So I plotted the trips' distance against their duration on a chart. The graph quickly helped me to evaluate the quality of the result.

Bus #38 trips characteristic

The first impression is the result looks fairly good. A dense band of points shows that most trip length is about 10 km, and they takes about 40-75 minutes. This seems to match real world experience. At the lower left hand corner is a number of trips that last very short time and cover very little distance. I'll probably treat them as noise and discard them. A curiosity is some trips seem to cover a long distance from 15 to 20 km, much long than the official route. Where did they went?

Closer examination on their track reveal the problem. These are all legitimate eastbound trips. However the bus starts from a depot in the middle of the city. They went all the way to the terminal in the west end. Only from there the real eastbound trip begins. The challenge for me is I'm only interested in the eastbound portion. The trip from the depot to the west end is actually data pollution. I need to find a way to handle these extraneous data.

This still leaves a scatter of points of around 5 km long and last 15 to 35 minutes to inspect. Meanwhile I have difficulty to examine the track because Google Earth is crashing on me all the time. I guess this is a good time to turn away from technical work and to write a blog instead.

2010.09.02 [, ] - comments

 

 

blog comments powered by Disqus

past articles »

 

Kontagent

Kontagent is hiring software engineers

BBC News

 

Search for US tornado survivors (21 May 2013)

 

Apple's Tim Cook defends tax claim (21 May 2013)

 

Suicide inside Notre-Dame de Paris (21 May 2013)

 

Key pair barred from Iran election (21 May 2013)

 

Commons votes to back gay marriage (21 May 2013)

 

Syria and Israel in exchange of fire (21 May 2013)

 

Afghan women 'jailed over morals' (21 May 2013)

 

Oscar Pistorius' brother acquitted (21 May 2013)

 

Deadly virus kills Tunisian man (21 May 2013)

 

Wi-fi shut down in Guantanamo alert (21 May 2013)

more »

 

Slashdot News for nerds, stuff that matters

 

Transporting a 15-Meter-Wide, 600-Ton Magnet Cross Country (2013-05-21T20:29:00Z)

 

House Bill Would Mandate Smart Gun Tech By U.S. Manufacturers (2013-05-21T19:46:00Z)

 

Do Developers Need Free Perks To Thrive? (2013-05-21T19:04:00Z)

 

So You've Always Wanted a Hovercraft... (Video) (2013-05-21T18:22:00Z)

 

Microsoft Unveils Xbox One (2013-05-21T17:41:00Z)

 

Ask Neil Gaiman and Amber Benson About Their Kickstarter Vampire Movie (2013-05-21T16:57:00Z)

 

Immigration Reform May Spur Software Robotics (2013-05-21T16:12:00Z)

 

Hollywood Studios Use DMCA To Censor Pirate Bay Documentary (2013-05-21T15:33:00Z)

more »

 

TechPsychic Tech Rumors and Invented News

more »

 

SF Gate

 

Bay Area News (7 Jan 2012)

 

City Insider (11 Feb 2012)

 

Crime Scene (13 Feb 2012)

 

C.W Newius Column (10 Jan 2012)

 

C.W. Nevius Blog (11 Feb 2012)

 

Education News (10 Jan 2012)

 

KALW (11 Feb 2012)

 

Matier and Ross Blog (11 Feb 2012)

 

The best personal fitness gadgets (20 May 2013)

 

State unemployment rate drops to 9 percent (17 May 2013)

 

EDD cuts back phone help to the jobless (17 May 2013)

 

Bay Area median home price hits ,000 (16 May 2013)

 

Best Bluetooth accessories (13 May 2013)

 

Fast Android gaming tablets: Cnet reviews (6 May 2013)

more »

 

Asia Times Online

 

Japan tips its hand via North Korea (21 May 2013)

 

Philippine 'pivot' in the South China Sea (21 May 2013)

 

Syria highlights US political impotence (21 May 2013)

 

OBITUARY : A last dance with Kenneth Waltz (21 May 2013)

 

Explosives shatter lives in Kashmir (21 May 2013)

 

US-IRAN TIES: A SPORTING CHANCE : The basketball bridge (21 May 2013)

 

Alibaba stocks up on mobile deals before share sale (21 May 2013)

 

SPEAKING FREELY : Russia leads the way in post-Fukushima world (21 May 2013)

more »

 


Site feed Updated: 2013-May-21 14:00