Skip to content

Commit 0e9522b

Browse files
committed
funn
2025-11-01 14:26:10
1 parent a31a778 commit 0e9522b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

fun_with_astsa/fun_with_astsa.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,10 +713,12 @@ It can do everything for you but you have to choose the model ... speaking of wh
713713

714714

715715

716+
---
717+
716718
❌ Don't use black boxes like `auto.arima` from the `forecast` package because IT DOESN'T WORK well. If you know what you are doing, fitting an ARIMA model to linear time series data is easy.
717719

718720
---
719-
<blockquote>
721+
720722
<img src="figs/blackbox2.png" alt="blackbox" width="70%"><br/>
721723

722724

@@ -741,8 +743,18 @@ forecast::auto.arima(x) # BLACK BOX
741743
sigma^2 estimated as 0.9657: log likelihood=-1400
742744
AIC=2808.01 AICc=2808.05 BIC=2827.64
743745
````
744-
HA! ... an ARMA(2,1) ?? BUT, if you KNOW what you are doing, you realize the model is basically overparametrized white noise (because &nbsp;&nbsp; -ar1 &approxma1 &nbsp;&nbspand &nbsp;&nbspar2 &approx; 0)
745746

747+
&#129315;&#129315;&#129315;  ... an ARMA(2,1) ?? BUT, if you KNOW what you are doing, you realize the model is basically overparametrized white noise ... CHECK IT OUT:
748+
749+
```r
750+
arma.check(ar=c(-.9744, -.0477), ma=.9509)
751+
752+
WARNING: (Possible) Parameter Redundancy
753+
754+
It looks like that ARMA model has (approximate) common factors.
755+
This means that the model is (possibly) over-parameterized.
756+
You might want to try again.
757+
```
746758

747759
Here's another humorous example. Using the data `cmort` (cardiovascular mortality)
748760

@@ -779,7 +791,6 @@ sarima(cmort, 1,1,0, no.constant=TRUE)
779791
Yep!! 1 parameter with a decent standard error and the residuals are perfect (white and normal).
780792

781793
---
782-
</blockquote>
783794

784795
&#128125; Ok - back to our regularly scheduled program, `sarima()`. As with everything else, there are many examples on the help page (`?sarima`) and we'll do a couple here.
785796

0 commit comments

Comments
 (0)