handling irregular observations. Maybe more progress needs to be made by Matlab team
Show older comments
Dear all,
Since in my analysis I use irregular time series observations that do not have standard frequency (like monthly, daily , yearly, quarterly) I was wondering how useful matlab can be in this case.
To give an example please take a look at the following link that displays how SAS (which I am not familiar with) can handle "automatically" such problems
I paste the table "Output 14.3.1 Measured Defect Rates"
1 13JAN1992 55
2 27JAN1992 73
3 19FEB1992 84
4 08MAR1992 69
5 27MAR1992 66
6 05APR1992 77
7 29APR1992 63
8 11MAY1992 81
9 25MAY1992 89
10 07JUN1992 94
11 23JUN1992 105
12 11JUL1992 97
13 15AUG1992 112
14 29AUG1992 89
15 10SEP1992 77
16 27SEP1992 8
we have irregular observations and after the interpolation we get monthly averages :
Obs date defects
1 JAN1992 59.323
2 FEB1992 82.000
3 MAR1992 66.909
4 APR1992 70.205
5 MAY1992 82.762
6 JUN1992 99.701
7 JUL1992 101.564
8 AUG1992 105.491
9 SEP1992 79.206
I had a discussion with Oleg regarding one of my previous questions
on how to obtain monthly averages when I have irregular observations. If I apply the approach of Oleg half the values in the output matrix interpData{b} are the same as the original input matrix A. But as you can see from the second table above, none of these values are the same as those of the first table.
So, going back to my previous question ( http://www.mathworks.de/matlabcentral/answers/44968-data-frequency-conversion-problem)
is it possible to apply something similar as in the case of SAS program?. If not, then it is a pity that such a powerful program like Matlab is less better than SAS in this domain of converting irregular time series observations to other frequencies.
Thank you
10 Comments
per isakson
on 5 Aug 2012
Edited: per isakson
on 5 Aug 2012
The September value of SAS
9 SEP1992 79.206
looks strange given the two momentary(?) September values,
15 10SEP1992 77
16 27SEP1992 8
.
What do you have? Are they daily values? Exactly, what does
15 10SEP1992 77
represent? The average over the time period, (29AUG1992,10SEP1992]?
Do you know the SAS Procedure: EXPAND Procedure?
salva
on 5 Aug 2012
Edited: Walter Roberson
on 6 Aug 2012
Oleg Komarov
on 5 Aug 2012
@per: the last value is 82 (checking the link)
per isakson
on 5 Aug 2012
If you only have bimonthly averages you cannot "obtain" monthly averages. It is not possible. The best you can do is make estimates of the monthly averages. Then extra information is important. Do you have more information on the underlying time series than the data. E.g. do you have an idea of how it varies during a year?
per isakson
on 6 Aug 2012
Edited: per isakson
on 6 Aug 2012
@Oleg: You are right about "82". However, the SAS example upsets me a bit.
Given is a couple of daily values of "Sampled Defect Rates" per month. The figures give me the impression that the calculated monthly values are weighted averages. The weight is the half times to the two neighbours. Instead of three digits after the decimal point I would like to see an estimate of the error.
per isakson
on 6 Aug 2012
@salva: I'm not an expert in statistics. However, I know that if the data represent outdoor ambient temperatures in Sweden then one approach might be appropriate (a lot is known about weather in Sweden) and with "Sampled Defect Rates" another approach.
Why do you need monthly data?
per isakson
on 6 Aug 2012
@salva: You write "for some others I have monthly and for the rest I have more irregular time series observations."
Do you have reason to believe that data from different countries share certain statistical properties? .... your problem is more about your specific data and statistical methods ... less about Matlab functions.
salva
on 6 Aug 2012
per isakson
on 6 Aug 2012
Edited: per isakson
on 6 Aug 2012
I'll like to pose a question. Assume you have bimonthly data
Jan&Feb 17
Mar&Apr 71
May&Jun 43
and I claim that the "best" monthly averages are
Jan 17
Feb 17
Mar 71
Apr 71
May 43
Jun 43
I guess you don't agree, but what arguments would you use to convince me that there are "better" estimates?
There is no magic trick!
Accepted Answer
More Answers (0)
Categories
Find more on Data Type Identification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!