<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>M. Pigeon. “actuar: An
R Package for Actuarial Science” Journal of Statistical
Software</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>A Probabilistic Model to Predict the Time Out of Service for Electronic Devices</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Eralda Gjika (Dhamo)</string-name>
          <email>eralda.dhamo@fshn.edu.al</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lule Basha (Hallaci)</string-name>
          <email>lule.hallaci@fshn.edu.al</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ana Ktona</string-name>
          <email>ana.ktona@fshn.edu.al</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Applied</institution>
          ,
          <addr-line>Mathematics</addr-line>
          ,
          <institution>Faculty of Natural Science</institution>
          ,
          <addr-line>UT</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Department of Informatics, Faculty of Natural Science</institution>
          ,
          <addr-line>UT</addr-line>
          ,
          <country country="US">USA</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2008</year>
      </pub-date>
      <volume>25</volume>
      <issue>16</issue>
      <abstract>
        <p>Time modeling is one of the challenges attracting the attention of researchers in different fields. The prediction of the working time and out of service of an electronic device is important as it helps to optimize the management of human resource, material resource as well as monetary resources of the company. So, determining a predictive probability model of time will help in minimizing maintenance costs, storage of equipments and increasing efficiency in the service. In this study we have analyzed the waiting time for repair and the out of service time of some electronic equipments. The data are taken from an electronic service center in Tirana which offers service for electronic devices such as: computers, laptops, cellphone, tablets etc. for a period of one year. Probability distributions such as: normal, exponential, weibull, log-normal, gamma and pareto are fitted to the real data using maximum likelihood parameter estimation method. Various graphical and numerical statistical tests are performed to choose the “best” fit to the real data. The chosen probabilistic model helps the company to predict service time and design a maintenance strategy to optimize cost and customer satisfaction at the same time.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Queue theory is generally considered as an area of
operational research because the results are often used
when making business decisions about the resources
needed to provide a service. The service disciplines are
of different types, such as: The First In First Out
(FIFO); Last-in-First Out - LIFO; Customers Served
Parallel (Processor Sharing - PS); The highest priority
client is served first (Priority -P) etc. [Szt16].</p>
      <p>In real life there is often a need to estimate the time
spent in a queue to benefit a service. The time spent in
a queue, which includes the time from the moment of
arrival to the system until the time of departure from
the system may be constant for any request arriving. In
real situations the time spent in the system is not always
constant. Since service discipline affect external factors
(service provider effectiveness, type of service
required, etc.) then this lead to changes in waiting time.
Figure 1 shows a situation of arrival times and waiting
time in a queue. This pattern is known as "non-regular
traffic queue".</p>
      <p>In this work we will study the flow of requests
arriving at the laboratory of a company which offer
service for electronic device. The company has only
one laboratory providing the service for electronic
devices so it requires the most efficient management of
the time.</p>
      <p>Service requests arrive at the laboratory following a
FIFO discipline. In rare situations the company has the
right to offer priority service. Figure 2 illustrates the
steps followed by an arrival service request.</p>
      <p>Waiting time to enter the lab and the service time
distribution is one part of the company system
[Wan17]. The ability of the servers to serve the queries
of their costumers will determine the system
performance. The faster the servers, the better the
system performance. The company has a line queue
system compound of one server.</p>
      <p>We have tried to fit a probability model for the
waiting time to enter the lab and the out of service time
of the electronic equipment’s arriving at the service
center. Given that the time is a continuous variable we
have taken into consideration some continuous
distributions such as: normal; log-normal; gamma;
Weibull; exponential and pareto distribution [Mul15].
The procedure of parameter estimation, evaluation and
simulation was done through R software.</p>
    </sec>
    <sec id="sec-2">
      <title>2 Data</title>
      <p>We have considered two time data: the waiting time
from the moment the device enters in the service center
until it goes at the lab (known as the waiting time to be
repaired) and the out of service time which is the time
spent at the service center (from the moment it comes
and the moment it goes out of the service center). There
are in total 292 observations for the first database (data
observed for 1 year) and 330 observations for the
second database. The unit time measure is hour.</p>
      <p>For each costumer the system has: an ID, the time it
enters the service center, the time it enters the lab and
the time it goes back to the owner. Unfortunately, the
company didn’t note the time the device gets out of the
lab. This time is registered in the program lately.</p>
      <p>We also have to emphasize that there is a lack of
information in the secured database, and we have not
considered the devices which had missing information
in the two databases. Table 1 and Table 2 below give a
descriptive statistics for the two databases.
To better understand the behavior of the data we obtain
a graphical view of the two dataset. The histogram of
the waiting time to be repaired and out of service time
of the electronic devices is shown in Figure 4 (a, b)
respectively.
The probability distributions we have considered are
continuous distributions: normal; log-normal; gamma;
Weibull; exponential and pareto distribution. To
estimate the parameter of these distributions we have
used the maximum likelihood estimation (MLE)
method. We have used the R software for estimation
procedure and also for statistical test. The packages
used in R are: AdequacyModel [Dut08]; MASS
[Ven10]; fitdistrplus; actuar. [Boos12], [Hur13].</p>
      <p>Table 3 shows the pdf of the continuous
