Professional Documents
Culture Documents
Application of Arima Model On Typhod Fever
Application of Arima Model On Typhod Fever
BY
SEPTEMBER, 2021.
1
CERTIFICATION
This is to certify that this project was written and presented by Ademiluyi, Sodiq
Statistics, in partial fulfillment for the award of Higher National Diploma (HND) in Statistics,
________________________ ____________________
________________________ ____________________
________________________ ____________________
2
DEDICATION
This project is dedicated to Almighty God for given me the grace and opportunity to
participate in this Higher National Diploma Programme and helped me to end it successfully.
3
ACKNOWLEDGEMENT
My appreciation goes to the Almighty God who has spared my life up to this very
moment, especially the kind of grace given unto me to complete my HND program without any
delay. And for the inspiration and support towards the success of this project.
My sincere appreciation goes to my project supervisor in person of Mr. Adeyeri, L.O, the
current Deputy Rector of Osun State College of Technology, Esa-Oke. for Creating time out of
towards the success of my programme and I also appreciate the effort of all the lecturers in our
I acknowledge the effort my lovely Parents, Mr and Mrs Ademiluyi, for their love, care,
prayer, support in all ramifications, financially, morally, spiritually and many more, I pray that
you shall live long to eat the fruit of your labour, Ameen. I say very big thanks.
Additionally, I appreciate the effort of amiable friends that has been there for me since,
4
ABSTRACT
The aim of the project is to examine the trends of typhoid fever at Obafemi Awolowo
Teaching Hospital, Ile-Ife, Osun State, between 2011 and 2020. This project covers recorded
case of typhoid fever for a period of ten years (2011 – 2020) at OA U Teaching Hospital, Ile-Ife,
Osun State. The ACF (autocorrelation) function is positive for all means that is significant
relationship in the number of years and the incrementing the typhoid. Generally we fit
ARIMA(0,0,0), (1,1,1) and (3,0,0) among all these we see that ARIMA (1,1,1) fit the data best,
the model for the prediction of future occurrence is generally written as I = y 1t = y t − y t −1. From
the model above we conclude that the number of typhoid decreases annually. It also shown from
the trend that the typhoid fever decreases as the year increases.
5
TABLE OF CONTENTS
TITLE PAGE i
CERTIFICATION ii
DEDICATION iii
ACKNOWLEDGEMENT iv
ABSTRACT v
TABLE OF CONTENTS vi
LIST OF FIGURE ix
6
1.8 DEFINITION OF TERMS 5
3.1 INTRODUCTION 10
5.2 CONCLUSION 16
5.3 RECOMMENDATION 16
REFERENCES 18
APPENDIX 21
7
LIST OF TABLES
8
LIST OF FIGURE
9
ABBREVIATION AND ACRONYMS
AR →Autoregressive
I → Integrated.
MA → Moving Average.
10
CHAPTER ONE: INTRODUCTION
Typhoid fever caused by Salmonella enterica serovar Typhi (S. typhi) remains a major
health problem globally. It affects about 21.7 million people, with 217,000 deaths occurring
worldwide on an annual basis [Crump and Mintz (2010)]. Transmission of the bacterium is
mainly through ingestion of fiscal contaminated food and water [Gonzalez-Escobedo, Marshall,
and Gunn (2011)]. Typhoid and paratyphoid germs are passed in the faeces and urine of infected
people. The infection is contracted after eating food or drinking that have been handled by an
infected person.
endothelial system (RES) and significant inflammation of the lymphoid organs of the small
intestine [Everest, etal (2011)]. In developing countries, typhoid fever causes at least 5% of all
deaths, with markedly different rates where typhoid fever is endemic. The reasons for these
differences in disease severity are not known but may be related to differences in health care
facilities, host immune responses, genetic factors in the strains of Salmonella enterica
serovar Typhi circulating in areas of endemicity [Zhu, etal (2016)]. The thrust of the study
was to assess the possible influence of selected socio-demographic factors which often
predispose people to infections on typhoid fever disease frequency in the studied areas.
In 2010, the global estimate of typhoid fever caused by Salmonella enterica serovar
Typhi (S. Typhi) was estimated to be 26.9 million cases with 217,000 deaths recorded. This es-
11
timate was adjusted for blood culture sensitivity based on a conservative assumption of 50%
However, only Egypt and South Africa contributed to this estimate for the African
continent. A previous global estimate of the burden of typhoid fever indicated that south-central
and east-central Asia had the highest incidences of typhoid fever with more than 100 cases per
100,000 people annually; Africa was estimated to have a medium incidence (10–100 cases per
100,000), [Marks et al., (2017)]. The estimated number of typhoid fever cases in low- and
middle- income countries in 2010 after adjusting for water-related risk was 11.9 million (95%
confidence interval: 9.9–14.7) cases with 129,000 (75,000–208,000) deaths [Mogasale, 2014].
It is clear that the incidence of typhoid fever in Africa is still not yet well understood
[Antill, 2017]. Out-of-sample validation of the model against data from nine Typhoid Fever
Surveillance in Africa Program sites showed that the model has mixed success in predicting
incidence for locations outside the estimation sample, [Antillon, 2017]. The paucity of
epidemiological data regarding invasive Salmonella disease in sub-Saharan Africa led the World
Health Organization (WHO) to call for a continent-wide approach in generating more accurate
In Nigeria, typhoid fever remains a major disease because of factors such as increased
immigrant workers, inadequate facilities for processing human waste, overburdened healthcare
delivery systems, and overuse use of antibiotics that contribute to the development and spread of
12
However, the true incidence of typhoid fever is difficult to evaluate in Nigeria because of
information on typhoid fever prevalence has been documented by several researchers in some
states in Nigeria ranging from 0.071% in Oyo to 47.1% in Osun. [Akinyemi, 2005] Blood
culture–positive typhoidal Salmonella remains the pivotal determinant to estimate true burden.
Unfortunately, only few hospitals, specifically, referral hospitals, perform blood culture for
diagnosing typhoid cases. The rate of hospitalization and prolonged illness of patients with
typhoid fever in high-burden regions due to treatment failure with empirical therapy is a
continuing public health concern. [WHO 2016] Since the early1990s, the spread of multiple
col, and trimethoprim–sulfamethoxazole), and more recently, ciprofloxacin have been observed
in parts of Asia and Africa, making the treatment of typhoid fever more challenging. [WHO
2016] Over the years, a similar resistance pattern was observed in Nigeria. Currently, the two
internationally licensed typhoid vaccines have not yet been considered for incorporation into the
typhoid fever incidence in Nigeria is the lack of access to safe drinking water and improved
The present study was undertaken to generate comprehensive and reliable data on S.
Typhi blood culture positivity with a view to outline the longitudinal trends of typhoid fever in
parallel with key contextual factors and to assess the trends of antimicrobial resistance in S.
Typhi in Nigeria
13
Typhoid fever is a systematic diseases and common worldwide illness, transmitted by
agent of infection, which creates a very serious public health problem in many underdeveloped
and developing countries, this study needs to examine the trend of typhoid fever recorded at
The aim of the project is to examine the trends of typhoid fever at Obafemi Awolowo
(a) Estimate the trend of typhoid fever over the period of considerable years (2011 - 2020).
(b) Fit the ARIMA models for the trend of typhoid fever for periods.
(c) Examine which of the models is best fit; AR (1), I (0) and MA (1) for typhoid fever.
The significance of health problem imposed by typhoid fever in this part of the world
makes it a serious health issue that requires adequate attention and care, this study will help the
hospital management, the state government and the general public to know the particular months
or quarter of the year that were mostly affected by typhoid fever in order to carryout enlighten
14
This project covers recorded case of typhoid fever for a period of ten years (2011 – 2020)
The major limitation of this study was basically on the collection of data and information
is regarded as confidential.
ARIMA (0, 2, 2) model→ Which is equivalent to Holt’s linear method with additive errors, or
15
CHAPTER TWO: LITERATURE REVIEW
Raymond, (2007) suggested that the following two questions must be answered to
identify the data series in a time series analysis: (1) whether the data are random; and (2) have
any trends? This is followed by another three steps of model identification, parameter estimation
and testing for model validity. If a series is random, the correlation between successive values in
a time series is close to zero. If the observations of time series are statistically dependent on
each another, then the ARIMA is appropriate for the time series analysis.
Meyler et al (2010) drew a framework for ARIMA time series models for
forecasting Irish inflation. In their research, they emphasized heavily on optimizing forecast
performance while focusing more on minimizing out-of-sample forecast errors rather than
maximizing in-sample ‘goodness of fit’. Stergiou (2014) in his research used ARIMA model
technique on a 17 years' time series data (from 1964 to 1980 and 204 observations) of
monthly catches of pilchard (Sardina pilchardus) from Greek waters for forecasting up to 12
months ahead and forecasts were compared with actual data for 1981 which was not used in
the estimation of the parameters. The research found mean error as 14% suggesting that ARIMA
procedure was capable of forecasting the complex dynamics of the Greek pilchard fishery,
which, otherwise, was difficult to predict because of the year-to-year changes in oceanographic
and biological conditions. Contreras et al (2013) in their study, using ARIMA methodology,
16
provided a method to predict next-day electricity prices both for spot markets and long-
term contracts for mainland Spain and Californian markets. In fact a plethora of research studies
is available to justify that a careful and precise selection of ARIMA model can be fitted to
the time series data of single variable (with any kind of pattern in the series and with
autocorrelations between the successive values in the time series) to forecast, with better
accuracy, the future values in the series. This study is also an attempt to predict the future
production values of sugarcane in India by fitting ARIMA technique on the time series data of
ARIMA models are a class of models that have capabilities to represent stationary as well
historical data of single variable. Since it does not assume any particular pattern in the historical
data of the time series that is to be forecast, this model is very different from other models used
for forecasting. The approach of Box-Jenkins methodology in order to build ARIMA models is
(1) Model Identification, (2) Parameter Estimation and Selection, (3) Diagnostic Checking (or
Modal Validation); and (4) Model's use. Model identification involves determining the orders (p,
d, and q) of the AR and MA components of the model. Basically it seeks the answers for
whether data is stationary or non-stationary? What is the order of differentiation (d), which
17
Time Series Analysis and Building ARIMA
Since we already have discussed that to build an ARIMA model for forecasting of a
variable requires following steps: 1) Model Identification, (2) Parameter Estimation and
Selection, and (3) Diagnostic Checking (or Modal Validation); before we can (4) use the Model
for forecasting application. We, therefore, will first try to identify the model for fitness.
Model Identification
First stage of ARIMA model building is to identify whether the variable, which is being
forecasted, is stationary in time series or not. By stationary we mean, the values of variable over
time varies around a constant mean and variance. The time plot of the sugarcane production
data in Picture 1 above clearly shows that the data is not stationary (actually, it shows an
increasing trend in time series). The ARIMA model cannot be built until we make this series
stationary. We first have to difference the time series ‘d’ times to obtain a stationary series in
order to have an ARIMA(p, d, q) model with ‘d’ as the order of differencing used. The best idea
is to start with differencing with lowest order (of first order, d=1) and test the data for unit root
problems.
18
CHAPTER THREE: METHODOLOGY
3.1 INTRODUCTION
The data to be used for this study will be from Obafemi Awolowo University Teaching
Hospital in Ile-Ife, Osun State in southwest Nigeria and the statistical tools to be used is ARIMA
model.
ARIMA stands for Autoregressive Integrated Moving Average. This model is the
Where differencing is used to remove the trend in a time series and make it a stationary. The AR
part of ARIMA indicates that the evolving variable of interest is regressed on its own lagged (i.e
prior) values. The MA part indicates that the regression error is actually a linear combination of
error terms whose values occurred contemporaneously and at various time in past.
For example ARIMA (1,0,0) is AR (1); ARIMA (0,1,0) is I(1); ARIMA (0,0,1) is MA(1).
Which is equivalent to Holt’s linear method with additive errors, or double exponential
smoothing.
Differencing → ∇ y = y t − y t −1
t
20
CHAPTER FOUR: PRESENTATION AND ANALYSIS OF DATA
Table 4.1.1: The table below shows the cases of typhoid fever recorded at OAU Teaching
Year
Age
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
0-11 mths 3 2 4 1 4 1 26 11 15 18
25-29 7 8 9 9 12 15 52 95 78 125
30-34 10 10 13 11 6 19 50 36 49 82
35-39 2 7 5 5 2 15 27 90 67 53
40-44 7 5 9 8 2 10 20 50 42 60
45-49 4 8 12 13 3 16 28 54 50 71
50-54 1 5 4 6 3 4 28 41 40 52
55-59 3 3 5 3 4 6 20 85 65 62
60-64 4 1 3 6 7 2 16 40 38 28
65-69 1 3 2 2 1 5 15 31 30 21
70+ 4 3 5 6 6 13 31 75 51 48
Source: Obafemi Awolowo University Teaching Hospital, Ile-Ife, Osun State (2021).
21
4.2 ANALYSIS OF DATA
Model Type
Model
age Model_1 ARIMA(0,0,0)
ID
squared Outliers
age-
10 .937 1.213E-005 . 0 . 0
Model_1
Model Type
Model
age Model_1 ARIMA(1,0,0)
ID
22
Table 4.2.2b: Model Statistics
squared
Model Type
Model
age Model_1 ARIMA(3,0,0)
ID
squared Outliers
23
Table 4.2.4a: Model Description
Model Type
Model
agee Model_1 ARIMA(1,1,1)
ID
100%
90%
80%
70% Series10
Series9
60% Series8
Series7
50% Series6
40% Series5
Series4
30% Series3
Series2
20% Series1
10%
0%
Age 0.2 2- 9- 14- 15- 20- 25- 30- 35- 40- 45- 50- 55- 60- 65- 70+
Jan May Oct 19 24 29 34 39 44 49 54 59 64 69
24
CHAPTER FIVE: SUMMARY, CONCLUSION AND INTERPRETATION
The ACF (autocorrelation) function is positive for all means that is significant
relationship in the number of years and the incrementing the typhoid. Generally we fit
ARIMA(0,0,0), (1,1,1) and (3,0,0) among all these we see that ARIMA (1,1,1) fit the data best,
1
I = y t = y t − y t −1
t
MA (1)=( 1−QLi )
AR (1 )=α 1 y t −1−μ+ ε t
Fig I Model Description: white noise is fixed to the model and is referred to as ARIMA (0,0,0)
pick= {0 , otherwise
1 , st
H 1 : themodel is fit
25
Since R2=0.937> p−value=0.00
ti
t ( 1−Qi Li ) +ϵ t
L = period, Q = parameter
∝1 =
∑ yt
∑ y t−1
^μ=
∑ yt
n
ARIMA (1,1,1) = fit the data most simply because it exhibit stationality, means and variances are
constant.
5.2 CONCLUSION
From the model above we conclude that the number of typhoid decreases annually. It also
shown from the trend that the typhoid fever decreases as the year increases.
5.3 RECOMMENDATION
Based on the analysis so far, since there is a decrease in typhoid fever yearly, the
26
1. The Federal Government in collaboration with Osun State Government should introduce
the importance of some drugs which are not sufficiently produced in the country for the
2. The public should be educated on the importance of using malarial drugs towards
3. The people of Ile-Ife should not use self-medication whenever they need to visit hospital.
4. Government should make provision for vaccines protecting people against these diseases
most especially malaria fever.
5.4 CONTRIBUTION TO KNOWLEDGE
This study has determined the trend of typhoid fever and carryout necessary steps to
27
REFERENCES
1. Akinyemi K.O, Smith S.I, Oyefolu, A.O, and Coker AO, (2005): Multidrug resistance in
2. Antillon, M, Warren JL, Crawford FW, Weinberger DM, K ¨ur ¨um E, Pak GD, Marks
FV, Pitzer VE, (2017): The burden of typhoid fever in low-and middle-income countries:
informal settlement and a rural area in Kenya: implication for typhoid vaccine use in
4. Buckle GC, Walker FCI, Black RE, (2012): Typhoid fever and paratyphoid fever:
systematic review to estimate global morbidity and mortality for 2010. J Glob Health 2:
010401.
5. Contreras, J., Espinola, R., Nogales, F.J., Conejo, A.J., (2013), ARIMA Models to
Predict Next - day Electricity Prices, IEEE Transactions on Power Systems, Vol. 18, No.
3, pp. 1014-1020.
6. Crump JA, Mintz ED. (2010): Global trends in typhoid and paratyphoid fever. Clin.
7. Everest P, Wain J, Roberts MR, Dougan G. (2011): The molecular mechanisms of severe
28
8. Gonzalez-Escobedo G, Marshall JM, Gunn JS. (2011): Chronic and acute infection of
the gall bladder by Salmonella typhi: Understanding the carrier state. Nat. Rev.
Microbial.; 9:9–14.
9. Hall RP, van Koppen B, van Houweling E, (2014): The human right to water: the
importance of domestic and productive water rights. Sci Eng Ethics 20: 849–868.
10. Marks F et al., (2017): Incidence of invasive Salmonella disease in sub-Saharan Africa: a
11. Myers, N. and Kent, J. (2010) New Consumers: the influence of affluence on the
12. Mogasale V, Maskery B, Ochiai RL, Lee JS, Mogasale VV, Ramani E, Kim YE, Park
JK, Wierzba TF, (2014): Burden of typhoid fever in low-income and middle-income
Health 2: e570–e580.
13. Soneye, A. S. O. (2014). Farm Size Holdings in Northern Nigeria: A Remote Sensing
Assessment and Implication for Food Sustenance. African Journal of Food, Agriculture
14. Stergiou, K. I. (2009), Modeling and forecasting the fishery for pilchard (Sardina
15. Talabi HA, (2014): Medical aspects of typhoid. Niger Postgraduate Med J 1: 51–56.
16. World Health Organization, (2008): Typhoid vaccines: WHO position paper. Wily
29
17. World Health Organization, (2016): Background Document: The Diagnosis, Treatment
http://www.who.int/rpc/TFGuideWHO.pdf.
18. Zhu, Q. Lim CK, Chan YN. (2016): Detection of Salmonella typhoid by polymerase
30
APPENDIX (DATA PRESENTATION)
Table 1.0: The table below shows the cases of typhoid fever recorded at OAU Teaching
Year
Age
2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
0-11 mths 3 2 4 1 4 1 26 11 15 18
25-29 7 8 9 9 12 15 52 95 78 125
30-34 10 10 13 11 6 19 50 36 49 82
35-39 2 7 5 5 2 15 27 90 67 53
40-44 7 5 9 8 2 10 20 50 42 60
45-49 4 8 12 13 3 16 28 54 50 71
50-54 1 5 4 6 3 4 28 41 40 52
55-59 3 3 5 3 4 6 20 85 65 62
60-64 4 1 3 6 7 2 16 40 38 28
65-69 1 3 2 2 1 5 15 31 30 21
70+ 4 3 5 6 6 13 31 75 51 48
31
Source: Obafemi Awolowo University Teaching Hospital, Ile-Ife, Osun State (2021).
32