搜索
人大经济论坛 附件下载

附件下载

所在主题:
文件名:  Components of bull and bear markets_ bull corrections and.pdf
资料下载链接地址: https://bbs.pinggu.org/a-862432.html
附件大小:
435.78 KB   举报本内容
我现在打算写一个dating algorithm (Lunde and Timmermann(2004)),这个dating algorithm在 Components of Bull and Bear markets: bull corrections and bear rallies(J. Maheu, T. McCurdy and Yong Song; working paper) 也用到过。
The Lunde and Timmermann (2004) dating algorithm defines a binary market indicator
variable It which takes the value 1 if the stock market is in a bull state at time t
and 0 if it is in a bear state. The stock price at the end of period t is labelled Pt. Our
application of their dating algorithm can be summarized as: use a 6-month window to
locate the initial local maximum or minimum.
Suppose we have a local maximum at time t0, in which case we set Pmaxt0 = Pt0 .
1. Define stopping-time variables associated with a bull market as
τmax(Pmaxt0 , t0 | It0 = 1) = inf {t0 + τ: Pt0+τPmaxt0}
τmin(Pmaxt0 , t0 | It0 = 1) = inf {t0 + τ: Pt0+τ0.8Pmaxt0}
2. One of the following happen.
If τmax < τmin, bull market continues, update the new peak value Pmaxt0+τmax =
Pt0+τmax discard previous peak at time t0 and set It0+1 = · ··It0+τmax = 1. Go
to 2 above.
If τmax > τmin, we find a trough at time t0 + τmin and we have been in a bear
market from t0 + 1 to t0 + τmin, It0+1 = · ··= It0+τmin = 0. Record the value
Pmint0+τmin = Pt0+τmin and mark time t0 as one peak. Go to 1 below for bear
market.
On the other hand suppose t0 is a local minimum.
1. Bear market stopping times are
τmin(Pmint0 , t0 | It0 = 0) = inf{t0 + τ: Pt0+τPmint0}
τmax(Pmint0 , t0 | It0 = 0) = inf{t0 + τ: Pt0+τ1.2Pmint0}
2. One of the following happens.
If τmin < τmax, bear market continues, update the trough point forward,
Pmint0+τmin = Pt0+τmin discard previous trough value at time t0 and set It0+1 = ··= It0+τmin = 0. Go to 1.
If τmin > τmax we have a peak at t0 + τmax and have been in a bull market
from t0 + 1 to t0 + τmax, It0+1 = · ··= It0+τmax= 1. Record the value Pmaxt0+τmax = Pt0+τmax
and mark time t0 as a trough and go to 1 above for the
bull market.
This process is repeated until the last data point.

我把文章也附上了。我自己也在编写程序,我也会随时更新我的进展。


    熟悉论坛请点击新手指南
下载说明
1、论坛支持迅雷和网际快车等p2p多线程软件下载,请在上面选择下载通道单击右健下载即可。
2、论坛会定期自动批量更新下载地址,所以请不要浪费时间盗链论坛资源,盗链地址会很快失效。
3、本站为非盈利性质的学术交流网站,鼓励和保护原创作品,拒绝未经版权人许可的上传行为。本站如接到版权人发出的合格侵权通知,将积极的采取必要措施;同时,本站也将在技术手段和能力范围内,履行版权保护的注意义务。
(如有侵权,欢迎举报)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

GMT+8, 2025-12-31 22:27