0% found this document useful (0 votes)
114 views6 pages

Statistical Analysis of Treatment Efficacy

This document contains 3 statistics problems and their solutions: 1) A test of whether a serum treatment was effective at reducing paralysis based on case data. The p-value was less than 0.05, so the serum was deemed effective. 2) A test of a manufacturer's claim that 95% of their equipment met specifications based on a sample where 18% were faulty. The z-values were greater than the critical values, so the claim was rejected. 3) A test of whether the proportion of trains arriving on time differed between two stations based on sample data. The z-value was less than critical, so no significant difference was found.

Uploaded by

dev
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)
114 views6 pages

Statistical Analysis of Treatment Efficacy

This document contains 3 statistics problems and their solutions: 1) A test of whether a serum treatment was effective at reducing paralysis based on case data. The p-value was less than 0.05, so the serum was deemed effective. 2) A test of a manufacturer's claim that 95% of their equipment met specifications based on a sample where 18% were faulty. The z-values were greater than the critical values, so the claim was rejected. 3) A test of whether the proportion of trains arriving on time differed between two stations based on sample data. The z-value was less than critical, so no significant difference was found.

Uploaded by

dev
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

ASSIGNMENT 4

STATISTICS FOR
ENGINEERS

MAT2001

DEVANG PIRTA
17BCI0125
1)In an infantile paralysis epidemic 500 persons
contracted the disease. 300 received no serumtreatment
and of them 75 became paralysed. Of those who received
serum treatment 65 became paralysed. Was the serum
treatment is effective?

CODE:
x=c(75,65)
n=c(300,200)
[Link](x,n,alternative="less")

OUTPUT:
2-sample test for equality of proportions with continuity
correction
Hence, we accept the hypothesis that the serum was effective, as
the p-value is less than the significance level.

2)A manufacturer claimed that at least 95%


of the equipment which he supplies to a
factory conformed to specifications. An
examination of a sample of 200 pieces of
equipment revealed that 18 were faulty. Test
his claim at a significance level of 0.05 and
0.01.
CODE:

P=5/100

Q=95/100

p=18/200

n=200
z=(p-P)/((P*Q)/n)^0.5
za=qnorm(0.95)
print(z)
print(za)
za1=qnorm(0.99)
print(za1)
OUTPUT:

3)Since the z value is greater than the zα for


1% and 5% levels of significance, we infer that
the manufacturer’s claim was false, thereby
rejecting the null hypothesis. On a certain day,
74 trains were arriving on time at Delhi station
during the rush hours and 83 were late. At New
Delhi there were 65 on time and 107 late. IS
there any difference in the proportion arriving
on time at the two stations?
CODE:

p1=74/(74+83)
n1=83+74
p2=65/(65+107)
n2=65+107
p=((p1*n1)+(p2*n2))/(n1+n2)
q=1-p
n=(1/n1)+(1/n2)
z=(p1-p2)/((p*q*n)^0.5)

print(z)

OUTPUT:
Since the z value obtained is less than the zα value, 2.58, we
accept the null hypothesis that there is no significant
difference between the proportion arriving on time at the two
stations.

You might also like