Display:
How do you average a time series?

A man of words and not of deeds is like a garden full of weeds; a man of deeds and not of words is like a garden full of turds — Anonymous
by Migeru (migeru at eurotrib dot com) on Thu Jul 2nd, 2009 at 10:09:17 AM EST
[ Parent ]
I would use a linear fit, excluding outliers, to get the average rate of growth. What you suggest that economists do is to take the average of the first derivative of the series, excluding outliers in that set. But an outlier in the first derivative only corresponds to an outlier in the second derivative if there is a corresponding first derivative outlier in the opposite direction within a very short span of points.

Thinking about it, it occurs to me that you shouldn't do it to an ensemble either... In fact, you shouldn't do it at all.

If you can get your hands on lower-order data, you fit to that. Partly because of the foregoing, and partly because higher-order data is always more noisy. Subtracting two large numbers from each other (which you have to do to obtain the higher-order data) gives a very high relative uncertainty on the result.

- Jake

If you only spend 20 minutes of the rest of your life on economics, go spend them here.

by JakeS (JangoSierra 'at' gmail 'dot' com) on Thu Jul 2nd, 2009 at 10:20:03 AM EST
[ Parent ]
people are not too interested in linear fits if it doesn't generate the same amount of money.
by Nomad on Thu Jul 2nd, 2009 at 12:35:43 PM EST
[ Parent ]
I would use a linear fit, excluding outliers, to get the average rate of growth.

A linear fit of what? There is only one variable here, assuming a stationary model, and that is the return of the index. If you remove the outliers to do the fit you get the same effect Taleb and Mandelbrot are illustrating.

A man of words and not of deeds is like a garden full of weeds; a man of deeds and not of words is like a garden full of turds — Anonymous

by Migeru (migeru at eurotrib dot com) on Thu Jul 2nd, 2009 at 03:40:19 PM EST
[ Parent ]
A linear fit of GDP (or of log(GDP) if you labour under the delusion that GDP must grow exponentially).

What your figure illustrates is what happens when you take the difference in GDP between any two measurements, subtract it, remove all outliers in that data set, and then average. If you remove all outliers in the GDP data set, and then run a linear fit you remove fewer points, and get less noisy data on your fit. What's not to like?

To illustrate: Suppose you have GDP numbers for twenty years, indexed to year 1 (indexing is merely a matter of units of measurement - it does not affect the behaviour of the data).

01    100   
02    099    -1
03    101    2
04    102    1
05    103    1
06    104    1
07    103    -1
08    102    -1
09    103    1
10    102    -1
11    104    2
12    100    -4
13    102    2
14    102    0
15    104    2
16    105    1
17    107    2
18    108    1
19    109    1
20    109    0

I want to fit the second column to the first column, after removing any outliers (there are none in this case). Your sarcastic suggestion is that economists might want to average the third column, after removing the -4 (because it is "obviously" an outlier).

- Jake

If you only spend 20 minutes of the rest of your life on economics, go spend them here.

by JakeS (JangoSierra 'at' gmail 'dot' com) on Thu Jul 2nd, 2009 at 05:55:47 PM EST
[ Parent ]
You can't do a linear fit of the observed variable to the time. Among other things because the successive values of the observed variable are not uncorrelated.

To a first approximation you can assume the succesive differences are uncorrelated, and then you could try to do a linear fit. Which in this case means an average of the 3rd column. And then you remove the outlier because it has a large Mahalanobis distance.

What you should try to do is filter (e.g., taking successive differences is a filter) the original series untill you get something that presumably is stationary and then fit some sort of ad-hoc model. ARIMA models are ways to reduce the model to some linear regression or other, and you always have the issue of outlier rejection.

A man of words and not of deeds is like a garden full of weeds; a man of deeds and not of words is like a garden full of turds — Anonymous

by Migeru (migeru at eurotrib dot com) on Fri Jul 3rd, 2009 at 06:02:51 AM EST
[ Parent ]
You're right, of course.

But then again, GDP growth isn't uncorrelated either...

- Jake

If you only spend 20 minutes of the rest of your life on economics, go spend them here.

by JakeS (JangoSierra 'at' gmail 'dot' com) on Fri Jul 3rd, 2009 at 12:26:16 PM EST
[ Parent ]

Display:
Login
. Make a new account
. Reset password
Recommended Diaries
Clipping the wings of a judge
by Migeru - Feb 10
30 comments

Hunger March wins PR battle
by DoDo - Feb 9
3 comments

Romania: protests change government
by DoDo - Feb 8
6 comments

Murdoch - Outsourcing and Hubris
by ceebs - Feb 3
18 comments

Obama wins GOP Primaries (to date)
by Frank Schnittger - Feb 8
8 comments

Sarkozy: Enemies Ahoy!
by afew - Feb 10
11 comments

LQD: Unsustainable irrigation
by Melanchthon - Feb 9

Bristol Pound
by ChrisCook - Feb 7
14 comments

Recent Diaries
Sarkozy: Enemies Ahoy!
by afew - Feb 10
11 comments

Clipping the wings of a judge
by Migeru - Feb 10
30 comments

LQD: Unsustainable irrigation
by Melanchthon - Feb 9

Hunger March wins PR battle
by DoDo - Feb 9
3 comments

Obama wins GOP Primaries (to date)
by Frank Schnittger - Feb 8
8 comments

Romania: protests change government
by DoDo - Feb 8
6 comments

Answers to the Renewable Energy Consultation
by Luis de Sousa - Feb 7

Bristol Pound
by ChrisCook - Feb 7
14 comments

The Imitation Of Germany
by afew - Feb 4
31 comments

Strange Fruit
by Frank Schnittger - Feb 4
14 comments

Murdoch - Outsourcing and Hubris
by ceebs - Feb 3
18 comments

Mismatch with the Natural Gas Market
by Luis de Sousa - Feb 3
22 comments

The Future of Economics
by ARGeezer - Feb 2
191 comments

Desert Island Discs - Helen's distortions
by Helen - Jan 31
48 comments

Gorila
by DoDo - Jan 29
14 comments

Rail News Blogging #7
by DoDo - Jan 29
15 comments

Obama's State Of The Union: LQD
by Crazy Horse - Jan 25
74 comments

Democracy Technology
by gmoke - Jan 24
1 comment

The Hydrogen dream
by Luis de Sousa - Jan 24
49 comments

ET Paris Meet-Up 2012 (2 UPDATE)
by afew - Jan 23
113 comments

More Diaries...
Occasional Series