You are on page 1of 18

Module Code and Title : AQ077-3-2-PSMOD | PROBABILITY AND STATISTICAL MOD

Intake Code : APU2F2202IT/APD2F2202IT (DA),(DT),(BIS),(FT),(ISS),(IS),(IOT


Assessment : PRACTICAL TEST
Duration : 1.5 hours

Instruction:
Read ALL of the information carefully before you begin answering.

Use the Excel built-in function recommended in completing all tasks. If you are unable to complete the task using the
result in the loss of some of the marks for the part. All your answers must be shown in the spreadsheet.

The spreadsheet should be constructed using the Excel built-in functions such that, should any of the values in these c
automatically. In awarding marks consideration will be given to the efficiency of any formulae constructed.

You MUST save your work in the same file at least every five minutes.
All your answer must be presented within the colored row.

You are required to download the excel file and follow the following steps upon submission:
1 Save your file according to your TP number followed by name.
(i.e. TP000001 David Lee)
2 Upload you answers (Excel file) in the Assignment feature in the Ms Teams.
3 Once the file successfully uploaded. Click on the “Turn in” to submit.
4 You will be notified by Ms Teams once its submitted.

QUESTION 1 (25 marks)

Gross domestic product (GDP) is the market value of all final goods and services from a nation in a given year. Coun
and statistical institutions, which are calculated at market or government official exchange rates. Nominal GDP doe
different countries, and the results can vary greatly from one year to another based on fluctuations in the exchang
change a country's ranking from one year to the next, even though they often make little or no difference in the standa

Comparisons of national wealth are also frequently made on the basis of purchasing power parity (PPP), to adjust
Other metrics, Nominal GDP per capita and a corresponding GDP (PPP) per capita are used for comparing national
are less spread than nominal GDP per capita figures.

A data has been gathered and presented as in the sheet ‘Country GDP’.

(a) Find the mean and standard deviation of GDP from selected countries (i.e. Argentina, Australia and etc.) b

Country Name Mean Standard deviation


Argentina 390604620985.02 168893251294.22
Australia 1065200338309.82 399447831992.96
Brazil 1608826291249.09 694392962309.46
Brunei Darussalam 12311205444.59 3983494250.97
Finland 236231528010.73 598875053735.61
France 2455280812697.19 45751299304.74
Germany 3310271055724.08 444195724514.99
India 1616962921683.56 395699704086.88
Indonesia 668879526478.07 334525384944.35
Japan 5018803576143.51 787009653872.37
Malaysia 243648655932.67 555543660764.89
Philippines 220926139929.43 94177172401.73
Qatar 117686767510.51 103151710977.22
Saudi Arabia 531216454376.89 65524593739.63
Singapore 236865258560.62 214396348610.69
South Africa 328052477605.69 100388219928.34
Thailand 329378966994.80 132469587098.42
Turkey 678769772953.13 231973139504.99
United Kingdom 2616648702176.28 79946067356.96
Vietnam 136230118531.00 91329695063.98

(b) Find the median and quartiles for each year of the GDP for all countries. (i.e. Build in Function: MEDIAN

Year Median First Quartile


2001 172292208759.12 92036696363.79
2002 164672148902.23 96427441366.04
2003 206413948371.71 107063138386.74
2004 256321753343.50 122320979952.54
2005 287368553651.50 139602481548.87
2006 334215694226.93 159176021960.65
2007 374520022827.54 190396353416.73
2008 435893336051.34 221513419964.98
2009 381037191928.81 200231290398.53
2010 475917377366.25 246838239758.63
2011 600701060840.66 278324300968.20
2012 640978609530.56 286795543187.22
2013 649336133832.79 301657952503.69
2014 641335010532.49 310509178912.77
2015 624509594146.61 305173306469.54
2016 601233458828.98 314283916188.29
2017 666107454797.75 326138684493.76
2018 651645822291.91 355804226301.93
2019 652634132822.29 372108800854.37
2020 600880763384.13 336615075121.55

(c) Illustrate the data in the bar chart of the GDP across the years in Malaysia.

GPD ACROSS THE YEARS IN MALAYSIA


400000000000.00

350000000000.00

300000000000.00

250000000000.00

200000000000.00
GPD

150000000000.00

100000000000.00

50000000000.00

0.00
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
years

(d) Illustrate the data of the year 2020 for all countries in a pie chart.

Chart Title

1 2 3 4 5 6 7 8 9 10
11 12 13 14 15 16 17 18 19 20

(e) Hence, interpret the following:


(i) Highest mean recorded in the country of:

(ii) Lowest mean recorded in the country of:

(iii) In Malaysia, the highest number of GDP shown in the year of:

(iv) In Malaysia, the lowest number of GDP shown in the year of:

(v) In year 2020, the top three countries with the highest GDPs shown in:

QUESTION 2 (25 marks)

The data in the table represent the age and BMI index for the employees in a given department.

Age, x BMI, y
Student Rank of x, rx
(years) (kg/m2)
A 35 26 3.0
B 29 22 1.0
C 41 32 3.0
D 66 28 9.0
E 53 31 6.0
F 48 26 5.0
G 60 30 6.0
H 46 30 3.0
I 30 22 1.0
J 36 27 1.0
K 58 32 2.0
L 47 29 1.0

Note that: d2 = (rx - ry)2

(a) Compute the values of the following.

(i) n = 12
(ii) x = 549
(iii) y = 335
(iv) x 2
= 26701
 xy
x 2

(v)  xy = 15630
(vi) y 2
= 9483
(vii) d 2
= 81.00

(b) Compute the Spearman rank correlation coefficient.

6 d 2
rs  1 

n n2 1 
0.716783216783217

(c) Compute the regression equation in the form of y = a + bx.

y=19.145+0.19173x

(d) Interpret the meaning of a and b.

a When the age is zero, then the BMI will be 19.145


b if the age is increased by 1, then the BMI will be increased by 0.19173

(e) Estimate the BMI index if the age is 50.

28.7315238546105

(f) Find the values of the following:

(i) Pearson’s coefficient of correlation

0.666971012400141

(ii) Coefficient of determination


0.444850331382069

(g) Interpret the values of the following:

(i) Pearson’s coefficient of correlation

Since, the value of Pearson lies between 0 and 1. so, it represents positive correlation.

(ii) Coefficient of determination

Since, R^2 is between 0 and 1, its allows us to partially predicts the outcomes.

(h) Plot the scatter diagram on the age against BMI with a superimpose regression line.

Superimpose Regression Line


35

30

25

20
Age

15

10

0
25 30 35 40 45 50 55 60 65 70
Years
LITY AND STATISTICAL MODELLING Total Marks
A),(DT),(BIS),(FT),(ISS),(IS),(IOT),(MBT)  

/ 50

nable to complete the task using the function, you may use an alternative method but this will
wn in the spreadsheet.

, should any of the values in these cells be changed, then all calculations will update
any formulae constructed.

ubmission:

eams.

from a nation in a given year. Countries are sorted by nominal GDP estimates from financial
exchange rates. Nominal GDP does not take into account differences in the cost of living in
ased on fluctuations in the exchange rates of the country's currency. Such fluctuations may
e little or no difference in the standard of living of its population.

sing power parity (PPP), to adjust for differences in the cost of living in different countries.
ita are used for comparing national standard of living. On the whole, PPP per capita figures

Source from The World Bank, data.worldbank.org

i.e. Argentina, Australia and etc.) by using the build-in functions AVERAGE and STDEV:
(4 marks)

