Professional Documents
Culture Documents
TEST 1
09 February 2011
INSTRUCTIONS
Please make sure that this question booklet has FOUR (4) printed
pages including the front page.
NAME: ___________________________________________
LECTURER: _______________________________________
Question 1:
The breaking strength X of a certain rivet used in a machine engine has normally
distributed with a mean 5000 psi and standard deviation 400 psi. A random sample of 36
rivets is taken.
(i) What is the probability that the sample mean falls between 4800 psi and 5200 psi?
(5 Marks)
(ii) What sample n of rivets would be necessary in order to have the probability for
sample mean between 4900 and 5100 is 0.99?
(5 Marks)
Solution
4002
X : N
5000,
36
4800 - 5000 5200 - 5000
P(4800 < X < 5200) = P( <Z< )
400 / 6 400 / 6
= P( -3 < Z < 3)
= 0.4987 + 0.4987 = 0.9974
= 0.9974
4002
X : N
5000,
n
P (4900 < X < 5100) = 0.99
4900 - 5000 5100 - 5000
P( <Z< ) = 0.99
400 / n 400 / n
P (- Za < z < Za ) = 0.99
a = 1 - 0.99 = 0.01
a
= 0.005
2
Z 0.005 = 2.5758
5100 - 5000
= 2.5758
400 / n
n = 106.1559 107
2
Question 2:
A scientist interested to know whether there is a difference in the average daily intakes of
dairy product between men and women. He took a sample of n = 50 adult women and
recorded their daily intakes of dairy products in grams per day. He did the same for adult
men. A summary of his sample results is listed in table below:
Men Women
Sample size 50 50
Sample mean 756 762
Sample standard deviation 35 30
(i) Construct a 95% confidence interval for the difference in the average daily intakes of
dairy products for men and women.
(4 Marks)
(ii) Can you conclude that there is a difference in the average daily intakes for men and
women? Test the hypothesis using a = 0.05 .
(6 Marks)
Solution
95% CI for the difference in the average daily intakes of dairy products for
men and women:
S 21 S 2 2
(X )
1 - X2 Za / 2
n1
+
n2
Za / 2 = 1.96
352 302
( 756 - 762 ) 1.96 +
50 50
-6 12.7776
[ -18.7776, 6.7776]
3
Z=
( x - x ) -( m -m ) =
1 2 1 2 756 - 762
= -0.9204
s12 s2 2 352 302
+ +
n1 n2 50 50
Since -0.9204 does not less than -1.96 and also not exceed than 1.96, we
fail to reject H 0 (accept H 0 ) and that is, there is not sufficient evidence to
declare that there is a difference in the average daily intakes of dairy
products for men and women:
Question 3:
A Human Resource manager of a large firm believes there may be a relationship between
absenteeism and age of workers. A random sample of 10 workers were chosen and the
results below were obtained.
(i) Find the regression line of day absent in a year (Y) on age (X).
Given:
x = 421 ; y = 103 ; xy = 3817 ; x 2 = 19661 ; y 2 = 1221
(7 Marks)
(ii) Predict how many days a 45 year-old worker would be absent from work.
(2 Marks)
4
Solution
i)
x=
x = 421 = 42.1 y=
y = 103 = 10.3
n 10 n 10
n
SS xy = xi yi -
1 n n
( 421) ( 103) = -519.3
i =1
xi yi = 3817 -
n i =1 i =1 10
( 421) = 1936.9
2 2
1 n
n
SS xx = x - 2
ixi = 19661 -
i =1 n i =1 10
SS -519.3
b = xy = = -0.27
SS xx 1936.9
ii)
$
y = 21.667 - 0.27 ( 45 ) = 9.517 10 days
iii)
b = -0.27 . This means if age increase by one year, the number of days
absent would decrease by o.27 days.
5
6
LIST OF FORMULAS
Binomial distribution
X : B ( n, p ) , P ( X = x ) = nCx p x q n - x
For m 1 - m 2:
s2 s2
( X 1 - X 2 ) ~ N m1 - m2 , 1 + 2 ,
Normal distribution n1 n2
x-m
x : N ( m ,s 2 ) , z =
s
( X 1 - X 2 ) - ( m1 - m2 )
Sampling distributions ztest =
s 12 s 22
s 2 +
X ~ N m , n1 n2
n
( X 1 - X 2 ) - ( m1 - m 2 )
ttest = , with n = n1 + n2 - 2
s 1 s 2
2 2
1 1
X 1 - X 2 ~ N m1 - m 2 , + sp +
n1 n2 n1 n2
pq
p ~ N p, ( n1 - 1) s12 + ( n2 - 1) s2 2
n Where Sp =
n1 + n2 - 2
Confidence interval For P:
p - p 0
s 2 pq ztest =
x za 2 , s is known P~ N p, and p 0 (1 - p 0 )
n n
n
s 2
x za 2 , s is unknown, n 30 For P1 -P2 :
n
s 2
x ta 2 ,n -1 , s is unknown, n < 30
n p1 (1 - p1 ) p2 (1 - p2 ) and
P1 - P2 ~ N p1 - p2 , +
n1 n2
) ))
pq x
. p za where p =
2 n n
( p1 - p 2 ) - ( p1 - p2 ) x1 + x2
ztest = with p =
Hypothesis testing: pq
pq n1 + n2
+
For m : n1 n2
S S xy
a = y - b x b = xy r=
S xx S yy S xx