**Open Journal of Statistics**

Vol.09 No.03(2019), Article ID:93079,20 pages

10.4236/ojs.2019.93023

Optimal Threshold Determination for Securities Exchange Volumes Using Improved Maximum Product of Spacing Methodology

Peter Murage^{1}, Joseph Mung’atu^{2}, Everlyne Odero^{1}^{ }

^{1}Department of Mathematics, Masinde Muliro University of Science and Technology, Kakamega, Kenya

^{2}Department of Statistics and Actuarial Science, Jomo Kenyatta University of Agriculture and Technology, Nairobi, Kenya

Copyright © 2019 by author(s) and Scientific Research Publishing Inc.

This work is licensed under the Creative Commons Attribution International License (CC BY 4.0).

http://creativecommons.org/licenses/by/4.0/

Received: April 23, 2019; Accepted: June 15, 2019; Published: June 18, 2019

ABSTRACT

To Statisticians, the structure of the extreme levels which exist in the tails of the ordinary distributions is very important in analyzing, predicting and forecasting the likelihood of an occurrence of extreme event. Extreme events are defined as values of the event below or above a certain value called threshold. A well chosen threshold helps to identify the extreme levels. Several methods have been used to determine threshold so as to analyze and model extreme events. One of the most successful methods is the maximum product of spacing (MPS). However, there is a problem encountered while modeling data through this method in that the method breaks down when there is a tie in the exceedances. This study offers a solution to model data even when it contains ties. In the study, a method that improved MPS method for determining an optimal threshold for extreme values in a data set containing ties was derived. The Generalized Pareto Distribution (GPD) parameters for the optimal threshold were derived and compared to GPD parameters determined through the standard MPS model. The study improved the standard MPS methodology by introducing the concept of frequency and used Generalized Pareto Distribution (GPD) and Peak over threshold (POT) methods as the basis of identifying extreme values. The improved MPS models and the standard models were applied to Nairobi Securities Exchange (NSE) trading volume data to determine the GPD parameters for different sectors registered in NSE market and their performance compared. It was realized that the improved MPS model performed better than the standard models. This study will help the Statisticians in different sectors of our economy to model extreme events involving ties.

**Keywords:**

Extreme Value Theory (EVT), Maximum Product of Spacing (MPS), Generalized Pareto Distribution (GPD), Peaks over Threshold (POT), Nairobi Securities Exchange (NSE)

1. Introduction

Certain values in the tails of any distribution, represent extreme events and they are pointers to eventuality. The values in the tails are rare, few, but can have a big impact on the conclusion arrived at by the analysts. Different sectors of our life experience Extreme events and here we mention just but a few. According to [1] and [2] Extreme low production in agriculture results to famine if the agriculture depends on rainfall. This means that the amount of rain experienced in that region was too low that crops dried up [3] or very high rainfall that it destroyed all crops that had been planted. [4] , studying extreme rainfall in a mountainous region and [5] studying extreme rainfall in West Africa did observe that, how low or high the amount of rainfall depends on the threshold attached to the rainfall in that region. In insurance industries [6] , while discussing tools in finance and insurance, noted that extreme high claims by the customers that can be very dangerous for the company while extreme low claims by the customers can be very beneficial for the company’s profit. This means that there is a critical level that the insurance company would wish it is not surpassed and if it is, according to [7] , it must be prepared for this eventuality. Very high emissions of the waste products from the manufacturing industries are harmful to the environment and ozone layer. However, countries must continue to industrialize or expand their industries for economic prosperity. Extreme value theory (EVT) is a tool which attempts to provide us with the best possible estimate of the tail area of the distribution [8] . While working on the importance of the tail dependence in Bivariate frequency analysis, noted that there are two principal kinds of model for extreme values. The oldest group of models is the block maxima models. According to [9] and [10] the block maxima/minima methods are fitted with the generalized extreme value (GEV) distribution. A more modern group of models is the peaks-over-threshold (POT) models; these are models for all large observations which exceed a high threshold. According to [11] , theory of extreme value, the block of maxima of a sequence of identically and independently distributed (iid) random variables in the limits follows a generalized extreme value (GEV) distribution. At the same time, [10] showed that the excesses over a high threshold for these random variables, followed a Generalized Pareto distribution (GPD) using peak over threshold (POT) method. [12] proposed that choosing an optimal threshold is similar to choosing the number of upper order statistics and that a compromise between bias and variance has to be reached. The most successful method of determining the threshold of a GPD is the Maximum Product of Spacing (MPS). The Maximum Product of Spacing (MPS) was introduced originally by [13] as one method of determining threshold. This general method is based on spacings (that is, the gaps between successive order statistics). A threshold approach for peaks over threshold using MPS was carried out by [14] and noted that the selection of a threshold is an important and challenging problem [15] . While studying traditional estimation methods and MPS in Generalized Inverted Exponential Distribution found out that MPS outperformed MLE and least square (LSE) methods on the basis of K-S distance and Akaike Information Criterion (AIC). While trying to compare the methods for parameter estimation for univariate continuous models [16] , suggested that MPS is useful in estimating parameters for univariate continuous models with a shift at the origin. He also noted that MPS method would be an alternative method when MLE method encounters numerical difficulties in some parametric models [17] . While comparing parameter estimation for Generalized Power Weibull (GPW) proposed the use of MPS as compared to MLE and Bayesian to estimate the parameters of the GPW. However, the MPS method is sensitive to ties [18] . This study improved the MPS method so that it is able to handle any data even if it contains ties.