s. (i.e. Build in Function: MEDIAN and QUARTILE):

Third Quartile
504076686927.52
511080940231.41
570600114482.00
679254120159.55
838194653285.52
982101594445.76
1261830142976.44
1323135534555.86
1423164025692.23
1808921028844.70
2021326597495.25
1987035467825.27
2010746431600.07
2143356526231.09
1877555953107.20
1920469444484.93
2194821241981.43
2112978226980.18
2090585766967.06
1741129377092.55
(6 marks)

sia.

IN MALAYSIA

0 11 12 13 14 15 16 17 18 19 20

(4 marks)

(4 marks)
JAPAN ###
(1 mark)

Brunei Darussalam 12311205444.59


(1 mark)

2019
(1 mark)

2001
(1 mark)

Japan, United Kingdom,Germany


(3 marks)

n department.

Rank of y, ry xy x2 y2 d2

3.5 910 1225 676 0.25


1.5 638 841 484 0.25
9.5 1312 1681 1024 42.25
4.0 1848 4356 784 25.00
7.0 1643 2809 961 1.00
2.0 1248 2304 676 9.00
4.5 1800 3600 900 2.25
4.0 1380 2116 900 1.00
1.0 660 900 484 0.00
1.0 972 1296 729 0.00
2.0 1856 3364 1024 0.00
1.0 1363 2209 841 0.00
(6 marks)

