Download as pdf or txt
Download as pdf or txt
You are on page 1of 140

BACF1003D ASSIGNMENT 1

Hayah Zainab
P2833533
TASK 1:
X (X-x̄) (X-x̄)^2
32 -11.93 142.3249
32 -11.93 142.3249
32 -11.93 142.3249
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
37 -6.93 48.0249
38 -5.93 35.1649
38 -5.93 35.1649
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
41 -2.93 8.5849
41 -2.93 8.5849
42 -1.93 3.7249
43 -0.93 0.8649
43 -0.93 0.8649
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
46 2.07 4.2849
47 3.07 9.4249
48 4.07 16.5649
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
51 7.07 49.9849
52 8.07 65.1249
52 8.07 65.1249
55 11.07 122.5449
55 11.07 122.5449
55 11.07 122.5449
70 26.07 679.6449
SUM 2680 2571.74
AVERAGE(x̄) 43.93
For Data in column A, Estimate the following:

a) Mean
∑fi/n
∑fi=2680
n=61
=2680/61
Mean: 43.93

b) Median
n+1/2
n=61
=61+1/2
=31st observation
31st observation = 45
Median=45

c) Mode
Most recurring observation
=45
Mode=45

d) Inter Quartile Range (3 Marks)


Quartile 1= 40
n+1/4
61+1/4
= 62/4
= 15.5
= 16th observation
16th observation = 40
Quartile 3=47
3(n+1)/4
=3(61+1)/4
=3(62)/4
=186/4
=46.4
=47th observation
47th observation= 47

Interquartile Range = Quartile 3 – Quartile 1


=47-40
=7

(e) Standard Deviation (3 Marks)


Standard deviation = √variance
Variance = ∑(X-x̄)
x̄=43.93
Variance = ∑ (X- x̄)^2 / n-1
= 2571.74 / (61-1)
= 2571.74/60
= 42.86
Standard deviation = √variance
=√42.86
= 6.55

f) Insert a Box plot for the data in column A and comment on type of
distribution.

N
TASK 2:

(a) Construct a column chart for No. of Sales data in cells B3:C13

(a) Number of Sales for every Sales Rep

45
40
35
No of Sales

30
25
20
15
10
5
0
Sales Rep

Lisa Carina Yodit Ruth Brian


Jason Laura Dominique Zahid Harinder

(b) Construct a bar chart for Sales data in cells E3:F13.

(b) Sales Rep and their sales

Harinder
Zahid
Dominique
Laura
Sales Rep

Jason
Brian
Ruth
Yodit
Carina
Lisa
$- $5,000 $10,000 $15,000
Sales
(c) Construct a Pie chart for Product data in cells B23:C33

(c) Product and Number of Sales


20 30

19

17

17
17

17
19
23
21

Quad Icarus FlatTop Sunspot Carlota


Sunset Sunshine Bellen sunbell Gel Fast

(d) Construct a 3D column chart for Product sales data in cells E23:F33

(d) Product and Sales

$10,000
Sales

$5,000

$-

Products
TASK 3:
(a).Use Data Analysis Toolpak to create Histogram for data in D3:D202 using
Bins in H4:H15
Bin Frequency
50 10
100 20
150 15 (a) Histogram
200 19 25
250 10
20
300 18
Frequency

350 20 15
400 19
10
450 18
500 16 5
550 22
600 13 0
50 100 150 200 250 300 350 400 450 500 550 600
Sales ($)
(b) Using the frequencies of Histogram above, calculate cumulative frequency in
J4:J15.
Cumulative
Sales($) Frequency Frequency
f F
0-50 10 10
51- 100 20 30
101-150 15 45
151-200 19 64
201-250 10 74
251-300 18 92
301-350 20 112
351-400 19 131
401-450 18 149
451-500 16 165
501-550 22 187
551-600 13 200
Total 200

(c) Using cumulative frequency in J4:J15 create a cumulative frequency Polygon

(c) Sales of Products


250
200
187
200 165
149
Sales amount

150 131
112
92
100 64 74
45
50 30
10
0
0 2 4 6 8 10 12 14
Frequency
(d) Estimate Median, Quartiles and Inter Quartile Range from the chart in part (c)
above

Median =
Quartile 1:

Quartile 3:
TASK 4:
(a) Use the frequency distribution in N5:O16 to calculate Mean, Variance and
Standard Deviation for grouped data
Class
Sales($) Frequency Midpoint
F X FX (X- x̄) (X- x̄)^2 F((X- x̄)^2
0 - 50 10 25 250 -285.25 81367.56 813675.6
51 - 100 20 75 1500 -235.25 55342.56 1106851
101 - 150 15 125 1875 -185.25 34317.56 514763.4
151 - 200 19 175 3325 -135.25 18292.56 347558.7
201 - 250 10 225 2250 -85.25 7267.563 72675.63
251 - 300 18 275 4950 -35.25 1242.563 22366.13
301 - 350 20 325 6500 14.75 217.5625 4351.25
351 - 400 19 375 7125 64.75 4192.563 79658.69
401 - 450 18 425 7650 114.75 13167.56 237016.1
451 - 500 16 475 7600 164.75 27142.56 434281
501 - 550 22 525 11550 214.75 46117.56 1014586
551 - 600 13 575 7475 264.75 70092.56 911203.3
Total 200 3600 62050 358760.8 5558988

Mean: ∑ FX/ ∑ F
= 62050/200
=310.25
Variance = ∑ F(X- x̄)^2/ (n-1)
= 5558988/ (200-1)
= 27934.6131
Standard Deviation = = √variance
= √27934.6131
=167.137
(b) Use the data analysis tool Pak in Excel to calculate the descriptive
statistics for the data D3:D202 in work sheet named "Task 3".

Descriptive Statistics
Mean 310.0861
Standard Error 11.8485212
Median 310
Mode 403
Standard Deviation 167.563394
Sample Variance 28077.4911
Kurtosis -1.19059943
Skewness -0.05027714
Range 584
Minimum 11
Maximum 595
Sum 62017.22
Count 200

(c) Compare the Mean and Standard Deviation of the parts (a) and (b) and
comment briefly.
The Mean calculated in part (a) is 310.25 while the mean calculated in part
(b) is 310.0861
The Standard deviation calculated in part (a) is 167.137, while the standard
deviation calculated in part (b) is 167.563394
From the above, it is noticeable that the mean and standard deviation is
approximately, if not, exactly the same, with just a minor difference due to
the change in decimal points.
This leads to a conclusion that calculating descriptive statistics using excel is
more efficient than calculating it by hand, as it is faster, and chances of
mistake are much lesser.
MONTHLY SPEND:
Monthly
Monthly Accommodation
Income Spend (x-x̄) (y-ȳ) (x-x̄)^2 (y-ȳ)^2 (x-x̄)(y-ȳ)
X Y
-£ -£
£ 2,204 £ 865 189 7 35541.68 42.57562 1230.126
£ £
£ 2,572 £ 952 179 80 32211.28 6476.226 14443.25
-£ -£
£ 1,845 £ 694 548 178 299783.6 31515.13 97199.38
£ £
£ 2,606 £ 999 213 127 45571.58 16249.88 27212.73
£ £
£ 2,941 £ 994 548 122 300824.8 15000.13 67174.48
£ £
£ 2,453 £ 909 60 37 3657.226 1404.376 2266.301
£ £
£ 2,887 £ 962 494 90 244505.5 8185.726 44737.63
-£ -£
£ 1,768 £ 655 625 217 390031.5 46883.08 135225.3
-£ -£
£ 2,159 £ 825 234 47 54533.93 2164.576 10864.75
-£ -£
£ 2,080 £ 791 313 81 97671.88 6484.276 25166.08
-£ -£
£ 1,875 £ 715 518 157 267832.1 24500.08 81005.6
£ £
£ 2,895 £ 940 502 68 252481.1 4688.826 34406.98
-£ -£
£ 2,283 £ 818 110 54 11995.73 2864.926 5862.326
£ £
£ 3,103 £ 1,113 710 241 504774.7 58310.18 171562
£ £
£ 2,674 £ 922 281 50 79228.18 2547.726 14207.45
-£ £
£ 2,208 £ 893 185 21 34049.48 461.1756 -3962.67
-£ -£
£ 2,195 £ 785 198 87 39016.13 7486.576 17090.85
-£ -£
£ 2,237 £ 747 156 125 24188.03 15506.48 19366.75
-£ -£
£ 1,888 £ 726 505 146 254545.5 21177.53 73421
£ £
£ 3,025 £ 1,018 632 146 400024.6 21454.93 92641.78
£ £
£ 2,721 £ 899 328 27 107895.8 754.8756 9024.851
-£ -£
£ 2,354 £ 830 39 42 1484.176 1724.326 1599.751
£ -£
£ 2,624 £ 861 231 11 53580.68 110.7756 -2436.27
£ £
£ 3,237 £ 1,093 844 221 713138 49051.18 187030.1
£ £
£ 2,849 £ 1,015 456 143 208369.4 20585.08 65492.75
-£ -£
£ 2,001 £ 786 392 86 153291.8 7314.526 33485.18
£ £
£ 2,485 £ 959 92 87 8551.626 7651.876 8089.251
£ £
£ 2,930 £ 1,122 537 250 288879.4 62737.73 134624.1
-£ -£
£ 1,735 £ 594 658 278 432339.1 77020.13 182479.6
-£ -£
£ 1,895 £ 708 498 164 247531.1 26740.43 81357.78
-£ -£
£ 1,894 £ 739 499 133 248527.2 17562.88 66067.03
-£ -£
£ 1,822 £ 749 571 123 325498.8 15012.38 69903.58
-£ -£
£ 2,296 £ 787 97 85 9317.076 7144.476 8158.776
£ £
£ 2,758 £ 1,056 365 184 133572 34031.03 67421
£ £
£ 3,289 £ 1,218 896 346 803667.4 120044.9 310606.2
-£ -£
£ 2,039 £ 721 354 151 124979.9 22657.78 53214.35
-£ -£
£ 1,882 £ 803 511 69 260635.8 4695.676 34983.73
-£ -£
£ 2,179 £ 773 214 99 45592.93 9707.176 21037.55
-£ -£
£ 1,981 £ 819 412 53 169352.8 2758.876 21615.35
£ £
£ 2,832 £ 1,006 439 134 193138.3 18083.53 59098.4
Sum: £ 95,701 £ 34,861 7901812 798794 2343975
Mean £ 2,393 £ 872
Count 40

Correlation Coefficient =
Covariance (x,y) / SDx * SDy

Covariance = ∑(x-x̄) (y-ȳ) / n – 1


= 2343975 / 40 – 1
= 2343975 / 39
= 60101.9231
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(y-ȳ)^2 / n – 1
= 798794 / 40 -1
= 798794 / 39
= 20481.897
Standard Deviation of Y = √20481.897
= 143.115

Correlation Coefficient (r) = Covariance (x,y) / SDx * SDy


= 60101.9231 / (450.123*143.115)
=0.93298
MONTHLY SAVINGS:
x Z (x-x̄) (Z-z) (x-x̄)^2 (Z-z)^2 (x-x̄)(Z-z)
£ £ -£ £
2,204 578 189 32 35541.68 1054.626 -6122.35
£ £ £ £
2,572 605 179 59 32211.28 3537.276 10674.28
£ £ -£ -£
1,845 447 548 99 299783.6 9707.176 53944.9
£ £ £ £
2,606 654 213 108 45571.58 11766.83 23156.7
£ £ £ £
2,941 577 548 31 300824.8 990.6756 17263.25
£ £ £ £
2,453 578 60 32 3657.226 1054.626 1963.926
£ £ £ £
2,887 549 494 3 244505.5 12.07563 1718.301
£ £ -£ -£
1,768 416 625 130 390031.5 16776.73 80891.6
£ £ -£ -£
2,159 539 234 7 54533.93 42.57562 1523.751
£ £ -£ -£
2,080 515 313 31 97671.88 931.7756 9539.826
£ £ -£ -£
1,875 466 518 80 267832.1 6324.226 41156.18
£ £ £ -£
2,895 521 502 25 252481.1 601.4756 -12323.2
£ £ -£ -£
2,283 504 110 42 11995.73 1724.326 4548.026
£ £ £ £
3,103 687 710 141 504774.7 20015.18 100514.5
£ £ £ £
2,674 546 281 0 79228.18 0.225625 133.7006
£ £ -£ £
2,208 611 185 65 34049.48 4286.976 -12081.8
£ £ -£ -£
2,195 483 198 63 39016.13 3909.376 12350.25
£ £ -£ -£
2,237 428 156 118 24188.03 13812.13 18278.08
£ £ -£ -£
1,888 477 505 69 254545.5 4695.676 34572.58
£ £ £ £
3,025 588 632 42 400024.6 1804.126 26864.38
£ £ £ -£
2,721 508 328 38 107895.8 1408.126 -12326
£ £ -£ -£
2,354 503 39 43 1484.176 1808.376 1638.276
£ £ £ -£
2,624 483 231 63 53580.68 3909.376 -14473
£ £ £ £
3,237 633 844 87 713138 7651.876 73870.45
£ £ £ £
2,849 622 456 76 208369.4 5848.426 34908.93
£ £ -£ -£
2,001 525 392 21 153291.8 421.2756 8036.051
£ £ £ £
2,485 632 92 86 8551.626 7477.926 7996.776
£ £ £ £
2,930 735 537 189 288879.4 35900.78 101838.1
£ £ -£ -£
1,735 350 658 196 432339.1 38230.03 128562.6
£ £ -£ -£
1,895 453 498 93 247531.1 8560.876 46033.5
£ £ -£ -£
1,894 492 499 54 248527.2 2864.926 26683.55
£ £ -£ -£
1,822 519 571 27 325498.8 703.5756 15133.18
£ £ -£ -£
2,296 464 97 82 9317.076 6646.326 7869.201
£ £ £ £
2,758 691 365 145 133572 21162.98 53167.48
£ £ £ £
3,289 774 896 228 803667.4 52200.83 204822.1
£ £ -£ -£
2,039 439 354 107 124979.9 11347.58 37659.25
£ £ -£ £
1,882 572 511 26 260635.8 700.9256 -13516.1
£ £ -£ -£
2,179 472 214 74 45592.93 5405.926 15699.43
£ £ -£ £
1,981 570 412 24 169352.8 599.0256 -10072.1
£ £ £ £
2,832 615 439 69 193138.3 4826.776 30532.53
£ £
SUM 95,701 21,821 7901812 320724 1152631
£ £
AVERAGE 2,393 546
COUNT 40

Correlation Coefficient =
Covariance (x,z) / SDx * SDz

Covariance = ∑(x-x̄) (Z-z) / n – 1


= 1152631/ 40 – 1
= 1152631/ 39
= 29554.641
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(Z-z)^2 / n – 1
= 320723.975/ 40 -1
= 320723.975/ 39
= 8223.691
Standard Deviation of Y = √8223.69103
= 90.68

Correlation Coefficient (r) = Covariance (x,z) / SDx * SDz


= 29554.641/ (450.123*90.68) = 29554.641 / 40817.15
= 0.724
(iv) Fit a linear regression line y = a + bx on each pair of data in part (i) using
formulae and explain each equation
LINEAR REGRESSION LINE FOR MONTHLY ACCOMODATION SPEND

Monthly Monthly X^2 Y^2 XY


Income Accommodation
Spend
X Y
£ 2,204 £ 865 4857616 748225 1906460
£ 2,572 £ 952 6615184 906304 2448544
£ 1,845 £ 694 3404025 481636 1280430
£ 2,606 £ 999 6791236 998001 2603394
£ 2,941 £ 994 8649481 988036 2923354
£ 2,453 £ 909 6017209 826281 2229777
£ 2,887 £ 962 8334769 925444 2777294
£ 1,768 £ 655 3125824 429025 1158040
£ 2,159 £ 825 4661281 680625 1781175
£ 2,080 £ 791 4326400 625681 1645280
£ 1,875 £ 715 3515625 511225 1340625
£ 2,895 £ 940 8381025 883600 2721300
£ 2,283 £ 818 5212089 669124 1867494
£ 3,103 £ 1,113 9628609 1238769 3453639
£ 2,674 £ 922 7150276 850084 2465428
£ 2,208 £ 893 4875264 797449 1971744
£ 2,195 £ 785 4818025 616225 1723075
£ 2,237 £ 747 5004169 558009 1671039
£ 1,888 £ 726 3564544 527076 1370688
£ 3,025 £ 1,018 9150625 1036324 3079450
£ 2,721 £ 899 7403841 808201 2446179
£ 2,354 £ 830 5541316 688900 1953820
£ 2,624 £ 861 6885376 741321 2259264
£ 3,237 £ 1,093 10478169 1194649 3538041
£ 2,849 £ 1,015 8116801 1030225 2891735
£ 2,001 £ 786 4004001 617796 1572786
£ 2,485 £ 959 6175225 919681 2383115
£ 2,930 £ 1,122 8584900 1258884 3287460
£ 1,735 £ 594 3010225 352836 1030590
£ 1,895 £ 708 3591025 501264 1341660
£ 1,894 £ 739 3587236 546121 1399666
£ 1,822 £ 749 3319684 561001 1364678
£ 2,296 £ 787 5271616 619369 1806952
£ 2,758 £ 1,056 7606564 1115136 2912448
£ 3,289 £ 1,218 10817521 1483524 4006002
£ 2,039 £ 721 4157521 519841 1470119
£ 1,882 £ 803 3541924 644809 1511246
£ 2,179 £ 773 4748041 597529 1684367
£ 1,981 £ 819 3924361 670761 1622439
£ 2,832 £ 1,006 8020224 1012036 2848992
SUM £ £ 236868847 31181027 85749789
95,701 34,861
n= £ 40

x̄=2393
ȳ = 872
Slope (b) = n∑xy - ∑x∑y / n∑x^2 – (∑x)^2
= (40)( 85749789) – (95,701) (34,861) / (40)(236868847) – (95701)^2
= 3429991560 – 3336232561 / 9474753880 - 9158681401
= 93758999 / 316072479
=0.296
a= ȳ-bx̄
Assume Y to be 1218 and X to be 3289
a = 872 – (0.296)(2393)
= 872 – 708.3
=163.7
Regression line for Monthly Spending =
Y= 163.7+ 0.296x

LINEAR REGRESSION LINE FOR MONTHLY SAVINGS:


Monthly Monthly X^2 z^2 XZ
Income Saving

X Z
£ £ 578 4857616 334084 1273912
2,204
£ £ 605 6615184 366025 1556060
2,572
£ £ 447 3404025 199809 824715
1,845
£ £ 654 6791236 427716 1704324
2,606
£ £ 577 8649481 332929 1696957
2,941
£ £ 578 6017209 334084 1417834
2,453
£ £ 549 8334769 301401 1584963
2,887
£ £ 416 3125824 173056 735488
1,768
£ £ 539 4661281 290521 1163701
2,159
£ £ 515 4326400 265225 1071200
2,080
£ £ 466 3515625 217156 873750
1,875
£ £ 521 8381025 271441 1508295
2,895
£ £ 504 5212089 254016 1150632
2,283
£ £ 687 9628609 471969 2131761
3,103
£ £ 546 7150276 298116 1460004
2,674
£ £ 611 4875264 373321 1349088
2,208
£ £ 483 4818025 233289 1060185
2,195
£ £ 428 5004169 183184 957436
2,237
£ £ 477 3564544 227529 900576
1,888
£ £ 588 9150625 345744 1778700
3,025
£ £ 508 7403841 258064 1382268
2,721
£ £ 503 5541316 253009 1184062
2,354
£ £ 483 6885376 233289 1267392
2,624
£ £ 633 10478169 400689 2049021
3,237
£ £ 622 8116801 386884 1772078
2,849
£ £ 525 4004001 275625 1050525
2,001
£ £ 632 6175225 399424 1570520
2,485
£ £ 735 8584900 540225 2153550
2,930
£ £ 350 3010225 122500 607250
1,735
£ £ 453 3591025 205209 858435
1,895
£ £ 492 3587236 242064 931848
1,894
£ £ 519 3319684 269361 945618
1,822
£ £ 464 5271616 215296 1065344
2,296
£ £ 691 7606564 477481 1905778
2,758
£ £ 774 10817521 599076 2545686
3,289
£ £ 439 4157521 192721 895121
2,039
£ £ 572 3541924 327184 1076504
1,882
£ £ 472 4748041 222784 1028488
2,179
£ £ 570 3924361 324900 1129170
1,981
£ £ 615 8020224 378225 1741680
2,832
SUM £ 95,701 £ £ £ £
21,821 236,868,847 12,224,625 53,359,919
n= £ 40
Average £ £
2,393 546

Slope (b) = n∑xZ - ∑x∑z / n∑x^2 – (∑x)^2


= (40)( 53,359,919) – (95,701) (21,821) / (40)( 236868847) – (95701)^2
= 2134396760 – 2088291521 / 9474753880 - 9158681401
= 46105239 / 316072479
=0.145
a= z-bx̄
z=average of z= 546
x̄= 2393
a = 546 – (0.145)(2393)
= 546 - 346.985
= 199
Regression line for Monthly Spending =
Z= 199+ 0.145 x

(v) Predict the monthly spend and saving using regression equations in part (iv)
if
(a) Monthly income = £2,000
Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (2000)
= 163.7 + 592
= 755.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (2000)
= 199 + 290
= 489

(b) Monthly income = £3,500


Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (3500)
= 163.7 + 1036
= 1199.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (3500)
= 199+507.5
= 706.5
TASK 6:
MONTHLY SPEND:

Monthly Monthly
Accomm Accommodation
Monthly odation Monthly Income Spend
Income Spend (continuation) (continuation)
X Y X Y
£ 1,735 £ 594 £ 2,296 £ 787
£ 1,768 £ 655 £ 2,354 £ 830
£ 1,822 £ 749 £ 2,453 £ 909
£ 1,845 £ 694 £ 2,485 £ 959
£ 1,875 £ 715 £ 2,572 £ 952
£ 1,882 £ 803 £ 2,606 £ 999
£ 1,888 £ 726 £ 2,624 £ 861
£ 1,894 £ 739 £ 2,674 £ 922
£ 1,895 £ 708 £ 2,721 £ 899
£ 1,981 £ 819 £ 2,758 £ 1,056
£ 2,001 £ 786 £ 2,832 £ 1,006
£ 2,039 £ 721 £ 2,849 £ 1,015
£ 2,080 £ 791 £ 2,887 £ 962
£ 2,159 £ 825 £ 2,895 £ 940
£ 2,179 £ 773 £ 2,930 £ 1,122
£ 2,195 £ 785 £ 2,941 £ 994
£ 2,204 £ 865 £ 3,025 £ 1,018
£ 2,208 £ 893 £ 3,103 £ 1,113
£ 2,237 £ 747 £ 3,237 £ 1,093
£ 2,283 £ 818 £ 3,289 £ 1,218

USING HIGH LOW METHOD


FOR SPEND: X Y
Highest Income and spend: 3,289 1218
Lowest Income and spend: 1735 594
Difference: 1,554 624

Y= a+bx a =Y-bx
b=Yhigh-Ylow/Xhigh-Xlow Assume Y=1218 and X=3289
=624/1554 a= 1218 – (0.40)(3289)
=0.40 =1218 – 1315.6
=-97.6
MONTHLY SAVING :

Monthly Monthly
Monthly Monthly Income Saving
Income Saving (continuation) (continuation)
X Z X Z
£ 2,204 £ 578 £ 2,721 £ 508
£ 2,572 £ 605 £ 2,354 £ 503
£ 1,845 £ 447 £ 2,624 £ 483
£ 2,606 £ 654 £ 3,237 £ 633
£ 2,941 £ 577 £ 2,849 £ 622
£ 2,453 £ 578 £ 2,001 £ 525
£ 2,887 £ 549 £ 2,485 £ 632
£ 1,768 £ 416 £ 2,930 £ 735
£ 2,159 £ 539 £ 1,735 £ 350
£ 2,080 £ 515 £ 1,895 £ 453
£ 1,875 £ 466 £ 1,894 £ 492
£ 2,895 £ 521 £ 1,822 £ 519
£ 2,283 £ 504 £ 2,296 £ 464
£ 3,103 £ 687 £ 2,758 £ 691
£ 2,674 £ 546 £ 3,289 £ 774
£ 2,208 £ 611 £ 2,039 £ 439
£ 2,195 £ 483 £ 1,882 £ 572
£ 2,237 £ 428 £ 2,179 £ 472
£ 1,888 £ 477 £ 1,981 £ 570
£ 3,025 £ 588 £ 2,832 £ 615

USING HIGH LOW METHOD


FOR Savings: X Z
Highest Income and saving: 3,289 774
Lowest Income and saving: 1735 350
Difference: 1,554 424
Z= a+bx a=Z-bx

b=Zhigh-Zlow/Xhigh-Xlow Assume Z is 774 and x is 3289


=424/1554 a = 774 – (0.27)(3289)
=0.27 = 774 – 888.03
= 114.03

(i) Estimate the monthly spend and saving using high low method if
(a) monthly income = £2,000
(b) monthly income = £3,500

(a) When monthly income is 2000


Monthly spend= 702.4
Y= a+bx
(-97.6) + (0.40)(2000)
-97.6 + 800
702.4
Monthly savings = 425.97
Z = a+bx
(-114.03) + (0.27)(2000)
-114.03+ 540
425.97

(b) When monthly income is 3500


Monthly spend = 1302.4
Y= a + bx
(-97.6) + (0.40)(3500)
-97.6 + 1400
= 1302.4

Monthly savings = 830.97


Z = a+bx
(-114.03) + (0.27)(3500)
= -114.03 + 945
= 830.97
BACF1003D ASSIGNMENT 1
Hayah Zainab
P2833533
TASK 1:
X (X-x̄) (X-x̄)^2
32 -11.93 142.3249
32 -11.93 142.3249
32 -11.93 142.3249
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
37 -6.93 48.0249
38 -5.93 35.1649
38 -5.93 35.1649
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
41 -2.93 8.5849
41 -2.93 8.5849
42 -1.93 3.7249
43 -0.93 0.8649
43 -0.93 0.8649
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
46 2.07 4.2849
47 3.07 9.4249
48 4.07 16.5649
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
51 7.07 49.9849
52 8.07 65.1249
52 8.07 65.1249
55 11.07 122.5449
55 11.07 122.5449
55 11.07 122.5449
70 26.07 679.6449
SUM 2680 2571.74
AVERAGE(x̄) 43.93
For Data in column A, Estimate the following:

a) Mean
∑fi/n
∑fi=2680
n=61
=2680/61
Mean: 43.93

