If climate data were a stock, now would be the time to SELL

Using a financial markets’ trend-analyses tool to assess temporal trend-changes in global surface temperature anomalies (GSTA).

Guest essay by David Dohbro

Heated debates (pun intended) are currently on going regarding if the Earth’s surface temperatures continue to rise, have remained steady, or are decreasing over the past decade or so. To argue for or against any of these three possibilities, pundits often use (linear) regression lines drawn through parts of the different temperature anomaly data-sets that are publically and freely available (GISS, HadCRUT, NCDC, RSS, UAH) to proof or disproof any or all of these possibilities. The problem is that global surface temperatures are none-linear, stochastic in fact; meaning they are dependent on many (random) variables and cycles each operating on many different spatial and temporal scales; natural and possibly man-made alike. Examples are solar activity, volcanic activity, oceanic cycles such as ENSO, PDO, AMO; night/day cycle, seasonal cycle, trace-gasses, cloudiness, etc. Given the nature of the data, the best representation of a temperature trend over time is therefore by using a stochastic time-series trend analyses of the entire data set.

One of the industries where non-linear trend analyses are and have been done over many years is the financial industry. Reason is that asset prices, for example stock and bond prices, are dependent on many variables; are stochastic, and follow non-linear cyclical patterns. In addition, financial markets may often exhibit a directionless trend in time (See Fig. 1; blue horizontal line). However, within such type of larger scale trends smaller scale trends (prices increase and decrease) occur, and financial decisions to either buy, sell or hold assets based on these trends of different time scales need to be made to ensure maximum profits and minimal losses. A rather important task considering we are talking about a daily multi-trillion dollar industry where having accurate and reliable decision tools are obviously paramount.

image

The Moving Average Convergence-Divergence (MACD) indicator was therefore developed as an additional tool for investors to provide easy-to-interpret (buy and sell) signals, as well as the direction of the price-trend over time[1]. It is a trend-following signal indicator based on three exponential moving averages (EMAs)[2]. The MACD indicator consists of a “MACD Line” and a “Signal Line” (See figure 1; the black and red line, respectively). In this case, the MACD Line is calculated by subtracting the 26-day EMA from the 12-day EMA (See figure 1; the blue and green line, respectively). The Signal Line is the 9-day EMA of the MACD Line. Plotting the MACD Line and Signal Line together with the price data shows how the crossing of these two lines identifies “buy-“ and “sell” signals (See figure 1; the corresponding vertical arrows when the two lines cross), while the direction of the MACD Line identifies the corresponding price-trend. Because the MACD simply subtracts a longer EMA from a shorter EMA it is independent of the nature of the data-set and can be applied to any stochastic (time-series) data set for identification of signals and trends. Theoretically the MACD can thus be applied to global surface temperature anomaly (GSTA) data as well.

Here the MACD is applied to HadCRUT4 data because it is the longest continues data set on record available. First the 12 and 26-year EMAs were calculated from this data, and then subtracted to obtain the MACD. The 9-year EMA was then calculated from the MACD. Both lines were then plotted in the same graph, and the graph placed below the temperature data-set graph on the same time-scale as is done in financial charts (Figure 2). It follows that the MACD of the temperature data peaked or bottomed and then reversed in several instances –see blue vertical lines (Figure 2)- indicating a change of trend in global temperature anomalies; either GSTAs started to increase (~1911, ~1976) or decrease (~1879, 1945, and the latest 2007).

The actual “buy” and “sell” signals (orange arrows) occur a year or two later, because the MACD is a lagging indicator (it is based on longer time-frame moving averages). Note that each and every time these peaks, bottoms and signals occurred in the MACD indicator, temperatures did peak or bottom and subsequently a trend-change occurred: e.g. an increase in GSTA became a decrease and vice versa; no exception. In addition, the MACD also clearly and undeniably identifies the uptrend in temperatures from the mid 1970s till to early 2000s; thought to be the result of mankind’s CO2 emissions; aka anthropogenic global warming (AGW). These “pivot points” validate the yearly-MACD (12, 26, 9) in that it can correctly identify changes in the trends of global surface temperature anomalies reported by HadCRUT4. More about this in detail later.

image

Now that the MACD-method has been validated we can take a look at the latest signal, which occurred in 2007. The MACD peaked then and has been steadily declining. In addition, the Signal line crossed the MACD in 2008; a “sell” signal occurred. Moreover, the MACD and Signal line are now both pointing down since several years indicating that the temperature trend has changed and the new trend is now down (decrease). Other items of interest that can be deducted from the MACD analyses are the following (See Figure 3):

