Ali Raza
Ali Raza
[MIDTERM PROJECT]
SUBMITTED TO:
SUBMITTED BY:
ALI RAZA BHUTTO ROLL NO: 04131613008
CLASS: IR-B
nd
2 SEMESTER (Spring)
DATED: 30 April, 2017
Question 1:
1. What are the major types of data, explain with appropriate examples?
2. Explain following with suitable examples
a. Qualitative Variables b. Quantitative Variables c. Random and Continuous
Variables
For example: Measurements of Energy Use, Electric power Consumption and Exports of
Goods and Services Overtime in Pakistan.
For example: Measurements of Energy Use, Electric power Consumption and Exports of
Goods and Services in Pakistan, Germany, India, UAE & United Kingdom respectively at
a particular period of time (2013).
For Example: Measurements of Energy Use, Electric power Consumption and Exports of
Goods and Services in Pakistan, Germany, United States of America, UAE & United
Kingdom respectively at different periods of time.
For example: (i) The color of eyes, blue, black, green, brown, etc.
(ii) Names of different states such as Pakistan, Germany, INDIA, UAE, UK etc.
(iii) Different computer brands such as HP, Dell, Acer, Novatech etc.
2/1: Quantitative Variables: These variables can be measured in numbers. They are
measured on a numeric or quantitative scale.
For example: Energy Use, Electric power consumption, Exports (variables given above in Part
1: types of Data),Gross Domestic Product, Grade point average, Height, weight etc.
1.2(c). Random and Continuous Variables: When the value of a variable is unknown it is
called Random variable.
Random Variables are further divided in two categories, Discrete and Continuous.
Discrete variables have specific values and Continuous variables can have any values within a
continuous range.
Ans: 2 :
1/2 – The data has been taken from Index Mundi and WDI.
1/2(a). According to Robert J. Barro, in his book "Determinants of Economic Growth: A Cross-
Country Empirical Study," GDP or the growth rate is affected by initial schooling and life
expectancy, fertility rate, government consumption, rule of law, inflation and trade.
Thus, the variables or determinants taken for the data set are GDP (annual %)) and Genreal
Government Final consumption expenditure (% of GDP) Of United States of America from
2000-2015.
3.1
2.6
2.1
1.6
1.1
0.6
0.1
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015
-0.4
17 General
Government Final
Soncumption
16.5
Expenditure (% of
GDP)
16
15.5
15
14.5
14
2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015
Question 3:
Ans:3:
1/3(a) Measures of Central Tendency of the Data set used in Question No.2
Year Observation(GDP)
2000 4.092176
2001 0.975982
2002 1.786128
2003 2.806776
2004 3.785743
2005 3.345216
2006 2.666626
2007 1.77857
2008 -0.29162
2009 -2.77553
2010 2.531921
2011 1.601455
2012 2.224031
2013 1.677332
2014 2.370458
2015 2.596148
Sum 31.17141
Count(of Years/Observations) 16
Average(mean) 1.948213
Median 2.297244
(ii) MCT of General Government Final Consumption Expenditure:
1/3(b) According to this estimation it can be interpreted that, the mean as well as median of
Government Consumption Expenditure is the largest.
The lowest mean and median is that of GDP. The mean is taken out by dividing the sum of all
observations by number of years (number of observations). It can be done directly by
applying [=Average(Range)] in excel and [=Median(Range)] for finding median in excel.
1/3(c) (i)Comparison
GDP General government final consumption expenditure (% of
(annual GDP)
Mean %)
1.948213 15.36156
Median 2.297244 15.1739
(ii) Graphical Representation
(i) Graph Of Mean (average):
16 15.36155711
14
12
10
4
1.948213079
2
0
GDP (annual %) General government final consumption expenditure (% of
GDP)
16 15.17389937
14
12
10
4 2.297244263
2
0
GDP (annual %) General government final consumption
expenditure (% of GDP)
Question 4:
1. Use your own Data set and Quantify the Following:
a. Estimate measures of dispersion
b. Interpret them according to the objective of study
c. Compare them in appropriate way and provide graphical representation
Ans:4:
Deviation about
the mean
Year Observation(Government x-mean (x-
Consumption mean
2
2000 expenditure)
14.04184767 -1.319709445 )1.7416
33
2001 14.54675769 -0.814799417 0.6638
98
2002 15.04315094 -0.318406176 0.1013
82
2003 15.25186631 -0.1096908 0.0120
32
2004 15.22568605 -0.135871063 0.0184
61
2005 15.12211268 -0.239444429 0.0573
34
2006 15.08272873 -0.278828383 0.0777
45
2007 15.26299703 -0.098560082 0.0097
14
2008 16.09234504 0.730787926 0.5340
51
2009 16.9367238 1.575166689 2.4811
5
2010 16.85476009 1.493202981 2.2296
55
2011 16.30927355 0.947716434 0.8981
66
2012 15.7481253 0.386568189 0.1494
35
2013 15.11981206 -0.241745054 0.0584
41
2014 14.70441473 -0.657142379 0.4318
36
2015 14.44231212 -0.919244992 0.8450
11
Sum 245.7849138 -1.42109E-14 10.309
95
Count 16 16 16
Average(mean) 15.36155711
2
Variance (s ) 0.687329692
Standard 0.829053492
Deviation (s)
1/4(b) According to this estimation we can interpret that, GDP has the highest fluctuations, ups
and downs (deviation from its mean value) than the other variable.
Similarly, Government consumption expenditure has the lowest fluctuation than its mean value.
2
Variance is taken out by dividing sum of (x-mean ) by ( number of observations -1).
It can be done directly by applying [=Var.s(Range)] in excel. Standard Deviation can be found
by either taking out the Square root of variance [=Sqrt(Variance)] or directly by
[=STDEV(Range)].
1/4(c) (i)Comparison
3
2.714490983
2.5
1.5
1
0.687329692
0.5
0
GDP (annual %) General government final consumption expenditure (%
of GDP)
(ii) Graph Of Standard Deviation in Data:
1.7 1.647571237
1.5
1.3
1.1
0.9 0.829053492
0.7
0.5
0.3
0.1
-0.1 GDP (annual %) General government final consumption expenditure (%
of GDP)
Question 5:
1.Use your own data set and employ a regression Yt = a + B Xt + Et, Where
(Yt) is the dependent variable and (t) for time period, (Xt) is independent variable and (Et)
is a random error term.
Ans:5:
1/5 - Regression of the Data used throughout the write up, Where GDP is an dependent variable
(Yt) and Government Consumption Expenditure is Independent variable (Xt) as it affect the GDP.
SUMMARY OUTPUT
Regression Statistics
Multiple R 0.58974
R Square 0.34779
Adjusted 30.30120
R Square 7
Standard 1.37726
Error 8
Observation 16
s
ANOVA
df SS MS F Significanc
e
Regression 1 14.1612 14.1612 7.4655 F
0.016197
Residual 14 326.5561 31.89686 9
Total 15 340.7173 7
6
(X) (Y)
General government final consumption GDP X Y XY
expenditure (% of GDP) (annual Square Square
%) d d
14.04184767 4.0921764 197.173 16.7459 57.4617
49 4859 0809 1832
14.54675769 0.9759818 211.608 0.95254 14.1973
34 1594 054 7125
15.04315094 1.7861276 226.296 3.19025 26.8689
87 3901 2116 8839
15.25186631 2.8067759 232.619 7.87799 42.8085
56 426 127 7166
15.22568605 3.7857428 231.821 14.3318 57.6405
5 5157 4892 3209
15.12211268 3.3452160 228.678 11.1904 50.5867
63 292 7051 3426
15.08272873 2.6666258 227.488 7.11089 40.2199
26 7059 3297 9396
15.26299703 1.7785702 232.959 3.16331 27.1463
4 0783 2097 1228
16.09234504 - 258.963 0.08504 -
0.2916214 5688 3075 4.69287
59 3134
16.9367238 - 286.852 7.70356 -
2.7755295 6131 4417 47.0083
74 778
16.85476009 2.5319206 284.082 6.41062 42.6749
16 9378 2007 1456
16.30927355 1.6014546 265.992 2.56465 26.1185
72 4036 7068 6232
15.7481253 2.2240308 248.003 4.94631 35.0243
54 4505 3239 1656
15.11981206 1.6773315 228.608 2.81344 25.3609
3 7167 1061 3749
14.70441473 2.3704576 216.219 5.61906 34.8561
71 8126 9572 9271
14.44231212 2.5961480 208.580 6.73998 37.4943
41 3793 4648 8031
SU 245.7849138 31.171409 3785.94 101.445 466.758
M 26 8936 9119 2752
Co 16 16 16 16 16
unt
Calculate r 174536.2628
Standard Deviation of X 0.829053492
Standard Deviation of Y 1.647571237
Calculate parameter B 346854.4904
Calculate parameter a -5328223.116
y-hat = -5328 +
Least Square Regression Equation 3468X
1/5(b) The Results show that GDP has negative relationship with General Government
Final Consumption Expenditure. It means that If Government Consumption
Expenditure(Independent Variable) will increase, GDP(dependent Variable) will decrease.
When Government Consumption Expenditure decreases, GDP increases.
3.2
2.7
2.2
1.7
1.2
0.7
0.2
PROBABILITY
OUTPUT
0
14 14.5 15 15.5 16 16.5 17 17.5
-2
-4
Government Consumption expenditure (X)
2
GDP (Y)
0
14 14.5 15 15.5 16 16.5 17 17.5
-2
-4
Government Consumption expenditure (X)
2
GDP (Y)
0
0 20 40 60 80 100 120
-2
-4
Sample Percentile