You are on page 1of 4

Excersise I

P(xc -0.7) = -

N/ 0.7,17
-

0.2420
=

P(-0.7Xx -0.3) P(2x 0.3) =


-
-

P(z(-0.3) -v( 0.3,1)


=
- -

10.7,1) 0.1401
=

P(-0.32X(0.3):P(2(-0.3) vN( -0.3,1) 1-0.3,1) 0.2358


= - =

P(0.3 x 0.7) P(2<0.2) -P(220.3) wN(0.7,1)


=

10.3,1) 0.1401
=
- =

p(x)0.2) 1
= -

P(2 (0.7) 1
= -
-N(0.7,1) 0.2420 =

category observed Proportion Expected (0-E)YE


Frequency (0) (P) frequency (E)
0.242
300x0.242(73 72.672/72.6 -

1 -

0.7 73
72.6
=

=0.0022
-
0.7 to
39 0.1401
300 x0. 1401 134 42.037442.03
-

0.3 42.03
=
=0.2184

0.3 to 182-70.747470.74
0.2358300x0.2338
-

82
0.3 70.74
=
=1.7423

0.3 to
49 0.1401 300 x0.1401 (49-42.033442.03
0.7 42.03
=
=1.1559

300x0.242157-72.6)%72.6
I 0.7 37 0.242
= 72.6 3.3521
=

Totall 300 1.000 300 6.5209

of Freedom
Teststatistic:
Degrees
[(10- EY/E)
=
x
=

6.52
=
If n
=
-
1 4 =
Excerise I

The statistical test


being used is Y=
[10E)" with 2 0.05
=

#of Observed Arrival x

Arrivals frequency Observed x 192 =

0 7 0 84
18

i
18 =2.3
25 50
51 the Poisson distribution

i
We can now use

48 table of the
to determine the
probability
S 25 # of arrivals
total 84 192

# of Expected Expected
Arrivals probabilities Frequencies we can now use these
0 0.1003 (0.1003)(82) 8.42
=

frequencies to complete the


0.2300 10.2306)(84):14.37 Observed Chi-square value

i 0.2652 (0.2652)(84) 22.28=

6.2033 (0.2033)(84) 17.08


=

0. 1164 10.1169(84) 4.82=

tofa? 0.0837 10.0837)(84) 7.03 =

1.00 84.00

hii I I I
Arrivals ObservedlyExpected (E) (0-E)Y/ E Conclusion

??
0
is
8.42 The observed Chi-square value
I 19.37 1.74 is not greater then the critical
25 22.28 0.33 of 9.4877,50
Chi-square value
0.0
17.08 we do not reject No. The
9.82 0.48 observed data follows a poisson
7.03 0.59 distribution.
8484.00 1.74
Iapol
think
I the explanitory
variable is the class (first, second,

ir/win)tohl Itireonce painene number


&

in
of
the titanic:
passengers

survived
who survived

2. aD P
The distribution for survival Margin distribution for class
marginal
survival Class
Yes No total 1st 2nd 3rd total
500/1309809/1309 100%
138%) (62%) 323/1309272/1309209/1309100%.
125%) (21%) (54%)

3.Iwould choose the conditional distribution of survival for each level of


class since the number of
passengers who survived depended on

their class

4. conditional distribution ofsurvival on eachlevel ofClass


cD Ist class b) Ind Class
NO

Me? Isoiin
Yes
200/323 123/323
161.9%) 138.1%) 1100%

c) 3rd class
Yes No

181/769525/709,00
(26%) (74%)

S. X:the class of passengers


Excersise 4

CD # ofbeds, X 23,29,29,35,42,46,50,54,64,66,76,78
=

FTE's, y 64,95, 102, 118, 126, 125, 138, 178, 156, 184, 176, 225
=

[x=542[y 1692 =
Sxx 2x2 -([x)Yn 33044-5922/12
= =
3838.667
=

\x233044(y2=260136Syy 2y2 (y)Y/n 260136 =


- = - 16422/12 21564
=

[xy 92038=

Sxy 2xy=
-

(x[y)/n 42038 -(592x1692)/12 8566


= =

correlation coefficient, r x(xxx


sxy) =

83662/(3838.667x215647
=

0.9415062
=

b) Slope ofthe line, b)


Sxy/Sxx 8566/3838.667 2.231504
regression
= =
=

x 2 x/n 342/12 44.33333


=

= =

i 2y(n
= 1692/12
= 14)
=

interceptthe line y-b1x


=

=141-2.231504 x 49.33333 30.41248


=

Therefore the complete regression line equation is:

30.91248 + 2.231504x
y
=

You might also like