Biostatistics Hw
Biostatistics Hw
Q1
c). The 90% confidence interval, (1.058, 3.076) doesn't contain the value 0; Therefore, the two groups
before medication and after the medication is statistically significant.
The 99.9% confidence interval, (-0.305,4.439) contains the value 0; Therefore, the two groups before
medication and after the medication is NOT statistically significant.
d.)
H 0 : μd =0
H 0 : μd ≠ 0
Let α =0.10
So, test statistic t:
2.067
t=
2.219
√15
2.067
¿
0.5729
¿ 3.61
p-value = =T.DIST.2T(3.61,14) = 0.002841
Since p value is less than significance value, therefore reject the null hypothesis.
e.)
H 0 : μd =0
H 0 : μd ≠ 0
Let α =0. 01
2.067
t=
2.219
√15
2.067
¿
0.5729
¿ 3.61
p-value = =T.DIST.2T(3.61,14) = 0.002841
Since p value is less than significance value, therefore reject the null hypothesis.
Q2
Observations X X^2
1 5.5 30.25
2 5.1 26.01
3 6.5 42.25
4 5.2 27.04
5 6.4 40.96
6 6.2 38.44
7 5.9 34.81
Total 40.8 239.76
Sample mean =
∑ X i = 40.8/7 = 5.8286
n
Sample variance, s2 is:
( ( ))
n n 2
1 1
2
s=
n−1 ∑ Xi − 2
n ∑ Xi
i=1 i=1
( )
2
2 1 40.8
s= 239.76−
7−1 7
2
s =0.3257
So, sample standard deviation is
s= √ s2 =0.5707
a)
Hypothesis:
H 0 : μ=5.828571
H 1 : μ ≠ 5.828571
Test statistic, t
X−μ 0 5.8286−5.8286
t= = =0
s 0.5707
√n √7
Degrees of freedom = n-1 = 7-1 = 6
Since absolute value of test statistic is less than critical value, we fail to reject H0, at 5% level of
significance.
b)
Hypothesis:
H 0 : μ=5. 2
H 1 : μ ≠ 5. 2
Test statistic, t
X−μ 0 5.8286−5.2
t= = =2.914
s 0.5707
√n √7
Degrees of freedom = n-1 = 7-1 = 6
Since absolute value of test statistic is greater than critical value, we reject H0, at 5% level of
significance.
c)
Hypothesis:
H 0 : μ=5.2
H 1 : μ ≠ 5. 2
Test statistic, t
X−μ 0 5.8286−5.2
t= = =2.914
s 0.5707
√n √7
Degrees of freedom = n-1 = 7-1 = 6
Since absolute value of test statistic is less than critical value, we fail to reject H0, at 1% level of
significance.
d)
Changing alpha from 0.05 to 0.01 change the decision from rejection to non rejection of null hypothesis,
as changing alpha will change the critical value and also it makes the difference in comparing with P
value.
e)
We want to test for the population mean so we use t-dist or normal. Since we have unknown population
SD and we assume that the data follows normal population we will use t-dist The assumption validates
the test since n < 30.
a)
The test is to check if the mean is 135 or not. So this is two tailed test
Ho = 135
H1≠ 135
n = 20 x =131.95 Sx =2.544
x−μ0
Test Stat = S x
√n
Where the null mean μ0 = 135
b)
=2 *1.7837E-05
p-value is the prob of getting as extreme (less than or greater than) as the sample mean using the null
mean as true pop mean.
c)
d)
This is important because this lower than the minimum level of acceptance of the null hypo. Hence now
we would reject the null hypothesis at 0.1%. There is sufficient evidence to conclude that the true
mean is not 135.
e)
p-value <=
= 3.5675E-05 = 0.00003
Smaller than this say 0.00002 would make p-value greater and we will not be able to reject the null.
f)
Q4
1)If hypothesized population mean value is lies between confidence interval then null hypothesis is
not rejected.
2)If hypothesized population mean value is lies outside from the confidence interval then null
hypothesis is rejected.
a) Confidence interval does not contain μ = -27. Therefore, reject null hypothesis.
b) Confidence interval does not contain hypothesized mean value ( μ=-8). Therefore, reject null
hypothesis.
c) Since the confidence interval contain hypothesized mean value ( μ=−14 ¿, so we fail the reject null
hypothesis.
Q5
In statistical hypothesis testing a type I error is the rejection of a true null hypothesis, while a type II
error is the non-rejection of a false null hypothesis.
a. Here we rejected the null hypothesis, which might be true hence it is Type I Error
b. Here we failed to reject the null hypothesis which might be false, hence it is Type II Error.
Q6
a) Type I error = \alpha. If we make \alpha too big, the Type I error will increase and Type I error would
be more likely.
b) If we make \alpha too small, the type I error will decrease and Type II error will increase. Thus, Type II
error would be more likely.