• Tidak ada hasil yang ditemukan

Chapter10 - Hypothesis Testing Two-Sample Tests

N/A
N/A
Protected

Academic year: 2019

Membagikan "Chapter10 - Hypothesis Testing Two-Sample Tests"

Copied!
53
0
0

Teks penuh

(1)

Statistics for Managers

Using Microsoft® Excel

5th Edition

Chapter 10

(2)

Learning Objectives

In this chapter, you learn how to use hypothesis

testing for comparing the difference between:

The means of two independent populations

The means of two related populations

The proportions of two independent

populations

The variances of two independent

(3)

Two-Sample Tests Overview

Two Sample Tests

Independent

Population

Means

Means,

Related

Populations

Independent

Population

Variances

Group 1 vs.

Group 2

Same group

before vs. after

treatment

Variance 1 vs.

Variance 2

Examples

Independent

Population

Proportions

(4)

Two-Sample Tests

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Goal: Test hypothesis or form

a confidence interval for the

difference between two

population means, μ

1

– μ

2

The point estimate for the

difference between sample

means:

(5)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Different data sources

Independent: Sample selected

from one population has no

effect on the sample selected

from the other population

Use the difference between 2

sample means

Use Z test, pooled variance t

(6)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Use a

Z

test statistic

(7)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Assumptions:

Samples are randomly and

independently drawn

(8)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

When σ

1

and σ

2

are known and both

populations are normal, the test

statistic is a Z-value and the

standard error of X

1

– X

2

is

2

2

2

1

2

1

X

X

n

σ

n

σ

σ

2

(9)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

(10)

Two-Sample Tests

Independent Populations

Lower-tail test:

H

0

: μ

1

μ

2

H

1

: μ

1

< μ

2

i.e.,

H

0

: μ

1

– μ

2

0

H

: μ

– μ

< 0

Upper-tail test:

H

0

: μ

1

≤ μ

2

H

1

: μ

1

> μ

2

i.e.,

H

0

: μ

1

– μ

2

≤ 0

H

: μ

– μ

> 0

Two-tail test:

H

0

: μ

1

= μ

2

H

1

: μ

1

≠ μ

2

i.e.,

(11)

Two-Sample Tests

Independent Populations

Two Independent Populations, Comparing Means

Lower-tail test:

H

0

: μ

1

– μ

2

0

H

1

: μ

1

– μ

2

< 0

Upper-tail test:

H

0

: μ

1

– μ

2

≤ 0

H

1

: μ

1

– μ

2

> 0

Two-tail test:

H

0

: μ

1

– μ

2

= 0

H

1

: μ

1

– μ

2

≠ 0

/2

/2

-z

z

-z

/2

z

/2

Reject H

0

if Z < -Z

a

Reject H

0

if Z > Z

a

Reject H

0

if Z < -Z

a/2

(12)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Assumptions:

Samples are randomly and

independently drawn

Populations are normally

distributed

Population variances are

(13)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

Forming interval estimates:

The population variances

are assumed equal, so use

the two sample standard

deviations and pool them to

estimate σ

(14)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

The pooled standard

deviation is:

(15)

Two-Sample Tests

Independent Populations

Where t has (n

1

+ n

2

– 2) d.f., and

The test statistic is:

Independent

Population Means

σ

1

and σ

2

known

(16)

Two-Sample Tests

Independent Populations

You are a financial analyst for a brokerage firm. Is there a

difference in dividend yield between stocks listed on the

NYSE & NASDAQ? You collect the following data:

NYSE NASDAQ

Number 21 25

Sample mean 3.27 2.53

Sample std dev 1.30 1.16

(17)

Two-Sample Tests

Independent Populations

1.5021

(18)

Two-Sample Tests

Independent Populations

H

0

: μ

1

- μ

2

= 0 i.e. (μ

1

= μ

2

)

H

1

: μ

1

- μ

2

≠ 0 i.e. (μ

1

≠ μ

2

)

= 0.05

df = 21 + 25 - 2 = 44

Critical Values: t = ± 2.0154

Test Statistic: 2.040

t

0

2.0154

-2.0154

.025

Reject H

0

Reject H

0

.025

Decision: Reject H

0

at

α

= 0.05

2.040

(19)

Independent Populations

Unequal Variance

If you cannot assume population variances

are equal, the pooled-variance t test is

inappropriate

Instead, use a separate-variance t test, which

includes the two separate sample variances in

the computation of the test statistic

The computations are complicated and are

(20)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

σ

1

and σ

2

unknown

2

2

2

1

2

1

2

1

n

σ

n

σ

X

X

Z

The confidence interval for

(21)

Two-Sample Tests

Independent Populations

Independent

Population Means

σ

1

and σ

2

known

(22)

Two-Sample Tests

Related Populations

D = X

1

- X

2

Tests Means of 2 Related Populations

Paired or matched samples

Repeated measures (before/after)

Use difference between paired values:

Eliminates Variation Among Subjects

