1 Introduction

In mathematical modeling of epidemic the discrete approach is becoming more popular. In most cases, discrete models are built from their continuous counterparts. A discretization can be done for the example with the use of the explicit Euler method (EEM), which is one of the simplest methods. The exemplary epidemic model considering the EEM can be found in [6]. However, applying the EEM can cause dynamical inconsistency of a discrete system with its continuous analogue. Furthermore, negativity of solutions of the discrete system can appear, what is not proper in epidemiological modeling. To avoid these problems, the non-discretization method (NSDM) can be applied. This method is introduced and discussed in [7]. Discrete models build with the NSDM are dynamically consistent with their continuous analogues [1]. There are different ways of creating non-standard discretized models. What is important, using some of non–standard discretization methods can still result in the negativity of solutions of the discretized systems. To ensure that the solutions are always positive, one can apply the strictly positive scheme (SPS), which is a version of the NSDM. Applying this scheme makes the forms of equations more complicated comparing to other schemes. For this reason the SPS is not popular in mathematical modeling. The aim of this paper is to fill the gap in this issue.

Here we introduce a SIS (susceptible–infected–susceptible) discrete model build on the SPS. This model is obtained on the ground of its continuous counterpart. We focus on stability analysis of stationary states appearing in the system. We investigate local stability of these states and global stability of the stationary state for which there is no infection in the population. Our work is a continuation of work presented in [3, 4] and [5], where we introduced the continuous model and its discrete versions built on the EEM and the NSDM.

This paper is organized as it follows. In Sect. 2 we present the continuous model and its discrete counterparts built on the EEM and the NSDM. The model built on the SPS is introduced in Sect. 3. There we include a mathematical analysis of this model. Section 4 presents numerical simulations, which complement theoretical results. In Sect. 5 we discuss our results.

Here we assume that \({\mathbb {N}}\) is the set of all natural numbers including zero and \({\mathbb {N}}_+:= {\mathbb {N}} \setminus \{ 0 \}\).

2 A continuous model and its discrete counterparts

Firstly we remind the continuous model which was introduced and analyzed in [3]. This model corresponds to dynamics of epidemics in a homogeneous population consisting of susceptible (S) and infected (I) people. The mass–action law was used for proposing an illness transmission function. The analyzed system has the form:

$$\begin{aligned} \begin{aligned} {\dot{S}}&= C -\beta SI + \gamma I - \mu S,\\ {\dot{I}}&= \beta SI - (\gamma + \alpha + \mu ) I. \end{aligned} \end{aligned}$$
(1)

The over dot stands for the time derivation w/time and the follow his entries. A parameter C is a constant inflow into the population, \(\beta\) stands for a transmission coefficient, \(\gamma\) is a recovery rate, \(\mu\) corresponds to a natural death and \(\alpha\) reflects a disease-related death. Every parameter is positive and fixed. Observe that C is a magnitude corresponding to a density of individuals and \(\mu\) is a ratio for which we have \(0< \mu <1\). Hence it is reasonable to assume that

$$\begin{aligned} C \gg \mu . \end{aligned}$$
(2)

Thanks to a substitution:

$$\begin{aligned} \tau = \gamma t, \quad x = \beta S, \quad y = \beta I, \end{aligned}$$

we reduced the number of parameters in system (1) obtaining

$$\begin{aligned} \begin{aligned} x'&= C - x y + y - \mu x,\\ y'&= x y - k y, \end{aligned} \end{aligned}$$
(3)

where \(k=\alpha +\mu +1>1\) and C is scaled.

Now we recall the basic properties of system (3). Existence, uniqueness and positiveness of solutions of system (3) for positive initial conditions are derived from the form of the right–hand side of the system. The basic reproduction number \({\mathcal {R}}_0\) related to the system is defined as

$$\begin{aligned} {\mathcal {R}}_0 = \frac{C}{\mu k}. \end{aligned}$$
(4)

We will refer to this value later.

System (3) has two stationary states:

  • always existing disease-free: \(E_d=(x_d,y_d)= \left( \tfrac{C}{\mu }, 0 \right)\),

  • endemic: \(E_e = (x_e, y_e) = \left( k, \tfrac{C - \mu k}{k-1} \right)\) existing for \(C>\mu k\) (that is for \({\mathcal {R}}_0>1\)).

