# Likelihood Inference for Generalized Integer Autoregressive Time Series Models

Department of Statistics, University of British Columbia, Vancouver, BC V6T 1Z4, Canada

Received: 17 May 2019 / Revised: 23 September 2019 / Accepted: 2 October 2019 / Published: 11 October 2019

(This article belongs to the Special Issue Discrete-Valued Time Series: Modelling, Estimation and Forecasting)

For modeling count time series data, one class of models is generalized integer autoregressive of order p based on thinning operators. It is shown how numerical maximum likelihood estimation is possible by inverting the probability generating function of the conditional distribution of an observation given the past p observations. Two data examples are included and show that thinning operators based on compounding can substantially improve the model fit compared with the commonly used binomial thinning operator.

## 1. Introduction

Modeling of count times series has been an active area of research (see Davis et al. 2015 and Weiß 2018) for a few decades. There are applications in business and econometrics, health and medical studies; the models can be applied in general situations for count response variables with time dependence and covariates.

One class of count time series models is based on thinning operators, which are replacements of the multiplication operator to maintain support on the non-negative integers. The theory for count time series modeling with thinning operators has two approaches: (a) models with a specified stationary univariate margin combined with operators that can yield Markov times series models with a lag 1 serial correlation between 0 to 1; (b) models based on thinning operators applied to p previous observations and a distribution for the innovation, so that in the stationary setting, the autocorrelation functions have similar properties to the Gaussian case (except only positive serial correlations are possible).

The general model of type (b) is generalized integer autoregressive of order p, denoted as GINAR(p). For GINAR(p), mainly the binomial thinning operator has been used, whereas there are many thinning operators proposed for models of type (a).

For models of type (a), there is an extension to include covariates if the distribution of the innovation and the univariate margin are in the same infinitely divisible family, and then the convolution parameter can be a function of covariates. For models of type (b), the extension to include covariates typically requires the parameters of the innovation distribution to be function of the covariates.

For type (a), estimation can usually proceed with numerical maximum likelihood. For type (b), the estimation method is typically method of moments or conditional least squares. The disadvantage of the latter two estimation methods is that the predictive distributions for the next observations given the recent observations cannot be obtained.

In this paper, we use some numerical techniques from the literature for models of type (a) for parameter estimation in GINAR(p) models. The numerical technique applies when there is closed form for the probability generating function (pgf) of the conditional distribution of the next observation given the past because the pgf can be efficiently numerically inverted to get the conditional probability mass function for likelihood calculations.

The remainder of the paper is organized as follows. Section 2 describes the background and notation for count times series models and thinning operators. Section 3 presents the formulation of GINAR(p). Section 4 presents some probabilistic properties of GINAR(p) in the stationary setting. Section 5 presents the details to show how the likelihood can be numerically computed, and includes some simulation results. Section 6 presents two data examples that show how generalized thinning operators lead to better models than binomial thinning. Section 7 presents the concluding discussion.

## 2. Background for Thinning Operators

This section presents the background and notation for count data and thinning operators.

Let $\{{Y}_{t}:t=1,2,\dots \}$ be a count time series (a sequence of dependent random variables), where ${Y}_{t}\in {\mathcal{N}}_{0}=\{0,1,2\dots ,\}$. The realized data will be denoted as $\{{y}_{t}:t=1,2,\dots ,n\}$ for a sample of size n. If there are trend/seasonal terms or covariates at time t, they are incorporated into a vector ${\mathbf{x}}_{t}$. We mainly consider the case of small counts, with zeros and overdispersion relative to Poisson.

For early research in Markov count time series with given margins, some references are McKenzie (1986, 1987), Al-Osh and Aly (1992); Alzaid and Al-Osh (1993). Letting $\alpha $ denote the non-negative lag 1 serial correlation, the integer autoregressive model of order 1 has the form:
${Y}_{t}$ has a (parametric) distribution such as Poisson, negative binomial (NB) or generalized Poisson. The innovation random variables are ${\u03f5}_{t}\left(\alpha \right)\in {\mathcal{N}}_{0}$ for $t=1,2,\dots $, and the serially dependent component of the model consists of random variables ${R}_{t}(y;\alpha )\in {\mathcal{N}}_{0}$ such that
and ${Y}_{t}\phantom{\rule{0.166667em}{0ex}}\stackrel{d}{\phantom{\rule{0.0pt}{0ex}}=}\phantom{\rule{0.166667em}{0ex}}{R}_{t}({Y}_{t-1};\alpha )+{\u03f5}_{t}\left(\alpha \right)$ for all $0\le \alpha \le 1$. Please note that to preserve the space of ${\mathcal{N}}_{0}$ (non-negative integers), (2) must hold in expectation: ${R}_{t}(y;\alpha )\equiv \alpha y$ is possible only for real-valued or non-negative reals.

$${Y}_{t}={R}_{t}({Y}_{t-1};\alpha )+{\u03f5}_{t}\left(\alpha \right),\phantom{\rule{1.em}{0ex}}t=1,2,\dots ,\phantom{\rule{4pt}{0ex}}0\le \alpha \le 1.$$

$$\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[{R}_{t}({Y}_{t-1};\alpha )\right|{Y}_{t-1}=y]=\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[{R}_{t}(y;\alpha )\right]=\alpha y,\phantom{\rule{1.em}{0ex}}y\in {\mathcal{N}}_{0},\phantom{\rule{4pt}{0ex}}0\le \alpha \le 1,$$

Some examples include the following. (a) ${Y}_{t}\sim $ Poisson and ${R}_{t}(y;\alpha )\sim \mathrm{Binomial}(y;\alpha )$ for binomial thinning; (b) ${Y}_{t}\sim $ negative binomial and ${R}_{t}(y;\alpha )$ has a beta-binomial distribution; (c) ${Y}_{t}\sim $ generalized Poisson and ${R}_{t}(y;\alpha )$ has a quasi-binomial distribution.

For an extension to include covariates, if ${Y}_{t}$, ${R}_{t}({Y}_{t-1};\alpha )$ and ${\u03f5}_{t}\left(\alpha \right)$ are in the same convolution-closed family for all $0<\alpha <1$ with a convolution parameter $\vartheta $, then $\vartheta $ can be a function of the covariates. However, with this approach, the extension to Markov of higher order is not simple. Markov of order 2 is tractable, but not order 3 or more; see Joe (1996) and Section 8.4.4 of Joe (1997).

A broad class of generalized thinning operators with the property of (2) can be obtained with a family of compounding operators based on a family of random variables $\left\{K\right(\alpha ):0\le \alpha \le 1\}$, where $K\left(\alpha \right)\in {\mathcal{N}}_{0}$ and $\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=\alpha $.

**Definition 1**

(Compounding operator based on random variable K). Let K be a non-negative integer random variable and let y be a non-negative integer. Then K as a compounding operator is denoted as $K\u229by$, where
with ${K}_{i}$ being independent replicates of K. In the above, $K\u229by=0$ if $y=0$ with the conventional meaning of a null sum.

$$K\u229by\phantom{\rule{0.166667em}{0ex}}\stackrel{d}{\phantom{\rule{0.0pt}{0ex}}=}\phantom{\rule{0.166667em}{0ex}}\sum _{i=1}^{y}{K}_{i}$$