Maximum Product of Spacing (MPS) Methodology

According to [13] , maximum spacing estimators are sensitive to closely spaced observations, and especially ties. In cases of ties, some scholars have suggested that one value of each tie is taken [18] . Let ${x}_{1},{x}_{2},\cdots ,{x}_{n}$ be a random sample of independent observations from a continuous distribution ${F}_{{\theta}_{0}}$ belonging to ${F}_{\theta}\mathrm{,}\theta \in \Theta $ . Applying the probability transform ${F}_{\theta}\left(\mathrm{.}\right)$ to the order statistics ${x}_{\mathrm{1,}n}\le {x}_{\mathrm{2,}n}\le \cdots \le {x}_{n\mathrm{,}n}$ yields $0\equiv {F}_{\theta}\left({x}_{\mathrm{0,}n}\right)\le {F}_{\theta}\left({x}_{\mathrm{1,}n}\right)\le \cdots \le {F}_{\theta}\left({x}_{n+\mathrm{1,}n}\right)\equiv 1$ . We define the spacings as the gaps between the values of the distribution function at adjacent ordered points

${D}_{i}\left(\theta \right)={F}_{\theta}\left({x}_{i}\right)-{F}_{\theta}\left({x}_{i-1}\right)\text{\hspace{0.05em}}$ (1)

for $i=1,2,\cdots ,n+1$ . The maximum spacing estimator ${\theta}_{0}$ was defined as value that maximizes the logarithm of the geometric mean of sample spacings.

$\widehat{\theta}=\underset{\theta \in \Theta}{\mathrm{arg}\mathrm{max}}{S}_{n}\left(\theta \right)$ (2)

where

$\begin{array}{c}{S}_{n}\left(\theta \right)=\mathrm{ln}\sqrt[n+1]{\left({D}_{1}\left(\theta \right)\cdot {D}_{2}\left(\theta \right)\cdots {D}_{n+1}\left(\theta \right)\right)}\\ =\frac{1}{n+1}{\displaystyle \sum _{i=1}^{n+1}}\mathrm{ln}{D}_{i}\left(\theta \right)\end{array}$ (3)

This maximum spacing estimator is sensitive to the ties. That is, for any

${x}_{i+m}={x}_{i+m-1}=\cdots ={x}_{i}$

Then

${D}_{i+m}\left(\theta \right)={D}_{i+m-1}\left(\theta \right)=\cdots ={D}_{i}(\theta )$

This, therefore, collapses the standard MPS method proposed by [13] .

2. Methodology

2.1. Improved MPS Methodology

Let ${x}_{1}\mathrm{,}{x}_{2}\mathrm{,}\cdots \mathrm{,}{x}_{n}$ be a random sample of independent observations from a continuous distribution ${F}_{{\theta}_{0}}$ belonging to ${F}_{\theta}\mathrm{,}\theta \in \Theta $ [19] . Applying the probability transform ${F}_{\theta}\left(\mathrm{.}\right)$ to the order statistics ${x}_{\mathrm{1,}n}\le {x}_{\mathrm{2,}n}\le \cdots \le {x}_{n\mathrm{,}n}$ yields $\text{\hspace{0.05em}}\text{\hspace{0.05em}}0\equiv {F}_{\theta}\left({x}_{0,n}\right)\le {F}_{\theta}\left({x}_{1,n}\right)\le \cdots \le {F}_{\theta}\left({x}_{n+1,n}\right)\equiv 1$ . We define the spacings as the gaps between the values of the distribution function at adjacent ordered points

${D}_{i}\left(\theta \right)={F}_{\theta}\left({x}_{i}\right)-{F}_{\theta}\left({x}_{i-1}\right)\text{\hspace{0.05em}}$ (4)

