Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Time series

Subject: Time series

From: vaggelis

Date: 22 Nov, 2012 07:37:14

Message: 1 of 2

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??

Subject: Time series

From: TideMan

Date: 22 Nov, 2012 19:08:04

Message: 2 of 2

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;

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us