With the family $\left\{K\right(\alpha ):0\le \alpha \le 1\}$ of compounding random variables acting as thinning operators, in (1) let
where ${K}_{ti}\left(\alpha \right)$ are independent replicates of $K\left(\alpha \right)$ and $K\left(\alpha \right)$ has pgf ${G}_{K}(s;\alpha )=\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[{s}^{K\left(\alpha \right)}\right]$ for $0\le s\le 1$. With the ⊛ notation, the Markov stationary count time series model can be written as
For the expectation thinning requirement, $\alpha =0$ implies $K\left(\alpha \right)\equiv 0$ and ${\u03f5}_{t}={Y}_{t}$ in (3) for an independent and identically distributed sequence, and $\alpha =1$ implies $K\left(\alpha \right)\equiv 1$ and ${\u03f5}_{t}=0$ in (3) for perfect dependence.

$${R}_{t}(y;\alpha )=\sum _{i=1}^{y}{K}_{ti}\left(\alpha \right),$$

$${Y}_{t}={K}_{t}\left(\alpha \right)\u229b{Y}_{t-1}+{\u03f5}_{t}\left(\alpha \right)=\sum _{i=1}^{{Y}_{t-1}}{K}_{ti}\left(\alpha \right)+{\u03f5}_{t}\left(\alpha \right),\phantom{\rule{1.em}{0ex}}t=1,2,\dots $$

Please note that if K has pgf ${G}_{K}$ and Y has pgf ${G}_{Y}$, then $K\u229by$ has pgf ${G}_{K}^{y}$ and $K\u229bY$ has pgf ${G}_{Y}\circ {G}_{K}$.

With the family $\left\{K\right(\alpha \left)\right\}$ of compounding operators, a subclass with the self-generalized property has some special properties. Self-generalization is defined next; properties based on this concept are in Zhu and Joe (2003, 2010a).

**Definition 2**

(Self-generalized family $\left\{K\right(\alpha ):0\le \alpha \le 1\}$ with pgf ${G}_{K}(\xb7;\alpha )$). $\left\{K\right(\alpha ):0\le \alpha \le 1\}$ satisfies the property of self-generalization if

$$K\left(\alpha \right)\u229bK\left({\alpha}^{\prime}\right)=\sum _{i=1}^{K\left({\alpha}^{\prime}\right)}{K}_{i}\left(\alpha \right)\phantom{\rule{0.166667em}{0ex}}\stackrel{d}{\phantom{\rule{0.0pt}{0ex}}=}\phantom{\rule{0.166667em}{0ex}}K\left(\alpha {\alpha}^{\prime}\right)or{G}_{K}[{G}_{K}(s;\alpha );{\alpha}^{\prime}]={G}_{K}(s;\alpha {\alpha}^{\prime})for0\alpha ,{\alpha}^{\prime}1and0\le s\le 1.$$

This self-generalized property implies the following.

- (a)
- One can embed (3) into a continuous-time Markov process.
- (b)
- $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=c\alpha (1-\alpha )$ for some constant $c\ge 1$.
- (c)
- If (3) can hold in distribution for all $0<\alpha <1$, then the marginal distribution ${F}_{Y}$ is infinitely divisible and said to be generalized discrete self-decomposable (GDSD).

There are three known families of self-generalized operators that are quite tractable. These are summarized in the next definition.

**Definition 3**

(Three families of self-generalized thinning operators)

**.**- (
**I1**) - (binomial thinning) ${G}_{K}(s;\alpha )=(1-\alpha )+\alpha s$ with $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=\alpha (1-\alpha )$.
- (
**I2**) - ${G}_{K}(s;\alpha ;\gamma )=\frac{(1-\alpha )+(\alpha -\gamma )s}{(1-\alpha \gamma )-(1-\alpha )\gamma s}$, $0\le \gamma \le 1$, with $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=\alpha (1-\alpha )(1+\gamma )/(1-\gamma )$. Please note that $\gamma =0$ implies ${G}_{K}(z;\alpha )=(1-\alpha )+\alpha s$.
- (
**I3**) - ${G}_{K}(s;\alpha ;\gamma )={\gamma}^{-1}[1+\gamma -{(1+\gamma -\gamma s)}^{\alpha}]$, $0\le \gamma $, with $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=\alpha (1-\alpha )(1+\gamma )$. Please note that $\gamma \to 0$ implies ${G}_{K}(s;\alpha )=(1-\alpha )+\alpha s$.

The I2 and I3 families have an additional parameter $\gamma $ besides $\alpha \in [0,1]$ to allow different degrees of conditional heteroscedasticity. The I2 and I3 families include binomial thinning when $\gamma \to {0}^{+}$. The second operator family I2 has been used in different parametrizations; see Aly and Bouzar (1994, 2019).

In the next section, we use these three classes of self-generalized compounding operators for GINAR(p) models in which compounding acts (independently) on each of the previous p observations. Please note that model (3) has no simple extension to Markov of higher order if a univariate stationary margin such as negative binomial is desired.

## 3. GINAR($\mathit{p}$): Generalized Integer Autoregressive of Order $\mathit{p}\ge \mathbf{1}$

In this section, we define INAR(p) and GINAR(p) count times series models, and summarize estimation methods that have appeared in the literature. Also, it is indicated why the generalized form is more interpretable.

The INAR(p) model-based binomial thinning operators (denoted with *), is defined in Du and Li (1991), as:
the innovation random variables ${\u03f5}_{t}$ have a distribution such as Poisson or negative binomial (NB), and they can have parameters that depend on covariates.

$${Y}_{t}=\sum _{j=1}^{p}{\alpha}_{j}\ast {Y}_{t-j}+{\u03f5}_{t};$$

For an extension beyond binomial thinning, the GINAR(p) model as defined in Gauthier and Latour (1994) and Joe (2015) is as follows:
where $0\le {\alpha}_{j}\le 1$ for $j=1,\dots ,p$ and the ${K}_{tji}\left({\alpha}_{j}\right)$ are independent over $t,j$ and i, and ${\u03f5}_{t}$ is the innovation at time t.

$${Y}_{t}=\sum _{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{t-j}+{\u03f5}_{t}=\sum _{j=1}^{p}\sum _{i=1}^{{Y}_{t-j}}{K}_{tji}\left({\alpha}_{j}\right)+{\u03f5}_{t},$$

Model (5) could also be defined if the thinning operators are based on other non-compounding thinning operators that appear in other constructions of count time series models. However as shown below, the feasibility of numerical maximum likelihood depends on the use of compounding operators with closed form pgfs.

This GINAR(p) model is defined in Section 3.2 of Weiß (2018) but there is no discussion of good choices of generalized thinning operators and no applications in subsequent sections of the book.

Binomial thinning in the INAR(p) model with $p\ge 2$ does NOT have survivor-immigration interpretation (a random fraction of current counted units continue to next time point (page 18 of Weiß (2018))). GINAR(p) is more interpretable, with a unit count at time t branching into (or contributing) 0, 1 or more counts at time $t+1$, $t+2$, etc.; this is referred to as branching with immigration on page 19 of Weiß (2018).

The original estimation method in Du and Li (1991) is Yule-Walker or method of moments. An approximate likelihood inference method based on the saddlepoint approximation is used in Pedeli et al. (2015), and Lu (2018) has an implementation of maximum likelihood by getting the probability mass function from the pgf by differentiation and Taylor expansion. In Pedeli et al. (2015), only the binomial thinning operator is used and a NB innovation with a fixed convolution parameter is assumed. That is, the convolution parameter is fixed (whose reciprocal was called the dispersion parameter) at different values and then estimates of the remaining parameters use the saddlepoint approximation. Lu (2018) assumes a Poisson innovation, and the approach extends to NB innovations but may not be practical for thinning operators with support on all non-negative integers.

By inverting the pgf using the numerical integral in Davies (1973), the likelihood can be evaluated to high precision whenever the conditional distribution of $\left[{Y}_{t}\right|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p}]$ has a numerically tractable pgf. The pgf of this conditional distribution is
This pgf is tractable for thinning operators I1, I2 and I3, combined with Poisson or NB binomial distributions for innovations. Some details are provided in Section 5. In Zhu and Joe (2010b), the numerical technique for the likelihood was used for some Markov time series models of order 1 with NB marginal distributions.

