View Single Post
Old 10-18-2012, 05:51 PM   #1 (permalink)
Diesel_Dave
Master EcoModder
 
Diesel_Dave's Avatar
 
Join Date: May 2011
Location: Indiana
Posts: 1,194

White Whale - '07 Dodge Ram 2500 ST Quad Cab 2wd, short bed
Team Cummins
90 day: 37.68 mpg (US)
Thanks: 112
Thanked 511 Times in 213 Posts
Detailed statistical analysis of weather data from my daily log

I finally got the chance to sit down and do some number crunching of the weather data from my daily log.

Here’s some background. On every trip I make to and from work I will resent my factory-installed trip MPG display prior to starting. After arriving at my destination, I record the displayed trip MPG and enter that in my daily log. Later, I go back and pull up the weather data for that time of day at a local weather station via wunderground.com. I record the temperature, barometric pressure, relative humidity, wind speed, & wind direction. From that info, I set up my spreadsheet to calculate other things like specific humidity and well as breaking up the wind into two different components—the portion acting parallel to my direction of travel (head/tail wind) and the portion acting perpendicular (effective crosswind). For example, if I’m headed due north and there’s a SW wind of 10 mph, that counts as a 7.1 mph tailwind and a 7.1 mph crosswind (calculated from the Pythagorean Theorem: c^2 = a^2 +b^2). I’ll also make notes in my daily log of traffic conditions, mods (driving & vehicle).

One thing that I’ve noticed is that weather does seem to have a significant impact. Temperature has been the most noticeable one for me. I clearly do much better on warmer days than colder ones. Wind is also noticeable as well. Days with a strong tailwind are noticeably better, for example. This presents a challenge when trying to determine the effects of different mods (driving or vehicle). Let’s say I made a mod this weekend and then went on to average 5% better mileage this week vs. last week. However, what if the temperature was 10 deg F warmer this week vs. last? Was my improvement due to the mod or due to the weather? This becomes even harder when you have multiple things changing. For example, what if the temperature was 10 deg F warmer, but the crosswinds were 5 mph higher? You can see the difficulty. In a lab we could just remove all these noise variables, but in the real world, we have to live with them.

But, what if I knew the effects of the weather? If I knew that a 10 deg F increase in temperature causes a 5% improvement in FE, then I could correct for that and then see whether my “weather-corrected FE” has actually improved or not.

So I decided to do some statistical regression analysis on my daily log weather data. Here’s what I did: I looked at all my weather data from the last ~15 months (since I moved to where I live now). I then separated morning and evening (I typically do better in the mornings, partially due to the elevation change). I then went through and removed all the days when there was rain or snow. I also removed any days where I used the AC (yes, sometimes I give in and use it—like when it 100 deg F and my wife’s going to be home when I get there). After the screening here’s what I got:



So, my first task was to determine the relative significance of the different variables. This is somewhat challenging because some of them are cross-correlated. For example, specific humidity and temperature are cross-correlated because you can’t have high specific humidity without first having high temperatures. So what I decided to do was this:

Step 1: Do a regression fit of fuel economy with each variable individually.
Step 2: Look at which single variable gives the best fit—this variable is the most significant one.
Step 3: Do a regression fit of fuel economy with two variables at a time—the most significant one and then each of the others one at a time
Step 4: Repeat the process with 3 variables at a time, 4 variables at a time, etc.

So here are the results for the analysis of the morning data. I included the day as a variable as well, because this accounts for the mods I make—I’m getting better as I go along in spite of varying weather conditions. This table shows the average error (%) in the fit:



So let’s pretend I want to guess the mileage that I’m going to get on any given day. With absolutely no information, the best I could do would be to guess that I’m going to get my average mileage (42.9 mpg in this case). That will give me an average absolute error of +/- 12.6%. If I know only the day (and nothing about the weather), I can predict my mileage to within +/- 8.45%. If I know only the temperature, to within +/- 9.08%, etc. So you can see that factors with lower numbers are more significant. Knowing only cross wind speed, for example, only reduces the error from 12.6% to 11.93%.
So the day ended up being the most significant variable, followed closely by the temperature. This is interesting, as it indicates that I am the most significant variable.

Okay so if I look at line 2, this shows me the effect of the other variables AFTER I account for the day. As you can see, temperature is the most significant of the other variables—knowing just the day and the temperature reduces my error all the way to +/-4.72 %.

Moving along to line 3 you can see that tailwind speed and crosswind speed have similar significance. Also note that adding in specific humidity after temperature has been accounted for does make much difference: day & temp give +/- 4.72% vs day, temp, & humidity give +/- 4.71%. This indicates that specific humidity itself doesn’t matter much at all, but it is cross-correlated to temperature.

Lines 5 & 6 show that specific humidity & barometric pressure have a relatively small impact. Without those 2 variables I can predict to within +/- 4.20%--with them included it doesn’t really reduce much further. So there’s not really much sense in including them in the correlation.

Here’s the correlation using the 4 most significant variables:

MPG = 24.7 + 0.0485*Day + 0.223*Temp + 0.287*Tailwind – 0.260*Crosswind

So I improve about 0.5 mpg every 10 days—gotta be pretty happy with that.

Also, each degree F increase in temperature leads to a 0.223 mpg increase. This agrees with a rule of thumb I’ve talked about before: roughly 1% change in FE for every 2 deg F temperature change.

As far as wind goes, a 1 mph tailwind or crosswind has roughly the same effect as a 1 deg F temperature change. Also of note is that tailwind and crosswind have roughly the same magnitude of effect.

Without going into all the details, I also went through the same process with my evening data. It turned out fairly similar, except temperature came out slightly more significant than the day.



Here’s the evening correlation:
MPG = 24.7 + 0.0336*Day + 0.152*Temp + 0.209*Tailwind – 0.150*Crosswind

The coefficients are similar, but slightly different from the morning correlation.

Now I can go though my log and “weather correct” my numbers…sweet!

__________________
Diesel Dave

My version of energy storage is called "momentum".
My version of regenerative braking is called "bump starting".

1 Year Avg (Every Mile Traveled) = 47.8 mpg

BEST TANK: 2,009.6 mi on 35 gal (57.42 mpg): http://ecomodder.com/forum/showthrea...5-a-26259.html


  Reply With Quote
The Following 6 Users Say Thank You to Diesel_Dave For This Useful Post:
2000neon (10-19-2012), gone-ot (10-19-2012), JRMichler (10-18-2012), kah (12-11-2012), mort (10-18-2012), slowmover (10-18-2012)