Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

CONFIDENTIAL 1 CS/JUL 2022/STA404

UNIVERSITI TEKNOLOGI MARA


EXERCISE

COURSE : STATISTICS FOR BUSINESS AND SOCIAL


SCIENCES
COURSE CODE : STA404

INSTRUCTIONS TO CANDIDATES

1. This question paper consists of SIX (6) questions.

2. Please check to make sure that this examination pack consists of :


i) the Question Paper
ii) a three–page Appendix 1

3. Answer ALL questions in English.

NAME:
Nur Ayunanie Najma Binti Abdul Hamid
STUDENT NO:

2 0 2 1 I 0 6 0 6 9

GROUP:
AM 228 BB

PLEASE SUBMIT THIS ASSESSMENT ON THE REQUIRED TIME


This assessment paper consists of 10 printed pages
FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL
CONFIDENTIAL 2 CS/JUL 2022/STA404

QUESTION 1

A researcher wanted to determine the relationship between the number of drinks sold in a
café of small theme park with the number of visitors. The data of a week has been
collected:

Day Number of visitors, X Number of drinks sold, Y

Monday 218 148


Tuesday 100 76
Wednesday 122 100
Thursday 156 126
Friday 289 194
Saturday 115 110
Sunday 134 114

Correlations
DRINK VISITOR
DRINK Pearson Correlation 1 A
Sig. (2-tailed) .000
N 7 7
VISITOR Pearson Correlation A 1
Sig. (2-tailed) .000
N 7 7

Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
Model B Std. Error Beta t Sig.
1 (Constant) 35.834 9.792 3.660 .015
VISITOR B .056 .974 9.660 .000
a. Dependent Variable: DRINK

a) Calculate the A value.


(3 marks)

b) Compute the B value. Hence, interpret the value in the context of the problem.
(3 marks)
FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL
① a) father

r-assny.sn:1134#fSyyEnt-
.

211446
&y= 868
r -
-

Eng - Ga)Gg )

sjh.46288fzw-CEI%FF-E.IT
2Ny=t557l2

155112-(11%1.868)
=

hit

r=

ÉÉTFÉ- 18687] T
a-
09742 .

valnetbb-Y.sn?---?Yn,-!Y#?)-:forweylday
T
interest 'The
number of visitors the number
/

will increase by
=
155712-1113471868 ) of drinks sold

2"Y46-¥É\
0.5441 .

c) y=atbN
-0-5442
'
. = 35-884-10-544212671
+181.1354 .
CONFIDENTIAL 3 CS/JUL 2022/STA404

c) Using the regression equation obtained from the output, estimate the number of drinks
sold if there are 267 visitors in a day.
(2 marks)

QUESTION 2

A large food processing firm is considering a new recipe for its cheese cake. However the
manager from the food processing department believes that the existing recipe is better
than the new recipe. To investigate this belief, the firm conducting a preliminary trial. In a
preliminary trial, a panel of 10 tasters was asked to score cake made from both the existing
and the new recipe for sweetness. The results, on a scale from 0 to 100 of the tastes
preferences when given a cheese cake. The following results are as follows:

Group Statistics
Std. Error
Recipe N Mean Std. Deviation Mean
Score Existing Recipe 10 82.40 3.134 .991
New Recipe 10 78.00 4.761 1.506

Independent Samples Test


Levene’s Test t-test for Equality of Means
for Equality of
Variances

F Sig. t df Sig. (2- Mean Std. Error 95% Confidence Interval


tailed) Difference Difference of the Difference

Lower Upper

Equal .661 .427 2.441 18 .025 4.400 1.802 .613 8.187


variances
assumed
Score 2.441 15.567 .027 4.400 1.802 .570 8.230
Equal
variances not
assumed

a) State the null and alternative hypothesis statement for the test.
(1 mark)

b) Based on the result, what is the assumption for the variances of the score between the
existing and the new recipe? Use α = 0.05.
(3 marks)
FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL
② a) Ho hi M2
:
=

Hi hi:
> My .

b) Ito : of = o ?

Hi :O : to !

P -
value = 0-927
-

✗ =p og -

Destry five p Mme 0.427 2 ✗ do not


eppeeflfo
ton
0-08
-

, so .

Conclusion Equal minuet assumed


.

c) Hoshi =
hi

Hulk >Mr
4-Mme
0%25=0-0125
=


'

05
=

o
-

Decision : time p-ralneo.gg < do -05


,
,
so do hot hfaet Ho .

indicate that the


Conclusion :
there is affront evidence to

existing heap ts is better than the new


teceipt .
CONFIDENTIAL 4 CS/JUL 2022/STA404

c) Using the p-value, do the data provide sufficient evidence to indicate that the existing
recipe is better than the new recipe? Use α = 0.05.
(3 marks)

QUESTION 3