b) Median
n+1/2
n=61
=61+1/2
=31st observation
31st observation = 45
Median=45

c) Mode
Most recurring observation
=45
Mode=45

d) Inter Quartile Range (3 Marks)


Quartile 1= 40
n+1/4
61+1/4
= 62/4
= 15.5
= 16th observation
16th observation = 40
Quartile 3=47
3(n+1)/4
=3(61+1)/4
=3(62)/4
=186/4
=46.4
=47th observation
47th observation= 47

Interquartile Range = Quartile 3 – Quartile 1


=47-40
=7

(e) Standard Deviation (3 Marks)


Standard deviation = √variance
Variance = ∑(X-x̄)
x̄=43.93
Variance = ∑ (X- x̄)^2 / n-1
= 2571.74 / (61-1)
= 2571.74/60
= 42.86
Standard deviation = √variance
=√42.86
= 6.55

f) Insert a Box plot for the data in column A and comment on type of
distribution.

N
TASK 2:

(a) Construct a column chart for No. of Sales data in cells B3:C13

(a) Number of Sales for every Sales Rep

45
40
35
No of Sales

30
25
20
15
10
5
0
Sales Rep

Lisa Carina Yodit Ruth Brian


Jason Laura Dominique Zahid Harinder

(b) Construct a bar chart for Sales data in cells E3:F13.

(b) Sales Rep and their sales

Harinder
Zahid
Dominique
Laura
Sales Rep

Jason
Brian
Ruth
Yodit
Carina
Lisa
$- $5,000 $10,000 $15,000
Sales
(c) Construct a Pie chart for Product data in cells B23:C33

(c) Product and Number of Sales


20 30

19

17

17
17

17
19
23
21

Quad Icarus FlatTop Sunspot Carlota


Sunset Sunshine Bellen sunbell Gel Fast

(d) Construct a 3D column chart for Product sales data in cells E23:F33

(d) Product and Sales

$10,000
Sales

$5,000

$-

Products
TASK 3:
(a).Use Data Analysis Toolpak to create Histogram for data in D3:D202 using
Bins in H4:H15
Bin Frequency
50 10
100 20
150 15 (a) Histogram
200 19 25
250 10
20
300 18
Frequency

350 20 15
400 19
10
450 18
500 16 5
550 22
600 13 0
50 100 150 200 250 300 350 400 450 500 550 600
Sales ($)
(b) Using the frequencies of Histogram above, calculate cumulative frequency in
J4:J15.
Cumulative
Sales($) Frequency Frequency
f F
0-50 10 10
51- 100 20 30
101-150 15 45
151-200 19 64
201-250 10 74
251-300 18 92
301-350 20 112
351-400 19 131
401-450 18 149
451-500 16 165
501-550 22 187
551-600 13 200
Total 200

(c) Using cumulative frequency in J4:J15 create a cumulative frequency Polygon

(c) Sales of Products


250
200
187
200 165
149
Sales amount

150 131
112
92
100 64 74
45
50 30
10
0
0 2 4 6 8 10 12 14
Frequency
(d) Estimate Median, Quartiles and Inter Quartile Range from the chart in part (c)
above

Median =
Quartile 1:

Quartile 3:
TASK 4:
(a) Use the frequency distribution in N5:O16 to calculate Mean, Variance and
Standard Deviation for grouped data
Class
Sales($) Frequency Midpoint
F X FX (X- x̄) (X- x̄)^2 F((X- x̄)^2
0 - 50 10 25 250 -285.25 81367.56 813675.6
51 - 100 20 75 1500 -235.25 55342.56 1106851
101 - 150 15 125 1875 -185.25 34317.56 514763.4
151 - 200 19 175 3325 -135.25 18292.56 347558.7
201 - 250 10 225 2250 -85.25 7267.563 72675.63
251 - 300 18 275 4950 -35.25 1242.563 22366.13
301 - 350 20 325 6500 14.75 217.5625 4351.25
351 - 400 19 375 7125 64.75 4192.563 79658.69
401 - 450 18 425 7650 114.75 13167.56 237016.1
451 - 500 16 475 7600 164.75 27142.56 434281
501 - 550 22 525 11550 214.75 46117.56 1014586
551 - 600 13 575 7475 264.75 70092.56 911203.3
Total 200 3600 62050 358760.8 5558988

Mean: ∑ FX/ ∑ F
= 62050/200
=310.25
Variance = ∑ F(X- x̄)^2/ (n-1)
= 5558988/ (200-1)
= 27934.6131
Standard Deviation = = √variance
= √27934.6131
=167.137
(b) Use the data analysis tool Pak in Excel to calculate the descriptive
statistics for the data D3:D202 in work sheet named "Task 3".

Descriptive Statistics
Mean 310.0861
Standard Error 11.8485212
Median 310
Mode 403
Standard Deviation 167.563394
Sample Variance 28077.4911
Kurtosis -1.19059943
Skewness -0.05027714
Range 584
Minimum 11
Maximum 595
Sum 62017.22
Count 200

(c) Compare the Mean and Standard Deviation of the parts (a) and (b) and
comment briefly.
The Mean calculated in part (a) is 310.25 while the mean calculated in part
(b) is 310.0861
The Standard deviation calculated in part (a) is 167.137, while the standard
deviation calculated in part (b) is 167.563394
From the above, it is noticeable that the mean and standard deviation is
approximately, if not, exactly the same, with just a minor difference due to
the change in decimal points.
This leads to a conclusion that calculating descriptive statistics using excel is
more efficient than calculating it by hand, as it is faster, and chances of
mistake are much lesser.
MONTHLY SPEND:
Monthly
Monthly Accommodation
Income Spend (x-x̄) (y-ȳ) (x-x̄)^2 (y-ȳ)^2 (x-x̄)(y-ȳ)
X Y
-£ -£
£ 2,204 £ 865 189 7 35541.68 42.57562 1230.126
£ £
£ 2,572 £ 952 179 80 32211.28 6476.226 14443.25
-£ -£
£ 1,845 £ 694 548 178 299783.6 31515.13 97199.38
£ £
£ 2,606 £ 999 213 127 45571.58 16249.88 27212.73
£ £
£ 2,941 £ 994 548 122 300824.8 15000.13 67174.48
£ £
£ 2,453 £ 909 60 37 3657.226 1404.376 2266.301
£ £
£ 2,887 £ 962 494 90 244505.5 8185.726 44737.63
-£ -£
£ 1,768 £ 655 625 217 390031.5 46883.08 135225.3
-£ -£
£ 2,159 £ 825 234 47 54533.93 2164.576 10864.75
-£ -£
£ 2,080 £ 791 313 81 97671.88 6484.276 25166.08
-£ -£
£ 1,875 £ 715 518 157 267832.1 24500.08 81005.6
£ £
£ 2,895 £ 940 502 68 252481.1 4688.826 34406.98
-£ -£
£ 2,283 £ 818 110 54 11995.73 2864.926 5862.326
£ £
£ 3,103 £ 1,113 710 241 504774.7 58310.18 171562
£ £
£ 2,674 £ 922 281 50 79228.18 2547.726 14207.45
-£ £
£ 2,208 £ 893 185 21 34049.48 461.1756 -3962.67
-£ -£
£ 2,195 £ 785 198 87 39016.13 7486.576 17090.85
-£ -£
£ 2,237 £ 747 156 125 24188.03 15506.48 19366.75
-£ -£
£ 1,888 £ 726 505 146 254545.5 21177.53 73421
£ £
£ 3,025 £ 1,018 632 146 400024.6 21454.93 92641.78
£ £
£ 2,721 £ 899 328 27 107895.8 754.8756 9024.851
-£ -£
£ 2,354 £ 830 39 42 1484.176 1724.326 1599.751
£ -£
£ 2,624 £ 861 231 11 53580.68 110.7756 -2436.27
£ £
£ 3,237 £ 1,093 844 221 713138 49051.18 187030.1
£ £
£ 2,849 £ 1,015 456 143 208369.4 20585.08 65492.75
-£ -£
£ 2,001 £ 786 392 86 153291.8 7314.526 33485.18
£ £
£ 2,485 £ 959 92 87 8551.626 7651.876 8089.251
£ £
£ 2,930 £ 1,122 537 250 288879.4 62737.73 134624.1
-£ -£
£ 1,735 £ 594 658 278 432339.1 77020.13 182479.6
-£ -£
£ 1,895 £ 708 498 164 247531.1 26740.43 81357.78
-£ -£
£ 1,894 £ 739 499 133 248527.2 17562.88 66067.03
-£ -£
£ 1,822 £ 749 571 123 325498.8 15012.38 69903.58
-£ -£
£ 2,296 £ 787 97 85 9317.076 7144.476 8158.776
£ £
£ 2,758 £ 1,056 365 184 133572 34031.03 67421
£ £
£ 3,289 £ 1,218 896 346 803667.4 120044.9 310606.2
-£ -£
£ 2,039 £ 721 354 151 124979.9 22657.78 53214.35
-£ -£
£ 1,882 £ 803 511 69 260635.8 4695.676 34983.73
-£ -£
£ 2,179 £ 773 214 99 45592.93 9707.176 21037.55
-£ -£
£ 1,981 £ 819 412 53 169352.8 2758.876 21615.35
£ £
£ 2,832 £ 1,006 439 134 193138.3 18083.53 59098.4
Sum: £ 95,701 £ 34,861 7901812 798794 2343975
Mean £ 2,393 £ 872
Count 40

Correlation Coefficient =
Covariance (x,y) / SDx * SDy

Covariance = ∑(x-x̄) (y-ȳ) / n – 1


= 2343975 / 40 – 1
= 2343975 / 39
= 60101.9231
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(y-ȳ)^2 / n – 1
= 798794 / 40 -1
= 798794 / 39
= 20481.897
Standard Deviation of Y = √20481.897
= 143.115

Correlation Coefficient (r) = Covariance (x,y) / SDx * SDy


= 60101.9231 / (450.123*143.115)
=0.93298
MONTHLY SAVINGS:
x Z (x-x̄) (Z-z) (x-x̄)^2 (Z-z)^2 (x-x̄)(Z-z)
£ £ -£ £
2,204 578 189 32 35541.68 1054.626 -6122.35
£ £ £ £
2,572 605 179 59 32211.28 3537.276 10674.28
£ £ -£ -£
1,845 447 548 99 299783.6 9707.176 53944.9
£ £ £ £
2,606 654 213 108 45571.58 11766.83 23156.7
£ £ £ £
2,941 577 548 31 300824.8 990.6756 17263.25
£ £ £ £
2,453 578 60 32 3657.226 1054.626 1963.926
£ £ £ £
2,887 549 494 3 244505.5 12.07563 1718.301
£ £ -£ -£
1,768 416 625 130 390031.5 16776.73 80891.6
£ £ -£ -£
2,159 539 234 7 54533.93 42.57562 1523.751
£ £ -£ -£
2,080 515 313 31 97671.88 931.7756 9539.826
£ £ -£ -£
1,875 466 518 80 267832.1 6324.226 41156.18
£ £ £ -£
2,895 521 502 25 252481.1 601.4756 -12323.2
£ £ -£ -£
2,283 504 110 42 11995.73 1724.326 4548.026
£ £ £ £
3,103 687 710 141 504774.7 20015.18 100514.5
£ £ £ £
2,674 546 281 0 79228.18 0.225625 133.7006
£ £ -£ £
2,208 611 185 65 34049.48 4286.976 -12081.8
£ £ -£ -£
2,195 483 198 63 39016.13 3909.376 12350.25
£ £ -£ -£
2,237 428 156 118 24188.03 13812.13 18278.08
£ £ -£ -£
1,888 477 505 69 254545.5 4695.676 34572.58
£ £ £ £
3,025 588 632 42 400024.6 1804.126 26864.38
£ £ £ -£
2,721 508 328 38 107895.8 1408.126 -12326
£ £ -£ -£
2,354 503 39 43 1484.176 1808.376 1638.276
£ £ £ -£
2,624 483 231 63 53580.68 3909.376 -14473
£ £ £ £
3,237 633 844 87 713138 7651.876 73870.45
£ £ £ £
2,849 622 456 76 208369.4 5848.426 34908.93
£ £ -£ -£
2,001 525 392 21 153291.8 421.2756 8036.051
£ £ £ £
2,485 632 92 86 8551.626 7477.926 7996.776
£ £ £ £
2,930 735 537 189 288879.4 35900.78 101838.1
£ £ -£ -£
1,735 350 658 196 432339.1 38230.03 128562.6
£ £ -£ -£
1,895 453 498 93 247531.1 8560.876 46033.5
£ £ -£ -£
1,894 492 499 54 248527.2 2864.926 26683.55
£ £ -£ -£
1,822 519 571 27 325498.8 703.5756 15133.18
£ £ -£ -£
2,296 464 97 82 9317.076 6646.326 7869.201
£ £ £ £
2,758 691 365 145 133572 21162.98 53167.48
£ £ £ £
3,289 774 896 228 803667.4 52200.83 204822.1
£ £ -£ -£
2,039 439 354 107 124979.9 11347.58 37659.25
£ £ -£ £
1,882 572 511 26 260635.8 700.9256 -13516.1
£ £ -£ -£
2,179 472 214 74 45592.93 5405.926 15699.43
£ £ -£ £
1,981 570 412 24 169352.8 599.0256 -10072.1
£ £ £ £
2,832 615 439 69 193138.3 4826.776 30532.53
£ £
SUM 95,701 21,821 7901812 320724 1152631
£ £
AVERAGE 2,393 546
COUNT 40

Correlation Coefficient =
Covariance (x,z) / SDx * SDz

Covariance = ∑(x-x̄) (Z-z) / n – 1


= 1152631/ 40 – 1
= 1152631/ 39
= 29554.641
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(Z-z)^2 / n – 1
= 320723.975/ 40 -1
= 320723.975/ 39
= 8223.691
Standard Deviation of Y = √8223.69103
= 90.68

Correlation Coefficient (r) = Covariance (x,z) / SDx * SDz


= 29554.641/ (450.123*90.68) = 29554.641 / 40817.15
= 0.724
(iv) Fit a linear regression line y = a + bx on each pair of data in part (i) using
formulae and explain each equation
LINEAR REGRESSION LINE FOR MONTHLY ACCOMODATION SPEND

Monthly Monthly X^2 Y^2 XY


Income Accommodation
Spend
X Y
£ 2,204 £ 865 4857616 748225 1906460
£ 2,572 £ 952 6615184 906304 2448544
£ 1,845 £ 694 3404025 481636 1280430
£ 2,606 £ 999 6791236 998001 2603394
£ 2,941 £ 994 8649481 988036 2923354
£ 2,453 £ 909 6017209 826281 2229777
£ 2,887 £ 962 8334769 925444 2777294
£ 1,768 £ 655 3125824 429025 1158040
£ 2,159 £ 825 4661281 680625 1781175
£ 2,080 £ 791 4326400 625681 1645280
£ 1,875 £ 715 3515625 511225 1340625
£ 2,895 £ 940 8381025 883600 2721300
£ 2,283 £ 818 5212089 669124 1867494
£ 3,103 £ 1,113 9628609 1238769 3453639
£ 2,674 £ 922 7150276 850084 2465428
£ 2,208 £ 893 4875264 797449 1971744
£ 2,195 £ 785 4818025 616225 1723075
£ 2,237 £ 747 5004169 558009 1671039
£ 1,888 £ 726 3564544 527076 1370688
£ 3,025 £ 1,018 9150625 1036324 3079450
£ 2,721 £ 899 7403841 808201 2446179
£ 2,354 £ 830 5541316 688900 1953820
£ 2,624 £ 861 6885376 741321 2259264
£ 3,237 £ 1,093 10478169 1194649 3538041
£ 2,849 £ 1,015 8116801 1030225 2891735
£ 2,001 £ 786 4004001 617796 1572786
£ 2,485 £ 959 6175225 919681 2383115
£ 2,930 £ 1,122 8584900 1258884 3287460
£ 1,735 £ 594 3010225 352836 1030590
£ 1,895 £ 708 3591025 501264 1341660
£ 1,894 £ 739 3587236 546121 1399666
£ 1,822 £ 749 3319684 561001 1364678
£ 2,296 £ 787 5271616 619369 1806952
£ 2,758 £ 1,056 7606564 1115136 2912448
£ 3,289 £ 1,218 10817521 1483524 4006002
£ 2,039 £ 721 4157521 519841 1470119
£ 1,882 £ 803 3541924 644809 1511246
£ 2,179 £ 773 4748041 597529 1684367
£ 1,981 £ 819 3924361 670761 1622439
£ 2,832 £ 1,006 8020224 1012036 2848992
SUM £ £ 236868847 31181027 85749789
95,701 34,861
n= £ 40

x̄=2393
ȳ = 872
Slope (b) = n∑xy - ∑x∑y / n∑x^2 – (∑x)^2
= (40)( 85749789) – (95,701) (34,861) / (40)(236868847) – (95701)^2
= 3429991560 – 3336232561 / 9474753880 - 9158681401
= 93758999 / 316072479
=0.296
a= ȳ-bx̄
Assume Y to be 1218 and X to be 3289
a = 872 – (0.296)(2393)
= 872 – 708.3
=163.7
Regression line for Monthly Spending =
Y= 163.7+ 0.296x

LINEAR REGRESSION LINE FOR MONTHLY SAVINGS:


Monthly Monthly X^2 z^2 XZ
Income Saving

X Z
£ £ 578 4857616 334084 1273912
2,204
£ £ 605 6615184 366025 1556060
2,572
£ £ 447 3404025 199809 824715
1,845
£ £ 654 6791236 427716 1704324
2,606
£ £ 577 8649481 332929 1696957
2,941
£ £ 578 6017209 334084 1417834
2,453
£ £ 549 8334769 301401 1584963
2,887
£ £ 416 3125824 173056 735488
1,768
£ £ 539 4661281 290521 1163701
2,159
£ £ 515 4326400 265225 1071200
2,080
£ £ 466 3515625 217156 873750
1,875
£ £ 521 8381025 271441 1508295
2,895
£ £ 504 5212089 254016 1150632
2,283
£ £ 687 9628609 471969 2131761
3,103
£ £ 546 7150276 298116 1460004
2,674
£ £ 611 4875264 373321 1349088
2,208
£ £ 483 4818025 233289 1060185
2,195
£ £ 428 5004169 183184 957436
2,237
£ £ 477 3564544 227529 900576
1,888
£ £ 588 9150625 345744 1778700
3,025
£ £ 508 7403841 258064 1382268
2,721
£ £ 503 5541316 253009 1184062
2,354
£ £ 483 6885376 233289 1267392
2,624
£ £ 633 10478169 400689 2049021
3,237
£ £ 622 8116801 386884 1772078
2,849
£ £ 525 4004001 275625 1050525
2,001
£ £ 632 6175225 399424 1570520
2,485
£ £ 735 8584900 540225 2153550
2,930
£ £ 350 3010225 122500 607250
1,735
£ £ 453 3591025 205209 858435
1,895
£ £ 492 3587236 242064 931848
1,894
£ £ 519 3319684 269361 945618
1,822
£ £ 464 5271616 215296 1065344
2,296
£ £ 691 7606564 477481 1905778
2,758
£ £ 774 10817521 599076 2545686
3,289
£ £ 439 4157521 192721 895121
2,039
£ £ 572 3541924 327184 1076504
1,882
£ £ 472 4748041 222784 1028488
2,179
£ £ 570 3924361 324900 1129170
1,981
£ £ 615 8020224 378225 1741680
2,832
SUM £ 95,701 £ £ £ £
21,821 236,868,847 12,224,625 53,359,919
n= £ 40
Average £ £
2,393 546

Slope (b) = n∑xZ - ∑x∑z / n∑x^2 – (∑x)^2


= (40)( 53,359,919) – (95,701) (21,821) / (40)( 236868847) – (95701)^2
= 2134396760 – 2088291521 / 9474753880 - 9158681401
= 46105239 / 316072479
=0.145
a= z-bx̄
z=average of z= 546
x̄= 2393
a = 546 – (0.145)(2393)
= 546 - 346.985
= 199
Regression line for Monthly Spending =
Z= 199+ 0.145 x

(v) Predict the monthly spend and saving using regression equations in part (iv)
if
(a) Monthly income = £2,000
Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (2000)
= 163.7 + 592
= 755.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (2000)
= 199 + 290
= 489

(b) Monthly income = £3,500


Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (3500)
= 163.7 + 1036
= 1199.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (3500)
= 199+507.5
= 706.5
TASK 6:
MONTHLY SPEND:

Monthly Monthly
Accomm Accommodation
Monthly odation Monthly Income Spend
Income Spend (continuation) (continuation)
X Y X Y
£ 1,735 £ 594 £ 2,296 £ 787
£ 1,768 £ 655 £ 2,354 £ 830
£ 1,822 £ 749 £ 2,453 £ 909
£ 1,845 £ 694 £ 2,485 £ 959
£ 1,875 £ 715 £ 2,572 £ 952
£ 1,882 £ 803 £ 2,606 £ 999
£ 1,888 £ 726 £ 2,624 £ 861
£ 1,894 £ 739 £ 2,674 £ 922
£ 1,895 £ 708 £ 2,721 £ 899
£ 1,981 £ 819 £ 2,758 £ 1,056
£ 2,001 £ 786 £ 2,832 £ 1,006
£ 2,039 £ 721 £ 2,849 £ 1,015
£ 2,080 £ 791 £ 2,887 £ 962
£ 2,159 £ 825 £ 2,895 £ 940
£ 2,179 £ 773 £ 2,930 £ 1,122
£ 2,195 £ 785 £ 2,941 £ 994
£ 2,204 £ 865 £ 3,025 £ 1,018
£ 2,208 £ 893 £ 3,103 £ 1,113
£ 2,237 £ 747 £ 3,237 £ 1,093
£ 2,283 £ 818 £ 3,289 £ 1,218

USING HIGH LOW METHOD


FOR SPEND: X Y
Highest Income and spend: 3,289 1218
Lowest Income and spend: 1735 594
Difference: 1,554 624

Y= a+bx a =Y-bx
b=Yhigh-Ylow/Xhigh-Xlow Assume Y=1218 and X=3289
=624/1554 a= 1218 – (0.40)(3289)
=0.40 =1218 – 1315.6
=-97.6
MONTHLY SAVING :

Monthly Monthly
Monthly Monthly Income Saving
Income Saving (continuation) (continuation)
X Z X Z
£ 2,204 £ 578 £ 2,721 £ 508
£ 2,572 £ 605 £ 2,354 £ 503
£ 1,845 £ 447 £ 2,624 £ 483
£ 2,606 £ 654 £ 3,237 £ 633
£ 2,941 £ 577 £ 2,849 £ 622
£ 2,453 £ 578 £ 2,001 £ 525
£ 2,887 £ 549 £ 2,485 £ 632
£ 1,768 £ 416 £ 2,930 £ 735
£ 2,159 £ 539 £ 1,735 £ 350
£ 2,080 £ 515 £ 1,895 £ 453
£ 1,875 £ 466 £ 1,894 £ 492
£ 2,895 £ 521 £ 1,822 £ 519
£ 2,283 £ 504 £ 2,296 £ 464
£ 3,103 £ 687 £ 2,758 £ 691
£ 2,674 £ 546 £ 3,289 £ 774
£ 2,208 £ 611 £ 2,039 £ 439
£ 2,195 £ 483 £ 1,882 £ 572
£ 2,237 £ 428 £ 2,179 £ 472
£ 1,888 £ 477 £ 1,981 £ 570
£ 3,025 £ 588 £ 2,832 £ 615

USING HIGH LOW METHOD


FOR Savings: X Z
Highest Income and saving: 3,289 774
Lowest Income and saving: 1735 350
Difference: 1,554 424
Z= a+bx a=Z-bx

b=Zhigh-Zlow/Xhigh-Xlow Assume Z is 774 and x is 3289


=424/1554 a = 774 – (0.27)(3289)
=0.27 = 774 – 888.03
= 114.03

(i) Estimate the monthly spend and saving using high low method if
(a) monthly income = £2,000
(b) monthly income = £3,500

(a) When monthly income is 2000


Monthly spend= 702.4
Y= a+bx
(-97.6) + (0.40)(2000)
-97.6 + 800
702.4
Monthly savings = 425.97
Z = a+bx
(-114.03) + (0.27)(2000)
-114.03+ 540
425.97

(b) When monthly income is 3500


Monthly spend = 1302.4
Y= a + bx
(-97.6) + (0.40)(3500)
-97.6 + 1400
= 1302.4

Monthly savings = 830.97


Z = a+bx
(-114.03) + (0.27)(3500)
= -114.03 + 945
= 830.97
BACF1003D ASSIGNMENT 1
Hayah Zainab
P2833533
TASK 1:
X (X-x̄) (X-x̄)^2
32 -11.93 142.3249
32 -11.93 142.3249
32 -11.93 142.3249
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
37 -6.93 48.0249
38 -5.93 35.1649
38 -5.93 35.1649
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
41 -2.93 8.5849
41 -2.93 8.5849
42 -1.93 3.7249
43 -0.93 0.8649
43 -0.93 0.8649
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
46 2.07 4.2849
47 3.07 9.4249
48 4.07 16.5649
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
51 7.07 49.9849
52 8.07 65.1249
52 8.07 65.1249
55 11.07 122.5449
55 11.07 122.5449
55 11.07 122.5449
70 26.07 679.6449
SUM 2680 2571.74
AVERAGE(x̄) 43.93
For Data in column A, Estimate the following:

a) Mean
∑fi/n
∑fi=2680
n=61
=2680/61
Mean: 43.93

