Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Time series
Replies: 1   Last Post: Nov 22, 2012 2:08 PM

 Messages: [ Previous | Next ]
 Derek Goring Posts: 3,922 Registered: 12/7/04
Re: Time series
Posted: Nov 22, 2012 2:08 PM

On Thursday, November 22, 2012 8:37:15 PM UTC+13, vaggelis wrote:
> Hello,
>
> I have a time series of hourly production of a PV.The time series has a 24-hour seasonality.
>
> How can i remove the seasonality so as to transform my Time series to a stationary TS??

Is the "seasonality" roughly constant from day to day?
If so, you can take the average over each hour to obtain the mean 24-hour cycle, then subtract it.
Assuming y is a column vector of data for an integer number of days:
y1=reshape(y,24,[]);
ycyc=mean(y1,2); % This is the mean daily cycle
ndays=size(y1,2);
ycycall=repmat(ycyc,ndays,1); % Set up column vector of daily cycle
ystat=y - ycycall;

Date Subject Author
11/22/12 vaggelis
11/22/12 Derek Goring