1) The time-periods between peaks and bottoms in the MACD – blue vertical lines –are of almost identical length (red solid horizontal arrows are of identical length)

2) The increase in MACD (green dotted arrow) is about the same for both periods with increasing GSTA (1911-1945; 1976-2007)

3) The decrease in MACD (yellow dotted arrow) is about the same for both periods with decreasing GSTA (1879-1911; 1945-1976)

image

What can we learn from these 3 observations? Apparently there are 4 cycles in the current HadCRUT4 data, which suggest GSTAs are now in the next ~32yr cooling period (like any model, we have to work with the data we have and use the past to predict the future). Namely, the MACD of the HadCRUT4 data set finds the following dates with corresponding max and min GSTA values

· max 1879.2 (-0.094), min 1911.7 (-0.362): 32.5yr period

· min 1911.7 (-0.362), max 1945.7 (+0.186): 34.2yr period

· max 1945.7 (+0.186), min 1976.7 (-0.310): 31.0yr period

· min 1976.7 (-0.310), max 2007.0 (+0.829): 30.3yr period

The dates with the actual max and min GSTA values are:

· max 1878.1 (+0.403), min 1911.1 (-0.774): 33.0yr period

· min 1911.1 (-0.774), max 1945.6 (+0.362): 34.5yr period

· max 1945.6 (+0.362), min 1976.2 (-0.439): 30.6yr period

· min 1976.2 (-0.439), max 2007.0 (+0.829): 30.6yr period

The ~32 yr period/cycle; which is an average of these 4 trends becomes apparent, and the MACD does a very good job in determining the dates with the max and min GSTA values. Having determined these dates one can then apply -if one would like to do so- linear regression for each period to determine a slope. Using the actual dates of max, min GSTA values the slopes for each corresponding period/cycle can be determined

· 1879 to 1911: -0.0076°C/yr, R2=0.18 (stat. sign.)

· 1911 to 1945: +0.0141°C/yr, R2=0.52 (stat. sign.)

· 1945 to 1976: -0.0020°C/yr, R2=0.02 (stat. not sign.)

· 1976 to 2007: +0.0193°C/yr, R2=0.64 (stat. sign.)

Using the MACD-determined dates of max, min GSTA-values the slopes for each corresponding period/cycle can be determined

· 1878 to 1911: -0.0066°C/yr, R2=0.15 (stat. sign.)

· 1911 to 1945: +0.0136°C/yr, R2=0.50 (stat. sign.);

· 1945 to 1976: -0.0022°C/yr, R2=0.02 (stat. not sign.)

· 1976 to 2007: +0.0186°C/yr, R2=0.62 (stat. sign.);

It follows, the MACD-determined slopes for each cycle are in very good agreement with those based on using the actual max-, min-GSTA values and dates, showing -again- how accurate and useful the MACD-model is. Point is that stochastic trend and cycle analyses clearly finds periods of about equal length where temperatures rise or decline. The latest cycle, until 2007, indeed saw temperatures rise more rapid, albeit the difference is small, than the previous warming cycle (0.019°C/yr vs 0.014°C/yr; both actual and MACD-determined).

Finally, regression analyses of the data from 2007.0 till 2013.4 shows a slope of -0.002°C/yr and an R2=0.001. Although likely ~25yrs of data for this cooling cycle are still lacking, hence the low R2-value, the slope is already similar to that of the previous cooling cycle. With continuous increasing atmospheric CO2 concentrations since at least 1958 the case can therefore be made that CO2 can not be the main driver in changing GSTA. Instead, the rather similar rates of increases and decreases in GSTAs for the by the MACD identified cycle time-frames, suggest that cycles of around 32 years in length on average, and possibly fractions and multiplications thereof, can explain the observations entirely. The influence of such 30 cycles on Earth’s climate and global temperatures has been reported; e.g. ENSO, AMO, and PDO cycles[3],[4],[5], sea level cycles[6], length of day / atmospheric circulation index cycles[7], solar cycle(s)[8], and planetary cycles[9]. Contrary, these ~32 year cycles are not in sync with global human population/economic activity or to global CO2 concentrations. The latter, instead, increases unabated since 1958[10].

If the current cooling trend is true and applying the ~32yr cycles, it suggests that GSTA should decrease until the late 2030s early 2040s by on average 0.15°C (between 0.06 to 0.24°C) before another warming cycle may commence. Such a cooling trend into the 2030s has been predicted previously[11].

To conclude, this data-analyses tool suggests objectively and without any adjusting, transformation, fitting, “cherry picking” or other means of data manipulation, that GSTA have likely peaked and are now decreasing; a change of trend has occurred. This technique also over comes IPCC’s claim that “Due to natural variability, trends based on short records are very sensitive to the beginning and end dates and do not in general reflect long-term climate trends.” as the more data the better.