b) Median
n+1/2
n=61
=61+1/2
=31st observation
31st observation = 45
Median=45

c) Mode
Most recurring observation
=45
Mode=45

d) Inter Quartile Range (3 Marks)


Quartile 1= 40
n+1/4
61+1/4
= 62/4
= 15.5
= 16th observation
16th observation = 40
Quartile 3=47
3(n+1)/4
=3(61+1)/4
=3(62)/4
=186/4
=46.4
=47th observation
47th observation= 47

Interquartile Range = Quartile 3 – Quartile 1


=47-40
=7

(e) Standard Deviation (3 Marks)


Standard deviation = √variance
Variance = ∑(X-x̄)
x̄=43.93
Variance = ∑ (X- x̄)^2 / n-1
= 2571.74 / (61-1)
= 2571.74/60
= 42.86
Standard deviation = √variance
=√42.86
= 6.55

f) Insert a Box plot for the data in column A and comment on type of
distribution.

N
TASK 2:

(a) Construct a column chart for No. of Sales data in cells B3:C13

(a) Number of Sales for every Sales Rep

45
40
35
No of Sales

30
25
20
15
10
5
0
Sales Rep

Lisa Carina Yodit Ruth Brian


Jason Laura Dominique Zahid Harinder

(b) Construct a bar chart for Sales data in cells E3:F13.

(b) Sales Rep and their sales

Harinder
Zahid
Dominique
Laura
Sales Rep

Jason
Brian
Ruth
Yodit
Carina
Lisa
$- $5,000 $10,000 $15,000
Sales
(c) Construct a Pie chart for Product data in cells B23:C33

(c) Product and Number of Sales


20 30

19

17

17
17

17
19
23
21

Quad Icarus FlatTop Sunspot Carlota


Sunset Sunshine Bellen sunbell Gel Fast

(d) Construct a 3D column chart for Product sales data in cells E23:F33

(d) Product and Sales

$10,000
Sales

$5,000

$-

Products
TASK 3:
(a).Use Data Analysis Toolpak to create Histogram for data in D3:D202 using
Bins in H4:H15
Bin Frequency
50 10
100 20
150 15 (a) Histogram
200 19 25
250 10
20
300 18
Frequency

350 20 15
400 19
10
450 18
500 16 5
550 22
600 13 0
50 100 150 200 250 300 350 400 450 500 550 600
Sales ($)
(b) Using the frequencies of Histogram above, calculate cumulative frequency in
J4:J15.
Cumulative
Sales($) Frequency Frequency
f F
0-50 10 10
51- 100 20 30
101-150 15 45
151-200 19 64
201-250 10 74
251-300 18 92
301-350 20 112
351-400 19 131
401-450 18 149
451-500 16 165
501-550 22 187
551-600 13 200
Total 200

(c) Using cumulative frequency in J4:J15 create a cumulative frequency Polygon

(c) Sales of Products


250
200
187
200 165
149
Sales amount

150 131
112
92
100 64 74
45
50 30
10
0
0 2 4 6 8 10 12 14
Frequency
(d) Estimate Median, Quartiles and Inter Quartile Range from the chart in part (c)
above

Median =
Quartile 1:

Quartile 3:
TASK 4:
(a) Use the frequency distribution in N5:O16 to calculate Mean, Variance and
Standard Deviation for grouped data
Class
Sales($) Frequency Midpoint
F X FX (X- x̄) (X- x̄)^2 F((X- x̄)^2
0 - 50 10 25 250 -285.25 81367.56 813675.6
51 - 100 20 75 1500 -235.25 55342.56 1106851
101 - 150 15 125 1875 -185.25 34317.56 514763.4
151 - 200 19 175 3325 -135.25 18292.56 347558.7
201 - 250 10 225 2250 -85.25 7267.563 72675.63
251 - 300 18 275 4950 -35.25 1242.563 22366.13
301 - 350 20 325 6500 14.75 217.5625 4351.25
351 - 400 19 375 7125 64.75 4192.563 79658.69
401 - 450 18 425 7650 114.75 13167.56 237016.1
451 - 500 16 475 7600 164.75 27142.56 434281
501 - 550 22 525 11550 214.75 46117.56 1014586
551 - 600 13 575 7475 264.75 70092.56 911203.3
Total 200 3600 62050 358760.8 5558988

Mean: ∑ FX/ ∑ F
= 62050/200
=310.25
Variance = ∑ F(X- x̄)^2/ (n-1)
= 5558988/ (200-1)
= 27934.6131
Standard Deviation = = √variance
= √27934.6131
=167.137
(b) Use the data analysis tool Pak in Excel to calculate the descriptive
statistics for the data D3:D202 in work sheet named "Task 3".

Descriptive Statistics
Mean 310.0861
Standard Error 11.8485212
Median 310
Mode 403
Standard Deviation 167.563394
Sample Variance 28077.4911
Kurtosis -1.19059943
Skewness -0.05027714
Range 584
Minimum 11
Maximum 595
Sum 62017.22
Count 200

(c) Compare the Mean and Standard Deviation of the parts (a) and (b) and
comment briefly.
The Mean calculated in part (a) is 310.25 while the mean calculated in part
(b) is 310.0861
The Standard deviation calculated in part (a) is 167.137, while the standard
deviation calculated in part (b) is 167.563394
From the above, it is noticeable that the mean and standard deviation is
approximately, if not, exactly the same, with just a minor difference due to
the change in decimal points.
This leads to a conclusion that calculating descriptive statistics using excel is
more efficient than calculating it by hand, as it is faster, and chances of
mistake are much lesser.
MONTHLY SPEND:
Monthly
Monthly Accommodation
Income Spend (x-x̄) (y-ȳ) (x-x̄)^2 (y-ȳ)^2 (x-x̄)(y-ȳ)
X Y
-£ -£
£ 2,204 £ 865 189 7 35541.68 42.57562 1230.126
£ £
£ 2,572 £ 952 179 80 32211.28 6476.226 14443.25
-£ -£
£ 1,845 £ 694 548 178 299783.6 31515.13 97199.38
£ £
£ 2,606 £ 999 213 127 45571.58 16249.88 27212.73
£ £
£ 2,941 £ 994 548 122 300824.8 15000.13 67174.48
£ £
£ 2,453 £ 909 60 37 3657.226 1404.376 2266.301
£ £
£ 2,887 £ 962 494 90 244505.5 8185.726 44737.63
-£ -£
£ 1,768 £ 655 625 217 390031.5 46883.08 135225.3
-£ -£
£ 2,159 £ 825 234 47 54533.93 2164.576 10864.75
-£ -£
£ 2,080 £ 791 313 81 97671.88 6484.276 25166.08
-£ -£
£ 1,875 £ 715 518 157 267832.1 24500.08 81005.6
£ £
£ 2,895 £ 940 502 68 252481.1 4688.826 34406.98
-£ -£
£ 2,283 £ 818 110 54 11995.73 2864.926 5862.326
£ £
£ 3,103 £ 1,113 710 241 504774.7 58310.18 171562
£ £
£ 2,674 £ 922 281 50 79228.18 2547.726 14207.45
-£ £
£ 2,208 £ 893 185 21 34049.48 461.1756 -3962.67
-£ -£
£ 2,195 £ 785 198 87 39016.13 7486.576 17090.85
-£ -£
£ 2,237 £ 747 156 125 24188.03 15506.48 19366.75
-£ -£
£ 1,888 £ 726 505 146 254545.5 21177.53 73421
£ £
£ 3,025 £ 1,018 632 146 400024.6 21454.93 92641.78
£ £
£ 2,721 £ 899 328 27 107895.8 754.8756 9024.851
-£ -£
£ 2,354 £ 830 39 42 1484.176 1724.326 1599.751
£ -£
£ 2,624 £ 861 231 11 53580.68 110.7756 -2436.27
£ £
£ 3,237 £ 1,093 844 221 713138 49051.18 187030.1
£ £
£ 2,849 £ 1,015 456 143 208369.4 20585.08 65492.75
-£ -£
£ 2,001 £ 786 392 86 153291.8 7314.526 33485.18
£ £
£ 2,485 £ 959 92 87 8551.626 7651.876 8089.251
£ £
£ 2,930 £ 1,122 537 250 288879.4 62737.73 134624.1
-£ -£
£ 1,735 £ 594 658 278 432339.1 77020.13 182479.6
-£ -£
£ 1,895 £ 708 498 164 247531.1 26740.43 81357.78
-£ -£
£ 1,894 £ 739 499 133 248527.2 17562.88 66067.03
-£ -£
£ 1,822 £ 749 571 123 325498.8 15012.38 69903.58
-£ -£
£ 2,296 £ 787 97 85 9317.076 7144.476 8158.776
£ £
£ 2,758 £ 1,056 365 184 133572 34031.03 67421
£ £
£ 3,289 £ 1,218 896 346 803667.4 120044.9 310606.2
-£ -£
£ 2,039 £ 721 354 151 124979.9 22657.78 53214.35
-£ -£
£ 1,882 £ 803 511 69 260635.8 4695.676 34983.73
-£ -£
£ 2,179 £ 773 214 99 45592.93 9707.176 21037.55
-£ -£
£ 1,981 £ 819 412 53 169352.8 2758.876 21615.35
£ £
£ 2,832 £ 1,006 439 134 193138.3 18083.53 59098.4
Sum: £ 95,701 £ 34,861 7901812 798794 2343975
Mean £ 2,393 £ 872
Count 40

Correlation Coefficient =
Covariance (x,y) / SDx * SDy

Covariance = ∑(x-x̄) (y-ȳ) / n – 1


= 2343975 / 40 – 1
= 2343975 / 39
= 60101.9231
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(y-ȳ)^2 / n – 1
= 798794 / 40 -1
= 798794 / 39
= 20481.897
Standard Deviation of Y = √20481.897
= 143.115

Correlation Coefficient (r) = Covariance (x,y) / SDx * SDy


= 60101.9231 / (450.123*143.115)
=0.93298
MONTHLY SAVINGS:
x Z (x-x̄) (Z-z) (x-x̄)^2 (Z-z)^2 (x-x̄)(Z-z)
£ £ -£ £
2,204 578 189 32 35541.68 1054.626 -6122.35
£ £ £ £
2,572 605 179 59 32211.28 3537.276 10674.28
£ £ -£ -£
1,845 447 548 99 299783.6 9707.176 53944.9
£ £ £ £
2,606 654 213 108 45571.58 11766.83 23156.7
£ £ £ £
2,941 577 548 31 300824.8 990.6756 17263.25
£ £ £ £
2,453 578 60 32 3657.226 1054.626 1963.926
£ £ £ £
2,887 549 494 3 244505.5 12.07563 1718.301
£ £ -£ -£
1,768 416 625 130 390031.5 16776.73 80891.6
£ £ -£ -£
2,159 539 234 7 54533.93 42.57562 1523.751
£ £ -£ -£
2,080 515 313 31 97671.88 931.7756 9539.826
£ £ -£ -£
1,875 466 518 80 267832.1 6324.226 41156.18
£ £ £ -£
2,895 521 502 25 252481.1 601.4756 -12323.2
£ £ -£ -£
2,283 504 110 42 11995.73 1724.326 4548.026
£ £ £ £
3,103 687 710 141 504774.7 20015.18 100514.5
£ £ £ £
2,674 546 281 0 79228.18 0.225625 133.7006
£ £ -£ £
2,208 611 185 65 34049.48 4286.976 -12081.8
£ £ -£ -£
2,195 483 198 63 39016.13 3909.376 12350.25
£ £ -£ -£
2,237 428 156 118 24188.03 13812.13 18278.08
£ £ -£ -£
1,888 477 505 69 254545.5 4695.676 34572.58
£ £ £ £
3,025 588 632 42 400024.6 1804.126 26864.38
£ £ £ -£
2,721 508 328 38 107895.8 1408.126 -12326
£ £ -£ -£
2,354 503 39 43 1484.176 1808.376 1638.276
£ £ £ -£
2,624 483 231 63 53580.68 3909.376 -14473
£ £ £ £
3,237 633 844 87 713138 7651.876 73870.45
£ £ £ £
2,849 622 456 76 208369.4 5848.426 34908.93
£ £ -£ -£
2,001 525 392 21 153291.8 421.2756 8036.051
£ £ £ £
2,485 632 92 86 8551.626 7477.926 7996.776
£ £ £ £
2,930 735 537 189 288879.4 35900.78 101838.1
£ £ -£ -£
1,735 350 658 196 432339.1 38230.03 128562.6
£ £ -£ -£
1,895 453 498 93 247531.1 8560.876 46033.5
£ £ -£ -£
1,894 492 499 54 248527.2 2864.926 26683.55
£ £ -£ -£
1,822 519 571 27 325498.8 703.5756 15133.18
£ £ -£ -£
2,296 464 97 82 9317.076 6646.326 7869.201
£ £ £ £
2,758 691 365 145 133572 21162.98 53167.48
£ £ £ £
3,289 774 896 228 803667.4 52200.83 204822.1
£ £ -£ -£
2,039 439 354 107 124979.9 11347.58 37659.25
£ £ -£ £
1,882 572 511 26 260635.8 700.9256 -13516.1
£ £ -£ -£
2,179 472 214 74 45592.93 5405.926 15699.43
£ £ -£ £
1,981 570 412 24 169352.8 599.0256 -10072.1
£ £ £ £
2,832 615 439 69 193138.3 4826.776 30532.53
£ £
SUM 95,701 21,821 7901812 320724 1152631
£ £
AVERAGE 2,393 546
COUNT 40

Correlation Coefficient =
Covariance (x,z) / SDx * SDz

Covariance = ∑(x-x̄) (Z-z) / n – 1


= 1152631/ 40 – 1
= 1152631/ 39
= 29554.641
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(Z-z)^2 / n – 1
= 320723.975/ 40 -1
= 320723.975/ 39
= 8223.691
Standard Deviation of Y = √8223.69103
= 90.68

Correlation Coefficient (r) = Covariance (x,z) / SDx * SDz


= 29554.641/ (450.123*90.68) = 29554.641 / 40817.15
= 0.724
(iv) Fit a linear regression line y = a + bx on each pair of data in part (i) using
formulae and explain each equation
LINEAR REGRESSION LINE FOR MONTHLY ACCOMODATION SPEND

Monthly Monthly X^2 Y^2 XY


Income Accommodation
Spend
X Y
£ 2,204 £ 865 4857616 748225 1906460
£ 2,572 £ 952 6615184 906304 2448544
£ 1,845 £ 694 3404025 481636 1280430
£ 2,606 £ 999 6791236 998001 2603394
£ 2,941 £ 994 8649481 988036 2923354
£ 2,453 £ 909 6017209 826281 2229777
£ 2,887 £ 962 8334769 925444 2777294
£ 1,768 £ 655 3125824 429025 1158040
£ 2,159 £ 825 4661281 680625 1781175
£ 2,080 £ 791 4326400 625681 1645280
£ 1,875 £ 715 3515625 511225 1340625
£ 2,895 £ 940 8381025 883600 2721300
£ 2,283 £ 818 5212089 669124 1867494
£ 3,103 £ 1,113 9628609 1238769 3453639
£ 2,674 £ 922 7150276 850084 2465428
£ 2,208 £ 893 4875264 797449 1971744
£ 2,195 £ 785 4818025 616225 1723075
£ 2,237 £ 747 5004169 558009 1671039
£ 1,888 £ 726 3564544 527076 1370688
£ 3,025 £ 1,018 9150625 1036324 3079450
£ 2,721 £ 899 7403841 808201 2446179
£ 2,354 £ 830 5541316 688900 1953820
£ 2,624 £ 861 6885376 741321 2259264
£ 3,237 £ 1,093 10478169 1194649 3538041
£ 2,849 £ 1,015 8116801 1030225 2891735
£ 2,001 £ 786 4004001 617796 1572786
£ 2,485 £ 959 6175225 919681 2383115
£ 2,930 £ 1,122 8584900 1258884 3287460
£ 1,735 £ 594 3010225 352836 1030590
£ 1,895 £ 708 3591025 501264 1341660
£ 1,894 £ 739 3587236 546121 1399666
£ 1,822 £ 749 3319684 561001 1364678
£ 2,296 £ 787 5271616 619369 1806952
£ 2,758 £ 1,056 7606564 1115136 2912448
£ 3,289 £ 1,218 10817521 1483524 4006002
£ 2,039 £ 721 4157521 519841 1470119
£ 1,882 £ 803 3541924 644809 1511246
£ 2,179 £ 773 4748041 597529 1684367
£ 1,981 £ 819 3924361 670761 1622439
£ 2,832 £ 1,006 8020224 1012036 2848992
SUM £ £ 236868847 31181027 85749789
95,701 34,861
n= £ 40

x̄=2393
ȳ = 872
Slope (b) = n∑xy - ∑x∑y / n∑x^2 – (∑x)^2
= (40)( 85749789) – (95,701) (34,861) / (40)(236868847) – (95701)^2
= 3429991560 – 3336232561 / 9474753880 - 9158681401
= 93758999 / 316072479
=0.296
a= ȳ-bx̄
Assume Y to be 1218 and X to be 3289
a = 872 – (0.296)(2393)
= 872 – 708.3
=163.7
Regression line for Monthly Spending =
Y= 163.7+ 0.296x

LINEAR REGRESSION LINE FOR MONTHLY SAVINGS:


Monthly Monthly X^2 z^2 XZ
Income Saving

X Z
£ £ 578 4857616 334084 1273912
2,204
£ £ 605 6615184 366025 1556060
2,572
£ £ 447 3404025 199809 824715
1,845
£ £ 654 6791236 427716 1704324
2,606
£ £ 577 8649481 332929 1696957
2,941
£ £ 578 6017209 334084 1417834
2,453
£ £ 549 8334769 301401 1584963
2,887
£ £ 416 3125824 173056 735488
1,768
£ £ 539 4661281 290521 1163701
2,159
£ £ 515 4326400 265225 1071200
2,080
£ £ 466 3515625 217156 873750
1,875
£ £ 521 8381025 271441 1508295
2,895
£ £ 504 5212089 254016 1150632
2,283
£ £ 687 9628609 471969 2131761
3,103
£ £ 546 7150276 298116 1460004
2,674
£ £ 611 4875264 373321 1349088
2,208
£ £ 483 4818025 233289 1060185
2,195
£ £ 428 5004169 183184 957436
2,237
£ £ 477 3564544 227529 900576
1,888
£ £ 588 9150625 345744 1778700
3,025
£ £ 508 7403841 258064 1382268
2,721
£ £ 503 5541316 253009 1184062
2,354
£ £ 483 6885376 233289 1267392
2,624
£ £ 633 10478169 400689 2049021
3,237
£ £ 622 8116801 386884 1772078
2,849
£ £ 525 4004001 275625 1050525
2,001
£ £ 632 6175225 399424 1570520
2,485
£ £ 735 8584900 540225 2153550
2,930
£ £ 350 3010225 122500 607250
1,735
£ £ 453 3591025 205209 858435
1,895
£ £ 492 3587236 242064 931848
1,894
£ £ 519 3319684 269361 945618
1,822
£ £ 464 5271616 215296 1065344
2,296
£ £ 691 7606564 477481 1905778
2,758
£ £ 774 10817521 599076 2545686
3,289
£ £ 439 4157521 192721 895121
2,039
£ £ 572 3541924 327184 1076504
1,882
£ £ 472 4748041 222784 1028488
2,179
£ £ 570 3924361 324900 1129170
1,981
£ £ 615 8020224 378225 1741680
2,832
SUM £ 95,701 £ £ £ £
21,821 236,868,847 12,224,625 53,359,919
n= £ 40
Average £ £
2,393 546

Slope (b) = n∑xZ - ∑x∑z / n∑x^2 – (∑x)^2


= (40)( 53,359,919) – (95,701) (21,821) / (40)( 236868847) – (95701)^2
= 2134396760 – 2088291521 / 9474753880 - 9158681401
= 46105239 / 316072479
=0.145
a= z-bx̄
z=average of z= 546
x̄= 2393
a = 546 – (0.145)(2393)
= 546 - 346.985
= 199
Regression line for Monthly Spending =
Z= 199+ 0.145 x

(v) Predict the monthly spend and saving using regression equations in part (iv)
if
(a) Monthly income = £2,000
Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (2000)
= 163.7 + 592
= 755.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (2000)
= 199 + 290
= 489

(b) Monthly income = £3,500


Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (3500)
= 163.7 + 1036
= 1199.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (3500)
= 199+507.5
= 706.5
TASK 6:
MONTHLY SPEND:

Monthly Monthly
Accomm Accommodation
Monthly odation Monthly Income Spend
Income Spend (continuation) (continuation)
X Y X Y
£ 1,735 £ 594 £ 2,296 £ 787
£ 1,768 £ 655 £ 2,354 £ 830
£ 1,822 £ 749 £ 2,453 £ 909
£ 1,845 £ 694 £ 2,485 £ 959
£ 1,875 £ 715 £ 2,572 £ 952
£ 1,882 £ 803 £ 2,606 £ 999
£ 1,888 £ 726 £ 2,624 £ 861
£ 1,894 £ 739 £ 2,674 £ 922
£ 1,895 £ 708 £ 2,721 £ 899
£ 1,981 £ 819 £ 2,758 £ 1,056
£ 2,001 £ 786 £ 2,832 £ 1,006
£ 2,039 £ 721 £ 2,849 £ 1,015
£ 2,080 £ 791 £ 2,887 £ 962
£ 2,159 £ 825 £ 2,895 £ 940
£ 2,179 £ 773 £ 2,930 £ 1,122
£ 2,195 £ 785 £ 2,941 £ 994
£ 2,204 £ 865 £ 3,025 £ 1,018
£ 2,208 £ 893 £ 3,103 £ 1,113
£ 2,237 £ 747 £ 3,237 £ 1,093
£ 2,283 £ 818 £ 3,289 £ 1,218

USING HIGH LOW METHOD


FOR SPEND: X Y
Highest Income and spend: 3,289 1218
Lowest Income and spend: 1735 594
Difference: 1,554 624

Y= a+bx a =Y-bx
b=Yhigh-Ylow/Xhigh-Xlow Assume Y=1218 and X=3289
=624/1554 a= 1218 – (0.40)(3289)
=0.40 =1218 – 1315.6
=-97.6
MONTHLY SAVING :

Monthly Monthly
Monthly Monthly Income Saving
Income Saving (continuation) (continuation)
X Z X Z
£ 2,204 £ 578 £ 2,721 £ 508
£ 2,572 £ 605 £ 2,354 £ 503
£ 1,845 £ 447 £ 2,624 £ 483
£ 2,606 £ 654 £ 3,237 £ 633
£ 2,941 £ 577 £ 2,849 £ 622
£ 2,453 £ 578 £ 2,001 £ 525
£ 2,887 £ 549 £ 2,485 £ 632
£ 1,768 £ 416 £ 2,930 £ 735
£ 2,159 £ 539 £ 1,735 £ 350
£ 2,080 £ 515 £ 1,895 £ 453
£ 1,875 £ 466 £ 1,894 £ 492
£ 2,895 £ 521 £ 1,822 £ 519
£ 2,283 £ 504 £ 2,296 £ 464
£ 3,103 £ 687 £ 2,758 £ 691
£ 2,674 £ 546 £ 3,289 £ 774
£ 2,208 £ 611 £ 2,039 £ 439
£ 2,195 £ 483 £ 1,882 £ 572
£ 2,237 £ 428 £ 2,179 £ 472
£ 1,888 £ 477 £ 1,981 £ 570
£ 3,025 £ 588 £ 2,832 £ 615

USING HIGH LOW METHOD


FOR Savings: X Z
Highest Income and saving: 3,289 774
Lowest Income and saving: 1735 350
Difference: 1,554 424
Z= a+bx a=Z-bx

b=Zhigh-Zlow/Xhigh-Xlow Assume Z is 774 and x is 3289


=424/1554 a = 774 – (0.27)(3289)
=0.27 = 774 – 888.03
= 114.03

(i) Estimate the monthly spend and saving using high low method if
(a) monthly income = £2,000
(b) monthly income = £3,500

(a) When monthly income is 2000


Monthly spend= 702.4
Y= a+bx
(-97.6) + (0.40)(2000)
-97.6 + 800
702.4
Monthly savings = 425.97
Z = a+bx
(-114.03) + (0.27)(2000)
-114.03+ 540
425.97

(b) When monthly income is 3500


Monthly spend = 1302.4
Y= a + bx
(-97.6) + (0.40)(3500)
-97.6 + 1400
= 1302.4

Monthly savings = 830.97


Z = a+bx
(-114.03) + (0.27)(3500)
= -114.03 + 945
= 830.97
BACF1003D ASSIGNMENT 1
Hayah Zainab
P2833533
TASK 1:
X (X-x̄) (X-x̄)^2
32 -11.93 142.3249
32 -11.93 142.3249
32 -11.93 142.3249
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
37 -6.93 48.0249
38 -5.93 35.1649
38 -5.93 35.1649
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
41 -2.93 8.5849
41 -2.93 8.5849
42 -1.93 3.7249
43 -0.93 0.8649
43 -0.93 0.8649
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
46 2.07 4.2849
47 3.07 9.4249
48 4.07 16.5649
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
51 7.07 49.9849
52 8.07 65.1249
52 8.07 65.1249
55 11.07 122.5449
55 11.07 122.5449
55 11.07 122.5449
70 26.07 679.6449
SUM 2680 2571.74
AVERAGE(x̄) 43.93
For Data in column A, Estimate the following:

a) Mean
∑fi/n
∑fi=2680
n=61
=2680/61
Mean: 43.93

b) Median
n+1/2
n=61
=61+1/2
=31st observation
31st observation = 45
Median=45

c) Mode
Most recurring observation
=45
Mode=45

d) Inter Quartile Range (3 Marks)


Quartile 1= 40
n+1/4
61+1/4
= 62/4
= 15.5
= 16th observation
16th observation = 40
Quartile 3=47
3(n+1)/4
=3(61+1)/4
=3(62)/4
=186/4
=46.4
=47th observation
47th observation= 47

Interquartile Range = Quartile 3 – Quartile 1


=47-40
=7

(e) Standard Deviation (3 Marks)


Standard deviation = √variance
Variance = ∑(X-x̄)
x̄=43.93
Variance = ∑ (X- x̄)^2 / n-1
= 2571.74 / (61-1)
= 2571.74/60
= 42.86
Standard deviation = √variance
=√42.86
= 6.55

f) Insert a Box plot for the data in column A and comment on type of
distribution.

N
TASK 2:

(a) Construct a column chart for No. of Sales data in cells B3:C13

(a) Number of Sales for every Sales Rep

45
40
35
No of Sales

30
25
20
15
10
5
0
Sales Rep

Lisa Carina Yodit Ruth Brian


Jason Laura Dominique Zahid Harinder

(b) Construct a bar chart for Sales data in cells E3:F13.

(b) Sales Rep and their sales

Harinder
Zahid
Dominique
Laura
Sales Rep

Jason
Brian
Ruth
Yodit
Carina
Lisa
$- $5,000 $10,000 $15,000
Sales
(c) Construct a Pie chart for Product data in cells B23:C33

(c) Product and Number of Sales


20 30

19

17

17
17

17
19
23
21

Quad Icarus FlatTop Sunspot Carlota


Sunset Sunshine Bellen sunbell Gel Fast

(d) Construct a 3D column chart for Product sales data in cells E23:F33

(d) Product and Sales

$10,000
Sales

$5,000

$-

Products
TASK 3:
(a).Use Data Analysis Toolpak to create Histogram for data in D3:D202 using
Bins in H4:H15
Bin Frequency
50 10
100 20
150 15 (a) Histogram
200 19 25
250 10
20
300 18
Frequency

350 20 15
400 19
10
450 18
500 16 5
550 22
600 13 0
50 100 150 200 250 300 350 400 450 500 550 600
Sales ($)
(b) Using the frequencies of Histogram above, calculate cumulative frequency in
J4:J15.
Cumulative
Sales($) Frequency Frequency
f F
0-50 10 10
51- 100 20 30
101-150 15 45
151-200 19 64
201-250 10 74
251-300 18 92
301-350 20 112
351-400 19 131
401-450 18 149
451-500 16 165
501-550 22 187
551-600 13 200
Total 200

