You are on page 1of 11

https://genuinenotes.

com

Q.N.1)The following data set represents the strength of two types of cable.
Cable A 4.8 5.3 6.4 4.8 5 4.7
Cable B 6.5 4.7 5.5 6.2 4.8 5.2
Test whether average strength of cable B is greater than cable 4.
Solution:
Setting of hypothesis:
µ1=µ2 i.e. there is no significant difference between mean strength of two types of cables.
µ1<µ2 i.e. strength of cable
there Bis issignificant
greater than
difference
cable Abetween mean strength of two types of cables.
Level of significance alpha= 5%
t-Test: Two-Sample Assuming Equal Variances

Variable 1 Var 2
Mean 5.1667 5.483
Variance 0.4107 0.542
Observations 6 6
Pooled Variance 0.4762
Hypothesized Mean Difference 0
df 10
t Stat -0.795
P(T<=t) one-tail 0.2226
t Critical one-tail 1.8125
P(T<=t) two-tail 0.4452
t Critical two-tail 2.2281
Decision: Since,tcalculated is less than ttabulated so we donot reject H0.
So, we conclude that there is no significant difference between strength of two cables.

Q.N.2)The scores of two groups of students.


Group A 20 35 43 55 45 50 33
Group B 23 44 49 35 60 29 40
Test whether there is significant difference between average scores of two groups.
Solutuion:
Setting of hypothesis:
µ1=µ2 There is no significant difference between scores of two groups.
µ1≠µ2 There is significant difference between scores of two groups.
Level of significane:
alpha= 5%

https://genuinenotes.com
https://genuinenotes.com

t-Test: Two-Sample Assuming Equal Variances

Variable 1 Var 2
Mean 40.14285714 40
Variance 138.8095238 155.33
Observations 7 7
Pooled Variance 147.0714286
Hypothesized Mean Difference 0
df 12
t Stat 0.022037982
P(T<=t) one-tail 0.491389936
t Critical one-tail 1.782287556
P(T<=t) two-tail 0.982779871
t Critical two-tail 2.17881283

Decision:
Since,tcalculated<ttabulated so we do not reject H0.
Hence,we conclude that there is no significant difference between average scores of two groups of
students.
Q.N.3)The following table gives the test score secured by eight student before and after coaching class:
Before 47 53 61 44 60 59 58 68
After 51 55 60 49 57 62 63 66
Test whether coaching class is efficteve or not.
Soltion:
Setting of hypothesis:
µ1=µ2 i.e. coaching class is not effective
µ1<µ2 i.e. coaching class is effective
Level of significane:
alpha= 5%

t-Test: Paired Two Sample for Means

Variable 1 Var 2
Mean 56.25 57.875
Variance 61.64285714 35.554
Observations 8 8
Pearson Correlation 0.928430823
Hypothesized Mean Difference 0
df 7
t Stat -1.434360939
P(T<=t) one-tail 0.097297255
t Critical one-tail 1.894578605
P(T<=t) two-tail 0.19459451
t Critical two-tail 2.364624252

DECISION:
Since,tcalulated is less than ttabulated so we do not reject H0.
Hence,we conclude that the coaching class is not effective.

https://genuinenotes.com
https://genuinenotes.com

Q.N.4)The marks obtained by seven students before and after coaching class is given below:
A B C D E F G
Before 4 7 8 9 5 7 2
After 3 12 12 10 5 9 1
Test whether coaching class is effective or not.
Solution:
Setting of hypothesis:
µ1=µ2 i.e. coaching class is not effective
µ1≠µ2 i.e. coaching class is effective
Level of significance:
alpha= 5%

t-Test: Paired Two Sample for Means

Variable 1 Var 2
Mean 6 7.4286
Variance 6 19.619
Observations 7 7
Pearson Correlation 0.921691143
Hypothesized Mean Difference 0
df 6
t Stat -1.59448201
P(T<=t) one-tail 0.080969114
t Critical one-tail 1.943180281
P(T<=t) two-tail 0.161938228
t Critical two-tail 2.446911851

Decision:
Since,tcalculated<ttabulated so we do not reject H0.
Hence,we conclude that coaching class is not effective.

Q.N5)A computer manager is keenly interested to kow how efficiency of her new computer program
depends on the size of incoming.
Datasize: 6 7 7 8 10 10 15
Number of tables: 4 20 20 10 10 2 1
Efficiency 40 55 50 41 17 26 16
a) Obtain the multiple regresssion eqution.
b) Predict the value of efficiency when data size is 9GB and number of tables is 15.
c) Compute coefficient of determination and standard error.
d) Test the significance of each of regression coefficients
e) Test the overall regression model.
Solution:
Let Y denotes efficiency and X1 denote datasize and X2 denote number of tables.
Then multiple regression eqution Y on X1 and X2 is
Y=a+b1X1+b2X2

https://genuinenotes.com
https://genuinenotes.com

DatasizeNumberEfficiency
of tables
6 4 40
7 20 55
7 20 50
8 10 41
10 10 17
10 2 26
15 1 16
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.887367725
R Square 0.787421479
Adjusted R Square 0.681132219
Standard Error 8.784418197
Observations 7

