Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

Dogs are fed with two different diets.

Test if the two diets differ significantly as regards their effect on the increase in weight.
95% confidence level, is there enough evidence to support the claim?

H0: µ1=µ2
H1: µ1≠µ2

The data is normal.


Two different populations, and unaware of means of two populations
The samples are independent of each other.
Assuming unequal population variance
There's less than 30 samples each.
How to determine what test to use? This leads us to chose a two sample t test

What kind of tailed test to use?


(Single left, Single right, or Two-tail) Note that this is a two tailed test because to compare difference between mean w

Data given Diet1 Diet2


Number of samples (n1 and n2) 10 10
Sample mean (x1 and x2) 24.40 20.0000
Variance 25.60 56.22

Significance level α 0.05

S12/n1 2.56
S22/n2 5.62

Compute the t-statistic

Degrees of freedom 16

x̅1-x2̅ 4.400
Sqrt (S12/n1+S22/n2) 2.860

t =( x1̅ -x2̅ )/Sqrt (S12/n1+S22/n2) 1.5382

Determine t critical value

Since this is a two tailed test at an alpha


of 5% critical value look up t table
appropriately.
t critical 2.12 Look up in table

Interpret the results


How does t critical compare to the
calculated t statistic?

t critical t statistic
2.12 1.5382

Rejection Rejection
region region
If t statistic values is
not between the two
critical values, means t If this value is between
statistic value is in two critical values, means
rejection region. Hence it is not in rejection
we reject the null region. Hence we fail to
hypothesis reject the null hypothesis

Critical value Critical value

Two tail test


on the increase in weight. Assuming the population variance is unequal, at

wo populations

ifference between mean weights dogs with diet 1 and diet 2

Diet 1 Diet 2
36 12
25 11
23 13
19 29
21 25
29 26
24 22
23 29
25 22
19 11

You might also like