0% found this document useful (0 votes)
26 views7 pages

R Assignment24

Uploaded by

kabrasamiksha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views7 pages

R Assignment24

Uploaded by

kabrasamiksha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

R – ASSIGNMENT

1. Suppose that the number of screws produced by a sophisticated machine per day has a

poisson distribution with mean 2.What is the probability that out of total production

Of the day, there is (i) no defective screw (ii) exactly two defective screws (iii)at least

One defective screw (iv)at most two defective screws.

Sol 1.

Given: lamda=2

Aim: To find the probability that out of total production of the day ,there is (i) no defective screw (ii)
exactly two defective screws (iii)at least one defective screw (iv)at most two defective screws.

Calculation:

Conclusion:

P(no defective screws) = 0.1353

P(exactly 2 defective screws)= 0.2707

P(at least one defective screw) = 0.5940

P(at most two defective screws) = 0.6767

2. The assumed adoption in an area is 60%.To verify the fact ,it is decided to investigate 10 randomly
selected couples.The investigation is repeated by 500 investigators.The number of adopter couples in
each set and the number of investigators are shown below ,Fit a binomial distribution.

No.of adopter couples 0 1 2 3 4 5 6 7 8 9 10


No.of 105
2 1 7 25 62 110 95 65 25 3
investigators
Sol 2.

Aim: To fit a binomial distribution for the given data

Calculations:

Conclusion:
x Frequency Raw Frequency Expected Frequency
0 2 0.0001 0
1 1 0.0018 1
2 7 0.0120 6
3 25 0.0465 23
4 62 0.1184 59
5 105 0.2067 103
6 110 0.2505 125
7 95 0.2082 104
8 65 0.1136 57
9 25 0.0367 18
10 3 0.0053 3

3..In a month there are 125 births in hospital A,of which 55 are affected by jaundice ,while in
two consecutive months the proportion of jaundice -affected babies among total of 260 babies
is 0.35.Is there any significant difference in the proportions of jaundice -affected babies in
two months.

Sol 3.
Aim: To check whether there is any significant difference in the proportions of jaundice -
affected babies in two months.

Hypothesis:
Null Hypothesis: There is no significant difference in the proportions of jaundice -affected
babies in two months.
Alternative Hypothesis: There is a significant difference in the proportions of jaundice -
affected babies in two months.

Calculations:

Conclusion:
Since, p=0.1114 lies between the confidence interval=(-0.0205,0.2005), we accept the null
hypothesis and conclude that there is no significant difference in the proportions of jaundice -
affected babies in two months.

4.A hotel manager is concerned with increasing the return rate for hotel guests. One aspect of first
impressions by guests relates to the time it takes to deliver the guest’s luggage to the room after
check –in to the hotel .A random sample of 20 deliveries on a particular day were selected in Wing A
and Wing B of the hotel. Determine whether there is a difference in the mean delivery time in the
two wings of the hotel.

wingA WIngB WingA WingB

10.7 7.2 9.5 8.9


9.9 6.7 10.9 10
11.8 9.3 10.6 9.3
9 9 11.1 5.3
9.4 6.6 8.9 9.2
11.7 8.5 11.8 9.3
8.4 8.9 10.6 8.4
9.8 8 9.1 6.6
13.7 7.6 12.4 10.6
9 6.4 9.9 6.8

Sol 4.

Aim: To check whether there is a difference in the mean delivery time in the two wings of the
hotel.

Hypothesis:

Null hypothesis: There is no significant difference in the mean delivery time in the two wings of
the hotel.
Alternative Hypothesis: There is a significant difference in the mean delivery time in the two
wings of the hotel.

Calculations:
Conclusion:

Since, p(0.0000075) is less than the level of significance(0.05) we reject the null hypothesis
and conclude that there is a significant difference in the mean delivery time in the two wings of
the hotel.

6. A company manager wants to know whether there is an influence on employee performance

Competence .He collected a sample of 40 employees’ data.

Sno 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Competence(X) 32 35 38 31 36 32 33 31 30 35 31 34 31 25 35
Performance(Y 36 39 49 41 38 36 37 41 40 43 36 35 34 40 40
)

(i) Find the correlation coefficient between competence and performance and interpret.

(ii) Find two regression lines and plot the lines.

Sol 6.

Aim: To find the correlation between competence and performance and interpret and to find the
regression lines.

Calculations:
Conclusion: (i) The correlation between competence and performance is 0.3401. Therefore, the
correlation between the two variables is weak.

(ii) The regression line of x on y is- x = 21.68 + 0.28y and the regression line of y on x is-
y = 25.537 + 0.413x

7. Two independent groups of 14 children were tested to find how many digits could repeat from
memory after hearing them . The results are as follows:

A 288 286 258 266 248 257 244 259 262 250 271
B 310 286 307 328 366 391 317 326 377 397 314
Is the difference between mean scores of the two groups significant?

Sol 7.

Aim:

To check whether there is any significant difference between mean scores of the two groups

Hypothesis:

Null Hypothesis: There is no significant difference between mean scores of the two groups.

Alterative Hypothesis: There is a significant difference between mean scores of the two groups.

Calculations:

Conclusion:

Since, p(0.0000048) < Level of significance(0.05), we reject the null hypothesis and conclude that
there is a significant difference between mean scores of the two groups.

You might also like