If \(\frac{C}{\mu }<k\), then \(E_d\) is locally stable. For \(\frac{C}{\mu }>k\) (i.e., when \(E_e\) exists) \(E_d\) is a saddle point. The state \(E_e\) is always locally stable under its existence. Furthermore, the Poincaré–Bendixson theorem [8] implies global stability – either \(E_d\) is globally stable whenever \(E_e\) does not exist, or \(E_e\) is globally stable whenever exists.

Now we recall the discrete version of system (3) for which the EEM was used. The paper [4] dealt with analysis of this model. Let \(n \in {\mathbb {N}}\) be an n-th node in a discrete timescale. The analyzed system has the form:

$$\begin{aligned} x_{n+1}&= x_n + h \left( C - x_n y_n + y_n - \mu x_n \right) , \end{aligned}$$
(5a)
$$\begin{aligned} y_{n+1}&= y_n +h \left( x_n y_n - k y_n \right) , \end{aligned}$$
(5b)

where h means a step size of the discretization method. Observe that because of the terms \(-\mu x_n\) and \(- x_n y_n\) in eq (5a) and the term \(- k y_n\) in eq (5b), positivity of the system can be violated.

In order to eliminate this nuance, in [5] we introduced the discrete model built on the NSDM. The term \(- x_n y_n\) was replaced with an expression \(- x_{n+1} y_n\). The modified system has the form

$$\begin{aligned} x_{n+1}&= x_n + h \left( C - x_{n+1} y_n + y_n - \mu x_n \right) , \end{aligned}$$
(6a)
$$\begin{aligned} y_{n+1}&= y_n +h \left( x_n y_n - k y_n \right) = y_n ( 1+h(x_n-k)). \end{aligned}$$
(6b)

The above system can be rewritten as

$$\begin{aligned} x_{n+1}&= \frac{x_n(1-h \mu ) + hC + hy_n}{1+hy_n}, \end{aligned}$$
(7a)
$$\begin{aligned} y_{n+1}&= y_n ( 1+h(x_n-k)). \end{aligned}$$
(7b)

Analysis of this system can be found in [5]. In system (7) the x and y variables are positive if \(h<\tfrac{1}{\mu }\) and \(h<\tfrac{1}{k}\), respectively.

3 A discrete model with the use of the SPS

Observe that applying the NSDM in system (7) allowed to preserve the positivity of the variables in a better way comparing to using the EEM for system (5). However, the positivity is still not unconditional, what is not expected in epidemiological models. The variables can be negative if the step size is sufficiently large. Even for \(h=1\) the variables can be negative. Hence there arises a need of proposing a system which is a discrete version of the continuous system (3) preserving the positivity of the variables as in the continuous case.

Let us discretize system (3) with the use of the SPS. In Eq. (6a) we replace the term \(- \mu x_n\) with an expression \(- \mu x_{n+1}\) and in eq (6b) we change \(- k y_n\) into \(- k y_{n+1}\). We obtain a following system

$$\begin{aligned} \begin{aligned} x_{n+1}&= x_n + h \left( C - x_{n+1} y_n + y_n - \mu x_{n+1} \right) ,\\ y_{n+1}&= y_n +h \left( x_n y_n - k y_{n+1} \right) . \end{aligned} \end{aligned}$$
(8)

This system can be rewritten as

$$\begin{aligned} x_{n+1}&= \frac{x_n + hC + hy_n}{1+h ( y_n+ \mu ) },\end{aligned}$$
(9a)
$$\begin{aligned} y_{n+1}&= \frac{y_n(1+h x_n)}{1+hk}. \end{aligned}$$
(9b)

3.1 Basic properties

Firstly we present basic properties of system (9). Following the approach from [2], we compute \({\mathcal {R}}_0\) for system (9) and obtained (4). From the form of the right–hand side of system (9) we get the positivity of its solutions for any positive initial condition. More generally we write that if

  • \(x_0>0\) and \(y_0=0\), then \(x_n>0\) and \(y_n \equiv 0\) for \(n \in {\mathbb {N}}_+\),

  • \(x_0 \ge 0\) and \(y_0>0\), then \(x_n, y_n>0\) for \(n \in {\mathbb {N}}_+\),

  • \(x_0=y_0=0\), then \(x_n \equiv \tfrac{hC}{1+h \mu }\) and \(y_n \equiv 0\) for \(n \in {\mathbb {N}}_+\).

Now we assess the values of the variables of system (9). As it was shown in [3,4,5], the desired upper bound of the x variable is \(\tfrac{C}{\mu }\). Hence we investigate the inequality \(x_{n+1} \le \tfrac{C}{\mu }\), from which we have