$$\prod _{j=1}^{p}{\left[{G}_{K}(s;{\alpha}_{j})\right]}^{{y}_{t-j}}\phantom{\rule{0.166667em}{0ex}}{G}_{\u03f5}\left(s\right).$$

An advantage of the likelihood method over method of moments and least squares is that different distributions for ${\u03f5}_{t}$ can be used in a sensitivity analysis, and prediction intervals of ${Y}_{t+1}$ given ${y}_{t},{y}_{t-1},\dots ,{y}_{t-p}$ are possible. Covariates can be accommodated into the parameters of ${F}_{{\u03f5}_{t}}$.

## 4. Probabilistic Properties and Numerical Techniques

In this section, probabilistic properties and numerical techniques for GINAR(p) are given.

The method for inverting the conditional pgf is summarized in Section 4.1 and it can be used for simulation of GINAR(p) as shown in Section 4.2. In Section 4.3, an algorithm is given for obtaining the autocorrelation function of (5), assuming stationarity. Section 4.4 summarizes the validation of the numerical methods.

#### 4.1. Conditional Distributions

In this subsection, we explain how to compute the probability mass function (pmf) $Pr({Y}_{t}=y|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p})$ for GINAR(p) in (5).

There are two approaches indicated below.

- (a)
- Let the pmf for extended binomial distribution be$$f(z;{\alpha}_{1},\dots ,{\alpha}_{p};{G}_{K})=Pr\left(\sum _{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{y}_{t-j}=z\right)$$$${f}_{{Y}_{t}|{Y}_{t-1},\dots ,{Y}_{t-p}}\left(z\right)=Pr({Y}_{t}=y|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p})={\sum}_{z=0}^{y}f(z;{\alpha}_{1},\dots ,{\alpha}_{p};{G}_{K})\phantom{\rule{0.166667em}{0ex}}{f}_{\u03f5}(y-z)$$
- (b)
- The conditional pmf (7) is obtained by inverting ${G}_{\u03f5}\left(s\right){\prod}_{j=1}^{p}{G}_{K}^{{y}_{t-j}}(s;{\alpha}_{j})$, which is the pgf of ${\sum}_{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{y}_{t-j}+{\u03f5}_{t}$.

Approach (a) can be used if the innovation random variable has simple form for the pmf but not the pgf. In the next result that shows the inversion, W is either ${\sum}_{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{y}_{t-j}$ or ${\sum}_{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{y}_{t-j}+{\u03f5}_{t}$.

Let W be a random variable with support in ${\mathcal{N}}_{0}$. The characteristic function ${\phi}_{W}\left(t\right)=E\left({e}^{itW}\right)={G}_{W}\left({e}^{it}\right)$ of W can be inverted via the algorithm of Davies (1973). Let
The function $a\left(w\right)$ is straightforward to evaluate via numerical quadrature. The cumulative distribution function (cdf) and pmf of W are

$$a\left(w\right):={\textstyle \frac{1}{2}}-{\left(2\pi \right)}^{-1}{\int}_{-\pi}^{\pi}\mathrm{Re}\left(\frac{{\phi}_{W}\left(u\right){e}^{-iuy}}{1-{e}^{-iu}}\right)\phantom{\rule{0.166667em}{0ex}}du\mathrm{with}Pr(Ww)=a\left(w\right).$$

$$\begin{array}{ccc}{F}_{W}\left(w\right)\hfill & =& a(w+1),\phantom{\rule{1.em}{0ex}}w=1,2,\dots \hfill \end{array}$$

$$\begin{array}{ccc}{f}_{W}\left(0\right)\hfill & =& a\left(1\right),\phantom{\rule{3.33333pt}{0ex}}\phantom{\rule{3.33333pt}{0ex}}{f}_{W}\left(w\right)=a(w+1)-a\left(w\right),\phantom{\rule{1.em}{0ex}}w=1,2,\dots .\hfill \end{array}$$

#### 4.2. Simulating GINAR(p)

For simulating from GINAR(p), one can start with something approximate for the first p observations and then generate remaining observations from the conditional distributions in the preceding subsection. If one ignores the initial burn-in period, then rest of the resulting time series will be close to stationary, assuming that the parameters ${\alpha}_{1},\dots ,{\alpha}_{p}$ satisfy the condition for stationary (as given in the next subsection).

Suppose one has the cdf for $Pr({Y}_{t}=z|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p})$ as in the previous subsection. Then the usual technique can be used for simulating a discrete random variable. Below is an algorithm to generate a sequence of length $n>p$.

- Simulate ${y}_{1}$ so that it has the theoretical stationary mean and variance.
- Simulate ${y}_{2},\dots ,{y}_{p}$ to try to match the lag 1 to lag $p-1$ serial correlations (approximately).
- For $i=p+1,\dots ,n$:
- obtain the cdf ${F}_{cond}\left(z\right)\leftarrow {F}_{{Y}_{t}|{Y}_{t-1},\dots ,{Y}_{t-p}}\left(z\right|{y}_{t-1},\dots ,{y}_{t-p})$ for z from 0 to, say, the integer closest to$\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left({Y}_{t}\right|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p})+5\sqrt{\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left({Y}_{t}\right|{Y}_{t-1}={y}_{t-1},\dots ,{Y}_{t-p}={y}_{t-p})}\phantom{\rule{0.166667em}{0ex}}$.
- generate a random number r in $(0,1)$
- assign ${y}_{i}\leftarrow min\{z:{F}_{cond}\left(z\right)\ge r\}$.
- End of for loop

#### 4.3. Moments under Stationarity

In this subsection, some results are derived and summarized under the assumption that model (5) is in a stationary state. It is assumed that the sequence $\left\{{Y}_{t}\right\}$ has finite variance ${\sigma}_{Y}^{2}$ and mean ${\mu}_{Y}$. We use the property that $\left\{K\right(\alpha ):0\le \alpha \le 1\}$ is a family of self-generalized random variables with $\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=\alpha $ and $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha \left)\right]=c\alpha (1-\alpha )$ for a constant $c\ge 1$. Du and Li (1991) has most of these results for the special case of binomial thinning. The condition for stationarity is that $0\le {\sum}_{j=1}^{p}{\alpha}_{j}<1$.

