You are on page 1of 10

Assignment 9 - Team 4

Members: Ananth Ramesh


Shikhar Goyal
Tanish Gupta
Qian Cui
Vinay Sagar Mudlapur

Date: 10/22/2018

1)

Hypotheses-

Ho: p1=3/9; p2=4/9; p3=2/9


Ha: At least one of p1, p2, p3 are not equal to the given values

Total ratings - N= 69+102+45 = 216

Observed Values Expected Values (Observed-Expected)^2/ Expected


69 72 0.125
102 96 0.375
45 48 0.1875

Chi-squared test: 0.6875 Sum (X^2)

Chi-squared critical value: given significance level is 0.1,


alpha= 0.1

Hence, X^2 critical value is = 4.60517

Since X^2 < X^2 critical (0.6875<4.605), we can conclude that P>0.1 and hence Ho should not be rejected.
2)

a)
Since the intervals have equal probability, we can divide them into 5 equal parts and width of each part is 1/5= 0.2
For the function fo(x)= exp(-x), we have
First Interval -
∫e^(-x)dx = 0.2
1-exp(-x) = 0.2 exp(-x)=1-0.2=0.8
x= 0.223144
Therefore, the first interval is [0,0.223144)

Second Interval-
∫e^(-x)dx = 0.4
1-exp(-x) = 0.4
x= 0.510826
Therefore, the second interval is [0.223144,0.510826)

Third Interval-
∫e^(-x)dx = 0.6
1-exp(-x) = 0.6
x= 0.916291
Therefore, the third interval is [0.510826,0.916291)

Fourth Interval-
∫e^(-x)dx = 0.8
1-exp(-x) = 0.8
x= 1.609438
Therefore, the fourth interval is [0.916291,1.609438)

Fifth Interval-
∫e^(-x)dx = 1.0
1-exp(-x) = 1.0
x= Err:502 ∞
Therefore, the fifth interval is [1.609438,∞)

b)
Hypotheses-
Ho: p1=p2=p3=p4=p5=0.2
Ha: at least one of the above is not equal to 0.2
Degree of freedom = (5-1) = 4 N=40 pi=0.2
Values-
0.1 0.99 1.14 1.26 3.24 0.12 0.26 0.8
0.79 1.16 1.76 0.41 0.59 0.27 2.22 0.66
0.71 2.21 0.68 0.43 0.11 0.46 0.69 0.38
0.91 0.55 0.81 2.51 2.77 0.16 1.11 0.02
2.13 0.19 1.21 1.13 2.93 2.14 0.34 0.44
Each Expected Cell Count N*pi= 8
Observed Cell Count Expected Cell Count X^2= 0.8698
6 8
8 8 X^2 Critical= 5.988617
10 8
7 8
Since X^2 is less than X^2 Crit
9 8 (0.8698<5.99), we fail to reject Ho
and all intervals are equal.
part is 1/5= 0.2
3)

a)
Since there are six equal intervals, we can consider them with six equal probabilities (1/6)
First Interval-
Area under curve= 0.00%
Z-score= #VALUE! (-∞) 0.5 0.67 0.833333
Area under curve= 16.67% 0 0.430727 0.967422
-0.96742
Therefore, first interval is [-∞,-0.96742)

Second Interval-
Area under curve= 16.67%
Z-score= -0.96742
Area under curve= 33.33%
-0.43073
Therefore, second interval is [-0.96742,-0.43073)

Third Interval-
Area under curve= 33.33%
Z-score= -0.43073
Area under curve= 50.00%
0
Therefore, third interval is [-0.43073,0)

Fourth Interval-
Area under curve= 50.00%
Z-score= 0
Area under curve= 66.67%
0.430727
Therefore, fourth interval is [0,0.43073)
Fifth Interval-
Area under curve= 66.67%
Z-score= 0.430727
Area under curve= 83.33%
0.967422
Therefore, fifth interval is [0.43073,0.9674)

Sixth Interval-
Area under curve= 83.33%
Z-score= 0.967422
Area under curve= 100.00%
#VALUE! (∞)
Therefore, sixth interval is [0.9674,∞)

b)
given mean and sd, Mean= 0.5
SD= 0.002
Z= (X-mean)/SD or X=Mean+(Z*SD)
Therefore, new intervals are-
First, 0.5+(-0.97*0.002) = 0.49806 [-∞,0.498065)
Second, 0.5+(-0.43*0.002) = 0.499139 [0.498065,0.499139)
Third, 0.5+(0*0.002) = 0.5 [0.499139,0.5)
Fourth, 0.5+(0.43*0.002) = 0.500861 [0.5,0.500861)
Fifth, 0.5+(0.97*0.002) = 0.501935 [0.500861,0.501935)
Sixth, 0.5+(∞*0.002) = ∞ [0.501935,∞)

c)
Hypotheses-
Ho: p1=p2=p3=p4=p5=p6=1/6
Ha: at least one of the above values are different
Values-
0.4974 0.4976 0.4991 0.5014 0.5008 0.4993
0.4994 0.501 0.4997 0.4993 0.5013 0.5
0.5017 0.4984 0.4967 0.5028 0.4975 0.5013
0.4972 0.5047 0.5069 0.4977 0.4961 0.4987
0.499 0.4974 0.5008 0.5 0.4967 0.4977
0.4992 0.5007 0.4975 0.4998 0.5 0.5008
0.5021 0.4959 0.5015 0.5012 0.5056 0.4991
0.5006 0.4987 0.4968

Observed Values- Expected Values- X^2


13 7.5 4.033333
5 7.5 0.833333
6 7.5 0.3
5 7.5 0.833333
7 7.5 0.033333
5 7.5 0.833333
Sum X^2= 6.866667

Chi-squared critical= 9.236357

Since X^2< X^2 Critical (6.87<9.24), we cannot reject null Hypothesis.


4)

Hypotheses-
Ho: P1i=P2j
Ha: Ho is not true

Since 24.82> table value, null hypothesis is rejected.


5)

Hypotheses-
Ho: Pij=Pi*Pj
Ha: Ho is not true
Since 64.65>13.28, null hypothesis is rejected.

You might also like