Showing posts with label Oklahoma combined temperatures. Show all posts
Showing posts with label Oklahoma combined temperatures. Show all posts

Friday, April 1, 2011

Temperature correlation with population and the number of years to use

In the last few posts on state historic temperatures, I have changed the basis for the correlation between local station temperature and population from using an average of the station temperature over the whole period to just using the average of the past 30 years. However I chose a 30-year interval without any real basis for the choice. So I thought I would pause the state temperature reviews this week, to see what the best period would be to use for the temperature averages. Because the population data is relatively current (I am using the population given on the citi-data websites) the longer the time interval then the less likely an accurate correlation will be. On the other hand the likely scatter in individual station data might suggest that the longer the time interval the more accurate the correlation.

Note I was about half-way through writing this post when I read the Bishop’s post (Bishop Hill, not mine) on Lord Beddington’s comments on the UHI, specifically
Most stations are not affected by the urban heat island effect and there are well-established ways of taking the effect into account for stations that are (such as comparing temperatures on still and windy nights and excluding urban stations.).
I will have more comment on this statement later in the post, but the results that I am discussing demonstrably show, as I work through them, that the good Lord was wrong. (As I will discuss a little more below). But to return to answering the question first . . .

Starting with the last year of data (2009) I calculated the average temperature for each station and plotted this against the population data. (Though I did this for a number of states I will use the data from Minnesota as the initial state for illustrative purposes).

Temperature as a function of station population for Minnesota, using only the last recorded year temperature is reported.

Including a trendline on the plot, I then recorded the constant (35.714), the coefficient (0.7021) and the regression coefficient (0.16893) against the number of years used to calculate the average (in this case one). I then increased the number of years to two, by averaging 2008 and 2009 data, and plotted the curve again. I repeated this, incrementing the number of years in the average by one, until I was averaging 35 years in the plot.

Temperature as a function of station population for Minnesota, using an average of the last 35 years for the temperature value.

Beyond this point I stepped the number of years in 5-year increments out to 70 at which point I stopped. Then I plotted the three values in turn against the number of years in the average:

The influence of the number of years used in the average on the coefficient of the log of population for Minnesota

One thing to remember is that as more years are included, the added years are likely to be at a lower temperature, but if the temperature change is evenly distributed around the state, then the coefficient should remain the same. If, however, there is a change over time that differs from station to station, then the slope will change over time. Keeping that thought in mind, let’s now look at the change in the constant as the number of years is increased.

Variation in the base temperature in the correlation of temperature and population for Minnesota, as a function of the number of years used in determining the average temperature.

The third plot is the correlation coefficient, or r-squared value:

The variation in the regression coefficient (r-squared) determined for a plot of temperature with population for Minnesota, as a function of the number of years used to determine the average temperature.

The last plot suggests that (ignoring the one high value at year 22) the best selection for the number of years to include in the calculation is 14. However, before settling on this value I decided to check the values for other states.

The next state, moving backwards in the series, that I checked was Texas. When I had first made these calculations I had included the GISS station data as well as the USHCN station data in the calculation of population effect. One reason for this is that the GISS stations are, by and large, in the cities with the larger populations in each state. But as I have gone round the states in many states at least one of the stations that GISS uses has only data that starts in 1948. This also will affect the overall averages. Texas is not a state that has a good correlation between temperature and population, but, out of curiosity I ran the calculations described above for Texas both combining GISS and USHCN stations, and using only USHCN TOBS data. (I used Texas for this comparative analysis since it has a significant number of GISS stations). The correlation coefficient was significantly better when the GISS data was removed, and so I removed those values from all the correlations.

(This meant, inter alia, redoing the MN calculations, since this was originally calculated including the GISS values – the plots above, and from this point on, will not include the GISS values).

Texas values underwent a significant change where more than 10 years were included, and this is most clearly seen with the r-squared values.

The variation in the regression coefficient (r-squared) determined for a plot of temperature with population for Texas, as a function of the number of years used to determine the average temperature.

Part of the reason for this is that there were a couple of stations that only had data until about 2000, and when these were included they reduced the correlation. Without those values the correlation was higher, and interestingly, the coefficient was somewhat similar to that of Minnesota.

The influence of the number of years used in the average on the coefficient of the log of population for Texas

The next state that I looked at was Oklahoma, and ran the same procedure to see how changing the number of years included changed the trendline numbers. The plots that I obtained for the regression and population coefficients, using the same procedure, were as follows:

The variation in the regression coefficient (r-squared) determined for a plot of temperature with population for Oklahoma, as a function of the number of years used to determine the average temperature.

This would suggest either a dozen or twenty-three years should be used to compute the average temperature, looking at the two peaks. When the population coefficient curve is examined, below, it can be seen that at the point where the highest regression occurs, the value of the coefficient is around 0.65.

The influence of the number of years used in the average on the coefficient of the log of population for Oklahoma