- $\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha )\u229bY|Y=y]=y\mathrm{E}\phantom{\rule{0.166667em}{0ex}}[K\left(\alpha \right)]=\alpha y$; $\mathrm{E}\phantom{\rule{0.166667em}{0ex}}[K\left(\alpha \right)\u229bY]=\alpha {\mu}_{Y}$.
- For stationary GINAR(p), ${\mu}_{Y}={\mu}_{Y}{\sum}_{j=1}^{p}{\alpha}_{j}+{\mu}_{\u03f5}$ or$${\mu}_{Y}={\mu}_{\u03f5}/\left[1-\sum _{j=1}^{p}{\alpha}_{j}\right].$$
- $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left[K\right(\alpha )\u229bY|Y=y]=y\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}[K\left(\alpha \right)]=c\alpha (1-\alpha )y$.
- $\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}[K\left(\alpha \right)\u229bY]=c\alpha (1-\alpha ){\mu}_{Y}+{\alpha}^{2}{\sigma}_{Y}^{2}$ and $\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left[{(K\left(\alpha \right)\u229bY)}^{2}\right]=c\alpha (1-\alpha ){\mu}_{Y}+{\alpha}^{2}\mathrm{E}\phantom{\rule{0.166667em}{0ex}}\left({Y}^{2}\right)$.
- Let ${Y}_{a},{Y}_{b}$ be two (distinct) dependent counts, with independent thinning operations at the same time or at different times: $\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[{K}_{{t}_{1}}\left({\alpha}_{j}\right)\u229b{Y}_{a},{K}_{{t}_{2}}\left({\alpha}_{m}\right)\u229b{Y}_{b}\mid {Y}_{a}={y}_{a},{Y}_{b}={y}_{b}]=0$, and $\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{a},{Y}_{b}\mid {Y}_{a}={y}_{a},{Y}_{b}={y}_{b}]=0$.
- Let ${Y}_{a},{Y}_{b}$ be two (distinct) dependent counts, with independent thinning operations at the same time or at different times. From the preceding items,$$\begin{array}{ccc}\hfill \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{a},{Y}_{b}]& =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{a}|{Y}_{a},{Y}_{b}),{Y}_{b}]=\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({\alpha}_{j}{Y}_{a},{Y}_{b})={\alpha}_{j}\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{a},{Y}_{b});\hfill \\ \hfill \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{1}}\left({\alpha}_{j}\right)\u229b{Y}_{a},{K}_{{t}_{2}}\left({\alpha}_{m}\right)\u229b{Y}_{b}]& =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{1}}\left({\alpha}_{j}\right)\u229b{Y}_{a}|{Y}_{a},{Y}_{b}),\phantom{\rule{0.166667em}{0ex}}\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{2}}\left({\alpha}_{m}\right)\u229b{Y}_{b}|{Y}_{a},{Y}_{b})]\hfill \\ & =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({\alpha}_{j}{Y}_{a},{\alpha}_{m}{Y}_{b})={\alpha}_{j}{\alpha}_{m}\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{a},{Y}_{b}).\hfill \end{array}$$
- For the case of $a=b$ and write ${Y}_{a}={Y}_{b}=Y$, then$$\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[{K}_{t}\left(\alpha \right)\u229bY,Y]=\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{t}\left(\alpha \right)\u229bY|Y),\phantom{\rule{0.166667em}{0ex}}Y]=\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}(\alpha Y,Y)=\alpha \mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left(Y\right).$$$$\begin{array}{ccc}\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{1}}\left({\alpha}_{j}\right)\u229bY,{K}_{{t}_{2}}\left({\alpha}_{m}\right)\u229bY]\hfill & =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{1}}\left({\alpha}_{j}\right)\u229bY|Y),\phantom{\rule{0.166667em}{0ex}}\mathrm{E}\phantom{\rule{0.166667em}{0ex}}({K}_{{t}_{2}}\left({\alpha}_{m}\right)\u229bY|Y)]\hfill \\ & =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({\alpha}_{j}Y,{\alpha}_{m}Y)={\alpha}_{j}{\alpha}_{m}\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left(Y\right).\hfill \end{array}$$
- $\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{t},{\u03f5}_{t})=\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left({\u03f5}_{t}\right)={\sigma}_{\u03f5}^{2}$ since ${\u03f5}_{t}$ is independent of past observations.

From the above, we can develop recursion equations for autocovariances ${\gamma}_{h}$ or autocorrelations ${\rho}_{h}$ for $h\in {\mathcal{N}}_{0}$. These are the same as for Gaussian AR(p) for lags $h\ge p$.

Variance calculations under stationarity are as follows.

$$\begin{array}{ccc}\hfill {Y}_{t}& =& \sum _{j=1}^{p}{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{t-j}+{\u03f5}_{t}\hfill \\ \hfill \mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left({Y}_{t}\right)& =& \sum _{j=1}^{p}\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}[{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{t-j}]+2\sum _{1\le j<m\le p}\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}[{K}_{t}\left({\alpha}_{j}\right)\u229b{Y}_{t-j},{K}_{t}\left({\alpha}_{m}\right)\u229b{Y}_{t-m}]+\mathrm{Var}\phantom{\rule{0.166667em}{0ex}}\left({\u03f5}_{t}\right)\hfill \\ \hfill {\gamma}_{0}& =& c{\mu}_{Y}\sum _{j=1}^{p}{\alpha}_{j}(1-{\alpha}_{j})+{\gamma}_{0}\sum _{j=1}^{p}{\alpha}_{j}^{2}+2\sum _{1\le j<m\le p}{\alpha}_{j}{\alpha}_{m}{\gamma}_{m-j}+{\sigma}_{\u03f5}^{2}\hfill \\ \hfill (1-\sum _{j=1}^{p}{\alpha}_{j}^{2}){\gamma}_{0}& =& c{\mu}_{Y}\sum _{j=1}^{p}{\alpha}_{j}(1-{\alpha}_{j})+2\sum _{1\le j<m\le p}{\alpha}_{j}{\alpha}_{m}{\gamma}_{m-j}+{\sigma}_{\u03f5}^{2}\hfill \\ \hfill {\gamma}_{h}& =& \sum _{j=1}^{p}{\alpha}_{j}\mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{t-j},{Y}_{t-h})=\sum _{j=1}^{p}{\alpha}_{j}{\gamma}_{|h-j|},\phantom{\rule{1.em}{0ex}}h\ge 1.\hfill \end{array}$$

For example, for GINAR(3),

$$\begin{array}{ccc}{\gamma}_{0}\hfill & =& \{c{\mu}_{Y}\sum _{j=1}^{3}{\alpha}_{j}(1-{\alpha}_{j})+{\sigma}_{\u03f5}^{2}\}+{\gamma}_{0}\sum _{j=1}^{3}{\alpha}_{j}^{2}+2[{\alpha}_{1}{\alpha}_{2}{\gamma}_{1}+{\alpha}_{2}{\alpha}_{3}{\gamma}_{1}+{\alpha}_{1}{\alpha}_{3}{\gamma}_{2}]\hfill \\ & =:& {a}_{0}+{b}_{0}{\gamma}_{0}+2[{\alpha}_{1}{\alpha}_{2}{\gamma}_{1}+{\alpha}_{2}{\alpha}_{3}{\gamma}_{1}+{\alpha}_{1}{\alpha}_{3}{\gamma}_{2}]\hfill \\ {\gamma}_{1}\hfill & =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{t},{Y}_{t-1})={\alpha}_{1}{\gamma}_{0}+{\alpha}_{2}{\gamma}_{1}+{\alpha}_{3}{\gamma}_{2}\hfill \\ {\gamma}_{2}\hfill & =& \mathrm{Cov}\phantom{\rule{0.166667em}{0ex}}({Y}_{t},{Y}_{t-2})={\alpha}_{1}{\gamma}_{1}+{\alpha}_{2}{\gamma}_{0}+{\alpha}_{3}{\gamma}_{1}={\alpha}_{2}{\gamma}_{0}+({\alpha}_{1}+{\alpha}_{3}){\gamma}_{1}\hfill \\ {\gamma}_{1}\hfill & =& {\alpha}_{1}{\gamma}_{0}+{\alpha}_{3}{\alpha}_{2}{\gamma}_{0}+{\alpha}_{2}{\gamma}_{1}+{\alpha}_{3}({\alpha}_{1}+{\alpha}_{3}){\gamma}_{1}\hfill \\ {\gamma}_{1}\hfill & =& ({\alpha}_{1}+{\alpha}_{2}{\alpha}_{3}){\gamma}_{0}/[1-{\alpha}_{2}-{\alpha}_{3}({\alpha}_{1}+{\alpha}_{3})]=:{\rho}_{1}{\gamma}_{0}\hfill \\ {\gamma}_{2}\hfill & =& [{\alpha}_{2}+({\alpha}_{1}+{\alpha}_{3}){\rho}_{1}]{\gamma}_{0}=:{\rho}_{2}{\gamma}_{0}\hfill \\ {\gamma}_{0}\hfill & =& {a}_{0}+{b}_{0}{\gamma}_{0}+2({\alpha}_{1}{\alpha}_{2}+{\alpha}_{2}{\alpha}_{3}){\rho}_{1}{\gamma}_{0}+2{\alpha}_{1}{\alpha}_{3}{\rho}_{2}{\gamma}_{0}\hfill \\ {\gamma}_{0}\hfill & =& {a}_{0}/[1-{b}_{0}-2({\alpha}_{1}{\alpha}_{2}+{\alpha}_{2}{\alpha}_{3}){\rho}_{1}-2{\alpha}_{1}{\alpha}_{3}{\rho}_{2}].\hfill \end{array}$$

