<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Biking Data on p &lt; Whatever</title>
    <link>https://szeitlin.github.io/posts/biking_data/</link>
    <description>Recent content in Biking Data on p &lt; Whatever</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Fri, 07 Aug 2015 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://szeitlin.github.io/posts/biking_data/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Biking data from XML to analysis, revised</title>
      <link>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-revised/</link>
      <pubDate>Fri, 07 Aug 2015 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-revised/</guid>
      <description>&lt;p&gt;&lt;em&gt;Am I getting slower every day?&lt;/em&gt;&lt;/p&gt;&#xA;&lt;p&gt;If you&amp;rsquo;ve ever been a bike commuter, you&amp;rsquo;ve probably asked yourself this question. Thanks to these little devices we can now attach to ourselves or our bicycles, we can now use our own actual ride data to investigate these kinds of questions, as well as questions like these:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If I&amp;rsquo;m going to work from home one day a week, which day would maximize my recovery?&lt;/li&gt;&#xA;&lt;li&gt;Do I tend to ride faster in the morning or the evening?&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;Last year, I wrote &lt;a href=&#34;https://szeitlin.github.io/posts/biking_data/bike-data-from-xml-to-plots/&#34;&gt;a few posts&lt;/a&gt; about learning how to parse a set of Garmin XML data from 2013 and analyze it using pandas, matplotlib, and &lt;a href=&#34;http://web.stanford.edu/~mwaskom/software/seaborn/&#34;&gt;seaborn&lt;/a&gt;. This year I redid the same analyses, with a new installment of data from 2014.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Working with device data</title>
      <link>https://szeitlin.github.io/posts/biking_data/device-data/</link>
      <pubDate>Thu, 30 Apr 2015 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/device-data/</guid>
      <description>&lt;p&gt;In continuing my series on &lt;a href=&#34;https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-revised/&#34;&gt;investigating bike data&lt;/a&gt;, I ran into some interesting aspects of working with device data.&lt;/p&gt;&#xA;&lt;p&gt;I have some experience with devices, thanks to my many years of working in research labs. This post is about the fun of hunting down what&amp;rsquo;s working and what&amp;rsquo;s not.&lt;/p&gt;&#xA;&lt;h2 id=&#34;things-to-consider-when-working-with-devices&#34;&gt;Things to consider when working with devices&lt;/h2&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Are you using the device yourself?&lt;/li&gt;&#xA;&lt;li&gt;Are you interacting with the user(s) (directly or indirectly)? Or not at all?&lt;/li&gt;&#xA;&lt;li&gt;What is the device &lt;em&gt;designed&lt;/em&gt; to do? Are you using it for its intended purpose?&lt;/li&gt;&#xA;&lt;li&gt;How well does the device actually work? Generic measurables might include: sensitivity, specificity, accuracy, precision, battery life&lt;/li&gt;&#xA;&lt;li&gt;What else is being measured?&lt;/li&gt;&#xA;&lt;li&gt;Measured how?&lt;/li&gt;&#xA;&lt;li&gt;How are data stored? How much data can it store? How does it connect to other devices/data stores?&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;In the case of a bike computer, I have been looking at:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Biking data from XML to analysis, part 2</title>
      <link>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-2/</link>
      <pubDate>Thu, 12 Feb 2015 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-2/</guid>
      <description>&lt;p&gt;So I have some bike data that I parsed out of XML and put into a pandas dataframe. Most of the questions I wanted to ask required that the timestamp of each ride segment, or lap, be used as the index along the x-axis of a plot.&lt;/p&gt;&#xA;&lt;h2 id=&#34;non-obvious-nuances-of-pandas-datetime-objects-and-indexes&#34;&gt;&lt;strong&gt;Non-obvious nuances of pandas datetime objects and indexes.&lt;/strong&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;You have to sort the dataframe by timestamps, before you can convert the timestamps to use as an index.&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Biking data from XML to analysis, part 3</title>
      <link>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-3/</link>
      <pubDate>Thu, 12 Feb 2015 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-3/</guid>
      <description>&lt;p&gt;One thing I wanted to do with this data set was experiment with plotting methods. I had already done some exploratory plotting with regular matplotlib, so I had some vague ideas about what I wanted to do.&lt;/p&gt;&#xA;&lt;p&gt;First I had to select out subsets of data to compare. I knew that there were two types of rides: shorter trips in the city, and longer trips in the suburbs. I was feeling lazy, so I just did a quick threshold with SQL.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Biking data from XML to analysis, part 4</title>
      <link>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-4/</link>
      <pubDate>Thu, 12 Feb 2015 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/biking-data-from-xml-to-plots-part-4/</guid>
      <description>&lt;p&gt;One of the main reasons this project turned out to be interesting is that time series data has all kinds of gotchas. I never had to deal with a lot of this before, because the sorts of time series I did in my scientific life didn&amp;rsquo;t care about real-life things like time zones. We mostly just cared about calculating time elapsed.&lt;/p&gt;&#xA;&lt;p&gt;&amp;hellip;tick&amp;hellip;tick&amp;hellip;tick&lt;/p&gt;&#xA;&lt;p&gt;Anyway one thing I wondered about with the bike data was,  can we compare average speeds in the morning vs. the afternoon? But to do that, I first had to parse the datetime objects and put them in the right time zone.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Biking data from XML to analysis, part 1</title>
      <link>https://szeitlin.github.io/posts/biking_data/bike-data-from-xml-to-plots/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://szeitlin.github.io/posts/biking_data/bike-data-from-xml-to-plots/</guid>
      <description>&lt;p&gt;I was looking for some fun time series data to hack on. Turns out &lt;a href=&#34;http://www.garmin.com/en-US&#34; title=&#34;Garmin&#34;&gt;bike computers&lt;/a&gt;  provide a great way to interface between your friends&amp;rsquo; unfounded modesty and their actual rides.&lt;/p&gt;&#xA;&lt;p&gt;One friend was kind enough to donate some data for my entertainment. This friend wears spandex, rides a titanium frame road bike, and sweats a lot. I knew he was a strong cyclist. He&amp;rsquo;s also relatively consistent, which meant the data he gave me wasn&amp;rsquo;t too terribly noisy. But everyone forgets to turn on the computer sometimes, or forgets to charge the battery.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