ANOVA
df SS MS F Significance F
Regression 2 1143.3 571.7 7.4083 0.04519
Residual 4 308.66 77.17
Total 6 1452

Coefficients S.E t Stat P-value Lower 95%Upper 95%


Lower 95.0%
Upper 95.0%
Intercept 52.73475708 16.868 3.126 0.0353 5.901422 99.5681 5.901 99.56809
X Variable 1 -2.871742278 1.4361 -2 0.1162 -6.85891 1.11542 -6.859 1.115422
X Variable 2 0.84740991 0.5515 1.537 0.1992 -0.68378 2.3786 -0.684 2.378602

a) Let the regression eqution be Y=a+b1X1+b2X2


Hence, from output regression equation becomes
Y=52.73-2.8X1+0.8X2
which is required equation.

b) a= 52.73 b1= -2.8 b2= 0.84


X1= 9 X2= 15

Then,efficiency Y= 40.13

c) Coefficient of dertermination(R^2)= 0.78


Standard error= 8.78

d) Test for regression coefficient b1:


H0:regression coefficient is not significant
H0:regression coefficient is not signifiacnt

Level of significance:
alpha= 5%

Test statistics:
t= 1.99

https://genuinenotes.com
https://genuinenotes.com

Critical value:
p= 0.12

Decision:
Since,p value >alpha so we do not reject H0.
Hence, we conclude that reggression coefficient is not significant.

Test for regression coefficient b2:


H0:regression coefficient is not significant
H0:regression coefficient is not signifiacnt

Level of significance:
alpha= 5%

Test statistics:
t= 1.54

Critical value:
p= 0.19

Decision:
Since,p value >alpha so we do not reject H0.
.Hence, we conclude that reggression coefficient is not significant.
Test for overall regression model.
H0: Regression model is not significant.
H1: Regression model is significant.

Level of significance:
alpha= 5%

Test statistics:
F= 7.41

Critical value:
p= 0.045

Decision:
Since,pvalue<alpha so we reject H0. Hence we conclude that model is significant.

QN6).The following information has been gathered from a random sample of apartment renters in a city.
We are trying to predict rent(in dollars per month) based on the size of apartment(number of rooms)
and the distance
Rent(Dollar) 360 1000 450 525 350 300
Number of rooms 2 6 3 4 2 1
Distance 1 1 2 3 10 4
from downtown
a.Obtain the multiple regresssion eqution.
b.If some one is looking for a two bed apartment 2 miles from down town, what rent he expect to pay?
c.Compute coefficient of determination and standard error.

https://genuinenotes.com
https://genuinenotes.com

d.Test the significance of each of regression coefficients.


e.Test the overall regression model.
Solution:
Y X1 X2
360 2 1
1000 6 1
450 3 2
525 4 3
350 2 10
300 1 4
SUMMARY OUTPUT

Regression Statistics
Multiple R 0.956889427
R Square 0.915637376
Adjusted R^2 0.859395627
S.E 97.08638239
Observations 6

ANOVA
df SS MS F Significance F
Regression 2 306910 2E+05 16.28 0.024503
Residual 3 28277 9426
Total 5 335188

Coefficients S.E t Stat P-value Lower 95%Upper 95%


Lower 95.0%
Upper 95.0%
Intercept 96.45805593 118.12 0.817 0.474 -279.454 472.371 -279.5 472.3705
X Variable 1 136.4846871 26.864 5.081 0.0147 50.99114 221.978 50.99 221.9782
X Variable 2 -2.403462051 14.171 -0.17 0.8761 -47.5017 42.6948 -47.5 42.69476

Let Y be Rent,X1 be No of rooms and X2 be Distance from downtown.


i. Then multiple regression equation y on x1 and x2 is: Y=a+b1X1+b2X2

Y=96.45+136.48X1-2.4X2

ii. Here, a= 96.45


b1= 136.48
b2= -2.4
X1= 2
X2= 2
Rent= 364.6

iii. Coefficient of Determination(R^2)= 0.92


Standard Error(SE)= 97.09

iv. Test for regression coefficient b1:


H0:regression coefficient is not significant
H1:regression coefficient is significant

https://genuinenotes.com
https://genuinenotes.com

Level of significance
alpha=5%

Test Statistics
t= 5.08

Probability Value
p= 0.014

Decision
Since,p-value < alpha we donot reject H0.Hence, regression coefficient is significant

Test for regression coefficient b2:


H0:regression coefficient is not significant
H1:regression coefficient is significant

Level of significance
alpha=5%

Test Statistics
t= 0.17

Probability Value
p= 0.87

Decision:
Since,p-value > alpha we donot reject H0.Hence, regression coefficient is not
significant

Test for overall regression model:


H0:Regression model is not significant
H1:Regression model is significant

Level of Significance
alpha=5%

Test Statistics
Ftab= 16.28

Critical Value
p= 0.024