(c) Using cumulative frequency in J4:J15 create a cumulative frequency Polygon

(c) Sales of Products


250
200
187
200 165
149
Sales amount

150 131
112
92
100 64 74
45
50 30
10
0
0 2 4 6 8 10 12 14
Frequency
(d) Estimate Median, Quartiles and Inter Quartile Range from the chart in part (c)
above

Median =
Quartile 1:

Quartile 3:
TASK 4:
(a) Use the frequency distribution in N5:O16 to calculate Mean, Variance and
Standard Deviation for grouped data
Class
Sales($) Frequency Midpoint
F X FX (X- x̄) (X- x̄)^2 F((X- x̄)^2
0 - 50 10 25 250 -285.25 81367.56 813675.6
51 - 100 20 75 1500 -235.25 55342.56 1106851
101 - 150 15 125 1875 -185.25 34317.56 514763.4
151 - 200 19 175 3325 -135.25 18292.56 347558.7
201 - 250 10 225 2250 -85.25 7267.563 72675.63
251 - 300 18 275 4950 -35.25 1242.563 22366.13
301 - 350 20 325 6500 14.75 217.5625 4351.25
351 - 400 19 375 7125 64.75 4192.563 79658.69
401 - 450 18 425 7650 114.75 13167.56 237016.1
451 - 500 16 475 7600 164.75 27142.56 434281
501 - 550 22 525 11550 214.75 46117.56 1014586
551 - 600 13 575 7475 264.75 70092.56 911203.3
Total 200 3600 62050 358760.8 5558988

Mean: ∑ FX/ ∑ F
= 62050/200
=310.25
Variance = ∑ F(X- x̄)^2/ (n-1)
= 5558988/ (200-1)
= 27934.6131
Standard Deviation = = √variance
= √27934.6131
=167.137
(b) Use the data analysis tool Pak in Excel to calculate the descriptive
statistics for the data D3:D202 in work sheet named "Task 3".

Descriptive Statistics
Mean 310.0861
Standard Error 11.8485212
Median 310
Mode 403
Standard Deviation 167.563394
Sample Variance 28077.4911
Kurtosis -1.19059943
Skewness -0.05027714
Range 584
Minimum 11
Maximum 595
Sum 62017.22
Count 200

(c) Compare the Mean and Standard Deviation of the parts (a) and (b) and
comment briefly.
The Mean calculated in part (a) is 310.25 while the mean calculated in part
(b) is 310.0861
The Standard deviation calculated in part (a) is 167.137, while the standard
deviation calculated in part (b) is 167.563394
From the above, it is noticeable that the mean and standard deviation is
approximately, if not, exactly the same, with just a minor difference due to
the change in decimal points.
This leads to a conclusion that calculating descriptive statistics using excel is
more efficient than calculating it by hand, as it is faster, and chances of
mistake are much lesser.
MONTHLY SPEND:
Monthly
Monthly Accommodation
Income Spend (x-x̄) (y-ȳ) (x-x̄)^2 (y-ȳ)^2 (x-x̄)(y-ȳ)
X Y
-£ -£
£ 2,204 £ 865 189 7 35541.68 42.57562 1230.126
£ £
£ 2,572 £ 952 179 80 32211.28 6476.226 14443.25
-£ -£
£ 1,845 £ 694 548 178 299783.6 31515.13 97199.38
£ £
£ 2,606 £ 999 213 127 45571.58 16249.88 27212.73
£ £
£ 2,941 £ 994 548 122 300824.8 15000.13 67174.48
£ £
£ 2,453 £ 909 60 37 3657.226 1404.376 2266.301
£ £
£ 2,887 £ 962 494 90 244505.5 8185.726 44737.63
-£ -£
£ 1,768 £ 655 625 217 390031.5 46883.08 135225.3
-£ -£
£ 2,159 £ 825 234 47 54533.93 2164.576 10864.75
-£ -£
£ 2,080 £ 791 313 81 97671.88 6484.276 25166.08
-£ -£
£ 1,875 £ 715 518 157 267832.1 24500.08 81005.6
£ £
£ 2,895 £ 940 502 68 252481.1 4688.826 34406.98
-£ -£
£ 2,283 £ 818 110 54 11995.73 2864.926 5862.326
£ £
£ 3,103 £ 1,113 710 241 504774.7 58310.18 171562
£ £
£ 2,674 £ 922 281 50 79228.18 2547.726 14207.45
-£ £
£ 2,208 £ 893 185 21 34049.48 461.1756 -3962.67
-£ -£
£ 2,195 £ 785 198 87 39016.13 7486.576 17090.85
-£ -£
£ 2,237 £ 747 156 125 24188.03 15506.48 19366.75
-£ -£
£ 1,888 £ 726 505 146 254545.5 21177.53 73421
£ £
£ 3,025 £ 1,018 632 146 400024.6 21454.93 92641.78
£ £
£ 2,721 £ 899 328 27 107895.8 754.8756 9024.851
-£ -£
£ 2,354 £ 830 39 42 1484.176 1724.326 1599.751
£ -£
£ 2,624 £ 861 231 11 53580.68 110.7756 -2436.27
£ £
£ 3,237 £ 1,093 844 221 713138 49051.18 187030.1
£ £
£ 2,849 £ 1,015 456 143 208369.4 20585.08 65492.75
-£ -£
£ 2,001 £ 786 392 86 153291.8 7314.526 33485.18
£ £
£ 2,485 £ 959 92 87 8551.626 7651.876 8089.251
£ £
£ 2,930 £ 1,122 537 250 288879.4 62737.73 134624.1
-£ -£
£ 1,735 £ 594 658 278 432339.1 77020.13 182479.6
-£ -£
£ 1,895 £ 708 498 164 247531.1 26740.43 81357.78
-£ -£
£ 1,894 £ 739 499 133 248527.2 17562.88 66067.03
-£ -£
£ 1,822 £ 749 571 123 325498.8 15012.38 69903.58
-£ -£
£ 2,296 £ 787 97 85 9317.076 7144.476 8158.776
£ £
£ 2,758 £ 1,056 365 184 133572 34031.03 67421
£ £
£ 3,289 £ 1,218 896 346 803667.4 120044.9 310606.2
-£ -£
£ 2,039 £ 721 354 151 124979.9 22657.78 53214.35
-£ -£
£ 1,882 £ 803 511 69 260635.8 4695.676 34983.73
-£ -£
£ 2,179 £ 773 214 99 45592.93 9707.176 21037.55
-£ -£
£ 1,981 £ 819 412 53 169352.8 2758.876 21615.35
£ £
£ 2,832 £ 1,006 439 134 193138.3 18083.53 59098.4
Sum: £ 95,701 £ 34,861 7901812 798794 2343975
Mean £ 2,393 £ 872
Count 40

Correlation Coefficient =
Covariance (x,y) / SDx * SDy

Covariance = ∑(x-x̄) (y-ȳ) / n – 1


= 2343975 / 40 – 1
= 2343975 / 39
= 60101.9231
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(y-ȳ)^2 / n – 1
= 798794 / 40 -1
= 798794 / 39
= 20481.897
Standard Deviation of Y = √20481.897
= 143.115

Correlation Coefficient (r) = Covariance (x,y) / SDx * SDy


= 60101.9231 / (450.123*143.115)
=0.93298
MONTHLY SAVINGS:
x Z (x-x̄) (Z-z) (x-x̄)^2 (Z-z)^2 (x-x̄)(Z-z)
£ £ -£ £
2,204 578 189 32 35541.68 1054.626 -6122.35
£ £ £ £
2,572 605 179 59 32211.28 3537.276 10674.28
£ £ -£ -£
1,845 447 548 99 299783.6 9707.176 53944.9
£ £ £ £
2,606 654 213 108 45571.58 11766.83 23156.7
£ £ £ £
2,941 577 548 31 300824.8 990.6756 17263.25
£ £ £ £
2,453 578 60 32 3657.226 1054.626 1963.926
£ £ £ £
2,887 549 494 3 244505.5 12.07563 1718.301
£ £ -£ -£
1,768 416 625 130 390031.5 16776.73 80891.6
£ £ -£ -£
2,159 539 234 7 54533.93 42.57562 1523.751
£ £ -£ -£
2,080 515 313 31 97671.88 931.7756 9539.826
£ £ -£ -£
1,875 466 518 80 267832.1 6324.226 41156.18
£ £ £ -£
2,895 521 502 25 252481.1 601.4756 -12323.2
£ £ -£ -£
2,283 504 110 42 11995.73 1724.326 4548.026
£ £ £ £
3,103 687 710 141 504774.7 20015.18 100514.5
£ £ £ £
2,674 546 281 0 79228.18 0.225625 133.7006
£ £ -£ £
2,208 611 185 65 34049.48 4286.976 -12081.8
£ £ -£ -£
2,195 483 198 63 39016.13 3909.376 12350.25
£ £ -£ -£
2,237 428 156 118 24188.03 13812.13 18278.08
£ £ -£ -£
1,888 477 505 69 254545.5 4695.676 34572.58
£ £ £ £
3,025 588 632 42 400024.6 1804.126 26864.38
£ £ £ -£
2,721 508 328 38 107895.8 1408.126 -12326
£ £ -£ -£
2,354 503 39 43 1484.176 1808.376 1638.276
£ £ £ -£
2,624 483 231 63 53580.68 3909.376 -14473
£ £ £ £
3,237 633 844 87 713138 7651.876 73870.45
£ £ £ £
2,849 622 456 76 208369.4 5848.426 34908.93
£ £ -£ -£
2,001 525 392 21 153291.8 421.2756 8036.051
£ £ £ £
2,485 632 92 86 8551.626 7477.926 7996.776
£ £ £ £
2,930 735 537 189 288879.4 35900.78 101838.1
£ £ -£ -£
1,735 350 658 196 432339.1 38230.03 128562.6
£ £ -£ -£
1,895 453 498 93 247531.1 8560.876 46033.5
£ £ -£ -£
1,894 492 499 54 248527.2 2864.926 26683.55
£ £ -£ -£
1,822 519 571 27 325498.8 703.5756 15133.18
£ £ -£ -£
2,296 464 97 82 9317.076 6646.326 7869.201
£ £ £ £
2,758 691 365 145 133572 21162.98 53167.48
£ £ £ £
3,289 774 896 228 803667.4 52200.83 204822.1
£ £ -£ -£
2,039 439 354 107 124979.9 11347.58 37659.25
£ £ -£ £
1,882 572 511 26 260635.8 700.9256 -13516.1
£ £ -£ -£
2,179 472 214 74 45592.93 5405.926 15699.43
£ £ -£ £
1,981 570 412 24 169352.8 599.0256 -10072.1
£ £ £ £
2,832 615 439 69 193138.3 4826.776 30532.53
£ £
SUM 95,701 21,821 7901812 320724 1152631
£ £
AVERAGE 2,393 546
COUNT 40

Correlation Coefficient =
Covariance (x,z) / SDx * SDz

Covariance = ∑(x-x̄) (Z-z) / n – 1


= 1152631/ 40 – 1
= 1152631/ 39
= 29554.641
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(Z-z)^2 / n – 1
= 320723.975/ 40 -1
= 320723.975/ 39
= 8223.691
Standard Deviation of Y = √8223.69103
= 90.68

Correlation Coefficient (r) = Covariance (x,z) / SDx * SDz


= 29554.641/ (450.123*90.68) = 29554.641 / 40817.15
= 0.724
(iv) Fit a linear regression line y = a + bx on each pair of data in part (i) using
formulae and explain each equation
LINEAR REGRESSION LINE FOR MONTHLY ACCOMODATION SPEND

Monthly Monthly X^2 Y^2 XY


Income Accommodation
Spend
X Y
£ 2,204 £ 865 4857616 748225 1906460
£ 2,572 £ 952 6615184 906304 2448544
£ 1,845 £ 694 3404025 481636 1280430
£ 2,606 £ 999 6791236 998001 2603394
£ 2,941 £ 994 8649481 988036 2923354
£ 2,453 £ 909 6017209 826281 2229777
£ 2,887 £ 962 8334769 925444 2777294
£ 1,768 £ 655 3125824 429025 1158040
£ 2,159 £ 825 4661281 680625 1781175
£ 2,080 £ 791 4326400 625681 1645280
£ 1,875 £ 715 3515625 511225 1340625
£ 2,895 £ 940 8381025 883600 2721300
£ 2,283 £ 818 5212089 669124 1867494
£ 3,103 £ 1,113 9628609 1238769 3453639
£ 2,674 £ 922 7150276 850084 2465428
£ 2,208 £ 893 4875264 797449 1971744
£ 2,195 £ 785 4818025 616225 1723075
£ 2,237 £ 747 5004169 558009 1671039
£ 1,888 £ 726 3564544 527076 1370688
£ 3,025 £ 1,018 9150625 1036324 3079450
£ 2,721 £ 899 7403841 808201 2446179
£ 2,354 £ 830 5541316 688900 1953820
£ 2,624 £ 861 6885376 741321 2259264
£ 3,237 £ 1,093 10478169 1194649 3538041
£ 2,849 £ 1,015 8116801 1030225 2891735
£ 2,001 £ 786 4004001 617796 1572786
£ 2,485 £ 959 6175225 919681 2383115
£ 2,930 £ 1,122 8584900 1258884 3287460
£ 1,735 £ 594 3010225 352836 1030590
£ 1,895 £ 708 3591025 501264 1341660
£ 1,894 £ 739 3587236 546121 1399666
£ 1,822 £ 749 3319684 561001 1364678
£ 2,296 £ 787 5271616 619369 1806952
£ 2,758 £ 1,056 7606564 1115136 2912448
£ 3,289 £ 1,218 10817521 1483524 4006002
£ 2,039 £ 721 4157521 519841 1470119
£ 1,882 £ 803 3541924 644809 1511246
£ 2,179 £ 773 4748041 597529 1684367
£ 1,981 £ 819 3924361 670761 1622439
£ 2,832 £ 1,006 8020224 1012036 2848992
SUM £ £ 236868847 31181027 85749789
95,701 34,861
n= £ 40

x̄=2393
ȳ = 872
Slope (b) = n∑xy - ∑x∑y / n∑x^2 – (∑x)^2
= (40)( 85749789) – (95,701) (34,861) / (40)(236868847) – (95701)^2
= 3429991560 – 3336232561 / 9474753880 - 9158681401
= 93758999 / 316072479
=0.296
a= ȳ-bx̄
Assume Y to be 1218 and X to be 3289
a = 872 – (0.296)(2393)
= 872 – 708.3
=163.7
Regression line for Monthly Spending =
Y= 163.7+ 0.296x

LINEAR REGRESSION LINE FOR MONTHLY SAVINGS:


Monthly Monthly X^2 z^2 XZ
Income Saving

X Z
£ £ 578 4857616 334084 1273912
2,204
£ £ 605 6615184 366025 1556060
2,572
£ £ 447 3404025 199809 824715
1,845
£ £ 654 6791236 427716 1704324
2,606
£ £ 577 8649481 332929 1696957
2,941
£ £ 578 6017209 334084 1417834
2,453
£ £ 549 8334769 301401 1584963
2,887
£ £ 416 3125824 173056 735488
1,768
£ £ 539 4661281 290521 1163701
2,159
£ £ 515 4326400 265225 1071200
2,080
£ £ 466 3515625 217156 873750
1,875
£ £ 521 8381025 271441 1508295
2,895
£ £ 504 5212089 254016 1150632
2,283
£ £ 687 9628609 471969 2131761
3,103
£ £ 546 7150276 298116 1460004
2,674
£ £ 611 4875264 373321 1349088
2,208
£ £ 483 4818025 233289 1060185
2,195
£ £ 428 5004169 183184 957436
2,237
£ £ 477 3564544 227529 900576
1,888
£ £ 588 9150625 345744 1778700
3,025
£ £ 508 7403841 258064 1382268
2,721
£ £ 503 5541316 253009 1184062
2,354
£ £ 483 6885376 233289 1267392
2,624
£ £ 633 10478169 400689 2049021
3,237
£ £ 622 8116801 386884 1772078
2,849
£ £ 525 4004001 275625 1050525
2,001
£ £ 632 6175225 399424 1570520
2,485
£ £ 735 8584900 540225 2153550
2,930
£ £ 350 3010225 122500 607250
1,735
£ £ 453 3591025 205209 858435
1,895
£ £ 492 3587236 242064 931848
1,894
£ £ 519 3319684 269361 945618
1,822
£ £ 464 5271616 215296 1065344
2,296
£ £ 691 7606564 477481 1905778
2,758
£ £ 774 10817521 599076 2545686
3,289
£ £ 439 4157521 192721 895121
2,039
£ £ 572 3541924 327184 1076504
1,882
£ £ 472 4748041 222784 1028488
2,179
£ £ 570 3924361 324900 1129170
1,981
£ £ 615 8020224 378225 1741680
2,832
SUM £ 95,701 £ £ £ £
21,821 236,868,847 12,224,625 53,359,919
n= £ 40
Average £ £
2,393 546

Slope (b) = n∑xZ - ∑x∑z / n∑x^2 – (∑x)^2


= (40)( 53,359,919) – (95,701) (21,821) / (40)( 236868847) – (95701)^2
= 2134396760 – 2088291521 / 9474753880 - 9158681401
= 46105239 / 316072479
=0.145
a= z-bx̄
z=average of z= 546
x̄= 2393
a = 546 – (0.145)(2393)
= 546 - 346.985
= 199
Regression line for Monthly Spending =
Z= 199+ 0.145 x

(v) Predict the monthly spend and saving using regression equations in part (iv)
if
(a) Monthly income = £2,000
Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (2000)
= 163.7 + 592
= 755.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (2000)
= 199 + 290
= 489

(b) Monthly income = £3,500


Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (3500)
= 163.7 + 1036
= 1199.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (3500)
= 199+507.5
= 706.5
TASK 6:
MONTHLY SPEND:

Monthly Monthly
Accomm Accommodation
Monthly odation Monthly Income Spend
Income Spend (continuation) (continuation)
X Y X Y
£ 1,735 £ 594 £ 2,296 £ 787
£ 1,768 £ 655 £ 2,354 £ 830
£ 1,822 £ 749 £ 2,453 £ 909
£ 1,845 £ 694 £ 2,485 £ 959
£ 1,875 £ 715 £ 2,572 £ 952
£ 1,882 £ 803 £ 2,606 £ 999
£ 1,888 £ 726 £ 2,624 £ 861
£ 1,894 £ 739 £ 2,674 £ 922
£ 1,895 £ 708 £ 2,721 £ 899
£ 1,981 £ 819 £ 2,758 £ 1,056
£ 2,001 £ 786 £ 2,832 £ 1,006
£ 2,039 £ 721 £ 2,849 £ 1,015
£ 2,080 £ 791 £ 2,887 £ 962
£ 2,159 £ 825 £ 2,895 £ 940
£ 2,179 £ 773 £ 2,930 £ 1,122
£ 2,195 £ 785 £ 2,941 £ 994
£ 2,204 £ 865 £ 3,025 £ 1,018
£ 2,208 £ 893 £ 3,103 £ 1,113
£ 2,237 £ 747 £ 3,237 £ 1,093
£ 2,283 £ 818 £ 3,289 £ 1,218

USING HIGH LOW METHOD


FOR SPEND: X Y
Highest Income and spend: 3,289 1218
Lowest Income and spend: 1735 594
Difference: 1,554 624

Y= a+bx a =Y-bx
b=Yhigh-Ylow/Xhigh-Xlow Assume Y=1218 and X=3289
=624/1554 a= 1218 – (0.40)(3289)
=0.40 =1218 – 1315.6
=-97.6
MONTHLY SAVING :

Monthly Monthly
Monthly Monthly Income Saving
Income Saving (continuation) (continuation)
X Z X Z
£ 2,204 £ 578 £ 2,721 £ 508
£ 2,572 £ 605 £ 2,354 £ 503
£ 1,845 £ 447 £ 2,624 £ 483
£ 2,606 £ 654 £ 3,237 £ 633
£ 2,941 £ 577 £ 2,849 £ 622
£ 2,453 £ 578 £ 2,001 £ 525
£ 2,887 £ 549 £ 2,485 £ 632
£ 1,768 £ 416 £ 2,930 £ 735
£ 2,159 £ 539 £ 1,735 £ 350
£ 2,080 £ 515 £ 1,895 £ 453
£ 1,875 £ 466 £ 1,894 £ 492
£ 2,895 £ 521 £ 1,822 £ 519
£ 2,283 £ 504 £ 2,296 £ 464
£ 3,103 £ 687 £ 2,758 £ 691
£ 2,674 £ 546 £ 3,289 £ 774
£ 2,208 £ 611 £ 2,039 £ 439
£ 2,195 £ 483 £ 1,882 £ 572
£ 2,237 £ 428 £ 2,179 £ 472
£ 1,888 £ 477 £ 1,981 £ 570
£ 3,025 £ 588 £ 2,832 £ 615

USING HIGH LOW METHOD


FOR Savings: X Z
Highest Income and saving: 3,289 774
Lowest Income and saving: 1735 350
Difference: 1,554 424
Z= a+bx a=Z-bx

b=Zhigh-Zlow/Xhigh-Xlow Assume Z is 774 and x is 3289


=424/1554 a = 774 – (0.27)(3289)
=0.27 = 774 – 888.03
= 114.03

(i) Estimate the monthly spend and saving using high low method if
(a) monthly income = £2,000
(b) monthly income = £3,500

(a) When monthly income is 2000


Monthly spend= 702.4
Y= a+bx
(-97.6) + (0.40)(2000)
-97.6 + 800
702.4
Monthly savings = 425.97
Z = a+bx
(-114.03) + (0.27)(2000)
-114.03+ 540
425.97

(b) When monthly income is 3500


Monthly spend = 1302.4
Y= a + bx
(-97.6) + (0.40)(3500)
-97.6 + 1400
= 1302.4

Monthly savings = 830.97


Z = a+bx
(-114.03) + (0.27)(3500)
= -114.03 + 945
= 830.97
BACF1003D ASSIGNMENT 1
Hayah Zainab
P2833533
TASK 1:
X (X-x̄) (X-x̄)^2
32 -11.93 142.3249
32 -11.93 142.3249
32 -11.93 142.3249
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
35 -8.93 79.7449
37 -6.93 48.0249
38 -5.93 35.1649
38 -5.93 35.1649
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
40 -3.93 15.4449
41 -2.93 8.5849
41 -2.93 8.5849
42 -1.93 3.7249
43 -0.93 0.8649
43 -0.93 0.8649
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
45 1.07 1.1449
46 2.07 4.2849
47 3.07 9.4249
48 4.07 16.5649
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
50 6.07 36.8449
51 7.07 49.9849
52 8.07 65.1249
52 8.07 65.1249
55 11.07 122.5449
55 11.07 122.5449
55 11.07 122.5449
70 26.07 679.6449
SUM 2680 2571.74
AVERAGE(x̄) 43.93
For Data in column A, Estimate the following:

a) Mean
∑fi/n
∑fi=2680
n=61
=2680/61
Mean: 43.93

