how to remove seasonality from a dataset
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171167/image.png)
I have a dataset which consist of hourly wind speeds for fifteen years. When I used the autocorrelation on the wind speeds, it is clear that it contains a upward and downward trend as well as seasonality at every 24 lag. I have to make the dataset stationary by removing the trends and seasonality, I am new to matlab so I am not quite sure how to about doing this. Any help?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/171168/image.png)
2 件のコメント
Ashfaq Ahmed
2023 年 4 月 28 日
@vedesh Mohit Did you find an answer to this question? I have the same problem
回答 (1 件)
Image Analyst
2018 年 3 月 19 日
I'd break it out by day of the year so that you'd have 365 rows (one for each day of the year), and 15 columns (one column for each year). Then I'd average across columns to get the mean. Then I'd fit that to a model, such as a cosine. Then subtract the model from each data point to get the detrended value.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Axis Labels についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!