Assumptions:

(23)

Two-Sample Tests

Related Populations

The ith paired difference is D

i

, where

n

D

D

n

1

i

i

D

i

= X

1i

- X

2i

The point estimate for the population mean

paired difference is D :

(24)

Two-Sample Tests

Related Populations

The test statistic for the mean difference is a Z

value:

n

σ

μ

D

Z

D

D

Where

μ

D

= hypothesized mean difference

σ

D

= population standard deviation of differences

(25)

Two-Sample Tests

Related Populations

If σ

D

is unknown, you can estimate the

unknown population standard deviation with a

sample standard deviation:

1

n

)

D

(D

S

n

1

i

2

i

D

(26)

Two-Sample Tests

Related Populations

1

The test statistic for D is now a t statistic:

(27)

Two-Sample Tests

Related Populations

Lower-tail test:

H

0

: μ

D

0

H

1

: μ

D

< 0

Upper-tail test:

H

0

: μ

D

≤ 0

H

1

: μ

D

> 0

Two-tail test:

H

0

: μ

D

= 0

H

1

: μ

D

≠ 0

/2

/2

-t

t

-t

/2

t

/2

(28)

Two-Sample Tests

Related Populations Example

Assume you send your salespeople to a “customer

service” training workshop. Has the training made a

difference in the number of complaints? You collect the

following data:

Salesperson

Number of Complaints

Difference, D

i

(2-1)

Before (1)

After (2)

C.B.

6

4

-2

T.F.

20

6

-14

M.H.

3

2

-1

(29)

Two-Sample Tests

Related Populations Example

2

Salesperson

Number of Complaints

Difference, D

i

(2-1)

Before (1)

After (2)

C.B.

6

4

-2

T.F.

20

6

-14

M.H.

3

2

-1

R.K.

0

0

0

(30)

Two-Sample Tests

Related Populations Example

Has the training made a difference in the number of

complaints (at the α = 0.01 level)?

H

0

: μ

D

= 0

H

1

:

μ

D

0

Critical Value = ± 4.604

d.f. = n - 1 = 4

Test Statistic:

(31)

Two-Sample Tests

Related Populations Example

Reject

- 4.604

4.604

Reject

/2

- 1.66

Decision: Do not reject

H

0

(t statistic is not in the reject

region)

Conclusion: There is no

evidence of a significant change

in the number of complaints

(32)

Two-Sample Tests

Related Populations

The confidence interval for μ

D

(σ known) is:

n

σ

D

Z

D

Where

(33)

Two-Sample Tests

Related Populations

The confidence interval for μ

D

(σ unknown) is:

1

n

)

D

(D

S

n

1

i

2

i

D

n

S

t

D

D

1

n

(34)

Two Population Proportions

Goal: Test a hypothesis or form a confidence

interval for the difference between two

independent population proportions, π

1

– π

2

Assumptions:

n

1

π

1

5 , n

1

(1-π

1

)

5

n

2

π

2

5 , n

2

(1-π

2

)

5

(35)

Two Population Proportions

Since you begin by assuming the null

hypothesis is true, you assume π

1

= π

2

and pool

the two sample (p) estimates.

2

1

2

1

n

n

X

X

p

The pooled estimate for

the overall proportion is:

(36)
(37)

Two Population Proportions

Hypothesis for Population Proportions

Lower-tail test:

H

0

: π

1

π

2

H

1

: π

1

< π

2

i.e.,

H

0

: π

1

– π

2

0

H

1

: π

1

– π

2

< 0

Upper-tail test:

H

0

: π

1

≤ π

2

H

1

: π

1

> π

2

i.e.,

H

0

: π

1

– π

2

≤ 0

H

1

: π

1

– π

2

> 0

Two-tail test:

H

0

: π

1

= π

2

H

1

: π

1

≠ π

2

i.e.,

(38)

Two Population Proportions

Hypothesis for Population Proportions

Lower-tail test:

H

0

: π

1

– π

2

0

H

1

: π

1

– π

2

< 0

Upper-tail test:

H

0

: π

1

– π

2

≤ 0

H

1

: π

1

– π

2

> 0

Two-tail test:

H

0

: π

1

– π

2

= 0

H

1

: π

1

– π

2

≠ 0

/2

/2

-z

z

-z

/2

z

/2

(39)

Two Independent Population

Proportions: Example

Is there a significant difference between the

proportion of men and the proportion of

women who will vote Yes on Proposition A?

In a random sample of 72 men, 36 indicated

they would vote Yes and, in a sample of 50

women, 31 indicated they would vote Yes

(40)

Two Independent Population

Proportions: Example

H

0

: π

1

– π

2

= 0 (the two proportions are equal)

H

1

: π

1

– π

2

≠ 0 (there is a significant difference

between proportions)

The sample proportions are:

Men:

p

1

= 36/72 = .50

Women:

p

2

= 31/50 = .62

The pooled estimate for the overall proportion is:

(41)

Two Independent Population

Proportions: Example

The test statistic for

π

1

– π

2

is:

Critical Values = ±1.96

For

= .05

.025

-1.96

1.96

.025

-1.31

Decision: Do not reject H

0

Conclusion: There is no evidence of a

significant difference in proportions who

will vote yes between men and women.

(42)

Two Independent Population

Proportions

2

2

2

1

1

1

2

1

n

)