[1] Developed by Gerald Appel in the late 1970s. The MACD calculates the difference between two trend-following moving averages; this difference is termed a “momentum oscillator.” The longer period moving average is subtracted from the shorter period moving average to calculate this parameter. As a result, the MACD is an indicator of trend. The MACD fluctuates above and below a zero line as the two individual moving averages converge, cross and diverge over time. See also: http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_average_conve

[2] Often the 12, 26 and 9-period EMAs are used, where the period can be any suitable time interval from seconds to days to weeks to months and years.

[3] Giese B.S., Ray S. 2011. El Niño variability in simple ocean data assimilation (SODA), 1871–2008. Jounral of Geophysical Research, 116, C02024, doi:10.1029/2010JC006695.

[4] Knudsen et al. 2011. Tracking the Atlantic Multidecadal Oscillation through the last 8,000 years. Nature Communications, 2:178 | DOI: 10.1038/ncomms1186)

[5] www.nwr.noaa.gov/Salmon-Hydropower/Columbia-Snake-Basin/upload/Briefings_3_08.ppt]

[6] Chambers et al. 2012. Is there a 60-year oscillation in global mean sea level? Geophysical Research Letters, 39 (18), DOI: 10.1029/2012GL052885

[7] UN Food and Agricultural Organization (FAO), 2001. Climate Change and Long-Term Fluctuation of Commercial Catches. ftp://ftp.fao.org/docrep/fao/005/y2787e/y2787e01.pdf

[8] http://en.wikipedia.org/wiki/List_of_solar_cycles

[9] Scafetta, N.,2010. Empirical evidence for a celestial origin of the climate oscillations and its implications. Journal of Atmospheric and Solar-Terrestrial Physics, doi:10.1016/j.jastp.2010.04.015.

[10] http://www.esrl.noaa.gov/gmd/ccgg/trends/

[11] Landscheidt, T. New Little Ice Age instead of global warming. Energy and Environment 14, 327-350, 2003.

0 0 votes
Article Rating

Discover more from Watts Up With That?

Subscribe to get the latest posts sent to your email.

82 Comments
Inline Feedbacks
View all comments
October 1, 2013 7:32 pm

David Dohbro:
Nice article. I get the feeling you are in the neighborhood of chaos theory with some of your references.

Brian H
October 1, 2013 11:08 pm

FerdinandAkin says:
October 1, 2013 at 12:46 pm
Greg says:
October 1, 2013 at 10:45 am
That could be used to infer (18.6-13.6)/ 18.6 =27% as being the proportion of the end of 20th c. warming trend that was due to AGW.
Or perhaps you have identified 27% as being the amount of upward adjustment applied by the Climate Alarmists to the data record.

A serious under-estimate.

Greg Goodman
October 2, 2013 5:52 am