A mobile company held an end-of-year clearance sale. Listed are sale prices (RM) for
random samples of different tablets for three different brands. The price of the products is
shown in table below.

Brand
HUYEI SHAMSON LEMON
494 1685 3499
2355 4699 2769
2069 4849 1779
1088 4779 1898
681 2199 1898
587 2999 2699
379 4599 1898
1388 4549 2599
1539 954 3499

The data were analysed by using SPSS and the following result were produced.

ANOVA
PRICE
Sum of Squares df Mean Square F Sig.
Between Groups 24066394.963 2 12033197.481 Q .000
Within Groups O P 1112764.278
Total 50772737.630 26

a) State the response variable and factor for this study.


(2 marks)

b) Calculate the value of O, P and Q values.


(4 marks)

c) Assume the sales price of tablet is normally distributed. At the 5% significance level, are
the researchers’ claimed that there is significant different in each brand is true? Show
the relevant steps.
(4 marks)

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL


③ variable : sales price
-

factor :b mad .

b) ralne 0 :
50772737 -630 -
29066394 963 .

=
26706342 Gf -
.

Value P : 26-2
=
24 .

value Q
-420331974 A
fat 2764-273
=
to 81378844 .

c) Ho = Mi alla Ms =

Iti =
hit Maths , at least that two mean differ .

Ps :
Fo =
10-181378844
V4 f- ✗ Klinik F
=
=
, o or 2,24 =3 -40
-

Fo -40-88378844
guv =3 yo -

, to
inject to .

Condition then is
:

significant different in each brand ☐


time .
CONFIDENTIAL 5 CS/JUL 2022/STA404

QUESTION 4

A researcher believes more than half of clients in CIIMK Bank have waits before being
served by the executives is more than 16 minutes. Hence, in order to prove her claim, he
selects a sample of ten clients. The data recorded as in the following table.

Clients 1 2 3 4 5 6 7 8 9 10
Waiting Time
17 15 27 25 32 12 40 49 34 25
(in minutes)

Assume the waiting time is normally distributed. Do these data provide sufficient evidence
to prove the researcher believes’? Use α=0.05.
(7 marks)

QUESTION 5

A random sample of 60 students are asked regarding the type of platform they usually used
in watching movie. The data were collected and analyzed using SPSS. The results are
shown in the crosstabulation are as follow.

Platform watching movie * Gender of student Crosstabulation


Gender of student
Male Female Total
Platform watching Netflix Count 7 15 22

:
movie Expected Count 8.1 X 22.0
Disney+ Hotstar Count 5 4 9
Expected Count 3.3 5.7 9.0
iQiyi Count 1 8 9
Expected Count 3.3 5.7 9.0
Viu Count 5 3 8
Expected Count 2.9 5.1 8.0
Physical cinema Count 2 Y 6
Expected Count 2.2 3.8 6.0
Others Count 2 4 6
Expected Count 2.2 3.8 6.0
Total Count 22 38 60
Expected Count 22.0 38.0 60.0

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL


④ 7=17-115927-125-132 -112-140-149+34 -125

10
* =
27-6

N' =
8818 2--27.6 -

:fÉn)2 FEE
,
s
'

S = 11.54 .

Ito =M -46

He =M # 16

b- = u -
U 27.6 -16 -11--6
-

> T.gg 3. 6493


Fn Tro
=
3-1786
cv=df=n -1
of -10-1 = 9
to 05,9=1.833
.

HIS =3 .
17861 > for -4.833 / ,
so
Yat Ho .

i.
thump enough evidence to
prove the retractive clients
wat

more than 16 minutes -


CONFIDENTIAL 6 CS/JUL 2022/STA404

Chi-Square Tests
Asymptotic
Significance (2-
Value df sided)
Pearson Chi-Square 6.493a Z .261
Likelihood Ratio 6.832 5 .233
Linear-by-Linear Association .053 1 .818
N of Valid Cases 60

a) What is the condition for this test to be valid?


(1 mark)

b) Find the value of X, Y and Z.


(3 marks)

c) Proof that the Pearson Chi-Square value is 6.493.


(3 marks)

d) Given the p-value provided in the output, can it be concluded that the gender and the
type of platform watching movie are related? Use α=0.05.

-

(4 marks)

QUESTION 6

As an aid for improving students’ study habit, twenty students were randomly selected to
attend a seminar on the importance of education in life. Each students give their
responses on the number of hours they studied per week before the seminar and after the
seminar. The data were analyzed and the result as follow.

Paired Samples Test


Pair 1
Before - After
Paired Differences Mean 6.00000
Std. Deviation 7.41975
90% Confidence Interval of Lower 3.13119
the Difference Upper 8.86881
df 19
Sig. (2-tailed) .0001

By assuming the time required to complete the hike t is normally distributed. Answer the
following questions.

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL


⑤ a) 801 . of the mine of expected scale mustbe greater
than or
equal to 5-

b) ✗ = 22-0-8-1

=
13.9

Y = 6- 2

=
4

2 = IF = IR 1) -

G- 1)

(6-1) (2-1)
(e) G)
df : 5-

'
c) no =
Eloij -
Ei g)

Ei
9) G- 2.272
4%337+15Iq
" a

)

" 't 2-

l÷%
= -

+
+ +
I

7+14-571
'

"÷;) ¥: :
I
'

I -1
+
" "
+

I 4- 3. 8) '"
'

÷;)
+
Is
=
6.54b¥
d) Ho the two variables have relationship
.

: no

Hi The two variables


.

aw related .

P-value = 0-261 .

✗ =
0 -05

Daimon Paine (0-261)


: > a Coot ) do not ,
infect Ito .

It concluded that the and


Confusion be
gender the
:
can

type of platform watching movie am related .


CONFIDENTIAL 7 CS/JUL 2022/STA404

a) State ONE (1) assumption to apply this statistical analysis.


(1 mark)
-

Paired sample f- test .

b) Compute t-statistic for this study.


(2 marks)
✗= 0 -

(O
'

c) Using p-value method, at the 10% significance level, can it be concluded that attending
the seminar increase the number of hours the students studied per week.
(4 marks)

b) t :-D Ud -

Frn END OF QUESTION PAPER

6.00000-07.
1975/520lt
=

:3 6164 -

c) Ho :
old =
0

Hi : Md > O

p -

value =

-0%001
= 0.00005

✗ I 0.10

D: Since P (0-00005) L ✗ (0-10)


there is enough evidence /
conclude that
conclusion
µ attending the
"

seminar

increase the number of horns the student


student
per week .

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL


CONFIDENTIAL 8 CS/JUL 2022/STA404

APPENDIX 1 (1)

HYPOTHESIS TESTING

Null Hypothesis Test statistic


H0 :  = 0 x − 0
z=
σ2 unknown, large samples s n

H0 :  = 0 x − 0
t= ; df = n – 1
σ2 unknown, small samples s n
( x 1 − x 2 ) − (1 −  2 )
t= ; df = n1 + n2 – 2
1 1
sp +
H0 : 1 - 2 = 0 n1 n 2
12 =  22 and unknown (n1 − 1)s12 + (n 2 − 1)s 22
sp =
n1 + n 2 − 2

( x 1 − x 2 ) − (1 −  2 )
t=
s12 s 22
+
n1 n 2
H0 : 1 - 2 = 0 2
s12 s 22 
 n +
12   22 and unknown
 1 n2 
df = 2 2
 s12   s 22 
   
n1  n2 
  +  
n1 − 1 n2 − 1
d − d
H0 : d = 0 t= ; df = n – 1, where n is no. of pairs
sd n

(o ij − e ij ) 2
Hypothesis for categorical data 2 =  e ij

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL


CONFIDENTIAL 9 CS/JUL 2022/STA404

APPENDIX 1 (2)

ANALYSIS OF VARIANCE FOR A COMPLETELY RANDOMIZED DESIGN

Let:
k = the number of different samples (or treatments)
ni = the size of sample i
Ti the sum of the values in sample i
=
n = the number of values in all samples
= n1 + n2 + n3 + ...
x = the sum of the values in all samples
= T1 + T2 + T3 + ...
x 2
= the sum of the squares of values in all samples

Degrees of freedom for the numerator = k – 1


Degrees of freedom for the denominator = n – k

(  x) 2
Total sum of squares: SST = x 2

n
Between-samples sum of squares:

 T2 T2 T2  ( x)
SSB =  1 + 2 + 3 + ...  −
2

 n1 n 2 n 3  n

Within- samples sum of squares = SST - SSB

SSB
Variance between samples: MSB =
(k − 1)
SSW
Variance within samples: MSW =
(n − k )
MSB
Test statistic for a one-way ANOVA test: F =
MSW

M
u
k
a
s
u
r
a
t 3)
FSKM, UiTM Cawangan Negeri Sembilan (Seremban CONFIDENTIAL
CONFIDENTIAL 10 CS/JUL 2022/STA404

APPENDIX 1 (3)

SIMPLE LINEAR REGRESSION

Sum of squares of xy, xx, and yy:

SS xy =  xy −
(  x)( y)
n

SS xx =x −
 x)
2
( 2

and SS yy =y −
 y)
2
( 2

n n

Least Square Regression Line:

Y = a + bx

Least Squares Estimates of a and b:


SS xy
b= and a = y − bx
SS xx

Total sum of squares: SST =  y −


 y) 2
( 2

n
SS xy
Linear correlation coefficient: r =
SS xx SS yy

FSKM, UiTM Cawangan Negeri Sembilan (Seremban 3) CONFIDENTIAL

You might also like