(1

n

)

(1

p

p

p

p

Z

p

p

(43)

Testing Population Variances

Purpose: To determine if two independent

populations have the same variability.

H

0

: σ

1

2

= σ

2

2

H

1

: σ

1

2

≠ σ

2

2

H

0

: σ

1

2

σ

2

2

H

1

: σ

1

2

< σ

2

2

H

0

: σ

1

2

≤ σ

2

2

H

1

: σ

1

2

> σ

2

2

(44)

Testing Population Variances

2

2

2

1

S

S

F

The F test statistic is:

= Variance of Sample 1

n

1

- 1 = numerator degrees of freedom

= Variance of Sample 2

2

1

S

2

2

(45)

Testing Population Variances

The F critical value

is found from the F table

There are two appropriate degrees of

freedom: numerator and denominator.

In the F table,

numerator degrees of freedom determine the

column

denominator degrees of freedom determine the

(46)

Testing Population Variances

0

F

L

Reject

H

0

Do not

reject H

0

H

0

: σ

1

2

σ

2

2

H

1

: σ

1

2

< σ

2

2

Reject H

0

if F < F

L

0

F

U

Reject H

0

Do not

reject H

0

H

0

: σ

1

2

≤ σ

2

2

H

1

: σ

1

2

> σ

2

2

Reject H

if F > F

(47)

Testing Population Variances

rejection region

for a two-tail test is:

F

(48)

Testing Population Variances

To find the critical F values:

1. Find F

U

from the F table for n

1

– 1

numerator and n

2

– 1 denominator degrees

of freedom.

*

U

L

F

1

F

2. Find F

L

using the formula:

Where F

U*

is from the F table with n

2

– 1

(49)

Testing Population Variances

You are a financial analyst for a brokerage firm. You

want to compare dividend yields between stocks listed

on the NYSE & NASDAQ. You collect the following

data:

NYSE

NASDAQ

Number

21

25

Mean

3.27

2.53

Std dev

1.30

1.16

Is there a difference in the variances between the

(50)

Testing Population Variances

Form the hypothesis test:

H

0

: σ

21

– σ

22

= 0 (there is no difference between variances)

H

1

: σ

2

1

– σ

2

2

≠ 0 (there is a difference between variances)

Numerator:

n

1

– 1 = 21 – 1 = 20 d.f.

Denominator:

n

2

– 1 = 25 – 1 = 24 d.f.

Numerator:

n

2

– 1 = 25 – 1 = 24 d.f.

Denominator:

n

1

– 1 = 21 – 1 = 20 d.f.

(51)

Testing Population Variances

The test statistic is:

256

rejection region, so we do

not reject H

0

Conclusion: There is insufficient

(52)

Chapter Summary

In this chapter, we have

Compared two independent samples

Performed Z test for the differences in two means

Performed pooled variance t test for the differences

in two means

Formed confidence intervals for the differences

between two means

Compared two related samples (paired samples)

Performed paired sample Z and t tests for the mean

difference

Formed confidence intervals for the paired

(53)

Chapter Summary

Compared two population proportions

Formed confidence intervals for the difference between

two population proportions

Performed Z-test for two population proportions

Performed F tests for the difference between two

population variances

Used the F table to find F critical values

Referensi

Dokumen terkait

Kode (j) digunakan untuk data yang berkaitan dengan

Kepada Penyedia Jasa Pengadaan Barang/Jasa yang mengikuti lelang paket pekerjaan tersebut di atas dan berkeberatan atas Pengumuman ini, diberikan kesempatan mengajukan

Untuk mendapatkan konsentrasi logam berat sebenarnya pada akar, kulit. batang, daun dan sedimen sesuai dengan standar operasional prosedur

7. Apabila ternyata di kemudian hari terbukti bahwa pernyataan ini tidak benar dan mengakibatkan kerugian Negara maka saya bersedia mengembalikan

Perbuatan yang tanpa hak atau melawan hukum menggunakan Narkotika Golongan I terhadap orang lain atau memberikan Narkotika Golongan I untuk digunakan orang

The correlation results support the ratios of GEI to family variance components for the three locations (Table 3) and suggest that family ranking in Riau is similar to that in

Seiring dengan itu, pasal ini juga menjamin sejumlah kewajiban untuk memperhatikan daerah lain bagi yang memiliki sumber daya alam dan sumber daya lainnya yang berbeda atau

Usia yang mendekati satu abad itu merupakan anugerah Allah SWT, sekaligus sebagai bukti dari amanah dan kepercayaan masyarakat kepada Muhammadiyah dalam menjalankan