In general, the first p serial correlations can be obtained by solving a linear system in the equations for ${\rho}_{1},\dots ,{\rho}_{p}$, and then ${\rho}_{p+1},{\rho}_{p+2},\dots $ can obtained by recursion.

Next is the algorithm for GINAR(p) for computing ${\rho}_{1},\dots ,{\rho}_{p}$, and ${\gamma}_{0}={\sigma}_{Y}^{2}$, given inputs of ${\alpha}_{1},\dots ,{\alpha}_{p}$ The higher order serial correlations then are obtained via:

$${\rho}_{h}=\sum _{j=1}^{p}{\alpha}_{j}{\rho}_{h-j},\phantom{\rule{1.em}{0ex}}h>p.$$

- Initialize a $p\times p$ matrix M to 0.
- For ${j}_{1}\in \{1,\dots ,p\}$
- ${M}_{{j}_{1},{j}_{1}}\leftarrow 1$
- for ${j}_{2}\in \{1,\dots ,p\}$
- $h\leftarrow |{j}_{1}-{j}_{2}|$
- if ($h>0$) ${M}_{{j}_{1},h}\leftarrow {M}_{{j}_{1},h}-{\alpha}_{{j}_{2}}$
- end of loop for ${j}_{2}$
- end of loop for ${j}_{1}$.
- Solve$$M\left(\begin{array}{c}{\rho}_{1}\\ \vdots \\ {\rho}_{p}\end{array}\right)=\left(\begin{array}{c}{\alpha}_{1}\\ \vdots \\ {\alpha}_{p}\end{array}\right).$$
- Let ${a}_{0}=c{\mu}_{Y}{\sum}_{j=1}^{p}{\alpha}_{j}(1-{\alpha}_{j})+{\sigma}_{\u03f5}^{2}$, ${b}_{0}={\sum}_{j=1}^{p}{\alpha}_{j}^{2}$. Then$${\gamma}_{0}={a}_{0}/\left(1-{b}_{0}-2\sum _{1\le {j}_{1}<{j}_{2}\le p}{\alpha}_{{j}_{1}}{\alpha}_{{j}_{2}}{\rho}_{{j}_{2}-{j}_{1}}\right)$$

Please note that the stationary autocorrelation function (acf) depends only on ${\alpha}_{1},\dots ,{\alpha}_{p}$ and not on the distribution of the innovation random variables. The acf also does not depend on the family $\left\{K\right(\alpha \left)\right\}$ of thinning operations, but the stationary mean and variance are affected by $\left\{K\right(\alpha \left)\right\}$ and the distribution of the innovations.

#### 4.4. Validation

With the simulation method in Section 4.2 and numerical maximum likelihood based on (7), we simulated many time series of length in the thousands under different stationary parameter settings for $({\alpha}_{1},\dots ,{\alpha}_{p})$ and different parameters for the Poisson or NB innovation. Some representative simulation results are summarized in the next section.

The sample acf’s are close to the theoretical acf’s in Section 4.3 and the maximum likelihood estimates are close to the “true" parameters when considering sampling variability. We also checked that as p increases and ${\sum}_{j=1}^{p}{\alpha}_{j}$ gets closer to 1, the serial correlations require longer lags before they are closer to 0.

## 5. Likelihood and Numerical Implementation

In this section, we summarize the log-likelihoods that can be used for model (5), where the innovation random variables can be independent and identically distributed with a parametric distribution or they can depend parametrically on covariates.

To compare models with different autoregressive order using Akaike information criterion (AIC) values, we use the (conditional) likelihood as the product of the conditional densities starting at an index ${i}_{start}$ which is larger than ${p}_{max}$ (the maximum autoregressive order that will be considered). With a large sample size, the maximum likelihood estimates are not sensitive to the few initial conditional probabilities so that one could fit GINAR(p) starting from the conditional probability for ${Y}_{p+1}$ to get parameter estimates and then omit a few conditional probability terms at the beginning so that ${i}_{start}$ is common for different p. This form of likelihood implies that we do not have to determine the distribution of the first few observations under the assumption of stationarity. Actually, we then do not have to assume that the time series starts in a stationary state, and covariates can be included. The likelihood is:
where ${\alpha}_{1},\dots {\alpha}_{p}\in (0,1)$, with $0\le {\alpha}_{1}+\cdots +{\alpha}_{p}<1$, are the autoregressive parameters, $\gamma $ is the conditional heteroscedatic parameter in Definition 3 if I2 or I3 thinning is used, and ${\mathit{\theta}}_{innov}$ is the vector of parameters for the innovation random variables. If there are covariates, then ${\mathit{\theta}}_{innov}$ consists of (regression) parameters linking the covariates to parameters of the innovation distribution. The conditional density is obtained via the numerical technique in Section 4.1. We refer to the parameter vector maximizing (10) or minimizing the negative log conditional likelihood as the conditional maximum likelihood (CML) estimate.

$$L=\prod _{i={i}_{start}}^{n}{f}_{{Y}_{t}|{Y}_{t-1},\dots ,{Y}_{t-p}}\left({y}_{t}\right|{y}_{t-1},\dots ,{y}_{t-p};{\alpha}_{1},\dots ,{\alpha}_{p},\gamma ,{\mathit{\theta}}_{innov}),$$

For example, ${\mathit{\theta}}_{innov}=\lambda >0$ for Poisson innovations, ${\mathit{\theta}}_{innov}=(\vartheta ,\xi )$ for NB innovations with convolution parameter $\vartheta $, mean $\vartheta \xi $ and variance $\vartheta \xi (1+\xi )$. With covariate vector ${\mathbf{x}}_{t}$ at time t, ${\mathit{\theta}}_{innov}=({\beta}_{0},\mathit{\beta})$ for Poisson innovations with mean $\mu \left({\mathbf{x}}_{t}\right)=exp\{{\beta}_{0}+{\mathit{\beta}}^{T}{\mathbf{x}}_{t}\}$ and ${\mathit{\theta}}_{innov}=({\beta}_{0},\mathit{\beta},\xi )$ for NB innovations with mean $\mu \left({\mathbf{x}}_{t}\right)=exp\{{\beta}_{0}+{\mathit{\beta}}^{T}{\mathbf{x}}_{t}\}$, ${\vartheta}_{t}=\mu \left({\mathbf{x}}_{t}\right)/\xi $ with constant overdispersion.

