由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Quant版 - 请问bootstrap如何在stata里做?
相关主题
[合集] 到底什么是bootstrap? (转载)哪里可以找到bootstrapping 程序
compare the deviation of data points in two different group如何去除rate curve历史数据中的坏点?
interview question请问到底什么是 basis curve
GS interview话题--Interest rate modeling大家都用什么模型啊?
请教FWD CURVE的MODELING问题Murex interview questions
[合集] Boostrap Simulation 会影响distribution估计值吗?[合集] Help needed! One question about APT model
咨询一门课程的有关内容[合集] ft.. Delete the earth question accidentally
A hedge fund friend of mine asked me this question...Clayton Copula
相关话题的讨论汇总
话题: stata话题: bootstrap话题: forvalues话题: 500话题: function
进入Quant版参与讨论
1 (共1页)
m********t
发帖数: 16
1
在求收益率时间序列数据的标准差时
被告知需要用bootstrap作
看了一些文献,可惜都没有实际运用部分
所以请教一下怎么在stata里做这个bootstrap?
万分感谢!
m********t
发帖数: 16
2
i use stata as follows:
bs "interest rate" "r(sd)",rep(1000)
then i get a standard deviation
but i want to repeat this procedure for 500 times
(i want 500 standard deviations)
how can i do that?
i don't like to type in the same command 500 times
3q!
l***n
发帖数: 812
3
stata has loop function
you can loop by values/function/variables......you name it.
for your purpose:
forvalues i=1(1)500 {
bs "interest rate" "r(sd)",rep(1000)
}
you can check forvalues/foreach function in Stata's manual.

【在 m********t 的大作中提到】
: i use stata as follows:
: bs "interest rate" "r(sd)",rep(1000)
: then i get a standard deviation
: but i want to repeat this procedure for 500 times
: (i want 500 standard deviations)
: how can i do that?
: i don't like to type in the same command 500 times
: 3q!

m********t
发帖数: 16
4
3q!
i'm really a junior learner.
1 (共1页)
进入Quant版参与讨论
相关主题
Clayton Copula请教FWD CURVE的MODELING问题
街上有用zero-mean计算volatility和covariance的么?[合集] Boostrap Simulation 会影响distribution估计值吗?
有人看过Principles of Finance with Excel吗?咨询一门课程的有关内容
Some advices for those who are still huntingA hedge fund friend of mine asked me this question...
[合集] 到底什么是bootstrap? (转载)哪里可以找到bootstrapping 程序
compare the deviation of data points in two different group如何去除rate curve历史数据中的坏点?
interview question请问到底什么是 basis curve
GS interview话题--Interest rate modeling大家都用什么模型啊?
相关话题的讨论汇总
话题: stata话题: bootstrap话题: forvalues话题: 500话题: function