Professional Documents
Culture Documents
Experimental Design I Lecture 6 070915
Experimental Design I Lecture 6 070915
The decision rule will have rejection regions in both the upper and lower
tales of the sampling distribution of the test statistic.
1
A one –tailed test is a test where the null hypothesis specifies a
range of values for a population parameter.
Form II (One-tailed test)
H0: µ ≥ µ0
H1: µ < µ0
The decision rule for the hypothesis test will have a rejection region
either in the lower tail only (Form II) or in the upper tail only (Form III)
2
Form II
Form III
3
Introduction to t-tests
4
The general formula for the t-test
𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷𝐷 𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏𝑏 𝑡𝑡𝑡𝑡𝑡𝑡 𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚𝑚
t = 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆 𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒𝑒 𝑜𝑜𝑜𝑜 𝑡𝑡ℎ𝑒𝑒 𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑
Using the t-test to find the rejection region: One tailed tables
5
Hypothesis test for the population mean
• When the sample size is less than 30 a t-test is used
• Null hypothesis (form I)
H0: µ = µ0
H1: µ ≠ µ0
Where µ0 is the hypothesized population mean
Question
Does the sample come from the
population? 6
Confidence intervals
• A sample mean is an unbiased estimator of the population mean
• The reliability of the estimator is determined by sample size
• It is useful to determine the limits (upper and lower) of the mean
• A confidence interval can be calculated for sample sizes less than 30
using:
𝑥𝑥̅ ± tα/2,df (s.e.)
7
Example
The yield (in g) of 10 strawberry plants in a uniformity trial is: 239, 176,
217, 234, 216, 318, 190, 181, and 225.
Test the hypothesis that the mean is 205 g against the alternative that the
mean is not 205 g using α = 0.05.
Calculate 95% and 99% confidence intervals for the mean.
8
Independent samples
If we want to test the difference between two means
(i.e. H0: µ1 = µ2 against H1: µ1 ≠ µ2)
we use a t-test for independent samples.
𝑥𝑥̅ 1−𝑥𝑥̅ 2
t = 𝑠𝑠
𝑥𝑥�1−𝑥𝑥�2
if |t| > tα/2,df : reject H0
Question
Are sample 1 and sample 2 from the same population?
9
F-test
• To test whether the variances are equal (i.e. H0: σ12 = σ22 against H1: σ12 ≠ σ22) use the F-
test (Variance ratio)
𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙𝑙 𝑠𝑠 2
Fc = 𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠𝑠 𝑠𝑠2
10
Formulae for standard errors and degrees of freedom (1)
2 +(𝑛𝑛 −1 )𝑠𝑠 2
(𝑛𝑛 1 −1 )𝑠𝑠1
𝑠𝑠𝑐𝑐2 = 2
(𝑛𝑛 1 −1 )+(𝑛𝑛 2 −1 )
2
11
Formulae for standard errors and degrees of freedom (2)
𝑠𝑠12 𝑠𝑠22
𝑠𝑠𝑥𝑥 1 −𝑥𝑥 2 = �𝑛𝑛 +
1 𝑛𝑛2
12
Example 1
13
Example 2
• The following is the percentage of fine gravel in two soils:
14
Paired data
• When the data are related or paired we use the paired t-test:
H0: µD = 0
H1: µD ≠ 0
Where µD is the mean of the differences between the paired samples
• Where:
𝐷𝐷 � = the mean of the differences
𝑠𝑠𝐷𝐷 = s/√𝑛𝑛
15
• and
2
∑ 𝐷𝐷 𝑖𝑖2 − �∑ 𝐷𝐷 𝑖𝑖 � /𝑛𝑛
s=� 𝑛𝑛 −1
2
∑ 𝐷𝐷𝑖𝑖 = sum of the squared differences
• Rejection region: if |t| > tα/2,df reject H0
• Degrees of freedom: n-1, where n = the number of pairs
16
Example
17