Professional Documents
Culture Documents
Question 1
6. Present the given data using Box and whisker plot
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 2of56
Roll No:28257 Statistics-I Practical 1 ,2
31 2
47 2
47 2
30 1
18 2
47 1
42 2
65 1
35 1
47 2
67 1
43 2
94 2
47 1
67 2
20 2
81 2
77 2
52 1
75 1
70 2
66 2
68 2
93 1
92 2
91 1
30 1
41 1
71 1
Working Expression
k=1+3.322*log10(n)=no of classes
width of class =h=Range/k
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 3of56
Roll No:28257 Statistics-I Practical 1 ,2
Calculation
30 =COUNT(A9
No of Obs n 60 3:A152)
55 Minimum =MIN(A93:A
value S 10 152)
94 Maximum =MAX(A93:A
Value L 94 152)
77 Range Range 84 =E95-E94
74 =ROU
=1+3.322*lo NDUP(
No of classes k 6.90701845377 g10(E93) 7 E97,0)
52 =ROU
width of NDUP(
class h 12.161542721 =E96/E97 13 E98,0)
46
47
47
33 frequency distribution with appropriate class
70
56 lower limit upper limit class c.f frequency
62 10 22 10-22 7 7
89 23 35 23-35 16 9
49 36 48 36-48 31 15
10 49 61 49-61 37 6
23 62 74 62-74 48 11
12 75 87 75-87 52 4
91 88 100 88-100 60 8
=FREQUENC
23 =CONCATENAT Y($A$93:$A$
=C111+ E(C111,"-",D11 152,D111:$D =F111-
=D110+1 $G$98-1 1) $111) F110
55
22
15
39
22
26
47
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 4of56
Roll No:28257 Statistics-I Practical 1 ,2
88
39
47
31 x Count of x
47 10-22 7
47 23-35 9
30 36-48 15
18 49-61 6
47 62-74 11
42 75-87 4
65 88-100 8
35 Total Result 60
47
67 x count of x lower limit upper limit
43 10-22 7 10 22
94 23-35 9 23 35
47 36-48 15 36 48
67 49-61 6 49 61
20 62-74 11 62 74
81 75-87 4 75 87
77 88-100 8 88 100
52
75 frequency distribution table of class size 10
70 x count of x
66 10-19 4
68 20-29 6
93 30-39 8
92 40-49 14
91 50-59 5
30 60-69 7
41 70-79 7
71 80-89 3
90-99 6
=COUNTIF(B16:
no of males 32 B75,"1")
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 5of56
Roll No:28257 Statistics-I Practical 1 ,2
=COUNTIF(B16:
no of females 28 B75,"2")
x1 x2
30 74
55 47 Male frequency distribution table
94 33
77 89 x1 count of x1
52 91 10-19 2
46 23 20-29 3
47 15 30-39 6
70 22 40-49 6
56 47 50-59 5
62 88 60-69 3
49 62 70-79 4
10 47 80-89 0
23 31 90-99 3
12 47
55 47 Female frequency distribution table
22 18 x2 count of x2
39 42 10-19 2
26 47 20-29 3
39 43 30-39 2
30 94 40-49 8
47 67 50-59 0
65 20 60-69 4
35 81 70-79 3
67 77 80-89 3
47 70 90-99 3
52 66
75 68
93 92
91
30
41
71
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 6of56
Roll No:28257 Statistics-I Practical 1 ,2
x x1 x2
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 7of56
Roll No:28257 Statistics-I Practical 1 ,2
80-89 3 80 89 84.5 54
90-99 6 90 99 94.5 60
Descriptive statistics
=SUMPROD
UCT(E232:E2
40,B232:B24
0)/
SUM(B232:B
mean 52.83333 240)
standard
deviation 23.10604 =SQRT(B250)
=SUMPROD
UCT(B232:B2
40,E232:E24
0,E232:E240)
/
SUM(B232:B
240)-
variance 533.8889 (B248*B248)
=SUM(B232:
N 60 B240)
part i iN/parts l f h cf value
Q1 4 1 15 30 8 10 10 36.25
Q2 4 2 30 40 14 10 18 48.5714
Q3 4 3 45 70 7 10 44 71.4286
P10 100 10 6 20 6 10 4 23.3333
P90 100 90 54 80 3 10 51 90
formulas
=E253+ =E257+
(D253- (D257-
H253)*G2 H257)/
Q1 53/F253 P90 F257*G257
=E254+
(D254-
H254)/
F254*G25
Q2 4
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 8of56
Roll No:28257 Statistics-I Practical 1 ,2
=E255+
(D255-
H255)/
F255*G25
Q3 5
=E256(D2
56-
H256)/
F256*G25
P10 6
less more
x lower limitupper limit mid value frequency lcb ucb than cf than cf
10-22 10 22 16 7 9.5 22.5 7 60
23-35 23 35 29 9 22.5 35.5 16 53
36-48 36 48 42 15 35.5 48.5 31 44
49-61 49 61 55 6 48.5 61.5 37 29
62-74 62 74 68 11 61.5 74.5 48 23
75-87 75 87 81 4 74.5 87.5 52 12
88-100 88 100 94 8 87.5 100.5 60 8
frequency curve
16
14
12
10
frequency
0
9.5 22.5 35.5 48.5 61.5 74.5 87.5 100.5
Class
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 9of56
Roll No:28257 Statistics-I Practical 1 ,2
16 frequency polygon
14
12
10
frequency
0
9.5 22.5 35.5 48.5 61.5 74.5 87.5 100.5
Class
Piechart
3%
7%
26%
10%
14%
Name:Shusbin Tripathi
22%
3%
7%
14%
22%
18%
Bar Diagram
16 15
14
12 11
10 9
frequency
8
8 7 frequency
6
6
4
4
2
0
10-22 23-35 36-48 49-61 62-74 75-87 88-100
class
60
60 60
53 52
50
48
44
40
37 more than cf
c.f.
31 less than cf
30 29
N/2 23
20
16
12
10
7 8
Name:Shusbin Tripathi Median
0
9.5 19.5 29.5 39.5 49.5 59.5 69.5 79.5 89.5 99.5
44
40
37 more than cf
Date:2080/02/05 Amrit Science Campus
c.f.
31 less than cf
B.Sc.CSIT Year 1 sem
30 2 29 Tribhuvan University 11of56
Roll No:28257 Statistics-I Practical 1 ,2
N/2 23
20
16
12
10
7 8
Median
0
9.5 19.5 29.5 39.5 49.5 59.5 69.5 79.5 89.5 99.5
Class
14
12
10
frequency
2
mode
0
10-22 23-35 36-48 49-61 62-74 75-87 88-100
Class
Editing this shape or saving this workbook into a different file format will
permanently break the chart.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 12of56
Roll No:28257 Statistics-I Practical 1 ,2
steam leaf
1 0,2,5,8,
2 0,2,2,3,3,6,
3 0,0,0,1,3,5,9,9,
4 1,2,3,6,7,7,7,7,7,7,7,7,7,9,
5 2,2,5,5,6,
6 2,2,5,6,7,7,8,
7 0,0,1,4,5,7,7,
8 1,8,9,
9 1,1,2,3,4,4,
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 13of56
Roll No:28257 Statistics-I Practical 1 ,2
A$152,A4
55*10+2))
&REPT("3,
",COUNTI
F($A$93:$
A$152,A4
55*10+3))
&REPT("4,
",COUNTI
F($A$93:$
A$152,A4
55*10+4))
&REPT("5,
",COUNTI
F($A$93:$
A$152,A4
55*10+5))
&REPT("6,
",COUNTI
F($A$93:$
A$152,A4
55*10+6))
&REPT("7,
",COUNTI
F($A$93:$
A$152,A4
55*10+7))
&REPT("8,
",COUNTI
F($A$93:$
A$152,A4
55*10+8))
&REPT("9,
",COUNTI
F($A$93:$
A$152,A4
formula 55*10+9))
Question 2
Calculate all possible descriptive statistics for the frequency
distribution from practical no 1 and compare results.
Why they are different? Plot box and whisker plot for
both genders related to weight and compare. Also
present the distribution of both genders using pie chart.
SPSS syntax
DATASET ACTIVATE DataSet0.
RECODE x (10 thru 19=1) (20 thru 29=2) (30 thru 39=3) (40 thru 49=4) (50 thru 59=5) (60 thru 69=6)
(70 thru 79=7) (80 thru 89=8) (90 thru 99=9) INTO x_class.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 14of56
Roll No:28257 Statistics-I Practical 1 ,2
FREQUENCIES VARIABLES=x_class
/PIECHART FREQ
/ORDER=ANALYSIS.
FREQUENCIES VARIABLES=x_class
/FORMAT=NOTABLE
/HISTOGRAM
/ORDER=ANALYSIS.
FREQUENCIES VARIABLES=x
/FORMAT=NOTABLE
/NTILES=4
/NTILES=10
/PERCENTILES=36.0 73.0
/STATISTICS=STDDEV VARIANCE RANGE MINIMUM MAXIMUM
SEMEAN MEAN MEDIAN MODE SUM SKEWNESS SESKEW
KURTOSIS SEKURT
/ORDER=ANALYSIS.
FREQUENCIES VARIABLES=midvalue
/NTILES=4
/NTILES=10
/STATISTICS=STDDEV VARIANCE RANGE MINIMUM MAXIMUM
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 15of56
Roll No:28257 Statistics-I Practical 1 ,2
class interval
Cumulative
Frequency Percent Valid Percent Percent
Valid 10-19 4 6.7 6.7 6.7
20-29 6 10.0 10.0 16.7
30-39 8 13.3 13.3 30.0
40-49 14 23.3 23.3 53.3
50-59 5 8.3 8.3 61.7
60-69 7 11.7 11.7 73.3
70-79 7 11.7 11.7 85.0
80-89 3 5.0 5.0 90.0
90-99 6 10.0 10.0 100.0
Total 60 100.0 100.0
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 16of56
Roll No:28257 Statistics-I Practical 1 ,2
Statistics
weight
N Valid 60
Missing 0
Mean 52.60
Std. Error 3.027
of Mean
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 17of56
Roll No:28257 Statistics-I Practical 1 ,2
Median 47.00
Mode 47
Std. 23.447
Deviation
Variance 549.769
Skewness 0.150
Kurtosis -0.882
Std. Error 0.608
of Kurtosis
Range 84
Minimum 10
Maximum 94
Sum 3156
Percentiles 10 22.00
20 30.00
25 33.50
30 39.60
36 45.88
40 47.00
50 47.00
60 55.60
70 67.00
73 69.06
75 70.00
80 74.80
90 90.80
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 18of56
Roll No:28257 Statistics-I Practical 1 ,2
Descripti
ves
gender Statistic Std. Error
weight 1 Mean 50.25 3.932
95% Lower 42.23
Confidence Bound
Interval for
Mean
Upper 58.27
Bound
5% Trimmed 50.03
Mean
Median 48.00
Variance 494.710
Std. Deviation 22.242
Minimum 10
Maximum 94
Range 84
Interquartile 35
Range
Skewness 0.250 0.414
Kurtosis -0.429 0.809
2 Mean 55.29 4.703
95% Lower 45.64
Confidence Bound
Interval for
Mean
Upper 64.94
Bound
5% Trimmed 55.36
Mean
Median 47.00
Variance 619.323
Std. Deviation 24.886
Minimum 15
Maximum 94
Range 79
Interquartile 41
Range
Skewness 0.010 0.441
Kurtosis -1.178 0.858
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 19of56
Roll No:28257 Statistics-I Practical 1 ,2
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 20of56
Roll No:28257 Statistics-I Practical 1 ,2
Stem-and-Leaf Plots
2.00 1 . 02
3.00 2 . 236
6.00 3 . 000599
6.00 4 . 167779
5.00 5 . 22556
3.00 6 . 257
4.00 7 . 0157
.00 8 .
3.00 9 . 134
Stem width: 10
Each leaf: 1 case(s)
2.00 1 . 58
3.00 2 . 023
2.00 3 . 13
8.00 4 . 23777777
.00 5 .
4.00 6 . 2678
3.00 7 . 047
3.00 8 . 189
3.00 9 . 124
Stem width: 10
Each leaf: 1 case(s)
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 21of56
Roll No:28257 Statistics-I Practical 1 ,2
Statistics
midvalue
N Valid 60
Missing 0
Mean 52.8333
Std. Error 3.00815
of Mean
Median 44.5000
Mode 44.50
Std. 23.30103
Deviation
Variance 542.938
Skewness 0.267
Kurtosis -0.851
Std. Error 0.608
of Kurtosis
Range 80.00
Minimum 14.50
Maximum 94.50
Sum 3170.00
Percentiles 10 24.5000
20 34.5000
25 34.5000
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 22of56
Roll No:28257 Statistics-I Practical 1 ,2
30 37.5000
40 44.5000
50 44.5000
60 54.5000
70 64.5000
75 74.5000
80 74.5000
90 93.5000
midvalue
Cumulative
Frequency Percent Valid Percent Percent
Valid 14.50 4 6.7 6.7 6.7
24.50 6 10.0 10.0 16.7
34.50 8 13.3 13.3 30.0
44.50 14 23.3 23.3 53.3
54.50 5 8.3 8.3 61.7
64.50 7 11.7 11.7 73.3
74.50 7 11.7 11.7 85.0
84.50 3 5.0 5.0 90.0
94.50 6 10.0 10.0 100.0
Total 60 100.0 100.0
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 sem 2 Tribhuvan University 23of56
Roll No:28257 Statistics-I Practical 1 ,2
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Camus
B.Sc.CSIT Year 1 Sem 2 Tribhuvan University 24of56
Roll No:28257 Statistics-I,Practical 3
Question
One of the major measures of the quality of service provided
by an organization is the speed with which it responds to
customer complaints. An internet service provider, had
undergone a major improvement by recruiting well trained
installation crews, supervisors and office staffs. The business
objective of the company was to reduce the time between when
the complaint it received and when it is resolved. During a recent
month, the company received 50 complaints concerning internet
installation. The data from the 50 complaints, collected by ISP,
represent the number of hours between the receipt and the resolution of the complaint:
a. Compute the mean, median, first quartile, and third quartile.
b. Compute the range, interquartile range, variance, standard deviation,
and coefficient of variation.
c. Construct a boxplot. Are the data skewed? If so, how?
d. On the basis of the results of (a) through (c), if you had
to tell the president of the company how long a customer
should expect to wait to have a complaint resolved, what would you say? Explain.
27, 4, 52, 30, 22, 36, 26, 20, 23, 33, 68, 165, 32, 29, 28, 29, 26, 25, 1, 14,
13, 13, 10, 5, 19, 126, 110, 110, 29, 61, 35, 94, 31, 26, 5, 12, 4, 54, 5, 35,
137, 31, 27, 152, 2, 123, 81, 74, 27, 11
Solution:-
SPSS Syntax
EXAMINE VARIABLES=x
/PLOT BOXPLOT
/COMPARE VARIABLES
/STATISTICS DESCRIPTIVES
/CINTERVAL 95
/MISSING LISTWISE
/NOTOTAL.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Camus
B.Sc.CSIT Year 1 Sem 2 Tribhuvan University 25of56
Roll No:28257 Statistics-I,Practical 3
Statistics
Hours
N Valid 50
Missing 0
Mean 42.58
Median 27.50
Percentiles 25 13.00
50 27.50
75 55.75
Descriptives
Statistic Std. Error
Hours Mean 42.58 5.958
95% Lower 30.61
Confidence Bound
Interval for
Mean
Upper 54.55
Bound
5% 38.63
Trimmed
Mean
Median 27.50
Variance 1774.983
Std. 42.131
Deviation
Minimum 1
Maximum 165
Range 164
Interquartil 43
e Range
Skewness 1.493 0.337
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Camus
B.Sc.CSIT Year 1 Sem 2 Tribhuvan University 26of56
Roll No:28257 Statistics-I,Practical 3
Analysis
Mean:The average time between the receipt and resolution of complaints is approximately
42.58 hours.
Median:The middle value of data set is 27.5 hours which indicates that half of complaints are
resolved within this time
Quartiles:First quartile indicates that 25% of complaints are resolved within 13 hours and
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Camus
B.Sc.CSIT Year 1 Sem 2 Tribhuvan University 27of56
Roll No:28257 Statistics-I,Practical 3
third quartile indicates that 75% of complaints are resolved within 55.75 hours
Range:Range is 164 means variation in time to resolve complaints
Interquartile range:The IQR is 43 hours represents spread of middle 50% of the data
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 28of56
Roll No:28257 Statistics-I practical 4
cases
square(x1-
values(x1) x1-x(m) x(m))
2 -7.6666667 58.77777778
5 -4.6666667 21.77777778
8 -1.6666667 2.777777778
11 1.33333333 1.777777778
14 4.33333333 18.77777778
18 8.33333333 69.44444444
sum(square(x
sum(x1) 1-x(m)))
58 173.3333333
=SUM(A15: =SUM(C15:C2
A20) 0)
sigmasquare/
x(m) sigma square n s square
9.6666667 28.88888889 14.44444444 34.66667
=AVERA =C22/
GE(A15:A COUNT(A15:A
20) 20) =C22/(6-1)
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 29of56
Roll No:28257 Statistics-I practical 4
SRSWR
x1 square(x1(m)-
x1(m) x1(m)-x(m) x(m))
(2,2) 2 -7.666666667 58.77777778
(2,5) 3.5 -6.166666667 38.02777778
(2,8) 5 -4.666666667 21.77777778
(2,11) 6.5 -3.166666667 10.02777778
(2,14) 8 -1.666666667 2.777777778
(2,18) 10 0.333333333 0.111111111
(5,2) 3.5 -6.166666667 38.02777778
(5,5) 5 -4.666666667 21.77777778
(5,8) 6.5 -3.166666667 10.02777778
(5,11) 8 -1.666666667 2.777777778
(5,14) 9.5 -0.166666667 0.027777778
(5,18) 11.5 1.833333333 3.361111111
(8,2) 5 -4.666666667 21.77777778
(8,5) 6.5 -3.166666667 10.02777778
(8,8) 8 -1.666666667 2.777777778
(8,11) 9.5 -0.166666667 0.027777778
(8,14) 11 1.333333333 1.777777778
(8,18) 13 3.333333333 11.11111111
(11,2) 6.5 -3.166666667 10.02777778
(11,5) 8 -1.666666667 2.777777778
(11,8) 9.5 -0.166666667 0.027777778
(11,11) 11 1.333333333 1.777777778
(11,14) 12.5 2.833333333 8.027777778
(11,18) 14.5 4.833333333 23.36111111
(14,2) 8 -1.666666667 2.777777778
(14,5) 9.5 -0.166666667 0.027777778
(14,8) 11 1.333333333 1.777777778
(14,11) 12.5 2.833333333 8.027777778
(14,14) 14 4.333333333 18.77777778
(14,18) 16 6.333333333 40.11111111
(18,2) 10 0.333333333 0.111111111
(18,5) 11.5 1.833333333 3.361111111
(18,8) 13 3.333333333 11.11111111
(18,11) 14.5 4.833333333 23.36111111
(18,14) 16 6.333333333 40.11111111
(18,18) 18 8.333333333 69.44444444
348 520
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 30of56
Roll No:28257 Statistics-I practical 4
=B86/
COUNT(B50:B
E(x1(m)) 9.66666667 85)
V(x1(m)) 14.4444444 =D86/36
E(s square) 28.8888889 =2*(C25-B91)
S.E(x1(m)) 3.80058475 =SQRT(B91)
hence
E(x1(m)=x(m)
V(x1(m)=sigma square/n
E(s square)=sigma square
proved
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 31of56
Roll No:28257 Statistics-I practical 4
SRSWOR
x2 square(x2(m)-
x2(m) x2(m)-x(m) x(m))
(2,5) 3.5 -6.166666667 38.02777778
(2,8) 5 -4.666666667 21.77777778
(2,11) 6.5 -3.166666667 10.02777778
(2,14) 8 -1.666666667 2.777777778
(2,18) 10 0.333333333 0.111111111
(5,8) 6.5 -3.166666667 10.02777778
(5,11) 8 -1.666666667 2.777777778
(5,14) 9.5 -0.166666667 0.027777778
(5,18) 11.5 1.833333333 3.361111111
(8,11) 9.5 -0.166666667 0.027777778
(8,14) 11 1.333333333 1.777777778
(8,18) 13 3.333333333 11.11111111
(11,14) 12.5 2.833333333 8.027777778
(11,18) 14.5 4.833333333 23.36111111
(14,18) 16 6.333333333 40.11111111
145 173.3333333
=SUM(B139 =SUM(D139:
:B153) D153)
hence
E(x2(m)=x(m)
V(x2(m)=(N-n)/(Nn)*s square
E(s square)=s square
proved
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 32of56
Roll No:28257 Statistics-I,Practical 4
Question 4
Use data of Practical 1 and find simple random sample
of size 10 for gender 1 and sample of size 15 for gender 2.
The find all possible descriptive statistics for both samples
and 95% confidence limits for population mean for both cases.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 33of56
Roll No:28257 Statistics-I,Practical 4
Random
sample of
size 10
random after
x1 sample sorting
55 0.01281 x1 x1
75 0.057547 55
47 0.087125 75 Mean 52.44444
Standard
62 0.091497 47 Error 4.512671
55 0.094858 62 Median 55
39 0.117971 55 Mode 55
Standard
65 0.236762 39 Deviation 13.53801
Sample
35 0.246051 65 Variance 183.2778
39 0.328414 35 Kurtosis -0.975659
30 0.409042 Minimum 35
49 0.549268 Maximum 75
52 0.557861 Sum 472
52 0.55938 Count 10
Confidenc
e
Level(95.0
30 0.571115 %) 10.40624
41 0.650553
23 0.684697
70 0.723089
77 0.724665
10 0.756416
47 0.782376
47 0.796947
93 0.799098
30 0.811963
91 0.812321
46 0.82387
94 0.844974
71 0.845738
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 34of56
Roll No:28257 Statistics-I,Practical 4
67 0.893382
26 0.914761
12 0.957814
formula =RAND()
Random
sample of
size 15
random after
x2 sample sorting
42 0.000841 x2 x2
15 0.022185 42
47 0.022196 15 Mean 52
Standard
47 0.167383 47 Error 6.014269
77 0.22601 47 Median 47
18 0.273859 77 Mode 47
Standard
74 0.297596 18 Deviation 23.29316
Sample
62 0.311532 74 Variance 542.5714
67 0.318139 62 Kurtosis -0.954578
68 0.39425 23 Minimum 15
70 0.398687 68 Maximum 92
31 0.444921 70 Sum 780
47 0.453099 31 Count 15
Confidenc
e
Level(95.0
22 0.531551 47 %) 12.89932
47 0.540347
20 0.546124
43 0.608967
33 0.738589
94 0.745456
47 0.751284
81 0.809119
88 0.81306
66 0.854155
47 0.874104
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 35of56
Roll No:28257 Statistics-I,Practical 4
91 0.901304
89 0.970864
Using SPSS
SPSS Syntax
USE ALL.
do if $casenum=1.
compute #s_$_1=10.
compute #s_$_2=32.
end if.
do if #s_$_2 > 0.
compute filter_$=uniform(1)* #s_$_2 < #s_$_1.
compute #s_$_1=#s_$_1 - filter_$.
compute #s_$_2=#s_$_2 - 1.
else.
compute filter_$=0.
end if.
VARIABLE LABELS filter_$ '10 from the first 32 cases (SAMPLE)'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 36of56
Roll No:28257 Statistics-I,Practical 4
else.
compute filter_$=0.
end if.
VARIABLE LABELS filter_$ '15 from the first 28 cases (SAMPLE)'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.
x1 x2
55 74
62 47
55 23
39 15
22 22
56 88
30 47
52 18
77 43
71 67
20
81
77
70
92
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 37of56
Roll No:28257 Statistics-I,Practical 4
Descriptives
10 from the
first 32
cases
(SAMPLE) Statistic Std. Error
Hours 1 Mean 51.90 5.450
95% Lower 39.57
Confidence Bound
Interval for
Mean
Upper 64.23
Bound
5% 52.17
Trimmed
Mean
Median 55.00
Variance 296.989
Std. 17.233
Deviation
Minimum 22
Maximum 77
Range 55
Interquartil 28
e Range
Skewness -0.419 0.687
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 38of56
Roll No:28257 Statistics-I,Practical 4
Descriptives
15 from the
first 28
cases
(SAMPLE) Statistic Std. Error
x2 1 Mean 53.87 6.883
95% Lower 39.10
Confidence Bound
Interval for
Mean
Upper 68.63
Bound
5% 53.91
Trimmed
Mean
Median 47.00
Variance 710.552
Std. 26.656
Deviation
Minimum 15
Maximum 92
Range 77
Interquartil 55
e Range
Skewness -0.157 0.580
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 39of56
Roll No:28257 Statistics-I,Practical 6,7,8
Child
case symbol value formula Nutrition mortality
no of pair of =COUNT(
observations n 17 A16:A32) Nutrition 1
=CORREL(
correlation A16:A32, Child
coefficient r r 0.625626 B16:B32) mortality 0.6256262 1
interpretation
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 40of56
Roll No:28257 Statistics-I,Practical 6,7,8
=IF(C36<0
,"It is
negatively
correlate
d",IF(C36
>0,"It is
positively
correlate
d","No
correlatio
It is positively correlated n"))
=0.6745*(
1-
C36^2)/
Probable error P.E. 0.09956 sqrt(C35)
Interpretation
=IF(C36<C
42,"It is
insifnifica
nt",IF(C36
>6*C42,"I
t is
significant
","No
conclusio
It is significant n"))
interpretation
39.141% of total variation is presented by coefficient of determination
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 41of56
Roll No:28257 Statistics-I,Practical 6,7,8
Rank of
Nutrition Child mortality Rank of Child
nutrition mortality d d2
12.1 9.5 8 9 -1 1
9.1 9.2 12 11 1 1
26 11.8 2 6 -4 16
6.4 6.4 15 15 0 0
9.5 7.3 11 14 -3 9
18.5 20.3 4 3 1 1
22.8 24.4 3 1 2 4
17.4 21.1 5 2 3 9
13.9 10.7 7 8 -1 1
3.2 3.5 17 17 0 0
30.2 11.8 1 6 -5 25
15.7 12.3 6 4 2 4
8.7 11.8 13 6 7 49
5.6 9.4 16 10 6 36
11.2 8.3 9 13 -4 16
9.8 9 10 12 -2 4
8.4 4.7 14 16 -2 4
=RANK.AV =RANK.AV
G(A81,$A G(B81,$B
$65:$A$8 $65:$B$8
formula 1) 1) =C81-D81 =E81^2
from
pivot
m1 11.8 3 table
=SUM(F6
Σd2 180 5:F81)
Spearman's rank correlation
1-
(6*(C88-
((C87^3-
C87)/
12))/
(C86^3-
0.781863 C86))
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 42of56
Roll No:28257 Statistics-I,Practical 6,7,8
Interpretation
=IF(C90<0
,"It is
negatively
correlate
d",IF(C90
>0,"It is
positively
correlate
d","No
correlatio
It is positively correlated n"))
0.6745*(1
-C90^2)/
SQRT(C86
Probable error P.E. 0.063586 )
Interpretation
=IF(C90<C
103,"It is
insifnifica
nt",IF(C90
>6*C103,
"It is
significant
","No
conclusio
It is significant n"))
interpretation
61.131% of total variation is presented by coefficient of determination
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 43of56
Roll No:28257 Statistics-I,Practical 6,7,8
Regression
Nutrition Child mortality
X Y Pred. Y
12.1 9.5 10.62328
9.1 9.2 9.188517
26 11.8 17.27102
6.4 6.4 7.89723
9.5 7.3 9.379819
18.5 20.3 13.68411
22.8 24.4 15.74061
17.4 21.1 13.15803
13.9 10.7 11.48414
3.2 3.5 6.366814
30.2 11.8 19.27969
15.7 12.3 12.345
8.7 11.8 8.997216
5.6 9.4 7.514626
11.2 8.3 10.19285
9.8 9 9.523296
8.4 4.7 8.853739
SUMMARY
OUTPUT
Regression Statistics
Multiple R 0.625626177554
R Square 0.391408114041
Adjusted R
Square 0.350835321644
ANOVA
Significanc
df SS MS F eF
Regression 1 203.8057 203.8057 9.647059 0.0072285
Residual 15 316.8931 21.12621
Total 16 520.6988
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 44of56
Roll No:28257 Statistics-I,Practical 6,7,8
9.8469890029
0.80645353057
RESIDUAL
OUTPUT
=0.6745*(
1-C191)/
Probable error P.E. 0.09956 sqrt(17)
Interpretation
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 45of56
Roll No:28257 Statistics-I,Practical 6,7,8
=IF(SQRT(
C191)<C1
93,"It is
insifnifica
nt",IF(SQ
RT(C191)
>6*C193,
"It is
significant
","No
conclusio
It is significant n"))
30
25
20
15 Y
Column C
10
0
0 5 10 15 20 25 30 35
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 46of56
Roll No:28257 Statistics-I,Practical 6,7,8
Using SPSS
SPSS Syntax
DATASET ACTIVATE DataSet0.
CROSSTABS
/TABLES=x BY y
/FORMAT=AVALUE TABLES
/STATISTICS=CHISQ CORR
/CELLS=COUNT
/COUNT ROUND CELL.
CORRELATIONS
/VARIABLES=x y
/PRINT=TWOTAIL NOSIG
/MISSING=PAIRWISE.
NONPAR CORR
/VARIABLES=x y
/PRINT=SPEARMAN TWOTAIL NOSIG
/MISSING=PAIRWISE.
REGRESSION
/DESCRIPTIVES MEAN STDDEV CORR SIG N
/MISSING LISTWISE
/STATISTICS COEFF OUTS R ANOVA CHANGE ZPP
/CRITERIA=PIN(.05) POUT(.10)
/NOORIGIN
/DEPENDENT y
/METHOD=ENTER x
/RESIDUALS NORMPROB(ZRESID)
/SAVE PRED RESID.
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 47of56
Roll No:28257 Statistics-I,Practical 6,7,8
Symmetric Measures
Asymptotic Approximat
Standard Approximat e
Value Errora e Tb Significance
Interval by Pearson's R 0.626 0.120 3.106 .007c
Interval
Ordinal by Spearman 0.779 0.093 4.810 .000c
Ordinal Correlation
N of Valid Cases 17
a. Not assuming
the null
hypothesis.
b. Using the
asymptotic
standard error
assuming the null
hypothesis.
c. Based on
normal
approximation.
Correlations
Child
Nutrition mortality
Nutrition Pearson Correlation 1 .626**
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 48of56
Roll No:28257 Statistics-I,Practical 6,7,8
Correlations
Child
Nutrition mortality
Spearman's rho Nutrition Correlation 1.000 .779**
Coefficient
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 49of56
Roll No:28257 Statistics-I,Practical 6,7,8
Descriptive Statistics
Std.
Mean Deviation N
Child mortality 11.2647 5.70471 17
Nutrition 13.4412 7.46258 17
Correlations
Child
mortality Nutrition
Pearson Child mortality 1.000 0.626
Correlation
Nutrition 0.626 1.000
Sig. (1-tailed) Child mortality 0.004
Nutrition 0.004
N Child mortality 17 17
Nutrition 17 17
Variables Entered/Removeda
Variables
Model Variables Entered Removed Method
1 Nutritionb Enter
a. Dependent
Variable: Child
mortality
b. All requested
variables
entered.
Model Summaryb
Std. Error
Adjusted R of the Change
Model R Square Estimate Statistics
R Square
R Square Change F Change
1 .626a 0.391 0.351 4.59633 0.391 9.647
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 50of56
Roll No:28257 Statistics-I,Practical 6,7,8
a. Predictors:
(Constant),
Nutrition
b. Dependent
Variable: Child
mortality
ANOVAa
Sum of Mean
Model Squares df Square F Sig.
1 Regression 203.806 1 203.806 9.647 .007b
Residual 316.893 15 21.126
Total 520.699 16
a. Dependent
Variable: Child
mortality
b. Predictors:
(Constant),
Nutrition
Coefficientsa
Residuals Statisticsa
Std.
Minimum Maximum Mean Deviation N
Predicted Value 6.3668 19.2797 11.2647 3.56901 17
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 51of56
Roll No:28257 Statistics-I,Practical 6,7,8
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 52of56
Roll No:28257 Statistics -I,Practical-9,10,11,12
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 53of56
Roll No:28257 Statistics -I,Practical-9,10,11,12
10.Fit the binomial distribution and find the probabilities of less than 2,
less than equal to 2,not equal to 2 and greater than 2.
x 0 1 2 3 4 Total
f 28 62 46 10 4 150
Solution:-
Rounded
Expected Expected
x f P(x) frequency frequency
0 28 0.197531 29.62963 30
1 62 0.395062 59.25926 59
2 46 0.296296 44.44444 44
3 10 0.098765 14.81481 15
4 4 0.012346 1.851852 2
Total 150 1 150 150
=BINOMD
IST(A54:$
A$58,$B$
=SUM(B5 62,$B$64, =$B$59*C =ROUND(
Formula 4:B58) FALSE) 54 D54,0)
Here Formula
=MAX(A5
n 4 4:A58)
=SUMPRO
DUCT(A54
:A58,B54:
mean 1.333333 B58)/B59
p 0.333333 =B63/B62
q 0.666667 =1-B64
Probabilityx P(x) formula
P(x<2) 1 0.592593 =BINOMDIST(C67,B62,B64,TRUE)
P(x<=2) 2 0.888889 =BINOMDIST(C68,B62,B64,TRUE)
P(x=2) 2 0.296296 =BINOMDIST(C69,B62,B64,FALSE)
P(x!=2) 2 0.703704 =1-BINOMDIST(C70,B62,B64,FALSE)
P(x>2) 2 0.111111 =1-BINOMDIST(C71,B62,B64,TRUE)
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 54of56
Roll No:28257 Statistics -I,Practical-9,10,11,12
11.Fit the poisson distribution and find the probabilities less than 2,less than equal to 2,
not equals to 2 and greater than 2.
x 0 1 2 3 4
f 211 90 19 5 0
Solution:-
Rounded
Expected expected
x f P(x) frequency frequency
0 109 0.543351 108.6702 109
1 65 0.331444 66.28881 66
2 22 0.10109 20.21809 20
3 3 0.020555 4.111011 4
4 1 0.003135 0.626929 1
Total 200 0.999575 199.915 200
=POISSON
=SUM(B9 (A90,$B$ =ROUND(
Formula 0:B94) 99,FALSE) =$B$95*C9D90,0)
Here Formula
=MAX(A9
n 4 0:A94)
=SUMPRO
DUCT(A90
:A94,B90:
mean 0.61 λ B94)/B95
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 55of56
Roll No:28257 Statistics -I,Practical-9,10,11,12
12.Fit the normal distribution and find the probabilities of less than 25 ,between 20 to 30
and more than 30.
Expected
Life Frequency LCB UCB x P(x<x) P(x1<x<x2)frequency
20-25 8 20 25 22.5 0.084453 0.063741 4.7805685087
25-30 12 25 30 27.5 0.238172 0.15372 11.528963641
30-35 15 30 35 32.5 0.480595 0.242423 18.181737554
35-40 18 35 40 37.5 0.730682 0.250086 18.75646287
40-45 13 40 45 42.5 0.899448 0.168766 12.657455082
45-50 9 45 50 47.5 0.973928 0.07448 5.5860365839
Total 75
=(NORMD
IST(D127,
$B$138,$
B$140,TR
UE)-
=NORMDI NORMDIS
ST(D127: T(C127,$B
=AVERAG D132,$B$ $138,$B$
=SUM(B1 E(C127:D 138,$B$1 140,TRUE =$B$137*G12
Formula 27:B132) 127) 40,TRUE) )) 7
Here formula
=SUM(B1
N 75 27:B132)
=SUMPRO
DUCT(E12
7:E132,B1
27:B132)/
mean 35.36667 B137
Name:Shusbin Tripathi
Date:2080/02/05 Amrit Science Campus
B.Sc.CSIT Year 1 Sem 2 Tribhuwan University 56of56
Roll No:28257 Statistics -I,Practical-9,10,11,12
=(SUMPR
ODUCT(B
127:B132,
E127:E13
2,E127:E1
32)/
B133)-
variance 56.78222 B138^2
=SQRT(B1
st.dev 7.535398 39)
x probabilityformula
=NORMDI
ST(B146,B
138,B140,
P(X<25) 25 0.084453 TRUE)
=NORMDI
ST(C147,B
138,B140,
TRUE)-
NORMDIS
T(B147,B1
38,B140,T
P(20<x<30) 20 30 0.21746 RUE)
=1-
NORMDIS
T(B148,B1
38,B140,T
P(X>30) 30 0.761828 RUE)
Name:Shusbin Tripathi