$$\begin{aligned} \frac{x_n + hC + hy_n}{1+h ( y_n+ \mu ) } \le \frac{C}{\mu }, \end{aligned}$$

and

$$\begin{aligned} h y_n (\mu - C) < C - \mu x_n. \end{aligned}$$
(10)

The left–hand side of Ineq. (10) is negative because of (2). The right–hand side of Ineq. (10) is non–negative if \(x_n \le \tfrac{C}{\mu }\). We conclude that

Corollary 1

If \(x_0 \le \tfrac{C}{\mu }\), then for system (9) we have \(x_n \le \tfrac{C}{\mu }\) for any \(n \in {\mathbb {N}}_+\).

See that if \(x_0 \le \tfrac{C}{\mu }\), then using Cor. 1 for Ineq. (9b) gives

$$\begin{aligned} y_{n+1} \le \frac{y_n \left( 1+h \left( \frac{C}{\mu } \right) \right) }{1+hk} = y_0 \left( \frac{1+h \frac{C}{\mu }}{1+hk} \right) ^{n+1}. \end{aligned}$$
(11)

Let us introduce a new variable

$$\begin{aligned} w_n:= x_n + y_n, \end{aligned}$$

which means a size of the whole population for the n-th point. Now we formulate a lemma stating about the upper bound of the whole population.

Proposition 2

If

$$\begin{aligned} x_n \le x_{n+1}, \quad y_n \le y_{n+1}, \quad n \in {\mathbb {N}}, \end{aligned}$$
(12)

then

$$\begin{aligned} w_n \le w_0 + \frac{C}{\mu } \end{aligned}$$
(13)

for every \(n \in {\mathbb {N}}_+\).

Proof

Adding by sides the equations from system (8) gives

$$\begin{aligned} \begin{aligned} w_{n+1}&= w_n + h \left( C + ( x_n - x_{n+1}) y_n + y_n - y_{n+1} - \mu w_{n+1} - \alpha y_{n+1} \right) . \end{aligned} \end{aligned}$$
(14)

Using (12) we estimate (14) so that

$$\begin{aligned} w_{n+1} \le w_n + h \left( C - \mu w_{n+1} - \alpha y_{n+1} \right) , \end{aligned}$$

what yields

$$\begin{aligned} w_{n+1} \le w_n + h \left( C - \mu w_{n+1} \right) \end{aligned}$$

and

$$\begin{aligned} w_{n+1} \le \frac{w_n + h C }{1 + h \mu }. \end{aligned}$$

Solving the above inequality gives

$$\begin{aligned} w_n \le \frac{C}{\mu } + \left( w_0 - \frac{C}{\mu } \right) \left( \frac{1}{1 + h \mu } \right) ^n, \end{aligned}$$
(15)

what implies (13). \(\square\)

Observe that if in Prop. (2) we include an additional assumption \(w_0 \le \tfrac{C}{\mu }\), then Ineq. (13) can be replaced with an inequality \(w_n \le \frac{C}{\mu }\).

3.2 Stationary states

Here we investigate the stability of the stationary states of system (9). Obviously their forms are the same as the forms of the stationary states of system (3).

3.2.1 Local stability

Let us express the conditions for local stability of the stationary states.

Theorem 3

In system (9) the state \(E_d\) is locally stable for \(R_0<1\) and unstable for \(R_0>1\).

Proof

The Jacobian matrix of system (9) has the form

$$\begin{aligned} M(x,y):= \left( \begin{array}{cc} \frac{1}{1 + h (y_n + \mu )} &{} \frac{h^2( \mu -C)+h(1-x_n)}{(1+h (y_n+\mu ))^2} \\ \frac{h y_n}{1+hk} &{} \frac{1 + h x_n}{1+hk} \end{array}\right) . \end{aligned}$$

For \(E_d\) this matrix reads

$$\begin{aligned} M(E_d) = \left( \begin{array}{cc} \frac{1}{1 + h \mu } &{} \frac{ h^2 (\mu - C) +h(1-\frac{C}{\mu })}{(1+h \mu )^2} \\ 0 &{} \frac{1 + h \frac{C}{\mu }}{1+hk} \end{array}\right) . \end{aligned}$$

The eigenvalues of \(M(E_d)\) equal

$$\begin{aligned} \lambda _1=\frac{1}{1 + h \mu }, \quad \lambda _2=\frac{1 + h \frac{C}{\mu }}{1+hk}. \end{aligned}$$

