You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1239,9 +1249,12 @@ observations is related to the sampling frequency
1239
1249
1240
1250
- For any given $h$, the autocorrelation converges to zero as we increase the distance -- $n$-- between the observations. This represents the "weak dependence" of the $X$ process.
1241
1251
1252
+
1242
1253
- Moreover, for a fixed lag length, $n$, the dependence vanishes as the sampling frequency goes to infinity. In fact, letting $h$ go to $\infty$ gives back the case of IID data.
1243
1254
1244
1255
```{code-cell} ipython3
1256
+
%%time
1257
+
1245
1258
μ = .0
1246
1259
κ = .1
1247
1260
σ = .5
@@ -1341,6 +1354,8 @@ the sampling frequency $h$ relative to the IID case that we
1341
1354
compute in closed form.
1342
1355
1343
1356
```{code-cell} ipython3
1357
+
%%time
1358
+
1344
1359
@jit
1345
1360
def sample_generator(h, N, M):
1346
1361
ϕ = (1 - np.exp(-κ * h)) * μ
@@ -1362,6 +1377,8 @@ def sample_generator(h, N, M):
1362
1377
```
1363
1378
1364
1379
```{code-cell} ipython3
1380
+
%%time
1381
+
1365
1382
# Generate large sample for different frequencies
1366
1383
N_app, M_app = 1000, 30000 # Sample size, number of simulations
0 commit comments