(3 marks)

19.14496870233
0.1917311030456

(2 marks)

y 0.19173
(2 marks)

(2 marks)

(1 mark)
(1 mark)

ents positive correlation.

(2 marks)

cts the outcomes.

(2 marks)

ression line.

60 65 70

(4 marks)
Country Name Country Code 2001 2002 2003
Argentina ARG 268696750000.00 97724004251.86 127586973492.18
Australia AUS 379083932596.33 395342716617.83 467390797903.32
Brazil BRA 559983704094.17 509795270685.19 558233724164.71
Brunei Darussalam BRN 5601090584.36 5843329107.56 6557333084.61
Germany DEU 1944107382550.34 2068624129493.69 2496128668171.56
Finland FIN 129421029082.77 139738377564.47 171274266365.69
France FRA 1376465324384.79 1494286655373.61 1840480812641.08
United Kingdom GBR 1643908161796.46 1784076738609.11 2057093877551.02
Indonesia IDN 160446947784.91 195660611165.18 234772463823.81
India IND 485441014538.64 514937948870.08 607699285433.87
Japan JPN 4374711694090.87 4182846045873.61 4519561645253.53
Malaysia MYS 92783947368.42 100845526315.79 110202368421.05
Philippines PHL 78921234457.23 84307291974.47 87039145965.01
Qatar QAT 17538461538.46 19363736263.74 23533791208.79
Saudi Arabia SAU 184137469733.33 189605920240.00 215807655253.33
Singapore SGP 89794943349.89 92537752708.59 97645448283.78
Thailand THA 120296476180.40 134300851255.00 152280677649.06
Turkey TUR 201751148417.10 240253216295.12 314592428076.49
Vietnam VNM 32685198735.31 35064105500.83 39552513316.07
South Africa ZAF 135429607036.66 129088132201.85 197020241490.08
2004 2005 2006 2007
164657930452.79 198737095012.28 232557260817.31 287530508430.57
614166310997.30 695075176665.16 747556154537.29 853955405511.50
669289321944.52 891633826603.38 1107626711406.63 1397114247331.17
7872333215.00 9531402847.87 11470703002.08 12247694247.23
2809187981127.39 2845802760850.64 2992196713084.93 3421229126745.14
197116960516.51 204809103345.36 216907539831.89 256052559540.10
2115742488204.62 2196126103718.44 2318593651988.46 2657213249384.07
2421814353716.59 2544829090909.09 2717059797608.10 3106182472989.20
256836875295.45 285868618224.02 364570514304.85 432216737774.86
709148514804.66 820381595512.90 940259888792.14 1216735441524.86
4893116005656.56 4831467035389.80 4601663122649.92 4579750920354.81
124749473684.21 143534102611.50 162691238209.48 193547824063.30
95002028504.69 107419961717.12 127652859201.49 155980378252.86
31734065934.07 44530494505.49 60882142857.14 79712087912.09
258742263040.00 328459700114.76 376900135727.64 415964583055.37
115035498757.54 127807618360.97 148630373214.17 180941941477.01
172895749632.05 189318549680.38 221758196504.94 262942476722.43
408876042651.70 506308311476.63 557057829051.45 681337335021.88
45427854693.26 57633255618.27 66371664817.04 77414425532.25
255806631391.55 288868489078.99 303860874149.01 333075462599.71
2008 2009 2010 2011
361558037110.42 332976484577.62 423627422092.49 530163281574.66
1055127126230.98 928042998085.70 1147589183475.73 1397907916789.90
1695855391810.90 1666996294372.87 2208838108577.09 2616156606666.62
14393099068.59 10732366286.26 13707370737.07 18525319977.74
3730027830672.33 3397791053070.30 3396354075663.73 3744408602683.94
284553976856.60 252496526813.00 249181190476.37 275243697751.01
2918382891460.38 2690222283967.77 2642609548930.36 2861408170264.61
2938882352941.18 2425798410967.44 2491110093454.18 2674891473843.81
510228634992.26 539580085612.40 755094160363.07 892969107923.10
1198895582137.51 1341886602798.69 1675615335600.56 1823049927771.46
5106679115127.30 5289493117993.89 5759071769013.11 6233147172341.35
230813897715.69 202257625195.06 255016609232.87 297951960784.31
181624577153.97 175974711591.53 208368726860.83 234216930369.37
115270054945.06 97798351648.35 125122306346.15 167775268626.37
519796738640.00 429097899280.00 528207332640.00 671238840106.67
193611986712.84 194152286008.94 239809387605.43 279351168707.27
291382991177.70 281710416557.29 341104820155.47 370819140946.55
770462156204.38 649272568774.19 776992599946.77 838762755164.18
99130304099.13 106014659770.22 115931749697.24 135539438559.71
316132138757.08 329753048857.05 417365076968.26 458201514136.98
2012 2013 2014 2015
545982375701.13 552025140252.25 526319673731.64 594749285413.21
1546508558465.66 1576335282651.07 1467504819608.92 1350534154255.76
2465228293894.01 2472819362216.69 2456043766028.73 1802211999538.68
19047940300.90 18093829923.27 17098342541.44 12930394937.81
3527344944139.83 3732743446218.92 3883920155292.26 3356235704119.75
258304834621.61 271285280621.37 274497230802.96 234440080998.27
2683825225092.63 2811077725703.59 2852165760630.27 2438207896251.84
2719158341005.79 2803291406029.93 3087165602962.86 2956573778737.76
917869910105.75 912524136718.02 890814755233.23 860854235065.08
1827637859135.70 1856722121394.53 2039127446298.55 2103587813812.75
6272362996105.03 5212328181166.18 4896994405353.29 4444930651964.18
314443149443.15 323277158906.98 338061963396.38 301354803994.37
261920509949.79 283902728259.79 297483247100.86 306446140627.93
186833502362.64 198727642967.03 206224598571.43 161739955576.92
735974843360.00 746647127413.33 756350347333.33 654269902880.00
295087220933.02 307576360584.99 314851156183.41 308004146057.61
397558222957.17 420333203150.43 407339454060.68 401296437425.00
880556375779.51 957783020853.03 938952628604.07 864316670330.88
155820001920.49 171222025117.38 186204652922.26 193241108709.54
434400545085.81 400886013595.57 381198869776.11 346709790458.56
2016 2017 2018 2019
557531376217.97 643628665302.16 524819742918.67 451932356085.84
1206685107002.47 1326882872011.46 1428529571351.06 1391952510370.48
1795693265810.23 2063514688761.98 1916933708381.89 1877824273720.78
11400854267.72 12128104859.15 13567351175.03 13469422958.51
3467498002104.33 3681732583768.50 3975347237442.99 3888326788627.44
240607907010.38 255016517537.98 275580448365.24 268508200125.49
2471285607081.72 2588740901639.81 2789593979064.58 2728870246705.88
2722851958486.22 2699016715111.39 2900791442554.06 2878673912414.44
931877364177.74 1015618742565.81 1042271531011.99 1119091259074.62
2294797980509.01 2651472946374.91 2701111782775.03 2870504096717.77
5003677627544.24 4930837369151.42 5036891740656.35 5148781948478.17
301255380276.26 319112136545.44 358791603677.73 365276282438.14
318626761492.31 328480867143.20 346842094174.51 376823278560.85
151732181868.13 161099122225.28 183334953818.68 176371267689.08
644935541440.00 688586244293.33 786521831573.33 792966838160.00
318763807455.67 343337750742.27 375981539145.91 374386306993.11
413366150655.59 456356961443.50 506611070188.36 544263840039.17
869692960365.55 858996263095.86 778471901665.15 761004425605.42
205276172134.90 223779865815.18 245213686369.16 261921244843.17
323585509674.48 381448814653.46 404842116738.08 387934574098.17
2020
389288056265.33
1327836171068.51
1444733258971.65
12005825769.51
3846413928653.71
269594831987.55
2630317731455.26
2759804061837.07
1058423838345.14
2660245248867.63
5057758958706.64
337006066373.26
361489325230.73
144411363345.27
700117873253.33
339998477929.99
501643653514.93
719954821683.31
271158442448.54
335442101366.42

You might also like