The next state, moving steadily North from Oklahoma, is Kansas. This spoils the pattern since, although there are good correlations with latitude and elevation (the other two most significant contributors to varied temperature distribution around the state) there is not a good correlation with population. I did not do as many checks on the number of years for this state, as you can see below, but it is interesting that again there are peaks in the r-squared values at about 10 and 20 year intervals.

The variation in the regression coefficient (r-squared) determined for a plot of temperature with population for Kansas, as a function of the number of years used to determine the average temperature.

The correlation coefficient for the log population was about 0.1 in both cases.

Moving North again to Nebraska, one can run the same derivations and get:

The variation in the regression coefficient (r-squared) determined for a plot of temperature with population for Nebraska, as a function of the number of years used to determine the average temperature.

Which again suggests that either 10 or 20-22 years to derive an average would be better than 30.

The influence of the number of years used in the average on the coefficient of the log of population for Nebraska

Which again gives a coefficient value, in both cases, of between 0.6 and 0.7.

I am not going to belabor the point. In this series I have now looked at the temperature data for just over half of the contiguous states of the Union. It would appear that there is a statistical substantiation for the correlation between temperature and population around the measuring stations of those states of the form:

Temperature = state base temperature + a.logn (local population)

Where a is a constant with a value between 0.5 and 0.8.

I haven’t yet gone back and done the above calculation for all the states yet which would allow a more refined estimate of the value, nor have I yet done the correlation to the three parameters (latitude, elevation and population) together – though it is likely that the latitude and elevation influence the state base temperature, how they interact to control station temperature is not yet clear.

But for now I feel very comfortable stating that Lord Beddington’s statement is demonstrably, factually and terminologically inexact. (To misquote Sir Winston Churchill).

Read more!

Saturday, March 5, 2011

Oklahoma combined temperatures

At present I am studying the temperatures, as reported by GISS, the homogenized USHCN temperatures and the Time of Observation corrected, otherwise raw, data for a strip of states in the Midwest. I have reviewed the temperatures for the more Western states (list on the right side) and have now reached Oklahoma, after revisiting Kansas last time. As I go through the states it is possible to draw some conclusions from the data, and so, over time, these posts have changed in structure as I find things that are interesting to note. This post is no different, in that I have realized that using average temperatures over 115 years to plot against current population might not be really useful. Thus, at the end of the post I lhave compared that plot with one that just uses the last 30-years of station temperatures. Since I get an r-squared correlation of 0.25 for the log-normal relation I will be using the 30-year information for the temperature:population plot in the future, and will be adding that graph to the previous state reports as I get time.

Oklahoma has 44 stations in the USHCN network from Ada to Webbers Falls, and they are spread relatively evenly over the state.

Location of the USHCN stations in Oklahoma (USHCN)

There are two GISS stations in the state (according to Chiefio’s list) and these are in Tulsa and Oklahoma City. Well guess what? There is a full record for Oklahoma City, but as for Tulsa . . . .(see below the fold).



It is perhaps now no surprise, sadly, that the record for Tulsa only goes back to 1948.


Filling out the population data, Kenton does not appear in the citi-data set, and so I used zip-codes.com to get 77. Otherwise the population data was all obtained using citi-data information.

Looking at the difference between the GISS data, which is again taken from the largest two cities, and comparing it with the USHCN homogenized averages, one gets:

Difference between the average GISS station data, and that of the homogenized USHCN station numbers.

The average difference between the two is 0.65 degrees F. Looking at the trend in the state temperature, over the past 115 years,


The temperature rise for the state has averaged some 0.48 degrees F per century, whereas if the homogenized USHCN data is used, then the rise has been 0.94 degrees F per century.

Looking at the geography of the state, Oklahoma is 478 miles long (E-W) and 231 miles wide. It runs roughly from 94.5 deg W to 103 deg W, and from 33.5 to 37 degrees N. It rises from 88 m to 1,515 m above sea level, with an average elevation of 396.2 m. (The average USHCN station elevation is 415 m, and that of the GISS stations is 300.2 m).

Looking at the effect of geography on temperature for the state:

There is a strong correlation with latitude over the state.

The correlation with longitude is confounded by the rise in elevation as one moves west.


Thus the correlation with elevation is more important.


Turning to the effect of population, the data that I have is for most recent population and until now I have been plotting overall average temperature against this value, but more properly I should only be using more recent temperatures. Out of curiosity, therefore here is the plot using the overall average temperature relative to the station current population, and then the average of the last 30 years, temperatures used instead.

First here is plot using the overall average temp for each station.


And then here is the plot using only the last 30-years of data for each station.


Given that the population number used more accurately reflects the temperature over the period, it is perhaps no surprise that the correlation is better, and so I will use that time interval in the future posts on this theme. (And in time will go back and adjust the plots in the earlier posts – UPDATING the lead in to show that I have done so, as I do).

Oh, and finally, there is this:



Read more!