You are on page 1of 9

Name Maria Nazir

Roll no BIT-17-18

Class BSIT

Semester 6th

Subject datawarehouse and mining

Submitted to ma’am afshan

Question no 1
Age F C.B C.F
1-5 200 0.5 - 5.5 200
6-15 450 5.5 – 15.5 650
16-20 300 15.5 – 20.5 950
21-50 1500 20.5 – 50.5 2450
51-80 700 50.5 – 80.5 3150
81-110 44 80.5 – 3194
110.5
N=3194
*n/2 = 3194/2 =1597
L+ h / f (n/2 –C)
= 20.5+30/1500 (1597-950)
= 20.5+0.02 (647)
= 20.5+12.94
= 33.44 answer
Question #02

Answer (a)
Mean:
Mean age
=23+23+27+27+39+41+47+49+50+52+54+54+56+57+58+58+60+6 = 836
= 839/18 = 46.44
Mean fat%
=
9.5+26.5+7.8+17.8+31.4+25.9+27.4+27.2+31.2+34.6+42.5+28.8+33.4+3
0.2+34.1+32.9+41.2+35.7= 518.04
= 518.04/18 = 28.78
Median age
= 50+52/2
=51
Median fat%
= 30.2+31.2/2
=30.16
Standard deviation

X Xi-X (Xi-X)2
23 23-46.44 = - 549.4306
23.44
23 23-46.44 = - 546.4306
23.44
27 27-46.44 = - 377.9136
19.44
27 27-46.44 = - 377.9136
19.44
39 39-46.44 = -7.44 55.3536
41 41-46.44 = -5.44 29.5936
47 47-46.44 = 0.56 0.3136
49 49-46.44 = 2.56 6.5536
50 50-46.44 = 3.56 12.6736
52 52-46.44= 5.56 30.9136
54 54-46.44 = 7.56 57.1536
54 54-46.44 = 7.56 57.1536
56 56-46.44 = 9.56 91.3936
57 57-46.44 = 10.56 111.5136
58 58-46.44 =11.56 133.6336
58 58-46.44 = 11.56 133.6336
60 60-46.44 = 12.56 183.8736

61 61-46.44 =13.56 211.9936


=2967.5588
√s =√2967.5588/18

√s=√164.8643778

s=12.83 answer
X X-X (X-X)2
9.5 -19.28 371.7184
26.5 -2.28 5.1984
7.8 -20.98 440.1604
17.8 -10.98 120.5604
31.4 2.62 6.8644

25.9 -2.88 8.2944


27.4 -1.38 1.9044
27.2 -1.58 2.4964
31.2 2.42 5.8564
34.6 5.82 33.8724
42.5 13.72 188.2384
28.8 0.02 0.0004
33.4 4.62 21.3444
30.2 1.42 2.0164
34.1 5.32 28.3024
32.9 4.12 16.9744
41.2 12.42 154.2564
35.7 6.92 47.8864
N= Total=
1455.9452

S =√1455.9452

s =√80.886
=8.99
Answer (b)
Box plot of age
Box plot of fat:
(c) Draw a scatter plot and a q-q plot based on these two variables.

<The End>

You might also like