Data and packages

## Observations: 59
## Variables: 1
## $ pop <dbl> 119.897, 121.236, 122.591, 123.960, 125.345, 126.745, 127.468, ...

Malthusian descrite model

Equation: \(p_t=(1+a)*p_{t-1}\)

## 
## Call:
## tslm(formula = y ~ x - 1)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -1.0859 -0.4597  0.2561  0.5346  1.0429 
## 
## Coefficients:
##    Estimate Std. Error t value Pr(>|t|)    
## x 1.0028486  0.0005929    1691   <2e-16 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.6317 on 57 degrees of freedom
## Multiple R-squared:      1,  Adjusted R-squared:      1 
## F-statistic: 2.861e+06 on 1 and 57 DF,  p-value: < 2.2e-16

Malthusian continuous model

Equation: \(P_t=c*e^{at}\)

## 
## Call:
## tslm(formula = y ~ x)
## 
## Residuals:
##       Min        1Q    Median        3Q       Max 
## -0.070843 -0.031036 -0.002782  0.032019  0.058356 
## 
## Coefficients:
##              Estimate Std. Error t value Pr(>|t|)    
## (Intercept) 4.8546978  0.0096144 504.938  < 2e-16 ***
## x           0.0027784  0.0002787   9.969 4.22e-14 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.03646 on 57 degrees of freedom
## Multiple R-squared:  0.6355, Adjusted R-squared:  0.6291 
## F-statistic: 99.38 on 1 and 57 DF,  p-value: 4.217e-14

Model performance

Accuracy = But without test set, it is just training set accuracy

ME RMSE MAE MPE MAPE MASE ACF1
Descrite 0.0259795 0.6261950 0.5575373 0.0360529 0.4014868 0.9014939 0.9479580
Continuous 0.0000000 0.0358333 0.0313581 -0.0053236 0.6346598 6.7632335 0.9452948

Cross validation

CV AIC AICc BIC AdjR2
descrite 0.4057989 -50.29884 -50.08066 -46.17796 0.9999797
continuous 0.0013832 -386.80759 -386.37123 -380.57498 0.6290994

Source: Forecasting:Principles and practice