Thursday, 22 May 2014

100 Blocks - A 'Quantified Self' Random Walk Experiment

When I was studying Statistics at University one of my favourite topics was Markov Chains and how they could be applied to real life situations. I was particularly fascinated by the simple Random Walk which to borrow from Wikipedia is "a mathematical formalisation of a path that consists of a succession of random steps".

What fascinated me was that random walks don't just fluctuate around an average, they usually 'go' somewhere. And there are so many possibilities of where they will go. Take this example:

Starting at point zero on a simple x,y axis for every move along x of 1, move along the y axis with a randomly chosen value of +1 or -1. You might think that all such 'walks' would just end up around the zero line, but they don't. Again borrowing from Wikipedia, here's what a bunch of such Random Walks end up looking like:

Anyway, the reason I mention this is because I've always had the rather geeky desire to do my own random walk, and by this I mean an actual physical walk - going for a stroll but letting chance determine my route. And this month, thanks to Tableau Public's Quantified Self Month, I finally got the kick I needed to actually go and do it. Plus now I live in a city built around a massive grid, where walking anywhere can be done in any number of combinations of streets and avenues, I had no excuse not to. Then of course I had to visualise the results in Tableau:

(click play for an appropriate sound track)

So how did I actually go about it? Well first off I need to give massive props to my wife Heather for doing this with me, helping come up with the plan and doing all the photo and photoshop work for the viz. Here's what we did:

 - We decided on a few rules
1. We would start the random walk close to home, at the intersection of Avenue B and 11th St.
2. We would roll a di (actually an iphone app called Dice Roller) and take the following actions:
    - Roll 1 or 2: Turn left and walk one block
    - Roll 3 or 4: Go straight ahead and walk one block
    - Roll 5 or 6: Turn right and walk one block
3. We were not allowed to go down the same block twice (to keep us sane)
4. If an intersection has less than 3 options, split the probability equally.
5. Walk for exactly 100 blocks and see where we end up

Here we are at the start:

Then we walked! And along the way we recorded a few of the things that we passed in order to give a flavour of the streets we were going down and how they differ. The, fairly random, list of things we recorded were:
 - Bars (just bars, restaurants with bars didn't count)
 - Laundries and dry cleaners
 - Independent coffee shops
 - Big chain coffee shops
 - Street art (loosely defined)
 - Pizza shops
 - Bodegas and delis

In retrospect I wish we'd recorded the number of psychics, because we definitely passed a lot of them! In order to record everything we passed, the street names and the results of the di throws we used the latest in data collection technology:

Heather also took a photo of every intersection and a photo of something on the block, which you can see in the viz.

Well the whole thing took a whopping six and a half hours, including a few rest stops for bagels, beer and pizza. And we also saw a surprise street market, the Hells Angels club house and a bit of a rain storm. But I was impressed with how far we travelled, we certainly took the long route but we ended up going completely East to West across Manhattan before basically going round and round in circles in the West Village (one part of Manhattan where the grid goes a bit skewy). I'm pretty happy with the results, it was a long day but worth it. Its an interesting way to discover your city and takes you down streets you may never otherwise go down.

Oh, and we took a taxi home.


  1. Thi is really cool, It seems like it was a lot of Work!

    I bet you had lots of fun!!

  2. Creative and cool, especially the pictures integration!

  3. is all-around subsidized organizations framed on the accompanying three rules that we accept are vital with a specific end goal to offer the best cleaning knowledge to our clients. With our clients' fulfillment as our essential goal, we at Chenille Cleaners perspective being spotless way past clean garments. We trust it is our obligation to our clients to guarantee that not just they get the best quality in cleaning, the earth where the garments is prepared is likewise similarly as perfect with no unsafe or debilitating conditions to our clients, to our surroundings, and administrations are accessible manhattan dry cleaning, cleaners midtown, NYC get cleaning, shoddy cleaners, clothing and cleaning administrations, get wash and overlay.

  4. تعتمد شركة ركن البيت على افضل الخدمات الاساسية المميزة التى تساعد فى الوصول الى افضل النتائج المميزة التى تؤدي الغرض المطلوب حيث لدينا شركة تنظيف بالرياض تساعد فى تحقيق افضل ما هو مطلوب في خدمات النظافة بعيد عن اعمال التنظيف اليدوية التي تستخدم اساليب فعليك ان تتعاون وتتصل بنا في شركتنا حيث يمكنك الاستعانة بخدمة تنظيف الفلل من خلال التواصل مع قسم شركة تنظيف فلل بالرياض التي تحقق كل ما هو جيد في اعمال التنظيف والسعى الى التنظيف من الالف الى الياء كما يوجد لدينا خدمات اخري في النظافة مثلا تنظيف الخزانات التي تحتاج الي مختص فني في تقديم اعمال نظافة الخزنات من خلال شركة تنظيف خزانات بالرياض
    التي لديها خدمة متخصصة في القضاء علي البكتريا والرواسب التي توجد في قاع الخزانات من خلال شركة تسمي المتميزة في التعقيم والتظهر للحصول علي كل ما هو صحي من خلال شراء اغلى انواع المنظفات والمساحيق والمعطرات المميزة التى تساعد فى الوصول الى اى نتيجة يرغب العميل بها فشركة ركن البيت هى افضل الشركات التى تهتم باعمال التنظيف لمنزلك التي توجد لديك مثل خدمة شركة تنظيف مسابح بالرياض مهما كانت مساحته ومهما كانت درجة الاتساخ فلاتتردد فى التعامل معنا لدينا خدمات اخري يمكنك متابعتها مثلا بعض الناس يعتمدون علي شركة مكافحة حشرات بالرياض والتي تعتبر من افضل الخدمات الاساسية داخل مدينة الرياض التي تحتاج عناية شديدة في اعمالها من خلال تعاملها مع قسم شركة رش مبيدات بالرياض والتي يستخدم مبيدات طبيعية والتي تقتل جميع الحشرات المنزلية مثل الصراصير والنمل الابض والفئران بالاضافة الى ان الشركة تهتم بتوفير افضل الخدمات الاساسية فى اعمال الرش فاذا كنت فى اى مكان وتعانى من وجود حشرات فعليك التخلص منه من خلال شركتنا المتميزة


Note: only a member of this blog may post a comment.