Because of the summations and numerical integrals, to gain computational speed in the numerical maximum likelihood, the negative log-likelihood can be coded in a high-level programming language such as Fortran 90. The numerical optimization could be done by interfacing to a statistical software such as R.

Table 1 reports on some representative simulation results for I1 and I2 thinning to show the accuracy of the numerical methods and how the computing time increases when there are increases in the (i) number of parameters, (ii) sample size and (iii) maximum count. Similar patterns occur for GINAR with I3 thinning. When the sample size increases by a factor of 4 (from 500 to 2000), the SDs of the parameter estimates decrease by a factor of 2 (as expected); the computing time increase by a factor of slightly more than 4 because the maximum count is larger for a sample size of 2000 and the pmf in (7) must be computed up to a larger value. The parameter vectors in Table 1 are based on maximum likelihood values when fitting these different models to the Ericcson data in Section 6.1.

## 6. Data Examples

In this section, we show results of fitting model (5) to two data examples that appeared in the literature. The use of operators with branching stochastic representation is more interpretable. So it is not surprising that, based on AIC, the I2 and I3 thinning operators in Definition 3 provide much better fits than binomial thinning.

Because the I2 and I3 thinning operators provide conditional heterscedasticity, it turns out that the innovation random variable need not be as overdispersed relative to Poisson as p gets larger. With the binomial thinning operator which each count from the previous p time points can contribute at most 1 to the next count observation, a NB innovation random variable provides a much better fit than Poisson.

#### 6.1. Ericsson Transaction Data

The data set consists of the number of transactions per minute for the stock Ericsson B for business days and hours during 2 to 22 July in the year 2002. The sample size is $n=460$. The original source is Brännäs and Quoresh (2010). This data set is also used in Fokianos et al. (2009) and in Examples 4.1.5 and 4.2.4 in Weiß (2018).

Different models were used by the previous authors: integer moving average INMA of order q with a large q and INGARCH(1,1) with Poisson and overdispersed Poisson distributions for the innovations. The empirical autocorrelation function (see Table 3) suggests that a low-order autoregressive model is not appropriate for these data (as indicated by Weiß (2018)). Here, for comparison, we consider stationary GINAR(p) with p increasing until there is no improvement in the log-likelihood and the highest order $\alpha $ parameter becomes close to 0.

Table 2 presents a summary of AIC values to compare GINAR(p) with binomial thinning and the I2, I3 thinning operators.

For thinning with I2 and I3, based on AIC values, the models with Poisson innovations are a little better than with NB innovations for $p=3$ to 7 for I2 and $p=4$ to 7 for I3. For binomial thinning, based on AIC values, the models with NB innovations are much better than with Poisson innovations.

The best models based on AIC values are GINAR(6) models with I2 and I3 thinning operators and Poisson-distributed innovations. They are quite an improvement on INAR(6) with binomial thinning and NB-distributed innovations. Based on the context of the data, thinning operations based on compounding with support on all of ${\mathcal{N}}_{0}$ instead of $\{0,1\}$ are more reasonable.

The I2 and I3 thinning operators account for some conditional heteroscedasticity so that the use of the NB-distributed innovations leads to a flatter log-likelihood over the NB parameters. Hence Poisson distributed innovations are adequate to handle the marginal overdispersion.

We next compare AIC values with other models that have been used for this data set. Table 4.4 and Example 4.2.4 of Weiß (2018) have values of maximized log conditional likelihoods at the CML estimates for INGARCH(1,1) models with Poisson, NB and generalized Poisson innovations. The use of NB and generalized Poisson distributions lead to much better fitting models with AIC values in the range 2662 to 2666. With a further adjustment for starting in the eighth observation in the conditional log-likelihood, the AIC values are comparable with those in Table 2.

With also compare with the Poisson autoregression or INGARCH models in Fokianos et al. (2009). The models are conditional Poisson with a latent mean process $\left\{{\mathrm{\Lambda}}_{t}\right\}$, where $\left[{Y}_{t}\right|{\mathrm{\Lambda}}_{s}={\lambda}_{s}:s\le t,{Y}_{s}={y}_{s}:s<t]\sim \mathrm{Poisson}\left({\lambda}_{t}\right)$ with
or
As in Fokianos et al. (2009), we start the latent process with ${\lambda}_{0}=0$. There is some sensitivity to the starting value ${y}_{0}$ but we get similar maximum likelihood parameter estimates when starting ${y}_{0}$ at the sample mean. When evaluating AIC values with ${i}_{start}=8$ are between 2847 and 2849 for these two models and correspond roughly to the AIC value for INGARCH(1,1) with Poisson innovations in Weiß (2018).

$${\lambda}_{t}={b}_{0}+{b}_{1}{\lambda}_{t-1}+{b}_{2}{y}_{t-1}$$

$${\lambda}_{t}=({b}_{0}+{b}_{1}exp\{-\gamma {\lambda}_{t-1}^{2}\}){\lambda}_{t-1}+{b}_{2}{y}_{t-1}.$$

Table 3 has (a) CML estimates for the GINAR(6) models with I1, I2 and I3 thinning operators, and (b) model-based moments and acf’s from these models to compare with the empirical values. The comparison with empirical values provides a simple goodness-of-fit procedure; in this case, it shows that the fit from GINAR(6) with binomial thinning is a worse fit.

Based on the parameter estimates in this table, and the last 6 values in the data series: $({y}_{460},{y}_{459},{y}_{458},{y}_{457},{y}_{456},{y}_{455})=(3,9,29,18,20,7)$, we can estimate the conditional mean ${\widehat{\mu}}_{cond}$, conditional variance ${\widehat{\sigma}}_{cond}^{2}$ and central 50% and 80% intervals from estimated pmf: ${f}_{{Y}_{n+1}|{Y}_{n},\dots ,{Y}_{n-5}}(\xb7|{y}_{n},\dots ,{y}_{n-5};{\widehat{\alpha}}_{1},\dots ,{\widehat{\alpha}}_{6},{\widehat{\theta}}_{innov})$. These are summarized below.

- I1 (binomial thinning): ${\widehat{\mu}}_{cond}=11.62$, ${\widehat{\sigma}}_{cond}^{2}=25.66$, $[7,12]$ with probability content 0.52; $[5,16]$ with probability content 0.82;
- I2: ${\widehat{\mu}}_{cond}=12.20$, ${\widehat{\sigma}}_{cond}^{2}=30.31$, $[7,14]$ with probability content 0.56; $[5,18]$ with probability content 0.82;
- I3: ${\widehat{\mu}}_{cond}=12.20$, ${\widehat{\sigma}}_{cond}^{2}=30.92$, $[7,13]$ with probability content 0.51; $[5,18]$ with probability content 0.82.

For binomial thinning, the point and interval predictions are smaller and shorter. Please note that these prediction intervals would not be possible with estimation based on conditional least squares or the method of moments.

#### 6.2. Meningococcal Disease Data

The data set comes from the German national surveillance system for notifiable diseases, administered by the Robert Koch Institute. The time series consists of weekly numbers of meningococcal disease cases in Germany for the years 2001–2006 and the sample size is $n=312$. In Pedeli et al. (2015), INAR(p) models are fitted with approximate likelihood based on a saddlepoint approximation. There is a seasonal pattern over the year and sinusoidal terms were used as covariates in the mean parameter of the innovations as indicated in Section 5.