I got to thinking some more about what this “means”.
Economists seem to just do stuff to data and if they like the look of it they keep the result. That goes against my scientific grain but the way this seems to detect the turning points is interesting. That leads me to try to understand what sliding exp means are really doing and why the apparently arbitrary 9.12.26 usually applied in days to stocks , seems to work in years for climate.
Are these “best” values for some reason or is it just luck it works or is the whole thing a coincidence?
Now as I already mentioned convolution with a decaying exponential (which is what these “averages” are really doing) is the way to find the system response to linear negative feedback. And this just happens to be what the whole of climatology seems to be trying to do with climate analysis and modelling.
So the MACD which is the difference between 12 day and 26 day ‘averages’ is, in fact subtracting two different responses to an input signal.
Each linear negative feedback produces a decay response with a different time constant. The MACD is simply the difference assuming both to be of equal size. What this looks like can be seen here:
http://climategrog.wordpress.com/?attachment_id=537
For example, consider this is the climate system’s response to warming and cooling events, ie the system warms quicker than it cools. Since how Earth captures solar input is very different to how it loses (or hides it in the deep ocean 😉 ) we should not expect this to equal, symmetrical and governed by the same delays.
Now if we excite such a system with a square wave of equal periods (50% mark/space ratio) of a long period like 45 time units, days, years, whatever, Then it will average a bit higher than 50% the input amplitude because it warms quicker than it cools, and it will say around that level.
Now if we shorten it so that the cooling has not quite finished it will start to ramp up. If we back off it will start to cool back to ‘a bit more than 50%”.
Similarly if we vary the mark/space ration we will see similar variations. Now this makes me think of Bob Tisdale’s ENSO ‘driver’. He has suggested for a long time that variations in frequency of Nino/Nina events were the cause of late 20th c. warming.
While I’ve said from the beginning that I think he has made an important observation, my criticism has been that he has found the _mechanism_ not the driver. The next step is to find what is driving variation in ENSO.
While mainstream climatology accepts ENSO has global impact, it regards it as net zero, internal variability. Bob’s point is that this net zero idea is spurious and incorrect.
Now the up-welling of cooler water that characterises La Nina events must be long-term neutral by definition since Nino/Nina events are defined by comparison to long term mean SST.
Whether these deep waves in the thermocline are just random “stochastic” variations of a chaotic system in motion or (as I suspect) some deep water tidal variations, the underlying process can be long term neutral yet changes in frequency or amplitude could cause warming/cooling on the decadal scale. This is Tisdales hypothesis.
David Dohbro’s MACD run seems to tie in with this.
Bring on Willis Eschenbach’s tropical ‘governor’. This suggests that the tropics have a strong built-in capacity to correct for any change in radiative forcing. He does not like the word feedback (which he associates only with linear negative feedbacks ) but a response to change in a system is a feedback of some sort. If it’s self-correcting , it is a negative one. If it has overshoot and restores not just temperature but degree.days then it is a strongly non-linear negative feedback. This is a technically more precise and accurate description than
‘governor’.
Now applying Willis’ idea to La Nina we see the tropics will ‘correct’ the cooler SST by adjusting cloud cover and capturing more solar. Conversely, during El Nino, more tropical storms will cut down solar input as well as dumping large quantities of heat into he atmosphere.
Heat dispersed to the atmosphere will eventually radiate to space but there is little chance these opposing mechanisms will have similar response times.
Seeking to understand what MACD is doing and what it may indicate physically in terms of relaxation processes, leads to even totally random ENSO variations causing ‘global warming’ on a decadal or inter decadal scale.
If the ‘pseudo’ cycles of ENSO are in fact a combination of externally driven harmonic cycles as some suggest, we may expect the current cooling to last about 32 years. If it is ‘stochasic’ variation it could be either longer or shorter.
Current indications are that is started somewhere around 2005-2007.

Greg Goodman
October 2, 2013 6:22 am

Recognising that these ‘averages’ are doing something more precise that “smoothing” and adding a fixed delay (in fact they do neither very well) may help to understand why the work of stock data.
The market seems to have a response that can, at least roughly , be thought of as a linear negative feedback. ie as the DOW (or whatever) varies away from the norm investors are going to see reasons to buy or sell , depending on their position. The further away from the norm, the more urgent the need to realign, the greater the motivation to sell / buy.
That describes a negative feedback in the market.
Maybe panic selling is more likely than panic buying to the two processes are asymmetric, as I noted for climate.
The underlying variations are likely stochastic and the asymmetry of market reaction allows MACD to pick up changes. Time constants need to be tuned to the system under analysis. It seems coincidental that what works for markets in days works for climate in years.
I don’t think there is anything ‘magic’ about the numbers other than their ratios are presumably better than some other values. Scaling them depends up on the scale of the events you intend to detect.
Using 26 years leads the method to pick out inter-decadal scale changes.

1sky
October 3, 2013 2:26 pm

Greg Goodman:
Exponential bandpass filters, of which MACD is but one example, are straightforward feed-through filters that operate without any feedback loop. Their impulse response is simply a feature of the filter, which tells us nothing about the nature of the input signal or the response characteristics of the system that produced that signal.
I fear that you’re barking up the wrong tree in trying to understand why this approach seems to “work.” If there are fairly narrow-band signal components near the peak frequency response, they will be passed with far less attenuation than those farther away and the indication will look good. In the absence of such strong components, the filter will produce many false “buy/sell” indication, increasingly so as the input approaches gaussian white noise. That is the familiar “whipsawing” in financial markets that kills success. And If you look closely at the so-called “signal line” in Fig. 2, you’ll see that MACD doesn’t work as well as claimed on HADCRUT4. There are misleading “turning points” past the turn of the 20th century and in the 1960s. Caveat emptor!

david dohbro
October 3, 2013 10:05 pm