for $i=1,2,\cdots ,n+1$ . The maximum spacing estimator ${\theta}_{0}$ was defined as value that maximizes the logarithm of the geometric mean of sample spacings.

$\widehat{\theta}=\underset{\theta \in \Theta}{\mathrm{arg}\mathrm{max}}{S}_{n}\left(\theta \right)$ (5)

where

${S}_{n}\left(\theta \right)=\mathrm{ln}\sqrt[n+1]{\left({D}_{1}\left(\theta \right)\cdot {D}_{2}\left(\theta \right)\cdots {D}_{n+1}\left(\theta \right)\right)}$

The modified MPS method proposed here is to use grouped data frequency table. Let ${x}_{1}\mathrm{,}{x}_{2}\mathrm{,}\cdots \mathrm{,}{x}_{n}$ occur ${f}_{1}\mathrm{,}{f}_{2}\mathrm{,}\cdots \mathrm{,}{f}_{n}$ times respectively. The geometric mean is given by

$G={\left({x}_{1}^{{f}_{1}}\cdot {x}_{2}^{{f}_{2}}\cdots {x}_{n}^{{f}_{n}}\right)}^{\frac{1}{N}}={\left[{\displaystyle \prod _{i=1}^{n}}\text{\hspace{0.05em}}{x}_{i}^{{f}_{i}}\right]}^{\frac{1}{N}}$

This implies that

$\mathrm{ln}G=\frac{1}{N}{\displaystyle \sum _{i=1}^{n}}\text{\hspace{0.05em}}{f}_{i}\mathrm{ln}{x}_{i}$ (6)

This leads to the modified MPS method as

${S}_{n}\left(\theta \right)=\mathrm{ln}\sqrt[n+1]{\left({D}_{1}^{{f}_{1}}\left(\theta \right)\cdot {D}_{2}^{{f}_{2}}\left(\theta \right)\cdots {D}_{n+1}^{{f}_{n+1}}\left(\theta \right)\right)}=\frac{1}{n+1}{\displaystyle \sum _{i=1}^{n+1}}\text{\hspace{0.05em}}{f}_{i}\mathrm{ln}{D}_{i}\left(\theta \right)$ (7)

In case ${f}_{1}={f}_{2}=\cdots ={f}_{n+1}=1$ , then we go back to the standard MPS. The Spacings are such that $\sum _{i=1}^{n}}\text{\hspace{0.05em}}{D}_{i}\left(\theta \right)=1$ . Under MPS, ${D}_{i}\left(\theta \right)$ ’s are defined as:

${D}_{1}\left(\theta \right)=F\left({x}_{1:n},\theta \right)$

${D}_{i}\left(\theta \right)=F\left({x}_{i:n},\theta \right)-F\left({x}_{i-1:n},\theta \right)$

${D}_{n+1}\left(\theta \right)=1-F\left({x}_{n:n},\theta \right)$

Therefore, Equation (7) can be partitioned as:

${S}_{n}\left({x}_{i};\theta ,\epsilon ,\sigma \right)=\frac{1}{n+1}\left\{{f}_{1}\mathrm{ln}{D}_{1}\left(\theta \right)+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\mathrm{ln}{D}_{i}\left(\theta \right)+{f}_{n+1}\mathrm{ln}{D}_{n+1}\left(\theta \right)\right\}$ (8)

2.2. Estimation of Generalized Pareto Distribution Using the Modified MPS Method

To estimate the parameters, we substitute the GPD