We fit several GINAR(p) models with I2 and I3 thinning in addition to binomial thinning, using the numerical techniques in the preceding sections. The primary sinusoidal terms ${x}_{t1}=sin(2\pi t/52)$ and ${x}_{t2}=cos(2\pi t/52)$. As indicated in Pedeli et al. (2015), the addition of additional harmonic terms ${x}_{t3}=sin(4\pi t/52)$ and ${x}_{t4}=cos(4\pi t/52)$ do not lead to improvements based on AIC; the estimates of the corresponding $\beta $ regression parameters are at least 10 times smaller than those for ${x}_{t1},{x}_{t2}$. The autoregressive order started at 1 and increased to a value ${p}_{max}$ so that the last ${\widehat{\alpha}}_{j}$ was close to 0 and the negative log-likelihood value was not improving.

Table 4 has some AIC values, based on ${i}_{start}=5$ in (10). For thinning with I2 and I3, based on AIC values, the models with Poisson innovations are a little better than those with NB innovations for $p=2,3,4$. For binomial thinning, based on AIC values, the models with NB innovations are much better than those with Poisson innovations.

As in the Section 6.1, the I2 and I3 thinning operators account for some conditional heteroscedasticity so that the use of the NB-distributed innovations leads to a flatter log-likelihood over the NB parameters.

Overall, from Table 4, the GINAR(2) models with I2 or I3 thinning, Poisson-distributed innovations and ${x}_{t1},{x}_{t2}$ as covariates provide the best models. The best AIC values from GINAR(p) with I2 and I3 thinning are smaller than the best AIC values in Pedeli et al. (2015) (based on binomial thinning).

## 7. Discussion

We showed how GINAR(p) count time series models can be estimated using numerical maximum likelihood. This allows for sensitivity analysis to model assumptions that is not possible with the estimation methods of conditional least squares and the method of moments.

Future research includes the use of the thinning operators in Definition 3 in other applications, as well as derivations of other families of self-generalized random variables satisfying Definition 2.

Where researchers have been using binomial thinning in count time series models, we recommend the replacement with more general thinning operators that satisfy the self-generalized properties. These operators are more interpretable when the survivor interpretation for binomial thinning does not apply. The examples in this paper show that better fitting models can be obtained.

For likelihood computations, alternative methods can be considered. Although a greater coding effort would be needed, one could consider whether the method of Lu (2018), consisting of obtaining probabilities from derivatives of the pgf, is feasible for thinning operators with support on all non-negative integers.

## Funding

This research was funded by NSERC Discovery Grant 8698.

## Acknowledgments

Thanks to Konstantinos Fokianos for providing the data sets. Thanks to the referees for their constructive suggestions to improve the presentation.

## Conflicts of Interest

The author declares no conflict of interest.

## References

- Al-Osh, Mohamed A., and Emad-Eldin A. A. Aly. 1992. First order autoregressive time-series with negative binomial and geometric marginals. Communications in Statistics—Theory and Methods 21: 2483–92. [Google Scholar] [CrossRef]
- Aly, Emad-Eldin A. A., and Nadjib Bouzar. 1994. Explicit stationary distributions for some galton-watson processes with immigration. Communications in Statistics—Stochastic Models 10: 499–517. [Google Scholar] [CrossRef]
- Aly, Emad-Eldin A. A., and Nadjib Bouzar. 2019. Expectation thinning operators based on linear fractional probability generating functions. Journal of the Indian Society for Probability and Statistics 20: 89–107. [Google Scholar] [CrossRef]
- Alzaid, Abdulhamid A., and Mohamed A. Al-Osh. 1993. Some autoregressive moving average processes with generalized Poisson marginal distributions. Annals of the Institute of Statistical Mathematics 45: 223–32. [Google Scholar] [CrossRef]
- Brännäs, Kurt, and A. M. M. Shahiduzzaman Quoreshi. 2010. Integer-valued moving average modelling of the number of transactions in stocks. Applied Financial Economics 20: 1429–40. [Google Scholar] [CrossRef]
- Davies, Robert B. 1973. Numerical inversion of a characteristic function. Biometrika 60: 415–17. [Google Scholar] [CrossRef]
- Davis, Richard A., Scott H. Holan, Robert Lund, and Nalini Ravishanker. 2015. Handbook of Discrete-Valued Time Series. Boca Raton: Chapman & Hall/CRC. [Google Scholar]
- Du, Jin-Guan, and Yuan Li. 1991. The integer-valued autoregressive (INAR(p)) model. Journal of Time Series Analysis 12: 129–42. [Google Scholar]
- Fokianos, Konstantinos, Anders Rahbek, and Dag Tjostheim. 2009. Poisson autoregression. Journal of the American Statistical Association 104: 1430–39. [Google Scholar] [CrossRef]
- Gauthier, Geneviève, and Alain Latour. 1994. Convergence forte des estimateurs des paramètres d’un processus GENAR(p). Ann. Sci. Math. Québec 18: 49–71. [Google Scholar]
- Joe, Harry. 1996. Time series models with univariate margins in the convolution-closed infinitely divisible class. Journal of Applied Probability 33: 664–77. [Google Scholar] [CrossRef]
- Joe, Harry. 1997. Multivariate Models and Dependence Concepts. London: Chapman & Hall. [Google Scholar]
- Joe, Harry. 2015. Markov count time series models with covariates. In Handbook of Discrete-Valued Time Series. Edited by Richard A. Davis, Scott H. Holan, Robert Lund and Nalini Ravishanker. Boca Raton: Chapman & Hall/CRC, chp. 2. pp. 29–49. [Google Scholar]
- Lu, Yang. 2018. Probabilistic Forecasting in Higher-Order INAR(p) Models. MPRA Paper 83682. Munich: University Library of Munich. [Google Scholar]
- McKenzie, Ed. 1986. Autoregressive moving-average processes with negative-binomial and geometric marginal distributions. Advances in Applied Probability 18: 679–705. [Google Scholar] [CrossRef]
- McKenzie, Ed. 1987. Innovation distributions for gamma and negative binomial autoregressions. Scandinavian Journal of Statistics 14: 79–85. [Google Scholar]
- Pedeli, Xanthi, Anthony C. Davison, and Konstantinos Fokianos. 2015. Likelihood estimation for the inar(p) model by saddlepoint approximation. Journal of the American Statistical Association 110: 1229–38. [Google Scholar] [CrossRef]
- Weiß, Christian H. 2018. An Introduction to Discrete-Valued Time Series. Hoboken: Wiley. [Google Scholar]
- Zhu, Rong, and Harry Joe. 2003. A new type of discrete self-decomposability and its application to continuous-time Markov processes for modeling count data time series. Stochastic Models 19: 235–54. [Google Scholar] [CrossRef]
- Zhu, Rong, and Harry Joe. 2010a. Count data time series models based on expectation thinning. Stochastic Models 26: 431–62. [Google Scholar] [CrossRef]
- Zhu, Rong, and Harry Joe. 2010b. Negative binomial time series models based on expectation thinning operators. Journal of Statistical Planning and Inference 140: 1874–88. [Google Scholar] [CrossRef]

**Table 1.**Simulation results for different parameter vectors that come from fits to the Ericcson data in Section 6.1. The likelihoods were coded in Fortran90 and the numerical optimization was done with a link to

