Dependent and Independent Samples 1Section 10.1, Page 212.

30
Dependent and Independent Samples 1 Section 10.1, Page 212

Transcript of Dependent and Independent Samples 1Section 10.1, Page 212.

Page 1: Dependent and Independent Samples 1Section 10.1, Page 212.

Dependent and Independent Samples

1Section 10.1, Page 212

Page 2: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

2Problems, Page 233

Page 3: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

3Problems, Page 234

Page 4: Dependent and Independent Samples 1Section 10.1, Page 212.

Confidence Interval – Dependent SamplesIllustrative Problem

sample mean = 6.33 , Sx = 5.13, n = 6

Find the 95% confidence interval for the mean of the difference?C.I. = sample mean ± Margin of Error =sample mean ± critical value * standard error6.33 ± 2.5706 * 6.33 ± 5.38 = (.95, 11.71)

5.13/ 6

4Section 10.2, Page 214

Page 5: Dependent and Independent Samples 1Section 10.1, Page 212.

Confidence Interval – Dependent SamplesIllustrative Problem TI-83 Black Box Program

Find the 95% Confidence Interval d = B – A(We have to make the assumption that the data is taken from a normal population.) STAT – ENTER: Enter Brand A in L1 and B is L2Highlight the title box for L3.=2nd L2 – 2nd L1 Enter (Difference set is now L3).STAT–TESTS- 8:TIntervalComplete procedure as described in Section 9.1

Confidence Interval is (.96, 11.71)

5Section 10.2, Page 214

Page 6: Dependent and Independent Samples 1Section 10.1, Page 212.

Hypothesis Test– Dependent SamplesIllustrative Problem

sample mean = 6.33 , Sx = 5.13, n = 6

Test the hypotheses that the tread wear for Brand B is greater than for Brand A.

Ho: μd = B – A =0 (No difference)Ha: μd = B – A > 0 (B is greater)

μd=0

d = 6.3

p-value = .0146

p-value = PRGM – TDISTLOWER BOUND = 6.33UPPER BOUND = 2ND EE99MEAN = 0STANDARD ERROR = df = 5Answer: p-value = .0146 (Reject Ho, B has greater tread wear.)

6Section 10.2, Page 214€

5.13/ 6

Page 7: Dependent and Independent Samples 1Section 10.1, Page 212.

Hypothesis Test– Dependent SamplesIllustrative Problem – TI-83 Black Box Program

Test the hypotheses that the tread wear for Brand B is greater than for Brand A.

Ho: μd = B – A =0Ha: μd = B – A > 0

STAT – ENTER: Enter Brand A in L1 and B is L2Highlight L3=2nd L2 – 2nd L3 Enter (L3 in now difference set)STAT-TESTS– 2:T-TestComplete the program as described in Section 9.2 with L3 as the difference set.

P-Value = .0146 (Reject H0, Brand B has greater tread wear.)

7Section 10.2, Page 214

Page 8: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. Test the hypotheses that the people increased their knowledge. Use α=.05 and assume normality. State the appropriate hypotheses.

b. Find the p-value and state your conclusion.

c. Find the 90% confidence interval for the mean estimate of the increase in test scores.

8Problems, Page 234

Page 9: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. State the appropriate hypotheses.b. Find the p-value and state your

conclusion.c. Find the 98% confidence interval for

the mean estimate of the increase in number of sit-ups.

9Problems, Page 234

Page 10: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent SamplesTwo Means: Unknown σ

Suppose we want to compare the income of Shoreline students with UW students.

From sample of 50 Shoreline Students:

x s = $12,500

From sample of 60 UW students:

x UW = $14,750

Test the hypothesis that the populations incomes are not the same.

H0 :μUW = μS ⇒ μUW −μS = 0

Ha :μUW ≠ μS ⇒ μUW −μS ≠ 0

To find a p-value we need a sampling distribution for

x UW − x S

10Section 10.3, Page 218

SS = $4,300

SUW = $4,800

Page 11: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent SamplesTwo Means: Unknown σ

μ1 σ1 μ2 σ2

Population 1 Population 2

Sampling Dist.

x 1 Sampling Dist.

x 2

Sampling Dist.

x 1 − x 2

ux 1−x 2= μ1 −μ2

σ x 1−x 2= (σ x 1

))2 + (σ x 2)2 =

S12

n1+

S22

n2

μx 1= μ1

σ x 1=

S1n1

μx 2= μ2

σ x 2=

S2n2

11Section 10.3, Page 218

A T-Distribution Applies

Page 12: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent SamplesTwo Means: Unknown σ

Conditions for t-distribution model for sampling distribution:

1.The samples are independent of each other – two unrelated sets of sources are used, one from each population.

2.The sets are normal, or the sample size of each set is large, n ≥ 30

The correct degrees of freedom for the sampling distribution for the difference of two independent means is given by the following formula:

The calculator will make this calculation.

12Section 10.3, Page 219

Page 13: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent Means – Illustrative ProblemConfidence Interval – TI-83 Add-in

Find the 95% confidence interval for the difference in the heights, μm – μf.

C. I. = sample mean difference ± Margin of Error=sample mean difference ± critical value * standard errorPRGM – STDERROR – 5: 2 MEANSSx1 = 1.92; n1=30; Sx2 = 2.18; n2 = 20Answer: SE = .6004; df = 37.2121PRGM – CRITVAL – 2C – LEVEL = .95; df (INTEGER) = 37Answer: 2.0262

C.I. = 69.8-63.8 ± 2.0262 * .6004 = (4.78, 7.22)

13Section 10.3, Page 222

Page 14: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent Means – Illustrative ProblemConfidence Interval – TI-83 Black Box

Find the 95% confidence interval for the difference in the heights, μm – μf.

STAT – TESTS – 0:2 – SampTIntInpt: Stats : 69.8; Sx1: 1.92; n1: 30 : 63.8; Sx2: 2.18; n2: 20C-Level: .95Pooled: NoCalculateAnswer: (4.78, 7.22)

14Section 10.3, Page 222

x 1

x 2

Page 15: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent Means – Illustrative ProblemHypotheses Test– Add-In Programs

Is this sufficient evidence to prove that male students are taller than female students.

Ho: μm – μf = 0 μm = μfHa: μm – μf > 0 μm > μf

15Section 10.3, Page 222

PRGMS – TDISTLOWER BOUND = 6UPPER BOUND = 2ND EE99MEAN = 0STANDARD ERROR = .6004 (Slide 12)df = 37.2121 (Slide 13)Answer: p-value = 2.1930E-12 ≅ 0(Reject Ho, there is sufficient evidence to prove males are taller.)

0

x m − x f = 6

p-value ≅ 0

Page 16: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent Means – Illustrative ProblemHypotheses Test– TI-83 Black Box

Is this sufficient evidence to prove that male students are taller than female students.

Ho: μm – μf = 0 μm = μfHa: μm – μf > 0 μm > μf

STAT – TESTS – 4: 2 – SampTTestInput: Stats :69.8; Sx1:1.92; n1:30 :63.8; Sx2:2.18; n2:20μ1: >μ2Pooled: NoCalculate; Answer: p-value = 2.1947E-12≅0(Reject Ho, there is sufficient evidence to prove males are taller)

x 1

x 2

16Section 10.3, Page 222

Page 17: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. Write the necessary hypotheses.b. State the p-value and your decision.c. If you make an error, what type is it?d. Construct a 98% confidence interval for the

difference mean selling prices (North of Cedar – Provo)

17Problems, Page 235

Page 18: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. Write the necessary hypotheses.b. State the p-value and your decision.c. If you make an error, what type is it?d. Construct a 98% confidence interval for the

difference mean weight gained (Diet B – Diet A)

18Problems, Page 235

Page 19: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

Assume normality.

a. Is there convincing evidence that nonorgan donors have higher anxiety about death than organ donors? Write the hypotheses and find the p-value. State your conclusion.

b. Find the 98% confidence interval for the means; nondonor – donor.

c. Find the mean and standard error of the sampling distribution.

19Problems, Page 234

Page 20: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. State the hypothesis (Assume Normality)b. Find the p-value, and state you conclusion.c. Find the 95% confidence interval for the

difference of the means; Gouda-Brie.d. Find the mean and standard error of the sampling

distribution

20Problems, Page 235

Page 21: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent SamplesTwo Proportions

Suppose we want to compare the proportion of students getting financial aid at Shoreline and UW.

From sample of 50 Shoreline Students:

pS' = 0.61

From sample of 60 UW students:

p'UW = 0.54

Test the hypothesis that the population proportions are not the same.

H0 : pUW = pS ⇒ pUW − pS = 0

Ha : pUW ≠ pS ⇒ pUW − pS ≠ 0

To find a p-value we need a sampling distribution for

p'UW −p'S

21Section 10.3, Page 218

Page 22: Dependent and Independent Samples 1Section 10.1, Page 212.

Independent SamplesTwo Proportions: Unknown σp

p1 p2

Population 1 Population 2

Sampling Dist. p’1 Sampling Dist. p’2

Sampling Dist. p’1 – p’2

up'1− p'2= p1 − p2

σ p'1− p'2= (σ p'1

)2 + (σ p '2)2 =

p'1 (1− p'1 )

n1+

p'2 (1− p'2 )

n2

μp'1= p1

σ p'1=

p'1 (1− p'1 )

n1

μp'2= p2

σ p'2=

p'2 (1− p'2 )

n2

22Section 10.4, Page 225

The Normal Model Applies

Page 23: Dependent and Independent Samples 1Section 10.1, Page 212.

