# On Goodness-of-fit Testing for Ergodic Diffusion Process with Shift Parameter

## Abstract

A problem of goodness-of-fit test for ergodic diffusion processes is presented. In the null hypothesis the drift of the diffusion is supposed to be in a parametric form with unknown shift parameter. Two Cramer-Von Mises type test statistics are studied. The first one is based on local time estimator of the invariant density, the second one is based on the empirical distribution function. The unknown parameter is estimated via the maximum likelihood estimator. It is shown that both the limit distributions of the two test statistics do not depend on the unknown parameter, so the distributions of the tests are asymptotically parameter free. Some considerations on the consistency of the proposed tests and some simulation studies are also given.

Keywords: Ergodic diffusion process, goodness-of-fit test, Cramer-Von Mises type test.

## 1 Introduction

We consider the problem of goodness of fit test for the model of ergodic diffusion process when this process under the null hypothesis belongs to a given parametric family. We study the Cramer-von Mises type statistics in two different cases. The first one is based on local time estimator and the second one is based on empirical distribution function estimator. We show that the Cramer-von Mises type statistics converge in both cases to some limits which do not depend on the unknown parameter, so the test is asymptotically parameter free (APF).

Let us remind the similar statement of the problem in the well known case of the observations of independent identically distributed random variables . Suppose that the distribution of under hypothesis is , where is some unknown parameter. Then the Cramer-von Mises type test is

where the statistic under hypothesis converges in distribution to a random variable which does not depend on . Therefore the threshold can calculated as solution of the equation

The details concerning this result can be found in Darling [3]. For more general problems see the works of Kac, Kiefer & Wolfowitz [8], Durbin [4] or Martynov [12], [13].

A similar problem exists for the continuous time stochastic processes, which are widely used as mathematic models in many fields. The goodness of fit tests (GoF) are studied by many authors. For example Kutoyants [9] discusses some possibilities of the construction of such tests. In particular, he considers the Kolmogorov-Smirnov statistics and the Cramer-von Mises Statistics based on the continuous observation. Note that the Kolmogorov-Smirnov statistics for ergodic diffusion process was studied in Fournie [6] and in Fournie and Kutoyants [7]. However, due to the structure of the covariance of the limit process, the Kolmogorov-Smirnov statistics is not asymptotically distribution free in diffusion process models. More recently Kutoyants [10] has proposed a modification of the Kolmogorov-Smirnov statistics for diffusion models that became asymptotically distribution free. See also Dachian and Kutoyants [2] where they propose some GoF tests for diffusion and inhomogeneous Poisson processes with simple basic hypothesis. It was shown that these tests are asymptotically distribution free. In the case of Ornstein-Uhlenbeck process Kutoyants showed that the Cramer-von Mizes type tests are asymptotically parameter free [11]. Another test was studied by Negri and Nishiyama [15].

## 2 Main Results

Suppose that we observe an ergodic diffusion process, solution to the following stochastic differential equation

(2.1) |

We want to test the following null hypothesis

where is some known function and the shift parameter is unknown. We suppose that . Let us introduce the family

The alternative is defined as

where .

We suppose that the trend coefficients of the observed diffusion process under both hypotheses satisfy the conditions:

. The function is locally bounded and for some ,

and

. The function satisfies

(2.2) |

Remind that under the condition , the equation (2.1) has a unique weak solution (See [5]). Moreover under the condition , the diffusion process is recurrent and its invariant density under hypothesis can be given explicitly (See [9], Theorem 1.16):

Denote by a random variable (r.v.) having this density and the corresponding mathematic expectation by . To simplify the notations, for the case , we denote the density function as , and the corresponding distribution function as ; correspondingly the r.v. is , and the mathematical expectation is . Denote as the class of functions having polynomial majorants i.e.

with some . Let the derivative of w.r.t. .

Let us fix some , and denote by the class of tests of asymptotic size , i.e.

Our object is to construct this kind of tests.

To verify the hypothesis , we propose two tests. The first one is based on the local time estimator (LTE) of the invariant density, which can be written as

The unknown parameter is estimated via the maximum likelihood estimator (MLE) , which is defined as the solution of the equation

where is the log-likelihood ratio

We give the following regularity conditions to have
the consistency and the asymptotical normality of the MLE:

Condition .

. The function is continuously differentiable, the derivative and is uniformly continuous in the following sense:

. The Fisher information

(2.3) |

Moreover, for any

Denote the statistic based on the LTE as follows

we will prove that under hypothesis , it converges in distribution to

(2.4) |

with , , where and are independent Wiener processes. The Cramer-von Mises type test is defined as

where is the quantile of the distribution of , that is the solution of the following equation

(2.5) |

The main result for the Cramer von Mises test based on local time estimator is the following:

###### Theorem 2.1.

Let the conditions , and be fulfilled, then the test belongs to .

The theorem is proved in Section 3.

Note that neither nor depends on the unknown
parameter. This allows us to conclude that the test is APF.

The second test is based on the same MLE and the empirical distribution function (EDF):

The corresponding statistic is

which converges in distribution to

(2.6) |

Thus we propose the Cramer-von Mises type test

where is the solution of the equation

(2.7) |

The main result for the Cramer von Mises test based on empirical distribution function estimator is the following:

###### Theorem 2.2.

Under conditions , and , the test belongs to .

The theorem is proved In Section 4.

## 3 Proof of Theorem 2.1

In this section, we study the test , where

Under the basic hypothesis , the density of the invariant law can be presented as follows:

Note that the distribution function of the process satisfies

In addition, for any integrable function ,

(3.1) | |||||

Note that the Fisher information in our case does not depend on the unknown parameter :

where is the true value of the unknown parameter.

From the condition , it follows that there exist some constants and such that for all ,

(3.2) |

It can be shown that for ,

Similar result can be deduced for , so we have

(3.3) |

Let the conditions and be fulfilled, then the MLE is consistent, i.e., for any ,

it is asymptotically normal

(3.4) |

and the moments converge i.e., for

where . The proof can be found in [9],Theorem 2.8. We can define

and denoted , the asymptotical normality (3.4) can be written as

(3.5) |

We define . In [9] Theorem 4.11, we can find the following representation

(3.6) | |||||

Let us put

Then can be written as

(3.7) | |||||

We can state

###### Lemma 3.1.

Let the condition be fulfilled, then

Proof. Applying the estimate (3.3), for ,

Further,

moreover

and finally

Then we have

(3.8) |

Similar estimate can be obtained for , therefore the result holds for . We obtain finally

This result yields directly the conditions of Theorem 4.11 in [9]:

and

So we can deduce the convergence and the asymptotical normality of . In fact under the condition , the LTE is consistent and asymptotically normal, that is

where , and

Moreover

We can define

The distribution of is , and we have the following convergence

(3.9) |

###### Lemma 3.2.

Let conditions and be fulfilled, then is asymptotically normal:

for any .

Proof. The first integral in (3.7) converges to zero, so we only need to verify the convergence for the part of Itô integral. Let us denote for simplicity

It is sufficient to verify that for any ,

(3.10) |

Remember that can be defined as follows,

(3.11) |

where

Here and . It was proved in [9], Theorem 2.8 that converges in distribution to , where

where is a r.v. with normal distribution , which can be written as

Therefore

Take . We have to verify that the joint finite-dimensional distribution of

converges to the finite-dimensional distribution of

Note that the only stochastic term in is , so (3.10) is equivalent to

(3.12) |

Take , and put

We have

The law of large number gives us

Moreover, the central limit theorem for stochastic integral gives us

In addition is a zero mean normal r.v. with variance

Furthermore

and

We find that

This is as to say