Conditions for the \(E_d\) local stability are \(\vert \lambda _i \vert <1\), \(i=1,2\). See that we always have \(0<\lambda _1<1\) and \(-1<\lambda _2\). The inequality \(\lambda _2 <1\) is true for \(\frac{C}{\mu }<k\), what is equivalent to \({\mathcal {R}}_0<1\). The last inequality is the condition for the \(E_d\) local stability. \(\square\)

Now let us investigate the \(E_e\) local stability. We formulate the following theorem

Theorem 4

In system (9) the state \(E_e\) is always locally stable if it exists.

Proof

The matrix \(M(E_e)\) has the form

$$\begin{aligned} M(E_e) = \left( \begin{array}{cc} \frac{1}{1 + h (y_e + \mu )} &{} \frac{h^2(\mu -C)+h(1-k)}{(1+h (y_e+\mu ))^2} \\ \frac{h y_e}{1+hk} &{} 1 \end{array}\right) . \end{aligned}$$
(16)

Let us define

$$\begin{aligned} y_e^*:= y_e + \mu = \frac{C- \mu k}{\alpha + \mu } + \mu = \frac{C- \mu k + \mu (\alpha + \mu )}{\alpha + \mu } = \frac{C- \mu }{\alpha + \mu }. \end{aligned}$$
(17)

The characteristic polynomial of \(M(E_e)\) reads

$$\begin{aligned} P (\lambda ):= \lambda ^2 - \left( 1 + \frac{1}{1+h y_e^*} \right) \lambda + \frac{1}{1+h y_e^*} + \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2}. \end{aligned}$$

Let us rewrite the polynomial as \(P (\lambda ) = \lambda ^2 + b \lambda + c\). See that \(b<0\) and \(c>0\) (the second inequality is true from (2)).

Let \(\Delta\) be a discriminant of \(P(\lambda )\). After computations we obtained that discriminator \(\Delta\) can be positive or negative (and naturally equal to zero – we will omit this case because it is not generic). However, a form of a condition determining a sign of \(\Delta\) is not needed in the context of the theorem thesis.

\(\bullet\) Let us assume that \(\Delta > 0\). For this case the eigenvalues of \(M(E_e)\) are real and equal to \(\lambda _{1,2} = \tfrac{- b \pm \sqrt{ b^2-4c}}{2}\). Sufficient conditions for \(E_e\) stability are \(\lambda _1<1\) and \(\lambda _2>-1\). From the first inequality we get \(-b + \sqrt{b^2-4 c} < 2\), giving

$$\begin{aligned} 0 < \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2}. \end{aligned}$$

The last inequality is always true and so does the condition \(\lambda _1<1\).

The inequality \(\lambda _2>-1\) can be written as \(-2 < -b - \sqrt{b^2-4 c},\) leading to

$$\begin{aligned} 0 < 8 + \frac{8}{1+h y_e^*} + 4 \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2}. \end{aligned}$$

The above inequality is always true, so we get an unconditional fulfillment of \(\lambda _2>-1\).

\(\bullet\) Now assume that \(\Delta <0\). The eigenvalues of \(M(E_e)\) are complex with non-zero imaginary part and equal to \(\lambda _{1,2} = \tfrac{- b \pm i \sqrt{ 4c-b^2}}{2}\), where i is an imaginary unit. The condition \(\lambda _1 \lambda _2 = \vert \lambda \vert = 1\) guaranties the local stability of \(E_e\). See that

$$\begin{aligned} \vert \lambda \vert = \left( \frac{b}{2} \right) ^2 + \frac{4c-b^2}{4} = \frac{4c}{4} = c. \end{aligned}$$

Hence it is enough to check the inequality \(c<1\), which can be written as

$$\begin{aligned}{} & {} \frac{1}{1+h y_e^*} + \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2}< 1, \\{} & {} 1+h y_e^* + \frac{h^2 y_e}{1+hk} \left( (\alpha +\mu ) + h(C- \mu ) \right)< \left( 1+h y_e^* \right) ^2, \\{} & {} \frac{h^2 y_e}{1+hk} \left( (\alpha +\mu ) + h(C- \mu ) \right)< h y_e^* + \left( h y_e^* \right) ^2, \\{} & {} \frac{h y_e}{1+hk} \left( (\alpha +\mu ) + h(C- \mu ) \right) < y_e^* + h \left( y_e^* \right) ^2. \end{aligned}$$

Using (17), we write