Two ProportionsConditions for Normal Model

The sampling distribution for the difference of two sample proportions is a normal model if:

Samples are independent of each other

Each sample size > 20

Each sample has more than 5 successes (np or np’) and 5 failures (nq or nq’). (q=1-p)

Each sample is not more than 10% of its population

23Section 10.4, Page 225

Page 24: Dependent and Independent Samples 1Section 10.1, Page 212.

Two Proportions – Confidence Interval Illustrative Problem - TI-83 Add-In

A campaign manager wants to estimate the difference in support between women and men for his candidate. A sample of 1000 for each population was taken, and 459 women and 388 men favored his candidate. Find the 99% confidence interval for pw – pm.

C.I. = sample proportion difference ± Margin of Error =sample proportion difference ± critical value * standard error

PRGM - CRITVAL – 1:NORMAL DIST – CONF LEVEL = .99Answer: 2.5758

PRGM – STDERROR- 2: 2 PROP: p1 = 459/1000; n1 = 1000;p2 = 388/1000; n2 = 1000Answer: sample proportion difference = .0710; standard error = .0220

C.I. = .0710 ± 2.5758*.0220 = (.0143, .1277)

We are 99% confident that the proportion of female support exceeds the true proportion of male support is between 1.43% and 12.77%.

24Section 10.4, Page 225

Page 25: Dependent and Independent Samples 1Section 10.1, Page 212.

Two Proportions – Confidence Interval Illustrative Problem - TI-83 TI-83 Black Box

A campaign manager wants to estimate the difference in support between men and women for his candidate. A sample of 1000 for each population was taken, and 459 women and 388 men favored his candidate. Find the 99% confidence interval for pm – pw.

STAT – TESTS – B:2PropZIntx1 = 459n1= 1000x2 = 388n2 = 1000C-Level = .99CalculateAnswer: (.0142, .1278)

25Section 10.4, Page 225

Page 26: Dependent and Independent Samples 1Section 10.1, Page 212.

Section 10.4, Page 227 26

Difference between 2 Population Proportions

For a hypothesis test, the null hypothesis is: Ho: p1 = p2. If the two proportions are equal, then the standard deviation of the proportions must be also equal. Since p’1 seldom equals p’2, the σ(p’1-p’2) does not

reflect this fact.

To get around this problem for hypothesis tests, we calculate the weighted average of p’1 and p’2, called p’p, or pooled sample proportion, and substitute is value for both p’1 and p’2 in the standard error calculation.

p'p =Combined Successes

Combined Sample size=

n1p'1+n2p'2n1 + n2

σ p' p=

p'p (1− p'p )

n1+

p'p (1− p'p )

n2

Page 27: Dependent and Independent Samples 1Section 10.1, Page 212.

Two Proportions – Hypotheses TestIllustrative Problem - TI-83 TI-83 Add-In

A telephone salesman claims that his phones are better than the competition, and that no more of his phones are defective than the competition. A sample is taken. Can we reject the salesman’s claim? Use α = .05.

Ho: ps = pc

Ha: ps > pc

PRGM – STDERROR – 3: 2-PROP POOLEDp1 = 15/150; n1 = 150; p2 = 6/150; n2 = 150Answer: p’s – p’c = .06; Standard Error = .0295

0 .06

p-value = .0210

PRGM – NORMDIST – 1LB = .06; UB = 2nd EE99; MEAN = 0; STNDRD DEVIATN = .0295Answer: p-value = .0210. (Reject Null Hypotheses, and reject the salesman’s claim.)

27Section 10.4, Page 227

Page 28: Dependent and Independent Samples 1Section 10.1, Page 212.

Two Proportions – Hypotheses TestIllustrative Problem - TI-83 TI-83 Black Box

A telephone salesman claims that his phones are better than the competition, and that no more of his phones are defective than the competition. A sample is taken. Can we reject the salesman’s claim? Use α = .05.

Ho: ps = pc

Ha: ps > pc

STAT – TESTS – 6:2PropZTestx1: 15n1: 150x2: 6n2: 150p1: >p2CalculateAnswer: p-value = .0208 (Reject the Null Hypotheses and the salesman’s claim.)

28Section 10.4, Page 227

Page 29: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. Test the hypotheses that the preference in city A is greater than the preference in city B. State the appropriate hypotheses.

b. Find the p-value and state your conclusion.c. What model is used for the sampling

distribution and what is the mean of the sampling distribution and its standard error?

d. Find the 97% confidence interval for the difference in preferences, city A – city B.

29Problems, Page 235

Page 30: Dependent and Independent Samples 1Section 10.1, Page 212.

Problems

a. State the appropriate hypotheses.b. Find the p-value and state your conclusion.c. What model is used for the sampling distribution and

what is the mean of the sampling distribution and its standard error?

d. Find the 98% confidence interval for the difference in proportions, men – women.

30Problems, Page 236