Shoaib Lab 1 To 7

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 18

SHOAIB MAHMOOD

11528
ASSIGNMENT: Lab 1 TO 7
LAB #01
Arranging Observations in the ascending order, We get :
23,24,33,42,67,225,227,228,231,236,240,241,248,250,253,257,260,263,276,300,301,815

Q1

Q1= ( ) n+1/4 th value of the observation

= ( )
23/4 th value of the observation

=(5.75)th value of the observation

[
=5th observation +0.75 6th-5th ]
=67+0.75[225-67]

=67+0.75(158)

=67+118.5

Q1=185.5

Q2

Q2= ( 2(n+1)/4 ) th value of the observation

= ( )
2⋅23/4 th value of the observation

=(11.5)th value of the observation

Q2=240.5
Q3

Q3= ( 3(n+1)/4) th value of the observation

= ( )
3⋅23/4 th value of the observation

=(17.25)th value of the observation

Q3=260.75

Quartiles by Spss

Statistics
X
N Valid 22
Missing 0
Percentiles 25 185.5000
50 240.5000
75 260.7500

IQR
=Q3-Q1
=260.75-185.5
IQR= 75.25
1.5(IQR) 0.5(IQR)
ALLOWED MINIMUM= Q1-1.5(IQR) Q1-0.5(IQR)
=185.5-1.5(75.25) 185.5-0.5(75.25)
=72.625 =147.85

ALLOWED MAXIMUM= Q3+1.5(IQR) Q3+0.5(IQR)


=260.75+1.5(75.25) 260.75+0.5(75.25)
=373.625 =298.375
Outliers 1.5IQR:
These are the outliers because they fall between our minimum and maximum allowed values
which is 72.625 and 373.625
23,24,33,42,67, 815

Outliers 0.5 IQR:


These are the outliers because they fall between our minimum and maximum allowed values
which is 147.85 and 298.375
23,24,33,42,67,300,301,815
LAB #02
Outlier:

Data Is Cleaned From Outliers We Checked by Box plot in Spss.


Frequency Distribution:
From spss

Every Numbers is repeating one time in a data set it means frequency distribution is uniform
Expected Mean, Variance and Standard Deviation: (Sample)
From Spss

Statistics
X
N Valid 17
Missing 0
Mean 134.0000
Std. Deviation 10.33199
Variance 106.750

Expected Mean, Variance and Standard Deviation: (Population)

Mean=134
S.D= 10.02
Variance=100.47

Predicted Outcome:
Mean+-Standard Devation
134+-10.33
=144.33-123.67
Outcome can fall between the 144.33 to 123.67 range
LAB #03

Outliers:

Frequency Distribution:
Expected Mean, Variance and Standard Deviation: (Sample)
From Spss

Statistics
X
N Valid 17
Missing 0
Mean 134.0000
Std. Deviation 10.33199
Variance 106.750

Expected Mean, Variance and Standard Deviation: (Population)

Mean=134
S.D= 10.02
Variance=100.47

LAB #04
From Spss:
Statistics
X1 X2 Zscore(X2) Zscore(X1)
N Valid 19 19 19 19
Missing 0 0 0 0
Mean 75.42 1770.2105 .0000000 .0000000
Std. Deviation 12.149 814.64911 1.00000000 1.00000000
Variance 147.591 663653.175 1.000 1.000
Percentiles 26 71.20 1212.6000 -.6844794 -.3474492
89 90.80 3188.2000 1.7406138 1.2658936

X2 IS -0.68 S.d Far from Mean At 26th Percentile While X1 is-0.347 Far away
X1 Is 1.26 Sd far from Mean at 89th percentile while the X2 is 1.74 Sd away
LAB # 05
Cross Tabulation of 2 Categorical Variable:

Athlete * Smoking Crosstabulation


Count
Smoking
Non smoker past smoker current smoker Total
Athlete 0 156 27 53 236
1 148 10 17 175
Total 304 37 70 411

Probability Distribution of 2 Categorical Variable:


Cross Tabulation Of 3 Categorical Variable:

Smoking * Athlete * Gender Crosstabulation


Count
Athlete
Gender 0 1 Total
male Smoking Non smoker 65 84 149
past smoker 10 3 13
current smoker 23 8 31
Total 98 95 193
female Smoking Non smoker 87 61 148
past smoker 17 7 24
current smoker 29 8 37
Total 133 76 209
Total Smoking Non smoker 152 145 297
past smoker 27 10 37
current smoker 52 16 68
Total 231 171 402

Probability :
LAB # 06

Less than 11.6 Inches:

Probability of rods of less than 11.6 inches is 78.81% or 0.7881

Between 8.4 and 11.4 Inches:

Probability of rods b/w 8.4 inches to 11.4 inches is 54.61% or 0.5461


Greater than 10.5 inches:

Probability of rods of more than 10.5 inches is 40.13% or 0.4013

B) 90% Area Above

X=7.44
Z=-1.28
90% Area Below:

X=12.56
Z=1.28

20%within interval

X1=9.59
X2=10.51
Z1=-0.205
Z2=0.255
LAB # 07
From Spss

Statistics
Wheatyeild
N Valid 20
Missing 415
Mean 21.3700
Std. Error of Mean 1.16547
Std. Deviation 5.21214
Variance 27.166
Range 25.70

Now T;
D.f= n-1
20-1 =19

At 90% 95% 99% CI


Level of Sig=1-CI
1-90% = 0.10 T=1.729
1-95% =0.05 T=2.093
1-99% = 0.01 T= 2.861

A-)Mean =X+-T (S.E)

Population mean at 90% CI = 19.355 - 23.384


Population mean at 95% CI= 17.955 – 23.80
Population Mean at 99% CI = 18.035 - 24.70
B-) One Sample T Test
H0;u=25.3
H1;u ≠ 25.3

AT 90% CI :

One-Sample Test
Test Value = 25.3
90% Confidence Interval of the
Difference
t df Sig. (2-tailed) Mean Difference Lower Upper
Wheatyeild -3.372 19 .003 -3.93000 -5.9453 -1.9147

As the sig value is less than 0.005 and t score is outside the 90% CI because the 90% CI ranges
b/w 1.729 to -1.729 and the t here is -3.372 which is outside the search area the null hypothesis
will be rejected.
At 95% CI :

One-Sample Test

Test Value = 25.3


95% Confidence Interval of the
Difference
t df Sig. (2-tailed) Mean Difference Lower Upper
Wheatyeild -3.372 19 .003 -3.93000 -6.3694 -1.4906

As the sig value is less than 0.005 and t score is outside the 95% CI because the 95% CI ranges
b/w 2.093 to -2.093 and the t here is -3.372 which is outside the search area the null hypothesis
will be rejected.
At 99% CI:

One-Sample Test
Test Value = 25.3
99% Confidence Interval of the
Difference
t df Sig. (2-tailed) Mean Difference Lower Upper
Wheatyeild -3.372 19 .003 -3.93000 -7.2643 -.5957

As the sig value is less than 0.005 and t score is outside the 99% CI because the 99% CI ranges
b/w 2.861to -2.861 and the t here is -3.372 which is outside the search area the null hypothesis
will be rejected

You might also like