distributions used to fit the data.</p>
      <p>When fitting continuous distributions, three
goodness-of-fit statistics are classically considered to
choose the “best” fitted distribution: Cramer-von
Mises, Kolmogorov-Smirnov and Anderson-Darling
statistics [D’Ag86]. Table 4 below gives the definition
and the empirical estimate of the three considered
goodness-of-fit statistics. Other accuracy measures used
were the Information criteria such as: the Akaike
Information Criteria (AIC) and Bayes Information
Criteria (BIC).
In this work we have proposed five probability
distributions to fit the waiting time and the out of
service time for the devices: the normal, exponential,
Weibull, gamma, lognormal distribution. These
probability distributions are widely used to describe
events recurring at random points in time, such as the
time between failures of electronic equipment or the
time between arrivals at a service center. An important
characteristic of the exponential distribution is the
“memoryless” property, which means that time has no
effect on future outcomes.</p>
      <p>To estimate and evaluate the fitting we have used R
software as a tool and then we have analyzed the
outcomes of the results.</p>
      <p>To compare the fitting performance of the
probability distributions we have used some accurate
graphical tests. The density plot and the CDF plot may
be considered as the basic classical goodness-of-fit
plots and the QQ plot together with PP plot are
complementary but may be very informative in some
cases.</p>
      <p>Histogram and theoretical densities</p>
      <p>Empirical and theoretical CDFs
0
.
1
8
.
0
2
.
0
0
.
0
6
F .0
D
C .4
0
In the waiting time data (in Figure 5), is clearly seen
that the normal distribution does not describe at all the
empirical data, but the other fitted distribution such as
exponential, Weibull, gamma and lognormal describes
the left tail of the empirical distribution, especially the
lognormal distribution could be preferred for the better
description of center of the distribution.</p>
      <p>We have used the Kolmogorov-Smirnov statistical
test, Cramer-von Mises and Anderson-Darling test to
select the “best” fitting distributions for the waiting
time and out of service time. Results for the waiting
time to repair fitted distributions are shown in Table 5.</p>
      <p>The Anderson-Darling statistic is of special interest
when it matters to equally emphasize the tails as well as
the main body of a distribution but it should be used
with caution when comparing fits of various
distributions to the data. By the other side the
Cramervon Mises and Kolmogorov-Smirnov statistics, do not
take into account the complexity of the model (i.e.,
parameter number. To a better decision on fitting
model we may consult the information criteria statistics
(AIC and BIC).</p>
      <p>As it is clearly seen from Table 5 the
goodness-offit statistics for the waiting time are in favor of the
lognormal distribution.</p>
      <sec id="sec-2-1">
        <title>4.2 Probability distribution for out of service time</title>
        <p>The empirical histogram for the out of service time is
clearly different than the waiting time to be repaired.
We have also taken into consideration the up mention
probability distributions for the out of service data and
the results of the density plot, CDF plot, QQ plot
together with PP plot are shown in Figure 6.
In the out of service time data (in Figure 6), the
exponential distribution and the normal distribution do
not give an adequate fit, but Weibull, gamma and
lognormal distributions describe satisfactory the most
of the empirical data. At this point it is difficult to
decide on the most preferred distribution so it is a good
moment to consult the values of the goodness-of-fit
statistics mention above. It seems, form Table 6, that
the lognormal distribution and the gamma distributions
are comparative with each other to “best” fit the data.
19.97
12.06
4.24</p>
        <p>2
2.76
AIC
BIC</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>5 Conclusions</title>
      <p>From the graphical and numerical tests it was observed
that for the waiting time to repair the “best” probability
distribution was the lognormal with parameters:
meanlog: 1.91 sdlog: 0.062. For the out of service time
the lognormal distribution with parameters: meanlog
3.66; sdlog 0.83 and the gamma distribution with
parameters: shape 1.74; rate 0.032 seems to better fit
the real data.</p>
      <p>From the achieved results we can assert that:
approximately 95% of the equipments spend less than 3
hours waiting to receive the service from the lab and
99% of them spend less than 8 hours. Moreover, the
time out of service regarding the fitting from the two
distributions varies from: 24-28% of the equipment’s
which spend less than 24 hour and 53-60% of the
equipment’s spend less than 48 hour; 96-98% of the
equipment’s obtain the service and return to work
within 7 days.</p>
      <p>This study was carried out without considering the
type of electronic devices arriving at the service center.
Of interest would be the categorization of equipment
and their study in particular to predict the service time
and design a maintenance strategy to optimize cost and
customer satisfaction at the same time.</p>
      <sec id="sec-3-1">
        <title>Acknowledgments</title>
        <p>The authors want to thank the service center that
provided real data for a better evaluation strategy.
[Mul15] M. L. Delignette-Muller and C.Dutang.
Fitdistrplus: An R Package for Fitting Distributions.
Journal of Statistical Software, Volume 64, Issue 4,
February 2015.
[Hur13] Ch. Hurlin,
https://www.univorleans.fr/deg/masters/ESA/CH/Chapter2_MLE.pdf</p>
      </sec>
    </sec>
  </body>
  <back>
    <ref-list />
  </back>
</article>