`R using nlm`as the implementation of the quasi-Newton method. The simulation sample size was 500, and the timings were based on a PC with Intel Core i7-6770HQ processor at 2.6 GHz.

I1/NB, $p=2$, $n=500$, av = 0.85 min | |||||

parameter | ${\alpha}_{1}=0.27$ | ${\alpha}_{2}=0.15$ | $\theta =1.85$ | $\xi =3$ | |

bias | −0.001 | −0.003 | 0.06 | −0.02 | |

rmse | 0.035 | 0.037 | 0.34 | 0.38 | |

I1/NB, $p=2$, $n=2000$, av = 3.7 min | |||||

parameter | ${\alpha}_{1}=0.27$ | ${\alpha}_{2}=0.15$ | $\theta =1.85$ | $\xi =3$ | |

bias | 0.000 | −0.001 | 0.02 | −0.02 | |

rmse | 0.018 | 0.018 | 0.17 | 0.20 | |

I2/Po, $p=2$, $n=500$, av = 1.2 min | |||||

parameter | $\gamma =0.7$ | ${\alpha}_{1}=0.3$ | ${\alpha}_{2}=0.2$ | $\lambda =4.5$ | |

bias | 0.001 | 0.000 | −0.005 | 0.03 | |

rmse | 0.027 | 0.045 | 0.046 | 0.35 | |

I2/Po, $p=2$, $n=2000$, av = 5.0 min | |||||

parameter | $\gamma =0.7$ | ${\alpha}_{1}=0.3$ | ${\alpha}_{2}=0.2$ | $\lambda =4.5$ | |

bias | −0.001 | 0.000 | 0.000 | 0.01 | |

rmse | 0.013 | 0.022 | 0.022 | 0.17 | |

I2/Po, $p=3$, $n=500$, av = 2.9 min | |||||

parameter | $\gamma =0.64$ | ${\alpha}_{1}=0.27$ | ${\alpha}_{2}=0.14$ | ${\alpha}_{3}=0.20$ | $\lambda =4.5$ |

bias | 0.003 | −0.001 | −0.005 | −0.003 | 0.07 |

rmse | 0.030 | 0.045 | 0.049 | 0.043 | 0.46 |

I2/Po, $p=3$, $n=2000$, av = 12.2 min | |||||

parameter | $\gamma =0.64$ | ${\alpha}_{1}=0.27$ | ${\alpha}_{2}=0.14$ | ${\alpha}_{3}=0.20$ | $\lambda =4.5$ |

bias | 0.000 | −0.001 | −0.001 | −0.001 | 0.02 |

rmse | 0.014 | 0.022 | 0.024 | 0.022 | 0.23 |

**Table 2.**Ericsson transaction data: AIC values for (5) with three thinning operators and Poisson (Po) and negative binomial (NB) distributions for the innovation. When the autoregressive order reaches 7, there is no improvement in the log-likelihood and the last estimated ${\alpha}_{j}$ is close to 0. The AIC values are based on (10) with ${i}_{start}=8$. The AIC values for the best models for each of I1,I2,I3 are boldfaced. For $p=1$ and 2, the AIC values for I2/NB are 2694.6 and 2679.4 respectively, and for I3/NB they are 2690.5 and 2677.1 respectively. For larger p, there is enough conditional heterscedasticity from the thinning operators and NB innovations did not lead to improved AIC values over Poisson innovations.

p | I1/NB | I2/Po | I3/Po |
---|---|---|---|

1 | 2695.7 | 2702.9 | 2722.0 |

2 | 2682.5 | 2681.0 | 2686.0 |

3 | 2670.6 | 2663.9 | 2666.1 |

4 | 2662.7 | 2654.3 | 2654.9 |

5 | 2657.0 | 2648.1 | 2647.3 |

6 | 2651.9 | 2641.1 | 2639.5 |

7 | 2653.3 | 2642.6 | 2640.9 |

**Table 3.**Ericsson transaction data: CML parameter estimates and corresponding SEs for GINAR(6) with I1, I2 and I3 thinning; also model-based summary statistics, to compare with empirical.

Parameter | I1/NB | I2/Po | I3/Po | |
---|---|---|---|---|

$\widehat{\gamma}$ | 0.533 (0.036) | 2.321 (0.333) | ||

${\widehat{\alpha}}_{1}$ | 0.172 (0.037) | 0.187 (0.047) | 0.194 (0.047) | |

${\widehat{\alpha}}_{2}$ | 0.057 (0.037) | 0.068 (0.048) | 0.071 (0.047) | |

${\widehat{\alpha}}_{3}$ | 0.086 (0.036) | 0.109 (0.049) | 0.109 (0.047) | |

${\widehat{\alpha}}_{4}$ | 0.086 (0.037) | 0.116 (0.048) | 0.117 (0.047) | |

${\widehat{\alpha}}_{5}$ | 0.093 (0.038) | 0.104 (0.050) | 0.109 (0.047) | |

${\widehat{\alpha}}_{6}$ | 0.105 (0.038) | 0.142 (0.048) | 0.146 (0.047) | |

$\widehat{\vartheta}$ | 1.068 (0.125) | |||

$\widehat{\xi}$ | 3.717 (0.509) | |||

$\widehat{\lambda}$ | 2.704 (0.538) | 2.507 (0.531) | ||

Summary | I1/NB | I2/Po | I3/Po | Empirical |

${\widehat{\mu}}_{Y}$ | 9.879 | 9.889 | 9.892 | 9.909 |

${\widehat{\sigma}}_{Y}^{2}$ | 27.460 | 30.070 | 31.707 | 32.837 |

${\widehat{\rho}}_{1}$ | 0.257 | 0.350 | 0.374 | 0.405 |

${\widehat{\rho}}_{2}$ | 0.176 | 0.278 | 0.302 | 0.340 |

${\widehat{\rho}}_{3}$ | 0.189 | 0.297 | 0.317 | 0.372 |

${\widehat{\rho}}_{4}$ | 0.193 | 0.305 | 0.326 | 0.377 |

${\widehat{\rho}}_{5}$ | 0.201 | 0.302 | 0.326 | 0.358 |

${\widehat{\rho}}_{6}$ | 0.205 | 0.321 | 0.343 | 0.352 |

${\widehat{\rho}}_{7}$ | 0.123 | 0.227 | 0.250 | 0.298 |

**Table 4.**Meningococcal disease data: AIC values for (5) with three thinning operators and Poisson (Po) and negative binomial (NB) distributions for the innovation. The AIC values are based on (10) with ${i}_{start}=5$. The AIC values of the best models for each of I1,I2,I3 are boldfaced. The covariates are ${x}_{t1}=sin(2\pi t/52)$ and ${x}_{t2}=cos(2\pi t/52)$.

No Covariates | Covariates ${\mathit{x}}_{\mathit{t}1},{\mathit{x}}_{\mathit{t}2}$ | |||||
---|---|---|---|---|---|---|

p | I1/NB | I2/Po | I3/Po | I1/NB | I2/Po | I3/Po |

1 | 1766.5 | 1754.8 | 1758.5 | 1689.3 | 1684.8 | 1683.9 |

2 | 1738.5 | 1731.2 | 1730.0 | 1686.0 | 1681.5 | 1681.9 |

3 | 1726.6 | 1723.2 | 1721.6 | 1684.5 | 1683.5 | 1682.3 |

4 | 1728.7 | 1725.2 | 1723.6 | 1686.6 | 1685.9 | 1684.7 |

© 2019 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).