**Chapter-3**

**Methodology**

In the application of regression analysis, often the data set consist of unusual observations which are either outliers (noise) or influential observations. These observations may have large residuals and affect the parameters of the regression co-efficient and the whole regression analysis and become the source of misleading results and interpretations. Therefore it is very important to consider these suspected observations very carefully and made a decision that either these observations should be included or removed from the analysis.

In regression analysis, the basic step is to determine whether one or more observations can influence the results and interpretations of the analysis. If the regression analysis have one independent variable, then it is easy to detect observations in dependent and independent variables by using scatter plot, box plot and residual plot etc. But graphical method to identify outlier and/or influential observation is a subjective approach. It is also well known that in the presence of multiple outliers there can be a masking or swamping effect. Masking (false negative) occurs when an outlying subset remains undetected due the presence of another, usually adjacent subset. Swamping (false positive) occurs when usual observation is incorrectly identified as outlier in the presence of another usually remote subset of observations.

In the present study, some well known diagnostics are compared to identify multiple influential observations. For this purpose, first, robust regression methods are used to identify influential observation in Poisson regression, then to conform that the observations identified by robust regression method are genuine influential observations, some diagnostic measures based on single case deletion approach like Pearson chi-square, deviance residual, hat matrix, likelihood residual test, cook’s distance, difference of fits, squared difference in beta are considered but in the presence of masking and swamping diagnostics based on single case deletion fail to identify outlier and influential observations. Therefore to remove or minimize the masking and swamping phenomena some group deletion approaches; generalized standardized Pearson residual, generalized difference of fits, generalized squared difference in beta are taken.

**3.2 Diagnostic measures based on single case deletion**

This section presents the detail of single case deleted measures which are used to identify multiple influential observations in Poisson regression model. These measures are change in Pearson chi-square, change in deviance, hat matrix, likelihood residual test, cook’s distance, difference of fits (DFFITS),squared difference in beta(SDBETA).

**Pearson chi-square**

To show the amount of change in Poisson regression estimates that would occurred if the *k** ^{th}* observation is deleted, Pearson χ

^{2}statistic is proposed to detect the outlier. Such diagnostic statistics are one that examine the effected of deleting single case on the overall summary measures of fit.

Let denotes the Pearson χ^{2} and denotes the statistic after the case *k* is deleted. Using one-step linear approximations given by Pregibon (1981). The decrease in the value of statistics due to deletion of the *k** ^{th}* case is

Δ = Ë-_{ , k=1,2,3,…..,n }_{3.1}

is defined as:

**3.2**

=

And for the *k** ^{th}* deleted case is:

= _{3.3}

**Deviance residual**

The one-step linear approximation for change in deviance when the *k** ^{th}* case is deleted is:

ΔD = D Ë- D^{(-k) }_{3.4}

Because the deviance is used to measure the goodness of fit of a model, a substantial decrease in the deviance after the deletion of the *k** ^{th}* observation is indicate that is observation is a misfit. The deviance of Poisson regression with k

^{th}observation is:

D=2 _{3.5}