$$\begin{aligned}{} & {} \frac{h y_e}{1+hk} \left( (\alpha +\mu ) + h y_e^* (\alpha + \mu ) \right)< y_e^* + h \left( y_e^* \right) ^2, \\{} & {} \frac{h y_e (\alpha +\mu ) }{1+hk} \left( 1 + h y_e^* \right)< y_e^* \left( 1 + h y_e^* \right) , \\{} & {} \frac{h y_e (\alpha +\mu ) }{1+hk}< y_e^*, \\{} & {} \frac{h (\alpha +\mu ) }{1+hk}< \frac{y_e^*}{y_e}, \\{} & {} \frac{h (\alpha +\mu ) }{1+hk} < \frac{ \frac{C-\mu }{\alpha +\mu } }{ \frac{C-\mu k}{\alpha +\mu } } \end{aligned}$$

and

$$\begin{aligned} \frac{h (\alpha +\mu ) }{1+hk} < \frac{ C-\mu }{C-\mu k }, \end{aligned}$$
(18)

From the meaning of variables we have

$$\begin{aligned} \frac{ C-\mu }{C-\mu k }>1. \end{aligned}$$
(19)

The condition \(k>1\) yields

$$\begin{aligned} \frac{h (\alpha +\mu ) }{1+hk} < \frac{h (\alpha +\mu ) }{1+h}. \end{aligned}$$
(20)

Meaning of the parameter gives \(\alpha +\mu <1\) and

$$\begin{aligned} \frac{h (\alpha +\mu ) }{1+h}< \frac{h}{1+h} <1. \end{aligned}$$

The above inequality with (20) implies

$$\begin{aligned} \frac{h (\alpha +\mu ) }{1+hk} < 1. \end{aligned}$$

If we consider the last inequality and Ineq. (19) together, then we have a fulfillment of (20). We again obtained the unconditional \(E_e\) local stability. \(\square\)

3.2.2 Global stability of \(E_d\)

Now let us focus on the global stability of the state \(E_d\).

Theorem 5

If for system (9) we have \({\mathcal {R}}_0<1\) and \(x_0 \le \tfrac{C}{\mu }\), then \(E_d\) is globally stable.

Proof

From \(x_0 \le \tfrac{C}{\mu }\) we obtain Cor. 1 and Ineq. (11). The condition \({\mathcal {R}}_0<1\) yields

$$\begin{aligned} \lim \limits _{n \rightarrow \infty } y_n = 0. \end{aligned}$$
(21)

Now we assess the x variable. From eq (9a) we get

$$\begin{aligned} x_{n+1} \le \frac{x_n + hC + hy_n}{1+h \mu }. \end{aligned}$$
(22)

Let us take \(\varepsilon >0\). From (21) we state that

$$\begin{aligned} \forall \varepsilon _1>0 \quad \exists N_1 \in {\mathbb {N}} \quad \forall n > N_1 \quad y_n < \varepsilon _1. \end{aligned}$$
(23)

Combining Ineqs. (22) and (23) yields

$$\begin{aligned} x_{n+1} < \frac{x_n + hC + h \varepsilon _1 }{1+h \mu }. \end{aligned}$$
(24)

The solution of the above inequality is

$$\begin{aligned} x_n < \frac{C + \varepsilon _1}{\mu } + \left( x_0 - \frac{C + \varepsilon _1}{\mu } \right) \left( \frac{1}{1 + h \mu } \right) ^n. \end{aligned}$$

Since

$$\begin{aligned} \lim _{n \rightarrow \infty } \left( x_0 - \frac{C + \varepsilon _1}{\mu } \right) \left( \frac{1}{1 + h \mu } \right) ^n = 0, \end{aligned}$$

we can choose sufficiently large \(n (>N_1)\) and we obtain

$$\begin{aligned} x_n < \frac{C }{\mu } + \varepsilon . \end{aligned}$$
(25)

Eq. (9a) can be assessed also in a way

$$\begin{aligned} x_{n+1} \ge \frac{x_n + hC }{1+h ( y_n+ \mu ) }. \end{aligned}$$
(26)

From (21) for sufficiently large n we have

$$\begin{aligned} \frac{1}{y_n}> \frac{1}{\varepsilon _1}, \quad \frac{1}{1+h ( y_n+ \mu )} > \frac{1}{1+h ( \varepsilon _1+ \mu )} \end{aligned}$$
(27)

and

$$\begin{aligned} x_{n+1} > \frac{x_n + hC }{1+h ( \varepsilon _1 + \mu ) }, \end{aligned}$$

what gives

$$\begin{aligned} x_n > \frac{C}{\varepsilon _1 + \mu } + \left( x_0 - \frac{C}{\varepsilon _1 + \mu } \right) \left( \frac{1}{1+h ( \varepsilon _1 + \mu ) } \right) ^n. \end{aligned}$$

