Hypothesis Testing

using Z-Test, T-Test,
Linear – Correlation and Regression,
and Chi-Square Distribution
Submitted by: ASPILI, Alleli A. ;AYERS,
Anna V. ; LEYRAN, Kristine
Joy F. ; EDLAGAN, Bianca
Camille ; LOGAN, Cathrin V.
Submitted to: Mr. Marcus Alphonsus O. Lagazon
BSBAMM2A
Z test (one sample)
• On the year 2007, Feel Fresh Inc., a manufacturer of
soap, claims that the average weight of a bath soap per pack
is 200 grams. A retailer sampled 10 packs of this soap and got
an average weight of 199.3 grams and a standard deviation of
5.
• Is it appropriate to conclude at the α = .05, that Feel Fresh
Inc. fools customer?

) ' . ( 200 : . 1
0
customers fool t doesn Inc Fresh Feel grams H = µ
) . ( 200 :
1
customers fools Inc Fresh Feel grams H < µ
05 . . 2 = o
. . . 3 V C with test tailed One ÷
443 . 0
442718872 . 0
5
16227766 . 3 ) 7 . 0 (
5
10 ) 200 3 . 199 (
) (
. 4
÷ =
÷ =
÷
=
÷
=
÷
=
÷
o
µ
o
n X
z
known is since test Z
645 1
05 5
. is - value tabular or critical the
, . , at α test - Z tailed - one a For . =
1 0
Re 6 ject H , . Accept H
-1.645 -0.443
acceptance
s. l customer es not foo sh Inc. do . Feel Fre 7
Z test (two samples)
• On the next year, 2008, Feel Fresh Inc., decided to
produce two kinds of bath soap – the papaya and milk
soap. The company directed experiments to both soaps to
test its capability to whiten skin. Few scientists were
asked and the results were as follows:







• Assuming that the standard deviation, σ , is known to be
8.6. Is it valid to conclude that Papaya soap whitens skin
more than Milk soap?

n X
Papaya
Soap
21 61
Milk Soap 17 52.5
y) he same wa ens skin t soap whit p and Milk Papaya soa X X H
m p
( : . 1
0
=
) ( :
1
soap than milk skin more p whitens Papaya soa X X H
m p
>
05 . . 2 = o
. . . 3 V C with test tailed One +
065 . 3
065083511 . 3
805796308 . 2
5 . 8
106442576 . 6 . 8
5 . 8
17
1
21
1
6 . 8
5 . 52 61
1 1
. 4
=
=
=
=
+
÷
=
+
÷
=
÷
m p
m p
n n
X X
z
known is since test Z
o
o
645 1
05 5
. is lar value al or tabu the critic
, . test, at α -tailed Z- .For a one
+
=
1 0
Re 6 ,Accept H ject H .
1.645 3.065
rejection
k soap. e than Mil s skin mor oap whiten . Papaya s 7
T test (one sample)
• This year of 2009, Feel Fresh Inc. claims that the
average weight of papaya essences from the Papaya
soap per piece is 100 mg with a standard deviation of
3. An experiment was made from the 5 pieces of
Papaya soap and got an average weight of papaya
essences of 97.9 mg. Is it valid to conclude, at α = .05
that Feel Fresh Inc., still, doesn’t fool customers?
) ' . ( 100 : . 1
0
customers fool t doesn Inc Fresh Feel mg H = µ
) . ( 100 :
1
customers fools Inc Fresh Feel mg H < µ
. . . 3 V C with test tailed One ÷
05 . . 2 = o
5652 . 1
565247584 . 1
3
2360679 . 2 ) 1 . 2 (
3
5 ) 100 9 . 97 (
) (
30 sin . 4
÷ =
÷ =
÷
=
÷
=
÷
=
< ÷
o
µ n X
z
n ce test T
132 . 2
, 4 05
4
1 5
1 5
is - value tabular or critical the
, df . , at α test - t tailed - one a For
n .df
= =
=
÷ =
÷ =
1 0
Re 6 ject H , . Accept H
-2.132 -1.5652
acceptance
. customers s not fool still, doe sh Inc., . Feel Fre 7
Linear - Correlation
• Five students in CEU were given 1 test in Statistics
and 1 test in Business Communication. Find the
correlation between the scores in the two subjects,
which are given as follows:
Student Scores in
Statistics
(x)
Scores in
Bus. Com.
(y)
1 27 32
2 22 15
3 10 22
4 39 27
5 40 30
x=138 y=126
¿
¿
Computed values made from the table from the previous
slide are as follows:
rx ry rx-ry (rx-ry)
2
xy x
2
y
2
3 1 2 4 864 729 1024
4 5 -1 1 330 484 2251
5 4 1 1 220 100 484
2 3 -1 1 1053 1521 729
1 2 -1 1 1200 1600 900
(rx-ry)
2
=8

xy=3667 x
2
=4434

y
2
=3362


¿ ¿ ¿
¿
From the computed values in the table from the previous slide,
compute for the SPEARMAN RANK-ORDER CORRELATION
COEFFICIENT and conduct the hypothesis testing.
( )
96 .
04 . 1
120
48
1
) 1 5 ( 5
) 8 ( 6
1
1
) ( 6
1
2
2
2
=
÷ =
÷ =
÷
÷ =
÷
÷ ¿
÷ = =
n n
ry rx
r
s
µ
d) generalize be (Can r H
d) generalize be (Cannot r H
s
s
0 :
0 : . 1
1
0
=
=
05 . . 2 = o
test tailed Two . 3 ÷
96 . . 4 =
s
r
00 1 5 05
5
. 5
. is , df . α at value Critical
n df
± = =
=
=
1 0
Re 6 ject H , . Accept H
-1.00
1.00
.96
acceptance
d. generalize be cannot it
therefore, nt, significa not is .96 r value, computed 7.The
s
=
From the computed values from the previous table,
compute for the PEARSON PRODUCT MOMENT CORRELATION
COEFFICIENT and conduct the hypothesis testing.
( ) | | ( ) | |
| || |
5677 . 0
5676802817 . 0
708284 . 1708
970
) 934 )( 3126 (
970
) 126 ( ) 3362 ( 5 ) 138 ( ) 4434 ( 5
) 126 )( 138 ( ) 3667 ( 5
2 2
2
2
2
2
=
=
=
=
÷ ÷
÷
=
¿ ÷ ¿ ¿ ÷ ¿
¿ ¿ ÷ ¿
=
y x n x x n
y x xy n
r
d) generalize be (Can r H
d) generalize be (Cannot r H
0 :
0 : . 1
1
0
=
=
05 . . 2 = o
test tailed Two . 3 ÷
5677 . 0 . 4 = r
8783 . 5 05
3
2 5
2 . 5
± = =
=
÷ =
÷ =
is , df . α at value Critical
n df
-.8783
.8783 .5677
rejection
1 0
Re 6 ,Accept H ject H .
d. generalize be can it
therefore, nt, significa is .5677 r value, computed 7.The =
Linear - Regression
x y xy x
2
y
2
3 5 15 9 25
2 7 17 4 49
10 8 80 100 64
12 9 108 144 81
6 2 12 36 4
x = 33 y = 31 xy = 232 x
2
= 293

y
2
= 223

¿ ¿ ¿ ¿ ¿
6 . 6
5
33
=
=
¿
=
n
x
x
2 . 6
5
31
=
=
¿
=
n
y
y
( )
3644 . 0
3643617021 . 0
376
137
1089 1465
1023 1160
33 ) 293 ( 5
) 31 )( 33 ( ) 232 ( 5
2
2
2
=
= =
÷
÷
=
÷
÷
=
¿ ÷ ¿
¿ ¿ ÷ ¿
=
x x n
y x xy n
m
3.79496
2.40504 2 . 6
) 6 . 6 )( 3644 (. 2 . 6
=
÷ =
÷ =
÷ = x m y b
REGRESSION LINE
61696 5
79496 3 822 1
79496 3 5 3644
5
3.79496 3644
.
. .
. ) ( .
? , then y if x
x .
b mx d y predicte
=
+ =
+ =
= =
+ =
+ =
STANDARD ERROR OF ESTIMATE
63 . 2
634099467 . 2
6.93848
3
20.81544
3
84.5408 - 117.64376 223
2 5
) 232 )( 3644 (. ) 31 ( 79496 . 3 223
2
2
=
=
=
=
÷
=
÷
÷ ÷
=
÷
¿ ÷ ¿ ÷ ¿
=
n
xy m y b y
Se
Chi Square Distribution
• Fine Arts students from DLSU claim that among
the four most refreshing colors, students have
these preference rates: 49% prefer green; 35%
prefer white; 10% prefer blue; and 6% prefer
yellow. A random of 250 students were chosen.
Test the claim that the percentages given by the
students are correct, using α = .05.

Color No. of students
Green 125
White 84
Blue 29
Yellow 12
06 . ; 10 . ; 35 . 49 1
4 3 2 1 0
= = = = P P ;P . : P .H
06 . ; 10 . ; 35 . 49
4 3 2 1 1
= = = = P P ;P . : P H
05 . . 2 = o
. . . 3 V C with test tailed One +
( )
4310 . 1 . 4
2
2
=
÷ ¿
=
E
E O
_
O E O-E (O-E)
2
125 122.5 2.5 6.25 .057020408
84 87.5 -3.5 12.25 .14
29 25 4 16 .64
12 15 -3 9 .6
=
1.431020408
E
2
E) - O (
( )
E
E O
2
÷
¿
815 . 7 3 05
3
1 4
1 . 5
is , df . α at value Critical
k df
= =
=
÷ =
÷ =
1 0
Re 6 ject H , . Accept H
1.431
7.815
acceptance
claimed. the values equal to rtions are .The propo 7

Sign up to vote on this title
UsefulNot useful