博客
关于我
Introduction of moving block bootstrap (MBB)algorithm
阅读量:243 次
发布时间:2019-03-01

本文共 1186 字,大约阅读时间需要 3 分钟。

???????MMB????????????

??????????????????????????????????Moving Block Bootstrap, MBB????????????MMB???????????????????????????????????????????????

????

??????????????????????????????????2???????????????????????????????

X?, X?, ..., X??

???????

  • ?1?X?, X?
  • ?2?X?, X?
  • ...
  • ?5?X?, X??

Bootstrap??

????????Bootstrap?????????????????????????????????????????????????????????????????????1??3??5??1??2?????????????????

block1, block3, block5, block1, block2

Python??

?Python????????arch??????????????????????

from arch.bootstrap import MovingBlockBootstrapfrom numpy.random import RandomStateimport numpy as np# ???????????????y = standard_normal((6, 1))  # shape (6, 1)# ????????bootstrap = MovingBlockBootstrap(2, y, random_state=RandomState(1234))  # ????2# ??Bootstrap??bs_y = []# ??Bootstrap??for _ in range(2):    data = bootstrap.bootstrap(2)  # ??2?Bootstrap??    bs_y.append(data[0][0])  # ???????    print("Bootstrap??:", data)    print("??????:", bs_y)# ????????def fc(a):    return a.mean(0)  # ?????# ?????????results = bootstrap.apply(fc, 2)  # ?????????????print("????:", results)

??

??????????????????????????????????????????????????????????????????????????????????????????????????

转载地址:http://uaet.baihongyu.com/

你可能感兴趣的文章
pandas -按连续日期时间段分组
查看>>
pandas -更改重新采样的时间序列的开始和结束日期
查看>>
pandas :to_excel() float_format
查看>>
pandas :加入有条件的数据框
查看>>
pandas :将多列汇总为一列,没有最后一列
查看>>
pandas :将时间戳转换为 datetime.date
查看>>
pandas :将行取消堆叠到新列中
查看>>
pandas DataFrame 中的自定义浮点格式
查看>>
Pandas DataFrame 的 describe()方法详解-ChatGPT4o作答
查看>>
Pandas DataFrame中删除列级的方法链接解决方案
查看>>
Pandas DataFrame中的列从浮点数输出到货币(负值)
查看>>
Pandas DataFrame中的列从浮点数输出到货币(负值)
查看>>
pandas DataFrame的一些操作
查看>>
Pandas Dataframe的日志文件
查看>>
pandas Groupby:创建两列的Groupby时,如何按正确的顺序对工作日进行排序?
查看>>
Pandas matplotlib 无法显示中文
查看>>
pandas PIVOT_TABLE保持索引
查看>>
Pandas Plots:周末的单独颜色,x 轴上漂亮的打印时间
查看>>
Pandas 中的多索引旋转
查看>>
Pandas 中的日期范围
查看>>