楼主: jackps
12654 9

[问答] 关于HP滤波法 怎么取得趋势成分和波动成分 [推广有奖]

  • 0关注
  • 1粉丝

本科生

37%

还不是VIP/贵宾

-

威望
0
论坛币
2427 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
2521 点
帖子
46
精华
0
在线时间
112 小时
注册时间
2013-2-26
最后登录
2019-3-18

50论坛币
HP滤波法只能做出来趋势图么?能求出数据么?怎么求?现在的我数据时按天来的,参数λ给定多少?趋势成分和波动成分怎么得到?我刚刚学滤波法 不太懂 求教了 谢谢

最佳答案

xuruilong100 查看完整内容

MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick) Syntax hpfilter(S) hpfilter(S,smoothing) T = hpfilter(...) [T,C] = hpfilter(...) Description hpfilter(S) uses a Hodrick-Prescott filter and a default smoothing parameter of 1600 to separate the columns of S into trend and cyclical components. S is an m-by-n matrix with m samples from n time series. A plot displays eac ...
关键词:HP滤波法 HP滤波 趋势成分 波动成分 滤波法 eviews hp滤波打 趋势成分 波动成分

回帖推荐

xuruilong100 发表于2楼  查看完整内容

MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick) Syntax hpfilter(S) hpfilter(S,smoothing) T = hpfilter(...) [T,C] = hpfilter(...) Description hpfilter(S) uses a Hodrick-Prescott filter and a default smoothing parameter of 1600 to separate the columns of S into trend and cyclical components. S is an m-by-n matrix with m samples from n time series. A plot displays eac ...

本帖被以下文库推荐

沙发
xuruilong100 发表于 2013-4-27 12:47:42 |只看作者 |坛友微信交流群
MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick)


Syntax


hpfilter(S)
hpfilter(S,smoothing)
T = hpfilter(...)
[T,C] = hpfilter(...)

Description


hpfilter(S) uses a Hodrick-Prescott filter and a default smoothing parameter of 1600 to separate the columns of S into trend and cyclical components. S is an m-by-n matrix with m samples from n time series. A plot displays each time series together with its trend (the time series with the cyclic component removed).

hpfilter(S,smoothing) applies the smoothing parameter smoothing to the columns of S. If smoothing is a scalar, hpfilter applies it to all columns. If S has n columns and smoothing is a conformable vector (n-by-1 or 1-by-n), hpfilter applies the vector components of smoothing to the corresponding columns of S.

If the smoothing parameter is 0, no smoothing takes place. As the smoothing parameter increases in value, the smoothed series becomes more linear. A smoothing parameter of Inf produces a linear trend component.

Appropriate values of the smoothing parameter depend upon the periodicity of the data. The following reference suggests the following values:

Yearly — 100

Quarterly — 1600

Monthly — 14400

T = hpfilter(...) returns the trend components of the columns of S in T, without plotting.

[T,C] = hpfilter(...) returns the cyclical components of the columns of S in C, without plotting.
已有 1 人评分经验 论坛币 收起 理由
胖胖小龟宝 + 10 + 10 热心帮助其他会员

总评分: 经验 + 10  论坛币 + 10   查看全部评分

使用道具

藤椅
jackps 发表于 2013-4-27 12:57:44 |只看作者 |坛友微信交流群
xuruilong100 发表于 2013-4-27 12:55
MATLAB中有hpfilter函数(或者在MATLAB的帮助文档内搜索Hodrick)
可是想用eviews matlab实在不怎么会用额 还是谢啦

使用道具

板凳
fwushi815 发表于 2013-4-27 12:58:30 |只看作者 |坛友微信交流群
想简单操作就用Eviews,复杂一点就用matlab处理。

使用道具

报纸
xuruilong100 发表于 2013-4-27 13:00:57 |只看作者 |坛友微信交流群
jackps 发表于 2013-4-27 12:57
可是想用eviews matlab实在不怎么会用额 还是谢啦
只是调用一下函数而已, 没难度啊

使用道具

地板
jackps 发表于 2013-4-27 13:04:20 |只看作者 |坛友微信交流群
fwushi815 发表于 2013-4-27 12:58
想简单操作就用Eviews,复杂一点就用matlab处理。
eviews改怎么操作哦  怎么才能取得数据额。。

使用道具

7
jackps 发表于 2013-4-27 13:05:01 |只看作者 |坛友微信交流群
xuruilong100 发表于 2013-4-27 13:00
只是调用一下函数而已, 没难度啊
还有个问题就是 我电脑上没有matlab 嘿嘿 今天下午就要用了  不太赶趟

使用道具

8
jackps 发表于 2013-4-27 21:51:48 |只看作者 |坛友微信交流群
顶一下

使用道具

9
CCIKKO 发表于 2020-7-18 01:08:39 来自手机 |只看作者 |坛友微信交流群
同闻,怎么得到周期成分与波动成分

使用道具

10
Doraemon1234567 发表于 2021-4-20 22:37:00 |只看作者 |坛友微信交流群
xuruilong100 发表于 2013-4-27 13:00
只是调用一下函数而已, 没难度啊
所以具体是什么函数呢?

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-3 21:07