100,000 miles of driving visualized

Click For Summary

Discussion Overview

The discussion revolves around the analysis of personal driving data collected from a 2006 Prius, specifically focusing on fuel efficiency and mileage trends over time. Participants explore the use of D3.js for data visualization and examine various factors affecting mileage, including seasonal variations and changes in driving behavior.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant shares visualizations created from fillup data, noting that mileage appears better in summer months.
  • Another participant questions the observed decrease in good mileage fillups, suggesting it may relate to changes in driving behavior or the car's efficiency over time.
  • Concerns are raised about the potential bias in the data due to the selection of fillups based on mileage.
  • Participants discuss the impact of the car aging on fuel efficiency, with one suggesting that it could contribute to observed trends.
  • One participant adds a fuel chart to analyze fillup amounts, indicating a shift towards using less fuel per fillup in recent years.

Areas of Agreement / Disagreement

Participants express differing views on the reasons behind the changes in mileage and fillup behavior. There is no consensus on the causes of the observed trends, with multiple competing explanations being offered.

Contextual Notes

Participants acknowledge the lack of normalization in the data and the potential influence of various factors, such as driving habits and the aging of the vehicle, on the results. There are also mentions of statistical analysis limitations.

Borg
Science Advisor
Gold Member
Messages
2,349
Reaction score
5,128
I thought that I would share some interesting visualizations that I have created from some personal driving data. I've recently been introduced to the wonderful world of the D3.js Javascript library. D3 stands for Data-Driven Documents is an extremely powerful and versatile data visualization tool. I've been using it to analyze administrative data at work but I wanted to do something for fun.

Where can I get some interesting data I thought, when I remembered that I have been recording fillup data for my 2006 Prius since I bought it new in Aug. 2006. I am a few hundred miles short of 100K miles so I decided to create a web page containing some D3 charts with the data. I have put together a series of cross-filtered charts that all update based on user selections. I wanted to verify what I knew to be anecdotally true (that milage is better in the summer) and to see what other interesting facts could be found. I hope that some of you find the data interesting.

About the data:
Ever since I purchased my car, I have been recording the date, mileage, gallons, estimated MPG and occasional notes every time I fill up with gas. I fill it when it's on the last notch of the gauge (90+ % of the time), have never partially filled the tank and, except for a few rare occasions, have always stopped at whole dollar increments. The dashboard has an estimated MPG that I reset each time as well. If you want to see the code in action, the starting point for my visualizations came from the Crossfilter site.

Here is the starting data without any filters:

AllRecords.jpg


As you can see from the data, I generally get around 375 - 500 miles between fillups on a 12 gallon tank and I tend to do slightly more driving in the summer. The estimated MPG that the car reports tends to be in a tighter range than the actual mileage and it has also tended to over estimate it by a few percentage points. Since I haven't normalized the data by month, the data does tend to skew (especially for August).

OK, I've got some nice charts that show some minor statistical data but now what? Well, these are cross-filtered charts which means that I can select specific sections of one chart and all of the other charts are automatically updated. Let's take a look at my anecdotal assumption about mileage being better in the summer. To do that, I'm going to select all of the actual mileage data to the right of the peak.

RightHalfOfActualMileage.jpg


As I expected, the fillups with better actual mileage tend to occur in the warmer months. It also seems that the number of good mileage fillups have been going down in the last few years. Another thing that I notice is that the estimated vs. actual mileage has shifted down. It seems that the car tends to under-estimate the mileage on good MPG results. Hmmm, I wonder if that's true?

But first, I want to look at the distance traveled chart. By selecting the right side of the bell (425 miles or more), I get a much better bell centered on the summer months.

RightHalfOfDistanceTraveled.jpg


However, I remember that my data isn't normalized and decide to just look at the records where I traveled 500 miles or more. Now I have a more defined bell curve centered on July - half of all of the July fillups resulted in 500+ miles. But then I notice the year chart - I've only had a single 500+ mile tank in the last four years!

RightQuarterOfDistanceTraveled.jpg


I'm not sure what could be the cause of this but it seems clear that the car has been struggling with its MPG over the last few years.

I do know that there are clear variations between tanks because of the up and down swings from the actual MPG plot here. I plan on adding a 2 - 3 tank moving average to try to smooth it out. Still, you can see seasonal variations in the calculated MPG readings.

ActualMpgReadings.jpg


That's where I'm at right now. I hope that you enjoyed my project. :smile:
 
  • Like
Likes   Reactions: Silicon Waffle, billy_joule and mfb
Technology news on Phys.org
Interesting data!
Borg said:
It also seems that the number of good mileage fillups have been going down in the last few years.
I don't see a significant difference.
Borg said:
Another thing that I notice is that the estimated vs. actual mileage has shifted down. It seems that the car tends to under-estimate the mileage on good MPG results. Hmmm, I wonder if that's true?
That is an expected bias from your selection.
Think of the distribution in two dimensions: you tend to keep "good actual mileage, lower expectation" but remove "high expected mileage, lower actual value".
Borg said:
However, I remember that my data isn't normalized and decide to just look at the records where I traveled 500 miles or more. Now I have a more defined bell curve centered on July - half of all of the July fillups resulted in 500+ miles. But then I notice the year chart - I've only had a single 500+ mile tank in the last four years!
You have gotten more conservative with (not) using the remaining fuel, or distance between gas stations decreased?
Or the car got older and has a lower efficiency now, which is certainly some contribution to the effect.
 
  • Like
Likes   Reactions: Silicon Waffle and Borg
mfb said:
You have gotten more conservative with (not) using the remaining fuel, or distance between gas stations decreased?
Or the car got older and has a lower efficiency now, which is certainly some contribution to the effect.
Thanks for your comments. I haven't done much in the way of statistical analysis so I expected some wrong conclusions on my part. I do think that the car has been getting less effecient though.
 
mfb said:
You have gotten more conservative with (not) using the remaining fuel, or distance between gas stations decreased?
Or the car got older and has a lower efficiency now, which is certainly some contribution to the effect.
So... Rather than trust my assumptions, I added a fuel chart. Here's the starting chart which shows the vast majority of my fillups are between 8 - 10 gallons.

FuelByYearStart.jpg


When I select all of the 500+ mile trips, I used between 9 - 11 gallons of fuel.

FuelByDistance.jpg


The 2007 - 2012 years had most of the 500+ mile trips so, selecting them gives this result where the fillups are slightly higher than the curve shown in the first graph.

FuelByYear2007-2012.jpg


However, when I look at the 2012 - 2015 data, the records show that the fillups have been mostly in the 8 gallon range.

FuelByYear2012-2015.jpg


I guess that I've gotten more conservative with not using the remaining fuel after all!
 
  • Like
Likes   Reactions: mfb and Silicon Waffle

Similar threads

  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K