Description
CENG222
Statistical Methods for Computer Engineering
Homework 4
Student Information
Full Name : Yavuz Selim Yesilyurt
Id Number : 2259166
Answer 9.10
The given information describes that the from a sample of 200 items 24 defective items were found. We can calculate the sample proportion of defective items as follows:
Also, for the 96% confidence interval we will have a significance level of α = 0.04 and from standard normal table we can check its value which is 2.054.
a)
With the information we obtained above, let us construct a 96% confidence interval for the proportion of defective items as follows:
96% Confidence Interval = ˆ
b)
First let us state our hypotheses:
H0 : p ≤ 0.1 and HA : p > 0.1
And as level of significance we have α = 0.04 and α = 0.15 values. Let us calculate the test statistic and then find the p value to determine whether to accept or reject the Null hypothesis (H0):
Find the p value:
p = P(Z > Z0)
= 1 − P(Z ≤ 0.943)
= 1 − 0.82716 (From Std Norm Table)
= 0.17284
In Conclusion, we see that the p value (0.17284) is greater than the given significance levels (0.04 and 0.15), so we fail to reject the null hypothesis and conclude that there would be sufficient evidence to say that the claim is incorrect.
Answer 9.12
We are given:
x¯ = 0.62, σ = 0.2 and n = 52.
a)
To construct a 95% confidence interval for the population mean resistance first let us find our level of significance at 95% which is α = 0.05 and from Standard Normal table it has value of 1.96. So:
95% Confidence Interval = ¯
b)
The probability that resistance is 0.62 ohms or higher can be found as follows:
= 1 − 0.764545 (From Std Norm Table)
= 0.235455
Answer 10.3
From the given random number generator data with N = 100, after arranging data into increasing order, let us form a continuous type frequency table of the data which is given below:
Class interval Frequency
below -2.0 4
-2.0 to -1.5 4
-1.5 to -1.0 15
-1.0 to -0.5 9
-0.5 to 0 22
0 to 0.5 15
0.5 to 1.0 12
1.0 to 1.5 11
1.5 to 2.0 7
2.0 and above 1
Total 100
a)
Using the table of normal distribution; the table of expected, observed frequencies and other required columns comes out to be:
Class interval obsi expi χ2
below -2.0 4 3.32 0.14
-2.0 to -1.5 4 5.32 0.33
-1.5 to -1.0 15 10.02 2.48
-1.0 to -0.5 9 15.14 2.49
-0.5 to 0 22 18.38 0.71
0 to 0.5 15 17.92 0.48
0.5 to 1.0 12 14.03 0.29
1.0 to 1.5 11 8.82 0.54
1.5 to 2.0 7 4.46 1.45
2.0 and above 1 2.59 0.97
Total 100 100 9.88332
Now to test the hypothesis at 5% significance level whether the given data follows a normal distribution, we need to calculate the test statistic, which can be calculated as follows:
And degrees of freedom in this case is:
v = n − 1
= 10 − 1
= 9
The p value for the above value of test statistic at 9 degrees of freedom can be found from table A6 and founded to be between 0.2 and 0.8, which is more than the significance level 0.05. We conclude that there is no evidence against the data follows a normal distribution. b)
The pdf of Uniform distribution is given by:
In this problem we have our a = −3, b = 3. We need to calculate the table of expected, observed frequencies and other required columns again for Uniform distribution, which comes out to be:
Class interval obsi expi χ2
below -2.0 4 16.67 9.63
-2.0 to -1.5 4 8.33 2.25
-1.5 to -1.0 15 8.33 5.33
-1.0 to -0.5 9 8.33 0.05
-0.5 to 0 22 8.33 22.41
0 to 0.5 15 8.33 5.33
0.5 to 1.0 12 8.33 1.61
1.0 to 1.5 11 8.33 0.85
1.5 to 2.0 7 8.33 0.21
2.0 and above 1 16.67 14.73
Total 100 100 62.42
Now to test the hypothesis at 5% significance level whether the given data follows a Uniform distribution, we need to calculate the test statistic, which can be calculated as follows:
And degrees of freedom in this case is:
v = n − 1
= 10 − 1
= 9
The p value for the above value of test statistic at 9 degrees of freedom can be found from table A6 and founded to be < 0.001, which is much lower than the significance level 0.05. We conclude that there is strong evidence against the data follows a Uniform distribution.
c)
According to the central limit theorem, theoretically it is possible that a data follows Normal and Uniform distributions simultaneously for a large sample.
Answer 10.9
Let us first state our Null and Alternative hypotheses:
H0 : all three section’s performance is equal
HA : all three section’s performance is not equal
We have our level of significance as α = 0.05. Now let us again create a table of expected, observed frequencies and other required columns and perform a Chi-Square test. Note that this time we have 3 samples and we will draw the table in a slightly different fashion. Each column shows a section and each row shows a grade. There are three numbers in each entry which corresponds to:
Observed
Observed – Expected χ2
Grade S01 S02 S03 Total
A 40
5.71
0.95 20
-8.57
2.57 20
2.86
0.48 80
0
4
B 50
2.86
0.17 40
0.71
0.01 20
-3.57
0.54 110
0
0.73
C 20
-5.71
1.27 25
3.57
0.6 15
2.14
0.36 60
0
2.22
D 2
-1.86
0.89 5
1.79
0.99 2
0.07
0 9
0
1.89
F 8
-1
0.11 10
2.5
0.83 3
-1.5
0.5 21
0
1.44
Total 120
0
3.4 100
0
5.01 60
0
1.88 280
0
10.28
As can be seen from the last row, last column of our table, χ2 of the total is equal to 10.28 and we have a v = 8 degrees of freedom.
The p value for the above value of test statistic at 8 degrees of freedom can be found from table A6 and founded to be between 0.8 and 0.2, which is greater than the significance level 0.05.
So in conclusion, Since, the p value greater than the given significance level 0.05, so we fail to reject the null hypothesis and conclude that the three sections performance is equal.




Reviews
There are no reviews yet.