Seattle’s Fremont Bridge Bicyclists Again in the News

Back in 2013, David had done analysis of bicycle trips across Seattle’s Fremont bridge. More recently, Jake Vanderplas (creator of Python’s
very popular Scikit-learn package) wrote a nice blog post on
“Learning Seattle Work habits from bicycle counts” at Fremont bridge.

I wanted to work through Jake’s analysis using R since I am learning R. Please read the original article by Jake to get the full context and thinking behind the analysis. For folks interested in Python, Jake has provided link in the blog post to iPython notebook where you can work through the analysis in Python (and learn some key Python modules: pandas, matplotlib, sklearn along the way)

The R code that I used to work through the analysis is in the following link.

Below are some key results/graphs.
1. Doing a PCA analysis on bicycle count data (where each row is a day and columns are 24 hr bicycle counts from East and West side) shows that 2 components can explain 90% of variance. The scores plot of first 2 principal components indicates 2 clusters. Coloring the scores by day of week suggest a weekday cluster and a weekend cluster

scoresbyWkday

  1. The average bike counts for each cluster and side (East/West) better shows the patterns for weekday and weekend commute (weekday commute peaks in the morning and evening)
    clusterAvg

  2. While this was not in the original post, looking at the loadings of the first 2 principal components also suggests the weekday vs weekend interpretation of clusters.
    pcLoadings

Thanks again to Jake Vanderplas for the analysis and illustrating how lot of insights could be gathered from data.

Advertisements
This entry was posted in R and tagged , . Bookmark the permalink.

3 Responses to Seattle’s Fremont Bridge Bicyclists Again in the News

  1. notesofdabbler says:

    In the initial post, I had indavertantly typed David Smith instead of David as author of the 2013 bicycle trip analysis. My apologies for that. I have fixed that in the main text.

  2. Anne York says:

    Any way to know what percentage of cyclists on the East side are South vs North bound? Could this be estimated if there were meters at both ends of the bridge? Could one also estimate the speed of the cyclists?

    AEY

  3. There have been several excellent blog posts doing statistical analysis of seattle cycling data. I’d be interested in getting together folks to do python/R based workups of both SDOT data and Pronto bikeshare data when they make some of it available this fall.

    Jonathan Callahan
    Mazama Science

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s