Thanks everybody for your comments, insights and discussions! I hope I’ve opened up some new ways of thinking and looking at data. Climate science can learn a lot from financial markets where data analyses is of utmost importance given the huge financial implications. Trust me, it has taken me a lot of time to muster the courage to submit this (e.g. note that this data analysis is till 2013.4, whereas there are now two more data points. Nevertheless, the MACD remains below the signal line and both keep decreasing). I noticed that some question the validity of applying a financial trend-analyses tool to climate data (GSTAs), arguing that asset prices are driven –en large- by human emotion, whereas climate data isn’t. However, that is a discussion of the difference between data sets. The MACD is simply an (exponential) moving average based tool. Whatever the type of data, moving averages can be calculated. Now what drives the data is a whole different story. But one first need to know the data trends before one can identify the drivers. The MACD simply identifies the direction of the trend and when a trend changes within the data. Nothing more, nothing less. The article clearly and undeniable shows how well the MACD can identify the low and the high values and trends in GSTAs, objectively. Warren Buffet, investing strategies, once occupation, trading experience, etc have nothing to do with that. Given that the MACD is very accurate in identifying the lows and highs in GSTAs and when the trend in GSTAs changed from increasing to decreasing and vice versa, the fact that since 2008 a decreasing trend in GSTA has been identified is very interesting. What the causes are is a whole other discussion.
I have done the MACD for GISS and NCDC data as well, and both show the exact same MACD pattern as for HadCRUT4. Hence, this isn’t something HadCRUT specific, but GSTA specific. I’ve also done it for NCDC’ northern and southern hemispheric GSTAs and it shows that the MACDs between each hemisphere are much different, with the MACD for the northern hemisphere being much more equal to that of the global STAs. This is also a very interesting fact, and worth a separate discussion. I haven’t done a MACD analyses for RSS and UAH, as their data records are still too short (yes, the MACD wants LOTS of data!).
I wouldn’t go as far as to compare the difference between two slopes and attribute the difference between those then entirely to one cause; in this case AGW. But, assuming that would be the case, then isn’t it amazing that a simple tool like this is able to provide about the same number as what much more complex (and more expensive and time consuming) research and data analyses finds!?
Why the 9, 12, 26 time frames are used (these can be applied to any time frame, from minutes to days to weeks, months, years etc) I am not aware off. It doesn’t make much sense from a market perspective as the week has 5 trading days, but it works and that’s all we need. One could do a sensitivity analyses by using different time frames. Of course the signals become fewer when using longer time frames and more (noisier) when using shorter time frames. Also, the comparison between actual peak and bottom GSTAs with those identified by the MACD shows that the MACD technique is off by only a few months, while using years of time-frames. Hence, it is very sensitive and accurate as it is.
As to the discussion of HadCRUT and GISS are “temperature data sets” or not is semantics. Call these GSTA records what you want, the data analyses remains the same. Bottom line is that it is about finding new ways to analyze the same data to understand the nature of the data better. The MACD is such a new tool, and it clearly identifies periods of warming and cooling that are of similar length and of rather equal rates that are hard to reconcile with constantly increasing atmospheric CO2 levels and exponentially increasing human population and industrialization. It helps underscore the importance of cycles and cycle analyses. IMHO climate science needs to focus on these issues, because everything in this universe goes in cycles.
As for the MACD being a self-fulfilling proficy. That is a fallacy. Ones a buy signal is generated it would in that case mean people will keep on buying and buying and buying for ever. But people don’t. Buying gets exhausted, the buying looses momentum, the MACD starts to point down, and eventually when everybody has bought there’s nothing left buy and only to sell, the MACD will generate a sell signal. Will we then see selling into infinity. No! Similar pattern occurs as with buying. And note that before a buy signal can be generate a sell signal needs to come first, etc… And so the cycles continue; in our market, which are driven by humans, which are driven by natural forces and in nature. It is, IMHO, up to us and climate scientists to identify those cycles. The MACD clearly can help.
Again, thanks all for your comments, etc. Oh and btw, the MACD for the DOW gave a sell signal on the daily yesterday and on the weekly more than a month ago…

Editor
October 4, 2013 8:18 pm

Nice. Very nice. I have used Ben Graham fundamentals and MACD both for decades. MACD is very useful for trending data. Many of the complaints about it here are valid for low trend or random signal data. Part of the art is knowing to not use it when trend is weak. As the author says, what it does is spot inflections in trend in data that has trends. Cycles do that. Weather has long duration cycles. It really is that simple. Simple moving average crossovers also do that, but with more time lag.
As to why the same numbers work on day or years, it works with about 100 periods of data to find trend changes in just a few periods. If you want faster or slower response you need to change the numbers used. It doesn’t care what scale is used, just number of periods of data. If your trend inflection takes many more or many fewer time steps to happen, you need to change scale to fit it in 100 to 200 data points. So, for example, use it on 15 minute time steps for daily temp date and it will find sunrise and set with a small lag. Use on 10 second time steps and it will find cloud shadows blowing by in a few minute period.