博客
关于我
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/

你可能感兴趣的文章
PAT 1127 ZigZagging on a Tree[难]
查看>>
PAT 2-07. 素因子分解(20)
查看>>
SparkSQL学习03-数据读取与存储
查看>>
PAT L2-012. 关于堆的判断
查看>>
PAT Spell It Right [非常简单]
查看>>
PAT-1044. Shopping in Mars (25)
查看>>
PAT-乙级-1040 有几个PAT
查看>>
PAT1093 Count PAT's (25)(逻辑题)
查看>>
PATA1038题解(需复习)
查看>>
Patching Array
查看>>
PatchMatchStereo可能会需要的Rectification
查看>>
Path does not chain with any of the trust anchors
查看>>
Path形状获取字符串型变量数据
查看>>
PAT甲级——1001 A+B Format (20分)
查看>>
Skywalking原理
查看>>
PAT甲级——1006 Sign In and Sign Out (25分)
查看>>
PAT甲级——1007 Maximum Subsequence Sum (25分)
查看>>
PAT甲级——1009 Product of Polynomials (25分)(最后一个测试点段错误)
查看>>
Spring对jdbc的支持
查看>>
PayPal网站付款标准版(for PHP)
查看>>