Sunteți pe pagina 1din 26

# Fourth Long Exam

## 6 December 2014 (Saturday)

1:00 4:00
Final Exam
13 December 2014 (Saturday)
8:00 12:00

tinyurl.com/FacultyFeud2014

5 December 2014

## SET BONUS (2.5%)

Percentage of total students who answer, rounded down
to the nearest tenth.

Todays Agenda:
Hypothesis testing on two samples

Hypothesis
Testing

Step
1:
Step
2:
Step
3:
Step
4:
Step
5:
Step
6:
Step
7:
Step

## Determine the Parameter of Interest

State the Null Hypothesis
State the Alternative Hypothesis
Determine Alpha
Determine Test Statistic
Determine Rejection Region
Compute Test Statistic
Conclude

Hypothesis
Testing

## Hypothesis Test on Two Means,

Normal Distribution, Variance Known

zo

x1 x2 o
2
1

n1 n2

Hypothesis
Testing

z
n

a/ 2

z 2
2

2
1
2

( o )

Using OC Curves

o
2
1

Hypothesis
Testing

## Hypothesis Test on Two Means,

Normal Distribution, Variance Unknown and
Equal

to

x1 x2 o
sp

1 1

n1 n2

2
1

sp
n1 n1 2

## Hypothesis Test on Two Means,

Normal Distribution, Variance Unknown and
Unequal

to

x1 x2 o
2
1

s
s2

n1 n2

s12

2
1

n1

s2

n1

n1 1

n2

s2

n2

n2 1

Hypothesis
Testing

## Getting Sample Size Using OC Curves for Test of Two

Means, variances known and equal

o
sp

n* 2ni 1

Hypothesis
Testing

## GUIDED EXERCISE 3.5

Two filling machines are being tested. Sixteen manufactured
products from each machine are weighed. The sample mean
and variance for the first machine is 101.15 and 6.24 and for
the second machine is 100.36 and 5.76 respectively. Suppose
the true difference in weight is 2.45 and we want to detect this
with probability at least 0.80 at a significance level of = 0.05.
What is the required sample size?

Hypothesis
Testing

Paired t-test
Used when the two samples are not independent
and are homogenous, or when the samples have
a natural pairing

D o
to
sD
n

Hypothesis
Testing

## Do you use a paired t-test?

Testing the exam scores between class 1 and class 2
NO
Testing the 1st and 2nd exam scores of a set of 10
students
YES

## Weight loss before and after diet of a sample gorup

YES
Testing if height and weight are related
NO

Hypothesis
Testing

## Do you use a paired t-test?

Average Length of right thumb and left thumb of a sample

YES
Comparing average height of men and women

NO
Testing average speed of cars if wheels are changed
YES
Testing patients given a drug with those given
placebo
NO

Hypothesis
Testing

## GUIDED EXERCISE 4.1

Suppose we want to know if the IE 27 Second Long Exam was
really more difficult than the IE 27 Third Long Exam. Nine
students were randomly selected and their scores in the
second and third exams are recorded and shown below. Test
this hypothesis at a significance level of = 0.05
IE 27 Long
Exam
Student 1
Student 2
Student 3
Student 4
Student 5
Student 6
Student 7
Student 8

Long Exam 2

Long Exam 3

67
46
53.5
38
55
56.5
59
48.5

64.5
54.5
61
52.5
59
57.5
65
54

Hypothesis
Testing
1. The average difference, o
2. Ho: D = o (D = 2 - 3
3. H1: D <
4. a = 0.05

D o
5. to s
D
n
6. Reject when to< -t0.05,8 = -1.860

D o 6.2222 0

3.62566
7. to
sD
5.1849
9
n
8. Since -3.63 < -1.86, at alpha = 5% we reject the null hypothesis thus
concluding that the difference is statistically significant and that the
second long exam is harder than the third long exam

Hypothesis
Testing

Fo

2
1
2
2

s
s

Hypothesis
Testing

## GUIDED EXERCISE 4.2

A certain study to compare the variances of sugar content in
two brands of candies yielded a variance of 1.35 and 2.68
respectively. The first brand has 13 samples tested while the
second brand has 16 samples tested. Test the hypothesis that
the two variances are not equal at a significance level of =
0.05.

Hypothesis
Testing
1. The ratio of two variances
2. Ho: 12 = 22
3. H1: 12 22
4. a = 0.05
5.

Fo

2
1
2
2

s
s

6. Reject when fo> f0.025,12,15 or fo< f0.025,15,12 & fo> 2.96 or fo<
0.31447
7.

1.35
Fo
0.50373
2.68

Hypothesis
Testing

variances

n n1 n2

Hypothesis
Testing

## GUIDED EXERCISE 4.3

A certain study to compare the variances of sugar content
in two brands of candies yielded a variance of 1.35 and
2.68 respectively. The first brand has 13 samples tested
while the second brand has 16 samples tested. Suppose if
the variance of one brand becomes thrice the variance of
another brand, we wish to detect this with probability of
at least 0.70. What is the required sample size?

Hypothesis
Testing

p1 p 2
zo
x1 x2

p
1 1
(1 p
)
p

n1 n2
n1 n2

Hypothesis
Testing

## GUIDED EXERCISE 4.4

In a lot with 1000 toy balls, a sample of 80 is taken and
the number of defective toy balls in the sample was found
to be 6. A second sample of 100 is taken and the number
of defective toy balls in the sample was found to be 5.
Test the hypothesis that the proportion in the second
sample is lower at a significance level of = 0.05.

Hypothesis
Testing

Hypothesis
Testing

## Test for Goodness of fit

2
o

O i Ei
Ei

Next Time on IE 27
Goodness of Fit
Exam

Sourc: Taha

.Fin.