Decision:
Since p <alpha so we reject H0.Hence,overall regression model is significant

https://genuinenotes.com
https://genuinenotes.com

Q.N.7)The following data represents the layout of CRD of 4 treatments A,B,C and D.
A 4 8 7 3
B 5 9 4 4
C 10 6 8 5
D 9 4 6 10
Carry out the analysis of design.
Solution:
Hypothesis:
H0: There is no significant difference between mean of four treatments.
H1: There is significant difference between mean of four treatments.
Level of significance:
alpha= 5%

Anova: Single Factor

SUMMARY
Groups Count Sum AverageVariance
Row 1 4 22 5.5 5.6667
Row 2 4 22 5.5 5.6667
Row 3 4 29 7.25 4.9167
Row 4 4 29 7.25 7.5833

ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 12.25 3 4.083 0.6853 0.578017 3.49029
Within Groups 71.5 12 5.958

Total 83.75 15

Test statistics:
F= 0.68

Critical value:
p-value= 0.57

Decision:
Since,p_value>alpha so we donot reject H1.
Hence, we conclude that there is no significant difference between mean of four treatments.

Q.N.8) The layout of CRD of three treatments with four replication is given below:
A 6 9 12 14 41
B 12 7 10 12 41
C 9 10 8 20 47
Test whether there is significant difference between mean of three treatments.
Solution:
Hypothesis:
H0: There is no significant difference between mean of three treatments.
H1: There is significant difference between mean of three treatments.

https://genuinenotes.com
https://genuinenotes.com

Level of significance:
alpha= 5%

Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance
Row 1 5 82 16.4 198.3
Row 2 5 82 16.4 193.3
Row 3 5 94 18.8 271.7

ANOVA
Source of Variation SS df MS F P-value F crit
Between Groups 19.2 2 9.6 0.043419 0.95766 3.885
Within Groups 2653.2 12 221.1

Total 2672.4 14

Test statistics:
F= 0.043

Critical value:
p-value= 0.957

Decision:
Since,p_value>alpha so we donot reject H1.
Hence, we conclude that there is no significant difference between mean of four treatments.

Q.N)9.The following data set represents the layout of RBD of 4 treatments


Treatment B1 B2 B3 B4
A 8 10 14 7
B 9 12 8 18
C 6 10 14 9
D 12 11 10 14
Carry out analysis of design.
Solution:
h0:There is no significant difference between mean of 4 treatments
h0:Blocks are homogenous
h1:There is significant differnce
h1:Blocks are not homogenous

Level of significance
alpha=5%

Test Statistics
Anova: Two-Factor Without Replication

https://genuinenotes.com
https://genuinenotes.com

SUMMARY Count Sum AverageVariance


A 4 39 9.75 9.5833
B 4 47 11.75 20.25
C 4 39 9.75 10.917
D 4 47 11.75 2.9167

B1 4 35 8.75 6.25
B2 4 43 10.75 0.9167
B3 4 46 11.5 9
B4 4 48 12 24.667

ANOVA
Source of Variation SS df MS F P-value F crit
Rows 16 3 5.333 0.4507 0.723016 3.86255
Columns 24.5 3 8.167 0.6901 0.580606 3.86255
Error 106.5 9 11.83

Total 147 15

Ft= 0.45
Fb= 0.69

Critical value
pt= 0.72
pb= 0.58

Decision for Treatment:


since,pt>alpha so we donot reject h0.Hence.there is no significant difference between 4 treatments

Decision for Block:


Since,pb>alpha we donot reject h0.hence Blocks are homogenous.

Q.N.10) The following table represents the layout of RBD:


Treatments/Blocks: B1: B2: B3: B4:
A 14 17 10 20
B 20 16 19 16
C 18 18 15 12
Carry out the analysis.
Solution:
Hypothesis:
H0: There is no significant difference between mean of four treatments.
H0: Blocks are homogeneous.
H1: There is significant difference between mean of four treatments.
H1: Blocks are not homogeneous.

https://genuinenotes.com
https://genuinenotes.com

Level of significance:
alpha= 5%

Anova: Two-Factor Without Replication

SUMMARY Count Sum AverageVariance


Row 1 4 61 15.25 18.25
Row 2 4 71 17.75 4.25
Row 3 4 63 15.75 8.25

Column 1 3 52 17.33 9.3333


Column 2 3 51 17 1
Column 3 3 44 14.67 20.333
Column 4 3 48 16 16

ANOVA
Source of Variation SS df MS F P-value F crit
Rows 14 2 7 0.5294 0.614125 5.14325
Columns 12.91666667 3 4.306 0.3256 0.807367 4.75706
Error 79.33333333 6 13.22

Total 106.25 11

Ft= 0.52
Fb= 0.32

Critical value:
p value for treatment= 0.61
p value for block= 0.8

Decision:
For treatment,
Since,p-value>alpha so we do not reject H0.
Hence, we conclude that there is no significant difference between four treatments.
For block,
Since,p-value>alpha so we do not reject H0.Hence,we conclude that block is homogeneous.

https://genuinenotes.com

You might also like