Where = exp (

D^{(-k)}= 2 _{3.6}

A larger value of ΔD^{(-k)} indicates that the k^{th} value is an outlier.

**Hat matrix:**

The Hat matrix is used in residual diagnostics to measure the influence of each observation. The hat values, *h** _{ii}*, are the diagonal entries of the Hat matrix which is calculated using

H=V^{1/2}X(X^{T}VX)^{-1}X^{T}V^{1/2 }_{3.7}

Where V=diag[var(y_{i})(_{i}_{i})]^{-1}

var(y_{i})=E(y_{i})=

In Poisson regression model

=* _{i}*) = (,where g function is usually called the link function and With the log link in Poisson regression

_{i}=

=

V=diag( **3.8**

(X^{T}VX)^{-1} is an estimated covariance matrix of and *h** _{ii}* is the i

^{th}diagonal element of Hat matrix H. The properties of the diagonal element of hat matrix i.e leverage values are

0

and

Where k indicates the parameter of the regression model with intercept term. An observation is said to be influential if ckn. where c is a suitably constant 2 and 3 or more. Using twice the mean thumb rule suggested by Hoaglin and Welsch (1978), an observation with 2kn considered as influential.

**Likelihood residual test**

For the detection of outliers, Williams (1987) introduced the likelihood residual. The squared likelihood residual is a weighted average of the squared standardized deviance and Pearson residual is defined as:

_{3.9}

and it is approximately equals to likelihood ratio test for testing whether an observation is an outlier and it also called approximate studentized residual, is standardized Pearson residual is defined as:

= _{3.10}

is standardized deviance residual is defined as:

= _{3.11}

= sign(

Where is called the deviance residual and it is another popular residual because the sum of square of these residual is a deviance statistic.

Because the average value, K*N,* of *h** _{i}* is small is much closer to than to ,and therefore also approximately normally distributed. An observation is considered to be influential if |t(1, n

**Difference of fits test (DFFITS)**

Difference of fits test for Poisson regression is defined as:

(DFFITS)_{i}= , i=1,2,3,…..,n _{3.12}

Where and are respectively the *i** ^{th}* fitted response and an estimated standard error with the

*i*

*observation is deleted. DFFITS can be expressed in terms of standardized Pearson residuals and leverage values as:*

^{th}(DFFITS)_{i}= _{3.13}

= =

An observation is said to be influential if the value of DFFITS 2.

**Cook’s Distance:**

Cook (1977) suggests the statistics which measures the change in parameter estimates caused by deleting each observation, and defined as:

CD_{i}= _{3.14}

Where is estimated parameter of without i^{th} observation. There is also a relationship between difference of fits test and Cook’s distance which can be expressed as:

CD_{i}= _{3.15}

Using approximation suggested by Pregibon’s C.D can be expressed as:

() _{3.16}

Observation with CD value greater than 1 is treated as an influential.

**Squared Difference in Beta (SDFBETA)**

The measure is originated from the idea of Cook’s distance (1977) based on single case deletion diagnostic and brings a modification in DFBETA (Belsley *et al.*, 1980), and it is defined as

(SDFBETA)_{i} = _{3.17}

After some necessary calculation SDFBETA can be relate with DFFITS as:

(SDFBETA)_{i} = _{3.18}

The i^{th} observation is influential if (SDFBETA)_{i}

**Diagnostic measures based on group deletion approach**

This section includes the detail of group deleted measures which are used to identify the multiple influential observations in Poisson regression model. Multiple influential observations can misfit the data and can create the masking or swamping effect. Diagnostics based on group deletion are effective for identification of multiple influential observations and are free from masking and swamping effect in the data. These measures are generalized standardized Pearson residual (GSPR), generalized difference of fits (GDFFITS) and generalized squared difference in Beta(GSDFBETA).

**3.3.1 Generalized standardized Pearson residual (GSPR)**

Imon and Hadi (2008) introduced GSPR to identify multiple outliers and it is defined as:

i _{3.19}

= i _{3.20}

Where are respectively the diagonal elements of V and H (hat matrix) of remaining group. Observations corresponding to the cases |GSPR| *>* 3 are considered as outliers.

**3.3.2 Generalized difference of fits (GDFFITS)**

GDFFITS statistic can be expressed in terms of GSPR (Generalized standardized Pearson residual) and GWs (generalized weights).

GWs is denoted by and defined as:

for i _{3.21}

= for i _{3.22}

A value having is larger than, Median (MAD ( is considered to be influential i.e

> Median (MAD (

Finally GDFFITS is defined as

(GDFFITS)_{i}= _{3.23}

We consider the observation as influential if

GDFFITS_{i} 3

**3.3.3 Generalized squared difference in Beta (GSDFBETA)**

In order to identify the multiple outliers in dataset and to overcome the masking and swamping effect GSDFBETA is defined as:

GSDFBETA_{i} = for i _{3.24}

= for i _{3.25}

Now the generalized GSDFBETA can be re-expressed in terms of GSPR and GWs:

GSDFBETA_{i} = for i _{3.26}

= for i _{3.27}

A suggested cut-off value for the detection of influential observation is

GSDFBETA