Probability & statistics 2017
Practical number 1:-
The following table shows the length of 72 bally bridges
68 84 73 82 68 90 62 88 76
73 79 75 73 60 93 71 59 85
61 65 88 87 74 62 95 78 63
66 78 75 75 94 77 69 74 68
96 78 82 61 75 95 60 79 83
79 62 89 97 78 85 76 65 71
65 80 67 57 88 78 62 76 53
86 67 73 81 72 63 76 75 85
Find mean, median, mode, Q1, Q3, SD, P60, P35 and D2 Using SPSS,
Prepared by Jeevan Pandey Page 1
Probability & statistics 2017
Solution from SPSS,
Statistics
length of 72 bally bridge
N Valid 72
Missing 0
Mean 75.32
Median 75.00
Mode 75a
Std. Deviation 10.563
Percentiles 20 65.00
25 67.00
35 71.55
50 75.00
60 78.00
75 82.75
Prepared by Jeevan Pandey Page 2
Probability & statistics 2017
Practical number 2:-
The weight of 40 boys (in lbs) in a class are as follows:
138 172 145 147 150 119 158 152 168 142
157 147 102 144 165 136 164 163 128 135
126 150 146 148 145 125 146 153 138 156
173 140 135 149 140 144 132 154 142 135
Compute mean, median, mode and describe the shape of the distribution. Also
compute standard deviation.
Prepared by Jeevan Pandey Page 3
Probability & statistics 2017
Solution from SPSS;
Statistics
weight of 40 boys in lbs
N Valid 40
Missing 0
Mean 145.22
Median 145.50
Mode 135
Std. Deviation 14.439
Prepared by Jeevan Pandey Page 4
Probability & statistics 2017
Practical number 3:-
Identify the median, first quartile, third quartile and standard deviation
from the following.
65 36 49 84 79 56 28 43 67 36
43 78 37 40 68 72 70 55 62 82
88 50 60 56 57 46 39 57 22 65
59 48 76 74 80 69 51 40 56 45
35 21 62 52 63 32 86 64 53 34
Prepared by Jeevan Pandey Page 5
Probability & statistics 2017
Solution from SPSS;
Statistics
N Valid 50
Missing 0
Median 56.00
Std. Deviation 17.108
Percentiles 25 42.25
50 56.00
75 68.25
Prepared by Jeevan Pandey Page 6
Probability & statistics 2017
Practical number 4:-
Compute mean, median, mode, and describe the shape of distribution.
65 36 49 84 79 56 28 43 67 36
43 78 37 40 68 72 70 55 62 82
88 50 60 56 57 46 39 57 22 65
59 48 76 74 80 69 51 40 56 45
35 21 62 52 63 32 86 64 53 34
Prepared by Jeevan Pandey Page 7
Probability & statistics 2017
Solution form SPSS;
Statistics
N Valid 50
Missing 0
Mean 55.80
Median 56.00
Mode 56
Std. Deviation 17.108
Prepared by Jeevan Pandey Page 8
Probability & statistics 2017
Practical number 5:-
The following table gives the survey data of 30 people interviewed at a
shopping mall. It gives their smoking habit (smoker(s)/non-smoker (n))
and their health condition (have cancer(c), have heart problem (h),
good health (g) together with their identification number.
Id Habit Health
condition
1 S C
2 N H
3 N G
4 N G
5 S G
6 N C
7 N G
8 S C using SPSS to form a 2*2 cross classification
9 S C
10 S H table of habit by health condition. If a person
11 N C
12 N G
is selected at random from this sample of 30
13 N G people, evaluate the probabilities of the
14 S C
15 N H following events.
16 N G
17 S G a.
The person is a smoker.
18 S C
19 S C b.
The person is a non smoker.
20 N G c.
The person has cancer.
21 N G
22 N C d.
The person has heart problem.
23 S C
24 N G
e.
The person is a heart problem and a
25 N G smoker.
26 S G
27 S C f. The person is a smoker n is in good
28 N G health.
29 N G
30 N G g. The person is a smoker given that he has
cancer.
h. The person has heart problem given that he is a smoker.
Prepared by Jeevan Pandey Page 9
Probability & statistics 2017
Solution from SPSS;
smoking and non smoking habit * health condition Cross tabulation
health condition
have heart
have cancer good health problem Total
smoking and non smoking non-smoker Count 3 13 2 18
habit
% within smoking and non
16.7% 72.2% 11.1% 100.0%
smoking habit
% within health condition 27.3% 81.2% 66.7% 60.0%
% of Total 10.0% 43.3% 6.7% 60.0%
smoker Count 8 3 1 12
% within smoking and non 66.7% 25.0% 8.3% 100.0%
smoking habit
Prepared by Jeevan Pandey Page 10
Probability & statistics 2017
% within health condition 72.7% 18.8% 33.3% 40.0%
% of Total 26.7% 10.0% 3.3% 40.0%
Total Count 11 16 3 30
% within smoking and non
36.7% 53.3% 10.0% 100.0%
smoking habit
% within health condition 100.0% 100.0% 100.0% 100.0%
% of Total 36.7% 53.3% 10.0% 100.0%
a. Person is a smoker – 40%
b. Person is a non smoker – 60%
c. Person has cancer – 36.7%
d. Person has heart problem – 10%
e. Person has heart problem and is smoker – 3.3%
f. Person is a smoker and is in good health – 10%
g. Person is a smoker given that he has cancer – 26.7%
h. Person has heart problem given that he is a smoker – 3.3%
Practical number 6:-
The following are the weekly production in units of 30 workers in
a manufacturing company.
16 39 49 52 64 77
23 41 50 55 68 82
25 44 51 56 72 82
32 46 51 62 75 85
35 48 51 62 75 88
Calculate mean, median, mode, and interpret the shape of distribution.
Prepared by Jeevan Pandey Page 11
Probability & statistics 2017
Solution from SPSS;
Statistics
weekly production in units of 30
workers
N Valid 30
Missing 0
Mean 55.20
Median 51.50
Mode 51
Prepared by Jeevan Pandey Page 12
Probability & statistics 2017
Practical number 7:-
A chemical company, wishing to study the effect of extraction time on
the efficiency of an extraction operation, obtained the data shown in
the following table:
Extraction time in minute (x) 27 45 41 19 35 39 19
Extraction time in % (y) 57 64 80 46 62 72 52
a. Fit a straight line to the given data by the method of least square
and use it to predict the extraction efficiency one can expect
where the extraction time is 35 minutes using SPSS.
Prepared by Jeevan Pandey Page 13
Probability & statistics 2017
b. Determine the coefficient of determination and interpret its
meaning.
Solution using SPSS;
Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
1 .843a .711 .653 6.837
a. Predictors: (Constant), extraction time in minute
Prepared by Jeevan Pandey Page 14
Probability & statistics 2017
ANOVAb
Model Sum of Squares df Mean Square F Sig.
1 Regression 575.113 1 575.113 12.302 .017a
Residual 233.744 5 46.749
Total 808.857 6
a. Predictors: (Constant), extraction time in minute
b. Dependent Variable: extraction time in %
Practical number 8:-
The following table gives the marks in physics and chemistry by group
of 10 students. Find the correlation coefficient and the regression
equation of y on x. hence estimate the marks scored by a student in
chemistry who scored 52 marks in physics.
Prepared by Jeevan Pandey Page 15
Probability & statistics 2017
Marks in physics 37 35 16 28 23 27 19 20 16 11
Marks in chemistry 24 29 19 14 30 19 27 30 20 30
Solution from SPSS;
Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
1 .111a .012 -.111 8.942
a. Predictors: (Constant), marks in chemistry
Prepared by Jeevan Pandey Page 16
Probability & statistics 2017
ANOVAb
Model Sum of Squares df Mean Square F Sig.
1 Regression 7.934 1 7.934 .099 .761a
Residual 639.666 8 79.958
Total 647.600 9
a. Predictors: (Constant), marks in chemistry
b. Dependent Variable: marks in physics
Practical number 9:-
The following table gives the age (x) and blood pressure (y) of 10
women.
X 56 42 36 47 49 42 60 72 63 55
y 147 125 118 128 145 140 155 160 149 150
Prepared by Jeevan Pandey Page 17
Probability & statistics 2017
a. Find the correlation coefficient between age and pressure. Also
find the coefficient of determination and interpret it.
b. Fit a regression equation of x on y.
Solution using SPSS;
Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
1 .892a .795 .769 5.307
a. Predictors: (Constant), pressure
Prepared by Jeevan Pandey Page 18
Probability & statistics 2017
ANOVAb
Model Sum of Squares df Mean Square F Sig.
1 Regression 874.282 1 874.282 31.042 .001a
Residual 225.318 8 28.165
Total 1099.600 9
a. Predictors: (Constant), pressure
b. Dependent Variable: age
Practical number 10:-
From the following table showing age of cars of certain make and
annual maintenance costs, obtain the regression equation for cost
related to age.
Age of cars in years 2 4 6 8 10 12 14
Annual maintenance cost (000) 2 5 6 7 10 11 15
Also calculate maintenance cost for the year 20 years old.
Prepared by Jeevan Pandey Page 19
Probability & statistics 2017
Solution from SPSS;
Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
1 .982a .965 .958 .890
a. Predictors: (Constant), annual maintenance
Prepared by Jeevan Pandey Page 20
Probability & statistics 2017
ANOVAb
Model Sum of Squares df Mean Square F Sig.
1 Regression 108.036 1 108.036 136.261 .000a
Residual 3.964 5 .793
Total 112.000 6
a. Predictors: (Constant), annual maintenance
b. Dependent Variable: age of cars in years
Practical number 11:-
The following table gives the age of husbands and wives at the time of
marriage.
Age of husbands (x) 2 27 2 28 28 30 30 33 35 38
3 8
Age of wives (y) 1 20 2 27 21 29 27 29 28 29
8 2
Prepared by Jeevan Pandey Page 21
Probability & statistics 2017
Find the correlation coefficient between x and y.
Solution from SPSS;
Prepared by Jeevan Pandey Page 22
Probability & statistics 2017
Model Summary
Adjusted R Std. Error of the
Model R R Square Square Estimate
1 .801a .642 .597 2.742
a. Predictors: (Constant), age of wives
ANOVAb
Model Sum of Squares df Mean Square F Sig.
1 Regression 107.860 1 107.860 14.348 .005a
Residual 60.140 8 7.518
Total 168.000 9
a. Predictors: (Constant), age of wives
b. Dependent Variable: age of husband
Prepared by Jeevan Pandey Page 23
Probability & statistics 2017
Solution from SPSS;
Fig :- pie chart showing males and females in my class.
Prepared by Jeevan Pandey Page 24
Probability & statistics 2017
Table showing mean, median, mode & standard deviation of age of
students of my class;
Statistics
age of student
N Valid 18
Missing 0
Mean 19.0556
Median 19.0000
Mode 19.00
Std. Deviation .93760
Minimum 17.00
Maximum 21.00
So,
The maximum age of student of my class is 21
And minimum age of student of my class is 17.
Prepared by Jeevan Pandey Page 25
Probability & statistics 2017
Table showing maximum and minimum height of my class;
Statistics
Height of Student
N Valid 18
Missing 0
Mean 5.6222
Median 5.6000
Mode 5.60
Std. Deviation .21020
Minimum 5.10
Maximum 6.10
So,
The maximum height of student of my class is 6.1 ft.
And minimum height of student of my class is 5.1 ft.
Prepared by Jeevan Pandey Page 26
Probability & statistics 2017
Prepared by Jeevan Pandey Page 27
Probability & statistics 2017
Prepared by Jeevan Pandey Page 28