b) Median
n+1/2
n=61
=61+1/2
=31st observation
31st observation = 45
Median=45

c) Mode
Most recurring observation
=45
Mode=45

d) Inter Quartile Range (3 Marks)


Quartile 1= 40
n+1/4
61+1/4
= 62/4
= 15.5
= 16th observation
16th observation = 40
Quartile 3=47
3(n+1)/4
=3(61+1)/4
=3(62)/4
=186/4
=46.4
=47th observation
47th observation= 47

Interquartile Range = Quartile 3 – Quartile 1


=47-40
=7

(e) Standard Deviation (3 Marks)


Standard deviation = √variance
Variance = ∑(X-x̄)
x̄=43.93
Variance = ∑ (X- x̄)^2 / n-1
= 2571.74 / (61-1)
= 2571.74/60
= 42.86
Standard deviation = √variance
=√42.86
= 6.55

f) Insert a Box plot for the data in column A and comment on type of
distribution.

N
TASK 2:

(a) Construct a column chart for No. of Sales data in cells B3:C13

(a) Number of Sales for every Sales Rep

45
40
35
No of Sales

30
25
20
15
10
5
0
Sales Rep

Lisa Carina Yodit Ruth Brian


Jason Laura Dominique Zahid Harinder

(b) Construct a bar chart for Sales data in cells E3:F13.

(b) Sales Rep and their sales

Harinder
Zahid
Dominique
Laura
Sales Rep

Jason
Brian
Ruth
Yodit
Carina
Lisa
$- $5,000 $10,000 $15,000
Sales
(c) Construct a Pie chart for Product data in cells B23:C33

(c) Product and Number of Sales


20 30

19

17

17
17

17
19
23
21

Quad Icarus FlatTop Sunspot Carlota


Sunset Sunshine Bellen sunbell Gel Fast

(d) Construct a 3D column chart for Product sales data in cells E23:F33

(d) Product and Sales

$10,000
Sales

$5,000

$-

Products
TASK 3:
(a).Use Data Analysis Toolpak to create Histogram for data in D3:D202 using
Bins in H4:H15
Bin Frequency
50 10
100 20
150 15 (a) Histogram
200 19 25
250 10
20
300 18
Frequency

350 20 15
400 19
10
450 18
500 16 5
550 22
600 13 0
50 100 150 200 250 300 350 400 450 500 550 600
Sales ($)
(b) Using the frequencies of Histogram above, calculate cumulative frequency in
J4:J15.
Cumulative
Sales($) Frequency Frequency
f F
0-50 10 10
51- 100 20 30
101-150 15 45
151-200 19 64
201-250 10 74
251-300 18 92
301-350 20 112
351-400 19 131
401-450 18 149
451-500 16 165
501-550 22 187
551-600 13 200
Total 200

(c) Using cumulative frequency in J4:J15 create a cumulative frequency Polygon

(c) Sales of Products


250
200
187
200 165
149
Sales amount

150 131
112
92
100 64 74
45
50 30
10
0
0 2 4 6 8 10 12 14
Frequency
(d) Estimate Median, Quartiles and Inter Quartile Range from the chart in part (c)
above

Median =
Quartile 1:

Quartile 3:
TASK 4:
(a) Use the frequency distribution in N5:O16 to calculate Mean, Variance and
Standard Deviation for grouped data
Class
Sales($) Frequency Midpoint
F X FX (X- x̄) (X- x̄)^2 F((X- x̄)^2
0 - 50 10 25 250 -285.25 81367.56 813675.6
51 - 100 20 75 1500 -235.25 55342.56 1106851
101 - 150 15 125 1875 -185.25 34317.56 514763.4
151 - 200 19 175 3325 -135.25 18292.56 347558.7
201 - 250 10 225 2250 -85.25 7267.563 72675.63
251 - 300 18 275 4950 -35.25 1242.563 22366.13
301 - 350 20 325 6500 14.75 217.5625 4351.25
351 - 400 19 375 7125 64.75 4192.563 79658.69
401 - 450 18 425 7650 114.75 13167.56 237016.1
451 - 500 16 475 7600 164.75 27142.56 434281
501 - 550 22 525 11550 214.75 46117.56 1014586
551 - 600 13 575 7475 264.75 70092.56 911203.3
Total 200 3600 62050 358760.8 5558988

Mean: ∑ FX/ ∑ F
= 62050/200
=310.25
Variance = ∑ F(X- x̄)^2/ (n-1)
= 5558988/ (200-1)
= 27934.6131
Standard Deviation = = √variance
= √27934.6131
=167.137
(b) Use the data analysis tool Pak in Excel to calculate the descriptive
statistics for the data D3:D202 in work sheet named "Task 3".

Descriptive Statistics
Mean 310.0861
Standard Error 11.8485212
Median 310
Mode 403
Standard Deviation 167.563394
Sample Variance 28077.4911
Kurtosis -1.19059943
Skewness -0.05027714
Range 584
Minimum 11
Maximum 595
Sum 62017.22
Count 200

(c) Compare the Mean and Standard Deviation of the parts (a) and (b) and
comment briefly.
The Mean calculated in part (a) is 310.25 while the mean calculated in part
(b) is 310.0861
The Standard deviation calculated in part (a) is 167.137, while the standard
deviation calculated in part (b) is 167.563394
From the above, it is noticeable that the mean and standard deviation is
approximately, if not, exactly the same, with just a minor difference due to
the change in decimal points.
This leads to a conclusion that calculating descriptive statistics using excel is
more efficient than calculating it by hand, as it is faster, and chances of
mistake are much lesser.
MONTHLY SPEND:
Monthly
Monthly Accommodation
Income Spend (x-x̄) (y-ȳ) (x-x̄)^2 (y-ȳ)^2 (x-x̄)(y-ȳ)
X Y
-£ -£
£ 2,204 £ 865 189 7 35541.68 42.57562 1230.126
£ £
£ 2,572 £ 952 179 80 32211.28 6476.226 14443.25
-£ -£
£ 1,845 £ 694 548 178 299783.6 31515.13 97199.38
£ £
£ 2,606 £ 999 213 127 45571.58 16249.88 27212.73
£ £
£ 2,941 £ 994 548 122 300824.8 15000.13 67174.48
£ £
£ 2,453 £ 909 60 37 3657.226 1404.376 2266.301
£ £
£ 2,887 £ 962 494 90 244505.5 8185.726 44737.63
-£ -£
£ 1,768 £ 655 625 217 390031.5 46883.08 135225.3
-£ -£
£ 2,159 £ 825 234 47 54533.93 2164.576 10864.75
-£ -£
£ 2,080 £ 791 313 81 97671.88 6484.276 25166.08
-£ -£
£ 1,875 £ 715 518 157 267832.1 24500.08 81005.6
£ £
£ 2,895 £ 940 502 68 252481.1 4688.826 34406.98
-£ -£
£ 2,283 £ 818 110 54 11995.73 2864.926 5862.326
£ £
£ 3,103 £ 1,113 710 241 504774.7 58310.18 171562
£ £
£ 2,674 £ 922 281 50 79228.18 2547.726 14207.45
-£ £
£ 2,208 £ 893 185 21 34049.48 461.1756 -3962.67
-£ -£
£ 2,195 £ 785 198 87 39016.13 7486.576 17090.85
-£ -£
£ 2,237 £ 747 156 125 24188.03 15506.48 19366.75
-£ -£
£ 1,888 £ 726 505 146 254545.5 21177.53 73421
£ £
£ 3,025 £ 1,018 632 146 400024.6 21454.93 92641.78
£ £
£ 2,721 £ 899 328 27 107895.8 754.8756 9024.851
-£ -£
£ 2,354 £ 830 39 42 1484.176 1724.326 1599.751
£ -£
£ 2,624 £ 861 231 11 53580.68 110.7756 -2436.27
£ £
£ 3,237 £ 1,093 844 221 713138 49051.18 187030.1
£ £
£ 2,849 £ 1,015 456 143 208369.4 20585.08 65492.75
-£ -£
£ 2,001 £ 786 392 86 153291.8 7314.526 33485.18
£ £
£ 2,485 £ 959 92 87 8551.626 7651.876 8089.251
£ £
£ 2,930 £ 1,122 537 250 288879.4 62737.73 134624.1
-£ -£
£ 1,735 £ 594 658 278 432339.1 77020.13 182479.6
-£ -£
£ 1,895 £ 708 498 164 247531.1 26740.43 81357.78
-£ -£
£ 1,894 £ 739 499 133 248527.2 17562.88 66067.03
-£ -£
£ 1,822 £ 749 571 123 325498.8 15012.38 69903.58
-£ -£
£ 2,296 £ 787 97 85 9317.076 7144.476 8158.776
£ £
£ 2,758 £ 1,056 365 184 133572 34031.03 67421
£ £
£ 3,289 £ 1,218 896 346 803667.4 120044.9 310606.2
-£ -£
£ 2,039 £ 721 354 151 124979.9 22657.78 53214.35
-£ -£
£ 1,882 £ 803 511 69 260635.8 4695.676 34983.73
-£ -£
£ 2,179 £ 773 214 99 45592.93 9707.176 21037.55
-£ -£
£ 1,981 £ 819 412 53 169352.8 2758.876 21615.35
£ £
£ 2,832 £ 1,006 439 134 193138.3 18083.53 59098.4
Sum: £ 95,701 £ 34,861 7901812 798794 2343975
Mean £ 2,393 £ 872
Count 40

Correlation Coefficient =
Covariance (x,y) / SDx * SDy

Covariance = ∑(x-x̄) (y-ȳ) / n – 1


= 2343975 / 40 – 1
= 2343975 / 39
= 60101.9231
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(y-ȳ)^2 / n – 1
= 798794 / 40 -1
= 798794 / 39
= 20481.897
Standard Deviation of Y = √20481.897
= 143.115

Correlation Coefficient (r) = Covariance (x,y) / SDx * SDy


= 60101.9231 / (450.123*143.115)
=0.93298
MONTHLY SAVINGS:
x Z (x-x̄) (Z-z) (x-x̄)^2 (Z-z)^2 (x-x̄)(Z-z)
£ £ -£ £
2,204 578 189 32 35541.68 1054.626 -6122.35
£ £ £ £
2,572 605 179 59 32211.28 3537.276 10674.28
£ £ -£ -£
1,845 447 548 99 299783.6 9707.176 53944.9
£ £ £ £
2,606 654 213 108 45571.58 11766.83 23156.7
£ £ £ £
2,941 577 548 31 300824.8 990.6756 17263.25
£ £ £ £
2,453 578 60 32 3657.226 1054.626 1963.926
£ £ £ £
2,887 549 494 3 244505.5 12.07563 1718.301
£ £ -£ -£
1,768 416 625 130 390031.5 16776.73 80891.6
£ £ -£ -£
2,159 539 234 7 54533.93 42.57562 1523.751
£ £ -£ -£
2,080 515 313 31 97671.88 931.7756 9539.826
£ £ -£ -£
1,875 466 518 80 267832.1 6324.226 41156.18
£ £ £ -£
2,895 521 502 25 252481.1 601.4756 -12323.2
£ £ -£ -£
2,283 504 110 42 11995.73 1724.326 4548.026
£ £ £ £
3,103 687 710 141 504774.7 20015.18 100514.5
£ £ £ £
2,674 546 281 0 79228.18 0.225625 133.7006
£ £ -£ £
2,208 611 185 65 34049.48 4286.976 -12081.8
£ £ -£ -£
2,195 483 198 63 39016.13 3909.376 12350.25
£ £ -£ -£
2,237 428 156 118 24188.03 13812.13 18278.08
£ £ -£ -£
1,888 477 505 69 254545.5 4695.676 34572.58
£ £ £ £
3,025 588 632 42 400024.6 1804.126 26864.38
£ £ £ -£
2,721 508 328 38 107895.8 1408.126 -12326
£ £ -£ -£
2,354 503 39 43 1484.176 1808.376 1638.276
£ £ £ -£
2,624 483 231 63 53580.68 3909.376 -14473
£ £ £ £
3,237 633 844 87 713138 7651.876 73870.45
£ £ £ £
2,849 622 456 76 208369.4 5848.426 34908.93
£ £ -£ -£
2,001 525 392 21 153291.8 421.2756 8036.051
£ £ £ £
2,485 632 92 86 8551.626 7477.926 7996.776
£ £ £ £
2,930 735 537 189 288879.4 35900.78 101838.1
£ £ -£ -£
1,735 350 658 196 432339.1 38230.03 128562.6
£ £ -£ -£
1,895 453 498 93 247531.1 8560.876 46033.5
£ £ -£ -£
1,894 492 499 54 248527.2 2864.926 26683.55
£ £ -£ -£
1,822 519 571 27 325498.8 703.5756 15133.18
£ £ -£ -£
2,296 464 97 82 9317.076 6646.326 7869.201
£ £ £ £
2,758 691 365 145 133572 21162.98 53167.48
£ £ £ £
3,289 774 896 228 803667.4 52200.83 204822.1
£ £ -£ -£
2,039 439 354 107 124979.9 11347.58 37659.25
£ £ -£ £
1,882 572 511 26 260635.8 700.9256 -13516.1
£ £ -£ -£
2,179 472 214 74 45592.93 5405.926 15699.43
£ £ -£ £
1,981 570 412 24 169352.8 599.0256 -10072.1
£ £ £ £
2,832 615 439 69 193138.3 4826.776 30532.53
£ £
SUM 95,701 21,821 7901812 320724 1152631
£ £
AVERAGE 2,393 546
COUNT 40

Correlation Coefficient =
Covariance (x,z) / SDx * SDz

Covariance = ∑(x-x̄) (Z-z) / n – 1


= 1152631/ 40 – 1
= 1152631/ 39
= 29554.641
Standard Deviation of X = √variance of X
Variance of X = ∑(x-x̄)^2 / n -1
= 7901812/ (40-1)
= 7901812 / 39
= 202610.564
Standard Deviation of X = √202610.564
=450.123
Standard Deviation of Y = √variance of Y
Variance of Y = ∑(Z-z)^2 / n – 1
= 320723.975/ 40 -1
= 320723.975/ 39
= 8223.691
Standard Deviation of Y = √8223.69103
= 90.68

Correlation Coefficient (r) = Covariance (x,z) / SDx * SDz


= 29554.641/ (450.123*90.68) = 29554.641 / 40817.15
= 0.724
(iv) Fit a linear regression line y = a + bx on each pair of data in part (i) using
formulae and explain each equation
LINEAR REGRESSION LINE FOR MONTHLY ACCOMODATION SPEND

Monthly Monthly X^2 Y^2 XY


Income Accommodation
Spend
X Y
£ 2,204 £ 865 4857616 748225 1906460
£ 2,572 £ 952 6615184 906304 2448544
£ 1,845 £ 694 3404025 481636 1280430
£ 2,606 £ 999 6791236 998001 2603394
£ 2,941 £ 994 8649481 988036 2923354
£ 2,453 £ 909 6017209 826281 2229777
£ 2,887 £ 962 8334769 925444 2777294
£ 1,768 £ 655 3125824 429025 1158040
£ 2,159 £ 825 4661281 680625 1781175
£ 2,080 £ 791 4326400 625681 1645280
£ 1,875 £ 715 3515625 511225 1340625
£ 2,895 £ 940 8381025 883600 2721300
£ 2,283 £ 818 5212089 669124 1867494
£ 3,103 £ 1,113 9628609 1238769 3453639
£ 2,674 £ 922 7150276 850084 2465428
£ 2,208 £ 893 4875264 797449 1971744
£ 2,195 £ 785 4818025 616225 1723075
£ 2,237 £ 747 5004169 558009 1671039
£ 1,888 £ 726 3564544 527076 1370688
£ 3,025 £ 1,018 9150625 1036324 3079450
£ 2,721 £ 899 7403841 808201 2446179
£ 2,354 £ 830 5541316 688900 1953820
£ 2,624 £ 861 6885376 741321 2259264
£ 3,237 £ 1,093 10478169 1194649 3538041
£ 2,849 £ 1,015 8116801 1030225 2891735
£ 2,001 £ 786 4004001 617796 1572786
£ 2,485 £ 959 6175225 919681 2383115
£ 2,930 £ 1,122 8584900 1258884 3287460
£ 1,735 £ 594 3010225 352836 1030590
£ 1,895 £ 708 3591025 501264 1341660
£ 1,894 £ 739 3587236 546121 1399666
£ 1,822 £ 749 3319684 561001 1364678
£ 2,296 £ 787 5271616 619369 1806952
£ 2,758 £ 1,056 7606564 1115136 2912448
£ 3,289 £ 1,218 10817521 1483524 4006002
£ 2,039 £ 721 4157521 519841 1470119
£ 1,882 £ 803 3541924 644809 1511246
£ 2,179 £ 773 4748041 597529 1684367
£ 1,981 £ 819 3924361 670761 1622439
£ 2,832 £ 1,006 8020224 1012036 2848992
SUM £ £ 236868847 31181027 85749789
95,701 34,861
n= £ 40

x̄=2393
ȳ = 872
Slope (b) = n∑xy - ∑x∑y / n∑x^2 – (∑x)^2
= (40)( 85749789) – (95,701) (34,861) / (40)(236868847) – (95701)^2
= 3429991560 – 3336232561 / 9474753880 - 9158681401
= 93758999 / 316072479
=0.296
a= ȳ-bx̄
Assume Y to be 1218 and X to be 3289
a = 872 – (0.296)(2393)
= 872 – 708.3
=163.7
Regression line for Monthly Spending =
Y= 163.7+ 0.296x

LINEAR REGRESSION LINE FOR MONTHLY SAVINGS:


Monthly Monthly X^2 z^2 XZ
Income Saving

X Z
£ £ 578 4857616 334084 1273912
2,204
£ £ 605 6615184 366025 1556060
2,572
£ £ 447 3404025 199809 824715
1,845
£ £ 654 6791236 427716 1704324
2,606
£ £ 577 8649481 332929 1696957
2,941
£ £ 578 6017209 334084 1417834
2,453
£ £ 549 8334769 301401 1584963
2,887
£ £ 416 3125824 173056 735488
1,768
£ £ 539 4661281 290521 1163701
2,159
£ £ 515 4326400 265225 1071200
2,080
£ £ 466 3515625 217156 873750
1,875
£ £ 521 8381025 271441 1508295
2,895
£ £ 504 5212089 254016 1150632
2,283
£ £ 687 9628609 471969 2131761
3,103
£ £ 546 7150276 298116 1460004
2,674
£ £ 611 4875264 373321 1349088
2,208
£ £ 483 4818025 233289 1060185
2,195
£ £ 428 5004169 183184 957436
2,237
£ £ 477 3564544 227529 900576
1,888
£ £ 588 9150625 345744 1778700
3,025
£ £ 508 7403841 258064 1382268
2,721
£ £ 503 5541316 253009 1184062
2,354
£ £ 483 6885376 233289 1267392
2,624
£ £ 633 10478169 400689 2049021
3,237
£ £ 622 8116801 386884 1772078
2,849
£ £ 525 4004001 275625 1050525
2,001
£ £ 632 6175225 399424 1570520
2,485
£ £ 735 8584900 540225 2153550
2,930
£ £ 350 3010225 122500 607250
1,735
£ £ 453 3591025 205209 858435
1,895
£ £ 492 3587236 242064 931848
1,894
£ £ 519 3319684 269361 945618
1,822
£ £ 464 5271616 215296 1065344
2,296
£ £ 691 7606564 477481 1905778
2,758
£ £ 774 10817521 599076 2545686
3,289
£ £ 439 4157521 192721 895121
2,039
£ £ 572 3541924 327184 1076504
1,882
£ £ 472 4748041 222784 1028488
2,179
£ £ 570 3924361 324900 1129170
1,981
£ £ 615 8020224 378225 1741680
2,832
SUM £ 95,701 £ £ £ £
21,821 236,868,847 12,224,625 53,359,919
n= £ 40
Average £ £
2,393 546

Slope (b) = n∑xZ - ∑x∑z / n∑x^2 – (∑x)^2


= (40)( 53,359,919) – (95,701) (21,821) / (40)( 236868847) – (95701)^2
= 2134396760 – 2088291521 / 9474753880 - 9158681401
= 46105239 / 316072479
=0.145
a= z-bx̄
z=average of z= 546
x̄= 2393
a = 546 – (0.145)(2393)
= 546 - 346.985
= 199
Regression line for Monthly Spending =
Z= 199+ 0.145 x

(v) Predict the monthly spend and saving using regression equations in part (iv)
if
(a) Monthly income = £2,000
Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (2000)
= 163.7 + 592
= 755.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (2000)
= 199 + 290
= 489

(b) Monthly income = £3,500


Monthly spend = Y= 163.7+ 0.296x
= 163.7 + 0.296 (3500)
= 163.7 + 1036
= 1199.7
Monthly Savings = Z= 199+ 0.145 x
= 199 + 0.145 (3500)
= 199+507.5
= 706.5
TASK 6:
MONTHLY SPEND:

Monthly Monthly
Accomm Accommodation
Monthly odation Monthly Income Spend
Income Spend (continuation) (continuation)
X Y X Y
£ 1,735 £ 594 £ 2,296 £ 787
£ 1,768 £ 655 £ 2,354 £ 830
£ 1,822 £ 749 £ 2,453 £ 909
£ 1,845 £ 694 £ 2,485 £ 959
£ 1,875 £ 715 £ 2,572 £ 952
£ 1,882 £ 803 £ 2,606 £ 999
£ 1,888 £ 726 £ 2,624 £ 861
£ 1,894 £ 739 £ 2,674 £ 922
£ 1,895 £ 708 £ 2,721 £ 899
£ 1,981 £ 819 £ 2,758 £ 1,056
£ 2,001 £ 786 £ 2,832 £ 1,006
£ 2,039 £ 721 £ 2,849 £ 1,015
£ 2,080 £ 791 £ 2,887 £ 962
£ 2,159 £ 825 £ 2,895 £ 940
£ 2,179 £ 773 £ 2,930 £ 1,122
£ 2,195 £ 785 £ 2,941 £ 994
£ 2,204 £ 865 £ 3,025 £ 1,018
£ 2,208 £ 893 £ 3,103 £ 1,113
£ 2,237 £ 747 £ 3,237 £ 1,093
£ 2,283 £ 818 £ 3,289 £ 1,218

USING HIGH LOW METHOD


FOR SPEND: X Y
Highest Income and spend: 3,289 1218
Lowest Income and spend: 1735 594
Difference: 1,554 624

Y= a+bx a =Y-bx
b=Yhigh-Ylow/Xhigh-Xlow Assume Y=1218 and X=3289
=624/1554 a= 1218 – (0.40)(3289)
=0.40 =1218 – 1315.6
=-97.6
MONTHLY SAVING :

Monthly Monthly
Monthly Monthly Income Saving
Income Saving (continuation) (continuation)
X Z X Z
£ 2,204 £ 578 £ 2,721 £ 508
£ 2,572 £ 605 £ 2,354 £ 503
£ 1,845 £ 447 £ 2,624 £ 483
£ 2,606 £ 654 £ 3,237 £ 633
£ 2,941 £ 577 £ 2,849 £ 622
£ 2,453 £ 578 £ 2,001 £ 525
£ 2,887 £ 549 £ 2,485 £ 632
£ 1,768 £ 416 £ 2,930 £ 735
£ 2,159 £ 539 £ 1,735 £ 350
£ 2,080 £ 515 £ 1,895 £ 453
£ 1,875 £ 466 £ 1,894 £ 492
£ 2,895 £ 521 £ 1,822 £ 519
£ 2,283 £ 504 £ 2,296 £ 464
£ 3,103 £ 687 £ 2,758 £ 691
£ 2,674 £ 546 £ 3,289 £ 774
£ 2,208 £ 611 £ 2,039 £ 439
£ 2,195 £ 483 £ 1,882 £ 572
£ 2,237 £ 428 £ 2,179 £ 472
£ 1,888 £ 477 £ 1,981 £ 570
£ 3,025 £ 588 £ 2,832 £ 615

USING HIGH LOW METHOD


FOR Savings: X Z
Highest Income and saving: 3,289 774
Lowest Income and saving: 1735 350
Difference: 1,554 424
Z= a+bx a=Z-bx

b=Zhigh-Zlow/Xhigh-Xlow Assume Z is 774 and x is 3289


=424/1554 a = 774 – (0.27)(3289)
=0.27 = 774 – 888.03
= 114.03

(i) Estimate the monthly spend and saving using high low method if
(a) monthly income = £2,000
(b) monthly income = £3,500

(a) When monthly income is 2000


Monthly spend= 702.4
Y= a+bx
(-97.6) + (0.40)(2000)
-97.6 + 800
702.4
Monthly savings = 425.97
Z = a+bx
(-114.03) + (0.27)(2000)
-114.03+ 540
425.97

(b) When monthly income is 3500


Monthly spend = 1302.4
Y= a + bx
(-97.6) + (0.40)(3500)
-97.6 + 1400
= 1302.4

Monthly savings = 830.97


Z = a+bx
(-114.03) + (0.27)(3500)
= -114.03 + 945
= 830.97

You might also like