全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 MATLAB等数学软件专版
4056 2
2009-01-27
如何随机打乱把一组时间序列?谢谢
二维码

扫码加我 拉你入群

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

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

全部回复
2009-1-27 19:31:00

download bootstrapping package from the internet, anywhere, just google it.

Firstly, import the data into the dataset, e.g. xlsread(...).

Then run boostrapping following the instructions, for any time you wish.

if u want to change the series for various times , you need to download another package called btstrap. A package named Monte Carlo can do it in S- and R, I havenot tried whether it will work in Matlab, anyway, worth a try.  

二维码

扫码加我 拉你入群

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

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

2009-2-1 13:35:00
你可以用matlab自带函数randperm(n) returns a random permutation of the integers 1:n。然后按得到的序列将数据重新排列。

用R,你可以直接用sample()函数,如果原来那列叫x,直接sample(x)即可。
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群