For sufficiently large n we obtain

$$\begin{aligned} x_n > \frac{C}{\mu } - \varepsilon . \end{aligned}$$
(28)

Combining (25) and (28), for sufficiently large n we have

$$\begin{aligned} \Bigg \vert x_n - \frac{C}{\mu } \Bigg \vert < \varepsilon \end{aligned}$$

giving

$$\begin{aligned} \lim _{n \rightarrow \infty } x_n = \frac{C}{\mu }. \end{aligned}$$

and we reach the global stability of \(E_d\). \(\square\)

3.2.3 Possibility of a bifurcation

Let us check if there is a possibility of a bifurcation appearance in system (9). Remind that for the matrix \(M(E_d)\) the condition \(0<\lambda _1<1\) always holds. Observe that we have \(\lambda _2=1\) for \({\mathcal {R}}_0=1\) and then the bifurcation can occur.

Now look on the polynomial \(P (\lambda )\) for the matrix \(M(E_e)\). We get

$$\begin{aligned} P(1) = \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2} > 0 \end{aligned}$$

and

$$\begin{aligned} P (-1) = 2 + \frac{2}{1+h y_e^*} + \frac{h^2 y_e}{1+hk} \cdot \frac{(\alpha +\mu ) + h(C- \mu )}{(1+h y_e^*)^2} > 0. \end{aligned}$$

Remind that the eigenvalues of the matrix \(M(E_e)\) are real. Hence we state that \(-1\) and 1 cannot be the eigenvalues of \(M(E_e)\). We conclude that there is no bifurcation for the state \(E_e\).

4 Numerical simulations

In this section we present numerical simulations related to dynamics of system (9). We chose \((x_0,y_0) = (0.5, 0.2)\) as the initial condition and \(h=1\), \(\mu _1=0.1\), \(\alpha =0.2\) as the values of the parameters.

4.1 Stability of the stationary states

Here we illustrate the stability of the stationary states of system (9). Figures 1 and 2 show the dynamics of the system when \({\mathcal {R}}_0<1\) and \({\mathcal {R}}_0>1\), respectively. These figures demonstrate the global stability of the \(E_d\) state and the local stability of the \(E_e\) state analogically. For each case \({\mathcal {R}}_0<1\) and \({\mathcal {R}}_0>1\) the values \(C=0.05\) and \(C=0.25\) were taken, respectively. In each figure first 70 iterations of system (9) were presented.

Fig. 1
figure 1

The next iterations of system (9) for the case \({\mathcal {R}}_0<1\). The iterations for the x and the y variables are depicted with analogically blue and red points

Fig. 2
figure 2

The next iterations of system (9) for the case \({\mathcal {R}}_0>1\). The iterations for the x and the y variables are depicted with analogically blue and red points

4.2 Appearance of the bifurcation

Now we depict the occurrence of the bifurcation in system (9) for the case \({\mathcal {R}}_0=1\). In Figs. 3 and 4 bifurcation diagrams for the x and y variables are presented. We chose C as the bifurcation parameter. The figures show last ten iterations from initial thousand iterations for values of the x and the y variable, respectively. The values of these last iterations are nearly the same. Hence we observe only one point for each value of C. Observe that for \(C=0.3\) (i.e. \({\mathcal {R}}_0=1\)) the state \(E_d\) bifurcates into the state \(E_e\).

Fig. 3
figure 3

A bifurcation diagram for the x variable of system (9)

Fig. 4
figure 4

A bifurcation diagram for the y variable of system (9)

5 Conclusions

In this paper we introduced and analyzed the strictly positive discretized system of epidemic dynamics. The illness is spread in the population in which we determine two groups: susceptible (healthy) and infected individuals. The global stability of the disease–free stationary state \(E_d\) and the local stability of the endemic stationary state \(E_e\) were proved. The results are expressed in the terms of the basic reproduction number \({\mathcal {R}}_0\) of the system.

The conditions obtained for the stability of the stationary states of system (9) are the same as the analogical ones in the case of continuous system (3). What is important, they do not depend on the step size of the discretization method h. In our papers [4] and [5] we proved that in systems (5) and (7) conditions for the \(E_e\) local stability depend on the step size. Hence we state that system (9) approximates its continuous analog in a better way than systems (5) and (7). We finally conclude that applying the SPS is more suitable for modeling the epidemic dynamics comparing to the EEM and the NSDM.