$G\left(x;\epsilon ,\sigma \right)=\{\begin{array}{l}1-{\left[1+\epsilon \left(\frac{x-u}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}},\text{\hspace{0.17em}}\text{\hspace{0.17em}}\epsilon \ne 0\\ 1-\mathrm{exp}\left[-\left(\frac{x-u}{\sigma}\right)\right],\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{0.05em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\epsilon =0\end{array}$ (9)

into the MPS method Equation (8)

2.2.1. Case 1: When $\epsilon \ne 0$

Let

${D}_{1}=1-{\left[1+\epsilon \left(\frac{{x}_{1}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}$ (10)

${D}_{i}=\left(1-{\left[1+\epsilon \left(\frac{{x}_{i}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}\right)-\left(1-{\left[1+\epsilon \left(\frac{{x}_{i-1}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}\right)$

which leads to

${D}_{i}={\left[1+\epsilon \left(\frac{{x}_{i-1}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}-{\left[1+\epsilon \left(\frac{{x}_{i}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}$ (11)

and

${D}_{n+1}=1-\left(1-{\left[1+\epsilon \left(\frac{{x}_{n}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}\right)$ (12)

implying that

${D}_{n+1}={\left[1+\epsilon \left(\frac{{x}_{n}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}$

and

${K}_{1}=\mathrm{ln}\left(1-{\left[1+\epsilon \left(\frac{{x}_{1}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}\right)$ (13)

${K}_{2}=\mathrm{ln}\left\{{\left[1+\epsilon \left(\frac{{x}_{i-1}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}-{\left[1+\epsilon \left(\frac{{x}_{i}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}\right\}$ (14)

${K}_{3}=\mathrm{ln}{\left[1+\epsilon \left(\frac{{x}_{n}-\theta}{\sigma}\right)\right]}^{-\frac{1}{\epsilon}}$ (15)

To optimize the function ${S}_{n}\left(\theta ,\epsilon ,\sigma \right)$ , we partially differentiate it with respect to $\theta \mathrm{,}\epsilon $ and $\sigma $ to obtain;

${{S}^{\prime}}_{\epsilon}=\frac{1}{n+1}\left\{{f}_{1}\frac{\partial {K}_{1}}{\partial \epsilon}+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\frac{\partial {K}_{2}}{\partial \epsilon}+{f}_{n+1}\frac{\partial {K}_{3}}{\partial \epsilon}\right\}=0$ (16)

${{S}^{\prime}}_{\sigma}=\frac{1}{n+1}\left\{{f}_{1}\frac{\partial {K}_{1}}{\partial \sigma}+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\frac{\partial {K}_{2}}{\partial \sigma}+{f}_{n+1}\frac{\partial {K}_{3}}{\partial \sigma}\right\}=0$ (17)

${{S}^{\prime}}_{\theta}=\frac{1}{n+1}\left\{{f}_{1}\frac{\partial {K}_{1}}{\partial \theta}+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\frac{\partial {K}_{2}}{\partial \theta}+{f}_{n+1}\frac{\partial {K}_{3}}{\partial \theta}\right\}=0$ (18)

2.2.2. Case 2: When $\epsilon =0$

Let

${D}_{1}=1-\mathrm{exp}\left[-\left(\frac{{x}_{1}-\theta}{\sigma}\right)\right]$ (19)

${D}_{i}=\mathrm{exp}\left[-\left(\frac{{x}_{i-1}-\theta}{\sigma}\right)\right]-\mathrm{exp}\left[-\left(\frac{{x}_{i}-\theta}{\sigma}\right)\right]$ (20)

${D}_{n+1}=\mathrm{exp}\left[-\left(\frac{{x}_{n}-\theta}{\sigma}\right)\right]$ (21)

And

${K}_{1}^{*}=\mathrm{ln}{D}_{1}$ (22)

${K}_{2}^{*}=\mathrm{ln}P$ (23)

where t $P=\mathrm{exp}\left[-\left(\frac{{x}_{i-1}-\theta}{\sigma}\right)\right]-\mathrm{exp}\left[-\left(\frac{{x}_{i}-\theta}{\sigma}\right)\right]$

${K}_{3}^{*}=\frac{\left({x}_{n}-\theta \right)}{\sigma}$ (24)

To optimize the function ${S}_{n}\left(\theta ,\epsilon ,\sigma \right)$ , we partially differentiate it with respect to $\theta \mathrm{,}\epsilon $ and $\sigma $ to obtain;

${{S}^{\prime}}_{{\sigma}^{*}}=\frac{1}{n+1}\left\{{f}_{1}\frac{\partial {K}_{1}^{*}}{\partial \sigma}+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\frac{\partial {K}_{2}^{*}}{\partial \sigma}+{f}_{n+1}\frac{\partial {K}_{3}^{*}}{\partial \sigma}\right\}=0$ (25)

${{S}^{\prime}}_{{\theta}^{*}}=\frac{1}{n+1}\left\{{f}_{1}\frac{\partial {K}_{1}^{*}}{\partial \theta}+{\displaystyle \sum _{i=2}^{n}}\text{\hspace{0.05em}}{f}_{i}\frac{\partial {K}_{2}^{*}}{\partial \theta}+{f}_{n+1}\frac{\partial {K}_{3}^{*}}{\partial \theta}\right\}=0$ (26)

3. Market Data

The models 16, 17, 18, 25 and 26 were coded in r-software and used to analyze the market volume data. Market data was sought from one company from each of the twelve (12) sectors trading in the Nairobi Securities Exchange (NSE), namely Agricultural (Sasini), Automobile and Accessories (Sameer Group), Banking (KCB), Commercial and Services (Kenya Airways), Construction and Allied (East African Cables), Energy and Petroleum (Kenol Kobil), Insurance (Kenya Re), Investment (Centum company), Investment Services (NSE), Manufacturing and Allied (East African Breweries), Telecommunication (Safaricom) and Real Estate Investment (Stanlib Fahari I-Reit). This was daily trading data for a period of three years (2016 to the end of 2018). Real market data contains ties and the first part of the analysis in this study was to check on this fact. This was done in Excel using pivotal tables by analyzing the volumes traded each day for the three years. The number of observations for volume traded in each company analyzed and the corresponding number of repetitions (ties) summarized as indicated in Table 1.

Table 1. Company data and number of repetitions.

From Table 1, it was observed that all companies had some repetitions. These repetitions are synonymous to ties. Company’s such as Sasini, Sameer, Stanlib, Kenya-Re and East African Cables had fairly many repetitions (ties). The densities of the data distribution in different sectors, were plotted as shown in Figure 1. This was done to assess the distribution of the volume data and assess whether the data had extreme values.

The y-axis of Figure 1 represent the density of the volume data while the x-axis represent the volume of the traded securities. The densities of all the companies are right skewed and indicate the tendencies of having extreme values in the right tail. These densities are very similar to the gamma density. Gamma density is right skewed and therefore contains extreme values in the right tail. All the sectors were therefore observed to contain extreme values in their right tail which served as a justification to subject our data to extreme value analysis using GPD and POT. The data were then subjected to both the standard MPS model and the improved models 16, 17, 18, 25 and 26, to determine the GPD parameters. Back testing techniques was used to assess the efficiency and consistency of these parameters and Akaike Information Criterion (AIC) was used to test the suitability of the derived model. The results are as indicated in Tables 2-13.

3.1. Investment Sector

The Company had 592 volume trading points. From Table 2, the exceedances above the threshold determined through the standard model, was 30 while the exceedances over the threshold determined through the improved model was 26. The standard two parameter model and standard three parameter model yielded the same number of exceedances above their respective thresholds. The proportion of the exceedances above the threshold was also the same. The improved two and three parameter models also yielded the same number of exceedances. The proportion of the exceedances above the threshold was also the same for the improved two and three parameter models. The scale parameter of the standard models was 392,000 and that of improved model was 404,000. In this case, the scale parameter of the improved model was higher than that of the standard model. The shape parameter in the standard model was 0.0679 while that of the improved model was 0.0612. In this case, the shape parameter of the improved model was lower than that of the standard model.

Figure 1. The densities for the market data from the NSE (Share volumes).

Table 2. MLE and MPLE Estimates-Centum.

Table 3. MLE and MPLE Estimates-East African Breweries (EABL).

Table 4. MLE and MPLE Estimates-East African Cables (EAC).

Table 5. MLE and MPLE Estimates-Kenya Re-Insurance.

Table 6. MLE and MPLE Estimates-Kenya Commercial Bank (KCB).

Table 7. MLE and MPLE Estimates-Kenol.

Table 8. MLE and MPLE Estimates-Kenya Airways (KQ).

Table 9. MLE and MPLE Estimates-NSE.

Table 10. MLE and MPLE Estimates-Safaricom.

Table 11. MLE and MPLE Estimates-Sameer.

Table 12. MLE and MPLE Estimates-Sasini.

Table 13. MLE and MPLE Estimates-Stanlib.

3.2. Manufacturing Sector

In this sector, we considered East African Breweries Company because it was the most active desk in NSE in the manufacturing sector. The standard two parameter model and the standard three parameter model had 35 exceedances over their respective threshold (Table 3). The proportion of the exceedances above their thresholds was also the same. The improved two parameter model and the improved three parameter model had 29 volumes exceeding the respective thresholds. The proportion of these exceedances was 0.0511. The scale parameter of the standard models was 465,000 while that of the improved model was 523,000, implying that the scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was 0.131 and that of the improved model was 0.0571. The shape parameter of the improved model was lower than that of the standard model.

3.3. Construction Sector

The most active company in NSE from this sector was East African Cables Company. On this basis, we considered it in our analysis. The two parameter standard model in Table 4 had 36 volumes exceeding the threshold of 107,940.8638 while the three-parameter standard model had 36 volumes exceeding a threshold of 107,967.3084. The number exceeding the threshold represented a proportion of 0.0506. The improved two parameter model yielded a threshold of 209,150.4401 above which there were 17 exceedances as compared to the three parameter improved model which yielded a threshold of 209,135.6041 above which there were 17 exceedances. The proportion of the exceedances in the two parameter improved model and three parameters improved model were 0.0239. The scale parameter of the standard model 142,000 and that of the improved model was 149,300 meaning that the improved model had a higher scale parameter than the standard model. The shape parameter of the standard model was −0.046 and that of the improved model was −0.175 meaning that the shape parameter of the improved model was lower than that of the standard model.

3.4. Insurance Sector

We considered Kenya Reinsurance from this sector because it was the most active company in the NSE trading. In Table 5, the two parameter standard model yielded a threshold of 1,166,453.636 and above it, there were 37 excesses which represented a proportion of 0.0508. The three parameter standard model yielded a threshold of 1,166,456.859 with 37 excesses above it representing a proportion of 0.0508. The two parameter improved model yielded a threshold of 1,504,595.999 with 28 excesses above it representing a proportion of 0.0508 while the three parameter improved model yielded a threshold of 1,504,609.093 with 28 excesses above it. This represented a proportion of 0.0512. The scale parameter of the standard model was 1,350,000 and that of the improved model was 1,400,000. This means that the scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was −0.0415 and that of the improved model was −0.0824. This means that shape parameter of the improved model was lower than that of the standard model.

3.5. Banking Sector

Kenya Commercial Bank was the most active company from the banking sector in the trading in NSE. We, therefore, considered it to help us visualize the behaviour of the trading in NSE concerning this sector. In Table 6, the threshold of the two parameter standard MPS model was 7,162,924.498 with 37 volumes above it. This represented a proportion of 0.0501. The threshold of the two parameter improved MPS model was 6,967,731.98 with 36 volumes above it. This represented a proportion of 0.0501. The two proportions were the same. The three parameter standard model yielded a threshold of 7,162,925.148 and 37 excesses over it. The three parameter improved MPS model yielded a threshold of 6,967,754.69 with 36 volumes above it. The proportion above the threshold in both models was 0.0501. The scale parameter of the two types of models were also the same. The shape parameter of the standard model was 0.0723 and that of the improved model was 0.0542. The shape parameter of the improved model was lower than of the standard model.

3.6. Energy and Petroleum

Kenol Kobil happens to be one of the most busy desks in NSE and therefore we considered it in this sector in order to visualize the happenings in this sector In Table 7, the two parameter standard MPS model yielded a threshold of 6,707,831.854 with 32 volume points exceeding it, constituting a proportion of 0.0504. The three parameter standard model yielded a threshold of 6,707,844.136 with 32 volume points exceeding it, making a proportion of 0.0504. The two parameter improved model yielded a threshold of 7,239,959.124 giving rise to 29 volume points above it. The three-parameter improved model yielded a threshold of 7,239,940.507 with 29 volume points above it. The two improved models yielded the same number of exceedances and had the same proportion of 0.0506 of exceedances over the threshold. The scale parameter of the standard model was 32,200,000 and that of the improved model was 35,000,000. The scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was 0.557 while that of the improved model was 0.561 meaning that the shape parameter of the improved model higher than that of the standard model.

3.7. Commercial and Services

In this sector, the most active company was Kenya Airways (KQ) and on this strength, we included it in our analysis. Table 8 indicates that the two parameter standard model had a threshold of 998,460.8711 while the three parameter standard model had a threshold of 998,448.5453. Both of these models had 32 exceedances of the volume points contributing to a proportion of 0.0505. The two parameter improved model yielded a threshold of 1,140,889.615 while the three parameter improved model yielded a threshold of 1,140,928.481. These two improved models had 28 volume points of exceedances over the respective threshold which measured to a proportion of 0.0508. The scale parameter of the standard parameter was 927,000 and of the improved model was 906,000. The scale parameter of the standard model was higher than that of the improved model. The shape parameter of the standard model was 0.0913 and that of the improved model was 0.121. The shape parameter of the improved model was higher than that of the standard model.

3.8. Investments Service

In Table 9, the threshold of the two parameter standard model was 573,942.1563 with 30 exceedances while its counterpart three parameter standard model yielded a threshold of 573,933.6022 with 20 exceedances. These two models had exceedances contributing to a proportion of 0.0508. The two parameter improved model yielded a threshold of 1,025,881.322 with 21 exceedances. The three parameter improved model had a threshold of 1,025,908.743 with 21 exceedances. The exceedances over the threshold in the two improved models contributed to a proportion of 0.0515. The threshold of the improved models was higher than those of the standard models. The number above the threshold is lower in case of improved models compared to the standard models. The scale parameter of the standard model was 814,000 and that of the improved model was 606,000. The scale parameter of the improved model was lower than that of the standard model. The shape parameter of the standard model was 0.0209 while that of the improved model was 0.224. The shape parameter of the improved model was higher than that of the standard model.

3.9. Telecommunication Sector

The threshold of a two parameter standard model in Table 10 was 26,193,609.89 with 30 exceedances. The three parameter standard model had a threshold of 26,193,619.03 with 30 exceedances in both cases; the proportion of exceedances was 0.0507. The two parameter improved model had a threshold of 26,206,498.57 while that of the three-parameter improved model had a threshold of 26,206,476.71 with 30 exceedances. In both improved models, the proportion of the exceedances over the threshold was 0.0512. The threshold obtained in the improved models were higher than that obtained from the two standard models. The scale parameters were the same for the standard and improved models. Interestingly, the shape parameters were also the same for standard and improved models.

3.10. Automobiles and Accessories

The most active counter in this sector was Sameer group of companies. We therefore analyzed the Sameer Company’s data to visualize the happenings within this sector. In Table 11, the threshold of the two parameter standard models was 77,951.37064 with 20 exceedances. The three parameter standard model had a threshold of 77,957.31698 with 20 exceedances. The two models had exceedances contributing a proportion of 0.0506. The two parameter improved model had a threshold of 133,216.7968 with 10 exceedances. The three-parameter improved model had a threshold of 13,311.3589 with 10 exceedances. The two improved models had a proportion of 0.0521 in exceedances. The improved models gave higher thresholds than those of the standard models. The scale parameter of the standard model was 186,000 while that of the improved model was 298,000. The scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was 0.307 while that of the improved model was 0.112 meaning that the shape parameter of the improved model was lower than that of the standard model.

3.11. Agricultural Sector

In this sector, we considered using Sasini Company since it was the most busy company in the sector. In Table 12, the threshold of the two parameter standard model was 102,597.0028 with 22 exceedances while the three parameter standard model was 102,620.9575 with 22 exceedances. Both of these models had exceedances of a proportion of 0.051. The threshold of the two parameter improved model was 163,127.5551 with 13 exceedances. The threshold of the three parameter improved model was 163,119.5884 with 13 exceedances. The exceedances in the two models constituted a proportion of 0.0536. The threshold obtained through improved MPS model was higher than that obtained through the standard MPS model. The scale parameter of the standard model was 397,000 while that of the improved model was 729,000. This indicates that the scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was 0.333 while that of the improved model was 0.196 meaning that the shape parameter of the improved model was lower than that of the standard model.

3.12. Real Estate

The threshold of a two parameter standard model was 1,025,977.0028 with 22 exceedances Table 13. The threshold of the three parameter standard model was 102,620.9575 with 22 exceedances. The two models had a proportion of 0.051 in exceedances. The threshold of the two parameter improved model was 163,127.5551 with 13 exceedances. The threshold of the three parameter improved model was 163,119.5884 with 13 exceedances. The proportion of the exceedances in the two improved models was 0.0528. The threshold obtained through the improved MPS model was higher than that obtained through the standard model. The number of volume of the excesses was lower for improved model as compared to standard model. The scale parameter of the standard model was 464,000 while that of the improved model was 708,000, implying that the scale parameter of the improved model was higher than that of the standard model. The shape parameter of the standard model was 0.415 and that of the improved model was 0.264 meaning that the shape parameter of the improved model was lower than that of the standard model.

4. Conclusions

This study helped to improve the MPS model by introducing the concept of f to both two parameter and three parameter MPS models [16] [17] [18] . An investigation was done to determine whether the NSE trading volume data contained ties 1. Interestingly, all companies in all the sectors listed in the NSE trading platform, contained ties. This fact reinforced the importance of this study. The improved two parameter and three parameter MPS models were developed to take care of data that would contain ties. These models were compared with their standard MPS models by comparing their performance in the NSE trade volume data Tables 2-13. In all the tables, the improved models yielded a higher threshold as compared to the threshold obtained through the standard MPS models. The number of exceedances was lower in the case of improved models as compared to the standard models. When the scale parameter was big for the improved model, the shape parameter was small as indicated in Tables 2-6, and Tables 10-13. When the scale parameter was small, the shape parameter was big as indicated in Table 7 and Table 8. For the telecommunication sector represented by Safaricom, Table 9 had scale parameters for the two types of models being the same and so the shape parameters were also the same. The deviance statistics of the improved models were lower than those of the standard models. The AIC criterion was lower in case of the improved models as compared to the standard MPS models. Whenever there are two or more competing models, the model with the lower deviance statistics and lower AIC criterion happens to be the best model. These two statistics, helps us to conclude that the improved model performs better than the standard models. Therefore the improved MPS model is the best method to model the data and to determine the threshold for different companies in different sectors because there is a high likelihood of company’s data to contain ties. Improved MPS model has the advantage of modeling the data whether it contains ties or not because when $f=1$ , the improved model reduces to the standard MPS model.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

Cite this paper

Murage, P., Mung’atu, J. and Odero, E. (2019) Optimal Threshold Determination for Securities Exchange Volumes Using Improved Maximum Product of Spacing Methodology. Open Journal of Statistics, 9, 327-346. https://doi.org/10.4236/ojs.2019.93023

References

- 1. Butterfield, R. (2009) DFID Economic Impacts of Climate Change in Kenya, Rwanda and Burundi. ICPAC Kenya and SEI, 1-45.
- 2. Mario, H. (2011) Agricultural Management for Climate Change Adaptation. IRI.
- 3. Katz, R. and Murphy, A. (1997) Economic Value of Weather and Climate Forecast. Cambridge University Press, London. https://doi.org/10.1017/CBO9780511608278
- 4. Prudhome, C. and Duncan, W. (1999) Mapping Extreme Rainfall in Mountainous Region Using Geostatistical Techniques: A Case Study of Scotland. International Journal of Climatology, 19, 1337-1356. https://doi.org/10.1002/(SICI)1097-0088(199910)19:12<1337::AID-JOC421>3.3.CO;2-7
- 5. Panthou, G., Vischel, T., Lebel, T., Blanchet, J., Quantin, G. and Ali, A. (2012) Extreme Rainfall in West Africa: A Regional Modeling. Water Resources Research, 48, W08501.
- 6. Box, G.E.P. and Wilson, K.B. (1951) On the Experimental Attainment of Optimum Conditions. Journal of the Royal Statistical Society: Series B (Methodological), 13, 1-38. https://doi.org/10.1111/j.2517-6161.1951.tb00067.x
- 7. Embrechts, P., McNeil, A. and Straumann, D. (2002) Correlation and Dependence in Risk Management: Properties and Pitfalls. In: Dempster, M.A.H., Ed., Risk Management: Value at Risk and Beyond, Cambridge University Press, Cambridge, 176-223. https://doi.org/10.1017/CBO9780511615337.008
- 8. Annie, P., David, H., Ann, C. and Stephene, P. (2007) Importance of Tail Dependence in Bivariate Frequency Analysis. Journal of Hydrologic Engineering, 12, 394-403.
- 9. Balkema, A. and de Haan, L. (1974) Residual Life Time at a Great Age. The Annals of Probability, 2, 792-804. https://doi.org/10.1214/aop/1176996548
- 10. Pickands, J. (1975) Statistical Inference Using Extreme Order Statistics. The Annals of Statistics, 3, 119-131. https://doi.org/10.1214/aos/1176343003
- 11. Fisher, R. and Tippet, L. (1928) Limiting Forms of the Frequency Distributions of the Largest or Smallest Member of a Sample. Mathematical Proceedings of the Cambridge Philosophical Society, 24, 180-190. https://doi.org/10.1017/S0305004100015681
- 12. Hill, B.M. (1975) A Simple General Approach to Inference about the Tail of a Distribution. The Annals of Statistics, 13, 331-341.
- 13. Cheng, R.C.H. and Amin, N.A.K. (1983) Estimating Parameters in Continuous Univariate Distribution with a Shifted Origin. Journal of the Royal Statistical Society: Series B (Methodological), 45, 394-403. https://doi.org/10.1111/j.2517-6161.1983.tb01268.x
- 14. Wong, S.T.W. and Wai, K.L. (2010) A Threshold Approach for Peaks over Threshold Modeling Using Maximum Product of Spacing. Statistica Sinica, 20, 1257-1272.
- 15. Umash, S., Kumar, S. and Singh, R.K. (2014) A Comparative Study of Traditional Estimation Methods and Maximum Product of Spacing Method in Generalized Inverted Exponential Distribution. Journal of Statistics Applications and Probability, 3, 153-169. https://doi.org/10.12785/jsap/030206
- 16. Loung, A. (2018) Unified Asymptotic Results for Maximum Spacing and Generalized Spacing Method for Continuous Models. Open Journal of Statistics, 8, 614-639. https://doi.org/10.4236/ojs.2018.83040
- 17. Almetwally, E.M. and Almongy, H.M. (2019) Maximum Product of Spacing and Bayesian Method for Parameter Estimation for Generalized Power Weibull Distribution under Censoring Scheme. Journal of Data Science, 17, 407-444.
- 18. Cheng, R.C.H. and Stephen, M.A. (1989) A Goodness of Fit Test Using Moran’s with Estimated Parameters. Biometrika, 76, 386-392. https://doi.org/10.1093/biomet/76.2.385
- 19. Murage, P., Mung’atu, J. and Odero, E. (2019) Optimal Threshold Determination for the Maximum Product of Spacing Methodology with Ties for Extreme Events. Open Journal of Modelling and Simulation, 7, 149-168. https://doi.org/10.4236/ojmsi.2019.73008