Professional Documents
Culture Documents
INTRODUCTION
Even with all our technology and the innovations that make modern life so much
accessible than it once was, it takes natural disaster to wipe all that away and remind us that
we're still at the mercy of nature. The limited power to deal with calamities and catastrophes in
our country was putting the lives of the citizens at risk. This was quite clear from the fact that
there were over 95% chances that in case of an emergency; the sufferer will not get an
ambulance for transportation, let alone proper emergency care by trained professionals.
It was evident from the history that emergency management has been long neglected in
Pakistan and there were no disaster response forces or trained emergency medical-technicians in
case of any emergency or a disaster. Moreover, emergency ambulance, rescue and trained fire
services were almost fictional which was clearly exposed during October, 2005 earthquake in
Pakistan. Thus, the citizens of Pakistan were deprived of even the basic right to appropriate
emergency care in case of natural calamities and catastrophes.
Therefore, the Punjab Emergency Service (Rescue 1122) started in 2004 after the success
of the Lahore Pilot Project. This service is obtained by calling 1122 from any phone. It was
accepted under the 2006 Punjab Emergency Service Act to provide management of disasters.
Rescue 1122 has now developed into the largest humanitarian service of Pakistan and also
providing encouragement & training to the staff of other provinces. Rescue 1122 has been able to
achieve confidence of people by rescuing millions of victims of emergencies through its
emergency ambulance, rescue & fire services in all 36 Districts of Punjab.
As a result of the performance during destructive disasters including the ruinous floods of
2010 the Provincial Disaster Management Authority has notified Punjab Emergency Service as
the Disaster Response Force and the Home Department, Government of the Punjab, has also
transferred the flood relief function along with material resources from Civil Defense to the
Punjab Emergency Service on 28th May, 2011. Rescue 1122 is also boosting its power for
emergency mobility and response in association with the National & Provincial Disaster
Management Authorities.
This is strongly reflected in the mission statement of RESCUE 1122 which is Development
of safer communities through establishment of an effective system for emergency preparedness,
response and prevention. After establishing the organization of essential emergency service
workforce, the ultimate vision of Rescue 1122 is prevention of emergencies through practical
public participation in saving lives and changing minds of the society so that we can establish
flexible & secure communities. In this regard, teams have already been constituted in every
district and many projects are in progress to establish protected Communities in Pakistan.
1.2
This is the most significant function of Rescue 1122 as over 97% emergency calls are
linked with Emergency Ambulance Service. This service rescued millions of victims of road
accidents, medical emergencies and fatalities while keeping standard in all Districts of
Punjab. The Punjab Emergency Service (Rescue 1122) was originally started as an
Emergency Ambulance Service on 14th October 2004 as a pilot project from Lahore. After
the achievement of this pilot project, Emergency Ambulance Service was started in 12 major
cities of Punjab and subsequently in all Districts of the Punjab province with a population of
over 80 million. In spite of the fact that Rescue & Fire Services were also established
consequently, over 97% emergency calls are still associated to Emergency Ambulance
Service. The main successors of this Service have been the injured party of road traffic
accidents whom earlier people were afraid to help due to medico-legal reasons.
It was for the first time that emergency medical technicians were trained for this emergency
ambulance service and emergency ambulances of international standards were manufactured
in Pakistan. This training and domestic fake of ambulances made the project cost effective
and worthwhile resulting in success of Rescue 1122.
high level monitoring for application of protective measures. The main features of Community
Safety Activities include following.
Deaths and inabilities to traffic accidents victims are therefore causing huge socio-economic
impact on society.
In order to minimize the number of traffic accidents, Rescue 1122 has started a number of
Read Safety actions which include regular date accumulation and analysis for prevention
purposes, Trauma Registry Program, Public Awareness campaign of safety messages and
advertising of accidents dairy to media workers on daily basis.
Disaster Risk Management (CBDRM) in cooperation with United Nations & other international
organizations.
In our study we have recorded the response time for emergency calls and study the
parameter of its distribution in Bayesian paradigm. In addition to this, we have also studied the
different categories of calls received at Rescue 1122 using Bayesian approach.
VARIABLES
1. EMERGENCY CALLS
2. FAKE CALLS
3. WRONG CALLS
4. ABUSING CALLS
5. DISTORTED CALLS
1.3 Statistics:
Statistics is the collection of methods for planning experiments, obtaining
data, and then organizing, summarizing, presenting, analyzing interpreting and
drawing conclusions based on data.
Some basic concepts of Classical statistics and Bayesian statistics are given
below.
information
is
always
used
for
finding
posterior
distribution.
information from the data nearby expressed through the likelihood function, with other
information described through the prior distribution.
Research has continued from the past few years and the use of some other non informative priors
is also observed, for example, the priors by Bernardo (1979b), Ghosh and Mukerjee (1992) and
also the non informative prior by Tibshirani (1989). Another broadly used set of priors is by
Peers (1965) rediscovered by Stein (1985). According to Leonard (1990) no prior evaluation,
whether proper prior or improper prior represents prior ignorance. For example, an improper
uniform distribution on p-dimensional real space provides information that the parameter is
toward stretch out in either of two regions, if these hold the same hyper volume.
is defined as:
P(
where
(
(
) (
) (
sample density and P( ) is the prior density. It is to be noted that the output of the Bayesian
analysis is not a single estimate of the parameter, but rather the entire posterior distribution
which summarizes all the required information about the parameter.
1.5 OBJECTIVES
To study the time variable needed to respond the emergency calls received at Rescue
1122 centre in Multan city using Bayesian approach.
To study the categories of calls received at Rescue 1122 centre in Multan city using
Bayesian approach.
CHAPTER 2
LITERATURE REVIEW
The structure of a Bayesian network represents a set of conditional independence
relations that hold in the domain. Learning the structure of the Bayesian network model that
represents a domain can reveal insights into its underlying causal structure. Moreover, it can
also be used for prediction of quantities that are difficult, expensive, or unethical to measure.
such as the probability of lung cancer for example based on other quantities that are easier to
obtain. The contributions of this thesis include
clustering problem, the generic prob- lem encountered in tasks such as reference matching, co
reference resolution, identity uncertainty and record linkage. Their clustering model is based on
the Dirichlet process prior, which enables them to dene distributions over the countably innite
sets that naturally arise in this problem. They add supervision to their model by positing the
existence of a set of unobserved random variables that are generic across all clusters. Inference in
their framework, which requires integrating over innitely many parameters, is solved using
Markov chain Monte Carlo techniques. They present algorithms for both conjugate and nonconjugate priors. They present a simplebut generalparameterization of our model based on a
Gaussian assumption. They evaluate this model on one articial task and three real-world tasks,
comparing it against both unsupervised and state-of-the-art supervised algorithms.
Feroze et.al (2012), concerned with posterior analysis of exponentiated gamma
distribution for type II censored samples. The expressions for Bayes estimators and associated
risks have been derived under different priors. The entropy and quadratic loss functions have
been assumed for estimation. The posterior predictive distributions have been obtained and
corresponding intervals have been constructed. The study aims to find out a suitable estimator of
the parameter of the distribution. The findings of the study suggest that the performance of
estimators under gamma prior using entropy loss function is the best. Five informative and noninformative priors have been assumed under two loss functions for the posterior analysis. The
performance of the different estimators has been evaluated under a detailed simulation study.
The study proposed that in order estimate the said parameter, the use of gamma prior under
entropy loss function can be preferred.
CHAPTER 3
Methods and Materials:
In our study we have recorded the response time for emergency calls and study the
parameter of this distribution in Bayesian paradigm. In addition to this, we have also studied the
different categories of calls received at Rescue 1122 using Bayesian approach.
Let X is a continuous random variable. Let a set of values that a random variable can take
is a set of positive real numbers
= [0, )
Let X has an exponential distribution with parameter
function is equal to
f (x) =
A random variable having an exponential distribution is also called an exponential
random variable. The mean of an exponential random variable X is
E(X) = . The variance of an exponential random variable X is V(X) =
The greatest revolution in statistics begins with Bayesian inference. As a statistical method
Bayesian derivation ensures that this method works as best as compare to any other method. To
estimate the posterior probabilities Bayesian inference uses prior probabilities. In Bayesian
inference
.In
own prior ( . Bayesian inference is used in different fields including medicine, science,
engineering, philosophy and law. Bayesian inference is used for better estimation or for future
planning. Bayesian inference empowers us in solving most difficult problems.
Bayes Theoram
Likelihood
Log Likelihood
Prior Probabilities
Uniform prior
Informative prior
Jeffreys prior
Posterior Distribution
Hyper parameters
is
also known as Bayes' law or Bayes' rule. Bayes' theorem tell us that the conditional
(A|B)=
In bayesian inference we replaced an event B with the observation y where event A is replaced
with parameter
and probabilities
in denominator
p(
In this research we use gammma distribution as prior distribution while using exponential
distribution as current distribution to find posterior distribution.
P( )=
Hyper parameters :
In Bayesian statistics, parameters of prior distribution are called hyper parameters. Hyper
parameters are used to differentiate them from parameters of model.
For example in checking response time using Bayesian approach we are using Gamma
distribution to model the exponential distribution of parameter
then
( )=
is defined as:
(
(
)
)
(
(
We may combine the distribution of both random variables current and prior and find
posterior distribution. In Bayesian statistics
3.3.4 Likelihood:
Likelihood function of n random variables
density of these n random variables. Say (
of .In particular if
is defined to be joint
;
= (
prior
Informative
prior
Jeffrey prior
; )
then the
(
(
( | )
P(
P( | )
P( | )
P( | )
P( | )
Let
=b+
P(
P(
P(
It can be seen that the posterior parameters which we have attain from posterior
distribution are updated parameters by the hyper parameters of prior distribution. So the
information has been improved.
f(
(
(
P(x|
P( )=
P( | )=
P(
P(
P( | )
P( | )
P( | )
P( | )
Let
=b+
P(
P(
P(
( | )
i=1, 2, 3
is
Log [ ( | )] =Log[
Log [ ( | )]
] ------ (1)
( )
( | )
( | )
-0
( | )
Appling Expectation as
[ ( | )]
[ ( | )]
Jeffreys Prior is
( | )
( | )
(
f(x|
( | )=
( | )=
(1)
When denominator will be integrated over interval 0 to it will gave us the Normalized
constant so that the incomplete PDF of GAMMA ( , ) become complete.
Uniform prior
Informative prior
Jefferys prior
for
i=1, 2, 3
Log [f(x| )]
ni 1 xi
nlog
] ------ (1)
Log f(x| )
[nlog
xi ]
i 1
Log f(x| )
n( )
xi 1
i 1
Log f(x| )
xi
i 1
ni 1 xi = 0
n
xi
ni 1 xi
i 1
1. EMERGENCY CALLS
2. FAKE CALLS
3. WRONG CALLS
4. ABUSING CALLS
5. DISTORTED CALLS
CHAPTER 4
ANALYSIS
In this chapter we discuss results of our whole research work which we conclude after
analyzing the first emergency service Rescue 1122 data using Bayesian paradigm. The purpose
of Bayesian analysis is to revise and update the initial assessment of the event probabilities
generated by alternative solutions. This is achieved by the use of additional information. The
essence of Bayesian methods consists in identifying our prior beliefs about what results are
likely, and then updating those according to the data we collect. Intuitively, the updating process
will more readily accept estimates consistent with the prior (if we believe that a defined rate is perfectly
likely, our posterior will move there readily after a small number of observations), but will require more
data to accept estimates that are less probable according to the prior. This is very straightforward, we start
with a prior belief, and then update it in line with the incoming data. As the data start coming in, we start
updating our beliefs. If the incoming data points to an improvement in the conversion rate, we start
moving our estimate of the effect from the prior upwards; the more data we collect, the more confident
we are in it. The end result is what is called the posteriora probability distribution describing the likely
effect of treatment incorporating both the previous and current information.
We prefer Bayesian paradigm for analyzing Rescue 1122 data for two main reasons. Firstly in
Bayesian analysis our end result is a probability distribution, rather than a point estimate. Instead of
having to think in terms of p-values, we can think directly in terms of the distribution of possible effects
of our treatment. For example, if only 2% of the values of the posterior distribution lie below 0.05, we
have 98% confidence that the conversion rate is above 0.05; if 70% of the values lie above 0.1, we have
70% confidence that the conversion rate is above 0.1. This makes it much easier to understand and
communicate the results of the analysis. In this research work, we have recorded the response time for
emergency calls and study the parameter of its distribution in Bayesian paradigm.
2013
2012
2011
Year
Month
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Using above data set of response time of emergency calls of three years (2011-2013), we
calculate posterior mean, variance, standard deviation and mode with the help of statistical
computing packages SAS and Wolfram Mathematica. In this research work, we use three classes
of prior to analyze average response time of emergency calls.
1. Uniform prior
2. Jeffery prior
3. Informative prior
We compare posterior means using uniform prior with those obtained using Jefferys prior
and Informative prior as well as variances, standard deviation and modes obtained using all the
priors. Following results we obtained after computing mean, variances, standard deviation by
using statistical computing package SAS.
The Posterior Estimates using uniform prior SAS output using Appendix A:
N
33
T
226.05
Mean
0.15041
Variance
0.000665358
SD
0.02579
The Posterior Estimates using Jefferys prior SAS output using Appendix C:
N
33
T
226.05
Mean
0.14599
Variance
0.000645651
SD
0.025409
T
226.05
Mean
0.12407
Variance
0.000466243
SD
0.021592
Mean
Variance
Uniform prior
Jeffery prior
Informative prior
0.15041
0.14599
0.12407
0.000665358
0.000645651
0.000466243
Standard
deviation
0.025794
0.025409
0.021592
Mode
0.15
0.14
0.12
I NT E G
0. 023
0. 022
0. 021
0. 020
0. 019
0. 018
0. 017
0. 016
0. 015
0. 014
0. 013
0. 012
0. 011
0. 010
0. 009
0. 008
0. 007
0. 006
0. 005
0. 004
0. 003
0. 002
0. 001
0. 000
0. 01 0. 02 0. 03 0. 04 0. 05 0. 06 0. 07 0. 08 0. 09 0. 10 0. 11 0. 12 0. 13 0. 14 0. 15 0. 16 0. 17 0. 18 0. 19 0. 20 0. 21 0. 22 0. 23 0. 24 0. 25 0. 26 0. 27 0. 28 0. 29
I NT EG
0. 024
0. 023
0. 022
0. 021
0. 020
0. 019
0. 018
0. 017
0. 016
0. 015
0. 014
0. 013
0. 012
0. 011
0. 010
0. 009
0. 008
0. 007
0. 006
0. 005
0. 004
0. 003
0. 002
0. 001
0. 000
0. 00 0. 02 0. 04 0. 06 0. 08 0. 10 0. 12 0. 14 0. 16 0. 18 0. 20 0. 22 0. 24 0. 26 0. 28 0. 30 0. 32 0. 34 0. 36 0. 38 0. 40 0. 42 0. 44 0. 46 0. 48 0. 50
I NT EG
0. 023
0. 022
0. 021
0. 020
0. 019
0. 018
0. 017
0. 016
0. 015
0. 014
0. 013
0. 012
0. 011
0. 010
0. 009
0. 008
0. 007
0. 006
0. 005
0. 004
0. 003
0. 002
0. 001
0. 000
0. 01 0. 02 0. 03 0. 04 0. 05 0. 06 0. 07 0. 08 0. 09 0. 10 0. 11 0. 12 0. 13 0. 14 0. 15 0. 16 0. 17 0. 18 0. 19 0. 20 0. 21 0. 22 0. 23 0. 24 0. 25
2. FAKE CALLS
3. WRONG CALLS
4. ABUSING CALLS
5. DISTORTED CALLS
Mean
0.46300
0.050008
0.38678
0.050066
0.050132
Variance
0.01146775
0.0043421
0.001145369
0.000003330
0.000006629
Standard deviation
0.1070875
0.065878
0.0338433
0.001824
0.0025746
Mode
0.54
0.64
0.06
0.07
0.06
Mean
0.43142
0.095465
0.37310
0.0500037
0.05006
Variance
0.000923646
0.00264119
0.000905999
0.000000203
0.000000377
Standard deviation
0.03039
0.05139
0.03009
0.00045
0.00061
Mode
0.45
0.55
0.04
0.05
0.05
Uniform prior
0.46300
0.01146775
0.1070875
0.54
Informative prior
0.43142
0.000923646
0.03039
0.45
In above analysis we consider emergency calls as a variable and obtained following results. It is
clear from the results that posterior estimates mean, variance, standard deviation and mode of uniform
prior is greater than mean, variance, standard deviation and mode of informative prior. The condition of
Bayesian analysis is fulfilled that posterior estimates mean and variance, standard deviation and mode of
informative prior is less than posterior estimates mean, variance, standard deviation and mode of uniform
prior.
Uniform prior
0.050008
0.0043421
0.065878
0.64
Informative prior
0.095465
0.00264119
0.05139
0.55
In above analysis we consider fake calls as a variable and obtained following results. It is clear
from the results that posterior estimates mean, variance, standard deviation and mode of uniform prior is
greater than mean, variance, standard deviation and mode of informative prior. The condition of Bayesian
analysis is fulfilled that posterior estimates mean and variance, standard deviation and mode of
informative prior is less than posterior estimates mean, variance, standard deviation and mode of uniform
prior.
Uniform prior
0.38678
0.001145369
0.0338433
0.06
Informative prior
0.37310
0.000905999
0.03009
0.04
In above analysis we consider wrong calls as a variable and obtained following results. It is clear from the
results that posterior estimates mean, variance, standard deviation and mode of uniform prior is greater
than mean, variance, standard deviation and mode of informative prior. The condition of Bayesian
analysis is fulfilled that posterior estimates mean and variance, standard deviation and mode of
informative prior is less than posterior estimates mean, variance, standard deviation and mode of uniform
prior.
Uniform prior
0.050066
0.01146775
0.001824
0.07
Informative prior
0.0500037
0.000923646
0.00045
0.05
In above analysis we consider abusing calls as a variable and obtained following results.
It is clear from the results that posterior estimates mean, variance, standard deviation and mode
of uniform prior is greater than mean, variance, standard deviation and mode of informative
prior. The condition of Bayesian analysis is fulfilled that posterior estimates mean and variance,
standard deviation and mode of informative prior is less than posterior estimates mean, variance,
standard deviation and mode of uniform prior.
Uniform prior
0.050132
0.000006629
0.0025746
0.06
Informative prior
0.05006
0.000000377
0.00061
0.05
In above analysis we consider distorted calls as a variable and obtained following results.
It is clear from the results that posterior estimates mean, variance, standard deviation and mode
of uniform prior is greater than mean, variance, standard deviation and mode of informative prior
.The condition of Bayesian analysis is fulfilled that posterior estimates mean and variance,
standard deviation and mode of informative prior is less than posterior estimates mean, variance,
standard deviation and mode of uniform prior.
Conclusion:
After analyzing the above data set of response time of emergency calls of three years
(2011-2013) by using Bayesian paradigm we conclude that informative prior is best than uniform
prior and Jeffery prior because informative prior has least variance as comparison to Jeffery prior
and uniform prior. Then we analyze five categories of calls received at Rescue 1122 using Bayesian
approach. Five categories of calls
1. Emergency calls
2. Fake calls
3. Wrong calls
4. Abusing calls
5. Distorted calls
And conclude that emergency calls has greater mean than fake calls, wrong calls, abusing calls
and distorted calls. As it is clear from the following results posterior means using all the priors are
almost similar. The posterior modes are also almost identical. The variance and standard
deviation obtained using informative prior are the minimum while, those obtained using uniform
prior are the maximum. This shows that the estimates obtained using informative prior are the
best. Informative prior proves to be better prior than the non informative priors. However, the
results obtained using both the non informative priors are almost identical so any one of them
can be used as non informative prior.
Appendix Tables
Appendix A
Mean and variance using uniform prior exponential
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 500-DL BY DL;
INTEG=0;
FUN=U*7.8656E-44**-1*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;
OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC; RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U INTEG; RUN;
Appendix A1
Mode using uniform prior for exponential
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 500-DL BY DL;
INTEG=0;
FUN=U*7.8656E-44**-1*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;
OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC; RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U INTEG; RUN;
Appendix A2
Plot for uniform prior using exponential
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 0.5-DL BY DL;
INTEG=0;
FUN=U*7.8656E-44**-1*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;
OUTPUT;
END;
AXIS1 Length=2 IN;
AXIS2 Length=4 IN;
PROC GPLOT DATA=CC;
SYMBOL1 INTERPOL=JOIN;
Plot INTEG*U=1;
VAXIS=AXIS HAIS1;
HAXIS=AXIS2;
RUN;
Appendix B
Mean and variance using gamma as an informative prior
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 A1 B1 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8
7.2 5.8 9.1 6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01 40.01
0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30+x31+x32+x33;
DO U=DL TO 500-DL BY DL;
PDF=2.4362E-45**-1*U*
(U**((A1+33)-1))*(EXP(-U*(B1+T)));
FUN2=DL**1*PDF;
INTEG+FUN2;
FUN3=2.4362E-45**-1*U**2*
(U**((A1+33)-1))*(EXP(-U*(B1+T)));
FUN4=DL**1*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix C
Mean and variance Jeffreys prior
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 500-DL BY DL;
INTEG=0;
FUN=U*5.3879E-43**-1*(U**-1)*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;
OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC;RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U INTEG; RUN;
Appendix C1
Mode using Gamma distribution as informative prior
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 A1 B1 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8
7.2 5.8 9.1 6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01 40.01
0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30+x31+x32+x33;
DO U=DL TO 500-DL BY DL;
INTEG=0;
PDF=2.4362E-45**-1*U*
(U**((A1+33)-1))*(EXP(-U*(B1+T)));
FUN2=DL**1*PDF;
INTEG+FUN2;
OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC; RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U INTEG; RUN;
Appendix C2
Plot using Gamma informative
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 A1 B1 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8
7.2 5.8 9.1 6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01 40.01
0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30+x31+x32+x33;
DO U=DL TO 0.26-DL BY DL;
INTEG=0;
PDF=2.4362E-45**-1*U*
(U**((A1+33)-1))*(EXP(-U*(B1+T)));
FUN2=DL**1*PDF;
INTEG+FUN2;
OUTPUT;
END;
AXIS1 Length=2 IN;
AXIS2 Length=4 IN;
PROC GPLOT DATA=CC;
SYMBOL1 INTERPOL=JOIN;
Plot INTEG*U=1;
VAXIS=AXIS HAIS1;
HAXIS=AXIS2;
RUN;
Appendix D
Elicitation gamma informative
/*fitted prior predictive probabilities*/
DATA D1; N=20; DA=1;DL=0.01;
DO A1=0.01 TO 0.01 BY DA; DO B1=0.01 TO 40.01 BY DA;
X=2;
CL1=0;
DO U=DL TO 1-DL BY DL;
PPD=U**(A1+N-1)*EXP(-U*(B1+X))*B1**A1/(GAMMA(A1)*GAMMA(X+1));
GP1=(DL**1)*PPD; CL1+GP1;
*OUTPUT; END; *OUTPUT; END; END;
DATA D2; SET D1; IF X=2;
*PROC PRINT DATA=D2; RUN;
PROC SORT DATA=D2;BY A1 B1 ; RUN;
PROC MEANS DATA=D2 SUM NOPRINT; VAR CL1;BY A1 B1 ;
OUTPUT OUT=D3 SUM=FCL1; *PROC PRINT DATA=D3; RUN;
/*FITTED C.L NO. 1i.e. CL2 */
DATA D4;N=15; X=0; DA=1;DL=0.01;
DO A1=0.01 TO 0.01 BY DA; DO B1=0.01 TO 40.01 BY DA;
CL2=0;
DO U=DL TO 1-DL BY DL;
PPD=U**(A1+N-1)*EXP(-U*(B1+X))*B1**A1/(GAMMA(A1)*GAMMA(X+1));
GP2=(DL**1)*PPD; CL2+GP2;
*OUTPUT; END; *OUTPUT; END; END;
DATA D5; SET D4; IF X=0;
*PROC PRINT DATA=D4; RUN;
PROC SORT DATA=D5;BY A1 B1 ; RUN;
PROC MEANS DATA=D5 SUM NOPRINT; VAR CL2;BY A1 B1 ;
OUTPUT OUT=D6 SUM=FCL2; *PROC PRINT DATA=D5; RUN;
/*FITTED C.L NO. 1i.e. CL2 */
/*CALCULATION OF FUNCTION SAI*/
DATA DDD; MERGE D3 D6;
SAI=ABS(FCL1-0.0005)+ABS(FCL2-0.00001);
PROC PRINT DATA=DDD; RUN;
/* MINIMUM VALUE OF FUNCTION SAI*/
DATA DD1; SET DDD;
PROC SORT; BY SAI;
PROC PRINT DATA=DD1 (OBS=10);
VAR B1 A1 SAI; RUN;
Appendix E
Variance Emergency calls using uniform prior
DATA DD;
INPUT T1 T2 T3 T4 T5 DL;
CARDS;
84 1 70 4 5 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;
PDF= U1*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3U4)**T5);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U1**2*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2U3-U4)**T5);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END; END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix E.1.
Variance of fake calls using uniform prior
DATA DD;
INPUT T1 T2 T3 T4 T5 DL;
CARDS;
84 1 70 4 5 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;
PDF= U2*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3U4)**T5);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U2**2*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2U3-U4)**T5);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END; END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix E. 2.
Variance of wrong calls using uniform prior
DATA DD;
INPUT T1 T2 T3 T4 T5 DL;
CARDS;
84 1 70 4 5 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;
PDF=U3*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3U4)**T5);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U3**2*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2U3-U4)**T5);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END; END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix E. 3.
Variance of abusing calls using uniform prior
DATA DD;
INPUT T1 T2 T3 T4 T5 DL;
CARDS;
84 1 70 4 5 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;
PDF=U4*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3U4)**T5);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U4**2*1.1664E-75**-1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2U3-U4)**T5);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END; END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix E.4
Variance of distorted calls using uniform prior
DATA DD;
INPUT T1 T2 T3 T4 T5 DL;
CARDS;
84 1 70 4 5 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;
PDF=(1-U1-U2-U3-U4)*1.1664E-75**1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3-U4)**T5);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=(1-U1-U2-U3-U4)**2*1.1664E-75**1*(U1**T1)*(U2**T2)*(U3**T3)*(U4**T4)*((1-U1-U2-U3-U4)**T5);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END; END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix F
Variance of Emergency calls using informative prior
DATA DD;
INPUT T1 T2 T3 T4 T5 A1 A2 A3 A4 A5 DL;
CARDS;
84 1 70 4 5 20 20 20 1 1 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;;
PDF=U1*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U1**2*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END;END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix F.1.
Variance of Fake calls using informative prior
DATA DD;
INPUT T1 T2 T3 T4 T5 A1 A2 A3 A4 A5 DL;
CARDS;
84 1 70 4 5 20 20 20 1 1 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
INTEG=0;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;;
PDF=U2*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN2=DL**4*PDF;
INTEG+FUN2;
END; END; END;
OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC; RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U2 INTEG; RUN;
Appendix F.2.
Variance of Wrong calls using informative prior
DATA DD;
INPUT T1 T2 T3 T4 T5 A1 A2 A3 A4 A5 DL;
CARDS;
84 1 70 4 5 20 20 20 1 1 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;;
PDF=U3*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U3**2*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END;END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix F.3
Variance of Abusing calls using informative prior
DATA DD;
INPUT T1 T2 T3 T4 T5 A1 A2 A3 A4 A5 DL;
CARDS;
84 1 70 4 5 20 20 20 1 1 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;;
PDF=U4*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=U4**2*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A2-1)*U3**(T3+A31)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END;END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix F.4.
Variance of Distorted calls using informative prior
DATA DD;
INPUT T1 T2 T3 T4 T5 A1 A2 A3 A4 A5 DL;
CARDS;
84 1 70 4 5 20 20 20 1 1 0.05
;
DATA CC;
SET DD;
DO U1=DL TO 1-DL BY DL;
DO U2=DL TO 1-U1-DL BY DL;
DO U3=DL TO 1-U1-U2-DL BY DL;
DO U4=DL TO 1-U1-U2-U3-DL BY DL;;
PDF=(1-U1-U2-U3-U4)*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A21)*U3**(T3+A3-1)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN2=DL**4*PDF;
INTEG+FUN2;
FUN3=(1-U1-U2-U3-U4)**2*(1.2983E-113**-1)*U1**(T1+A1-1)*U2**(T2+A21)*U3**(T3+A3-1)*U4**(T4+A4-1)*(1-U1-U2-U3-U4)**(T5+A5-1);
FUN4=DL**4*FUN3;
INTEG1+FUN4;
VARR=INTEG1-INTEG**2;
END;END; END;END;
PROC PRINT DATA=CC; VAR VARR INTEG;
RUN;
Appendix G
Mode using Jeffreys prior
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 0.30-DL BY DL;
INTEG=0;
FUN=U*5.3879E-43**-1*(U**-1)*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;OUTPUT;
END;
*PROC PRINT DATA=CC;RUN;DATA DT1; SET CC; RUN;
PROC SORT DATA=DT1 OUT=DT1_SORT; BY INTEG; RUN;
PROC PRINT; VAR U INTEG; RUN;
Appendix G. 1.
Mode using Jeffreys prior by using Wolfram Mathematica
Appendix G.2.
Plot using Jeffreys prior
DATA DD;
INPUT X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17
X18 X19 X20 X21 X22 X23 X24 X25 X26 X27 X28 X29 X30 X31 X32 X33 DL;
CARDS;
6.8 6.7 7.2 6.7 6.5 7.1 7.1 7.0 7.3 6.9 6.9 6.8 6.2 6.4 5.6 6.6 6.8 7.2
5.8 9.1
6.0 6.95 6 5.8 8.2 7.9 7.9 7.7 6.4 6.1 6.1 6.4 7.9 0.01
;
DATA CC; SET DD;
T=x1+x2+x3+x4+x5+x6+x7+x8+x9+x10+x11+x12+x13+x14+x15+x16+x17+x18+x19+x20+
x21+x22+x23+x24+x25+x26+x27+x28+x29+x30++x31+x32+x33;
DO U=DL TO 0.30-DL BY DL;
INTEG=0;
FUN=U*5.3879E-43**-1*(U**-1)*(U**33)*EXP(T*-U);
FUN2=DL**1*FUN;
INTEG+FUN2;
OUTPUT;
END;
AXIS1 Length=2 IN;
AXIS2 Length=4 IN;
PROC GPLOT DATA=CC;
SYMBOL1 INTERPOL=JOIN;
Plot INTEG*U=1;
VAXIS=AXIS HAIS1;
HAXIS=AXIS2;
RUN;
Appendix H:
Elicitation
DATA D1;N=100; DA=1; DL=0.;X1=10; X2=20-X1; X3=50-X1-X2; X4=90-X1-X2-X3;
DO A1=1 TO 10 BY DA; DO A2=1 TO 10 BY DA;DO A3=1 TO 10 BY DA; DO A4=1 TO 10 BY DA;
CL1=0;
DO T1=DL TO 1-DL BY DL;
DO T2=DL TO 1-T1-DL BY DL;
DO T3=DL TO 1-T1-T2-DL BY DL;
PPD=(GAMMA(N+1)*GAMMA(A1+A2+A3+A4)*T1**(X1+A1-1)*T2**(X2+A2-1)*T3**(X3+A3-1)*
(1-T1-T2-T3)**(X4+A41))/(GAMMA(X2+1)*GAMMA(X1+1)*GAMMA(X3+1)*GAMMA(X4+1)*GAMMA(A1)*
GAMMA(A2)*GAMMA(A3)*GAMMA(A4));
GP1=(DL**3)*PPD; CL1+GP1;
OUTPUT; END; OUTPUT; END; END; END; END; END; END;
DATA D2; SET D1; IF X1=10; IF X2=20-X1; IF X3=50-X1-X2; IF X4=90-X1-X2-X3;
*PROC PRINT DATA=D2; RUN;
PROC SORT DATA=D2;BY A1 A2 A3 A4; RUN;
PROC MEANS DATA=D2 SUM NOPRINT; VAR CL1;BY A1 A2 A3 A4;
OUTPUT OUT=D3 SUM=FCL1; *PROC PRINT DATA=D3; RUN;
GAMMA(A2)*GAMMA(A3)*GAMMA(A4));
GP2=(DL**3)*PPD; CL2+GP2;
OUTPUT; END; *OUTPUT; END; END; END; END; END; END;
DATA D5;SET D4; IF X1=15; IF X2=25-X1; IF X3=40-X1-X2; IF X4=80-X1-X2-X3;
*PROC PRINT DATA=D5; RUN;
PROC SORT DATA=D5;BY A1 A2 A3 A4; RUN;
PROC MEANS DATA=D5 SUM NOPRINT; VAR CL2;BY A1 A2 A3 A4;
OUTPUT OUT=D6 SUM=FCL2; *PROC PRINT DATA=D6; RUN;
/*CALCULATION OF FUNCTION SAI*/
DATA DDD; MERGE D3 D6 ;
SAI=ABS(FCL1-0.05)+ABS(FCL2-0.04);
*PROC PRINT DATA=DDD; RUN;
/* MINIMUM VALUE OF FUNCTION SAI*/
DATA DD1; SET DDD;
PROC SORT; BY SAI;
PROC PRINT DATA=DD1 (OBS=10);
VAR A1 A2 A3 A4 SAI; RUN;
References:
A Bayesian Model for Supervised Clustering with the Dirichlet Process Prior
International Journal of Advanced Science and Technology Vol. 49, December, 2012