Professional Documents
Culture Documents
MultiVariad 1
MultiVariad 1
Parameters
• Parameters are values representing the
population, e.g. µ, σ 2
Hypothesis
Testing
• A statistical hypothesis is a
statement about the values of
the parameters of a probability
distribution.
H0 : µ = µ0
H1 : µ ≠ µ 0
H1: µ ≠ 35
Do not reject
One-tailed Two-tailed
H1: < H1: ≠
α
(1- α)100% α/2 α/2
(1- α)100%
H1: >
α
(1- α)100%
Single Sample
Significance Level
• The level of significance, α
determines the size of the
rejection region.
• The level of significance is a
probability. It is also known as
the probability of a “Type I
error” (want this to be small)
α ≤ 0.10
Test
result FTR H0 Reject H0
Fact
H0 is
“true” 1- α α
H1 is
“true” β 1-β
Single Sample
Power of a Test
• The Power of a test of hypothesis
is given by 1 - β
• That is, 1 - β is the probability
of correctly rejecting the null
hypothesis
• Significance Level, α
• Rejection Region: Zo < − Zα / 2 or Z0 > Zα / 2
• If Z0 falls into R.R. above,Reject H0
P[µ ≤ U] = (1 − α ) P[L ≤ µ ] = (1 − α )
σ σ
P[ x − Z α ≤ µ ≤ x + Zα ] = (1 − α )
2 n 2 n
Hypothesis Testing
• If it is not enough to know if your
test statistic, Z0 falls into a
rejection region, then a measure
of just how significant your test
statistic is can be computed - P-
value.
• P-values are probabilities
associated with the test statistic,
Z0 .
Assoc.Prof. Prapaisri Sudasna-na-Ayudthya, KU
32
Definition
• The P-value is the smallest
level of significance that
would lead to rejection of the
null hypothesis H0.
P-value
• One sided test
(H1: < or >)
P-Value
= P( test statistics < or >
calculated value)
P-Value
= 2*P( test statistics <* or >*
calculated value)
One-Sample T: Strength
Test of mu = 50 vs mu not = 50
Variable 95.0% CI T P
Strength (48.979, 50.750) -0.33 0.749
σ02
• Significance Level, α
• Rejection Region: 2
χ 0 > χ α2 or χ 02 < χ 2 α
, n −1 1− , n −1
2 2
(n − 1)s 2 (n − 1)s 2
≤σ ≤ 2 = 1− α
2
P 2
χ α / 2,n −1 χ1− α / 2,n −1
Inference on a Population
Proportion
Hypothesis Testing
• Hypotheses: H0: p = p0 H1: p ≠ p0
• Test Statistic:
X − np0
Z0 =
np0 (1 − p0 )
• Significance Level, α
• Rejection Region: Z 0 ≥ Z α / 2
Assoc.Prof. Prapaisri Sudasna-na-Ayudthya, KU
42
Inference on a Population
Proportion
CH X
Assumptions
1. X11, X12, …, X1n1 is a random sample
from population 1.
2. X21, X22, …, X2n2 is a random sample
from population 2.
3. The two populations represented by X1
and X2 are independent.
4. Both populations are normal, or if they
are not normal, the conditions of the
central limit theorem apply.
Assoc.Prof. Prapaisri Sudasna-na-Ayudthya, KU
46
Null Hypothesis:
H 0 : µ1 − µ 2 = ∆ 0
Test Statistic:
X1 − X 2 − ∆ 0
Z0 =
σ12 σ 22
+
n1 n 2
H1 : µ 1 − µ 2 ≠ ∆ 0 z 0 > z α / 2 or z 0 < − z α / 2
H1 : µ 1 − µ 2 > ∆ 0 z0 > zα
H1 : µ 1 − µ 2 < ∆ 0 z0 < −zα
σ 2
σ 1
2
1
V (X1 − X 2 ) = + = σ +
2
n1 n 2 n1 n 2
S =
2 (n1 − 1)S 2
1+ (n 2 − 1)S 2
2
n1 + n 2 − 2
p
Null Hypothesis: H : µ − µ = ∆
0 1 2 0
Test Statistic: X1 − X 2 − ∆ 0
t0 =
1 1
Sp +
n1 n 2
Null Hypothesis: H 0 : µ1 − µ 2 = ∆ 0
Test Statistic: ∗ X1 − X 2 − ∆ 0
t =
0
S12 S22
+
n1 n 2
n1 n2
ν= 2
(S1 n1 ) + (S2 n2 )
2 2 2
n1 − 1 n2 − 1
Assoc.Prof. Prapaisri Sudasna-na-Ayudthya, KU
55
1 1 1 1
x 1 − x 2 − t α / 2 , n1 + n 2 − 2 s p + ≤ µ1 − µ 2 ≤ x 1 − x 2 + t α / 2 , n 1 + n 2 − 2 s p +
n1 n 2 n1 n 2
2 2 2 2
s s s s
x1 − x 2 − t α / 2 ,ν 1
+ ≤ µ1 − µ 2 ≤ x 1 − x 2 + t α / 2 , ν
2 1
+ 2
n1 n 2 n1 n 2
Paired Data
• Observations in an experiment are
often paired to prevent extraneous
factors from inflating the estimate
of the variance.
• Difference is obtained on each pair
of observations, dj = x1j – x2j,
where j = 1, 2, …, n.
• Test the hypothesis that the mean
of the difference, µd, is zero.
Paired Data
• The differences, dj, represent the
“new” set of data with the
summary statistics:
1 n
d = ∑dj
n j=1
∑ (d j − d )
n 2
j=1
S =
2
n −1
d
Paired Data
Hypothesis Testing
• Hypotheses: H0: µd = 0 H1: µd ≠ 0
• Test Statistic:
d
t0 =
Sd n
• Significance Level, α
• Rejection Region: |t0| > tα/2,n-1
H1 : σ12 ≠ σ 22
• Assume random samples of sizes n1 and n2
are taken from populations 1 and 2,
respectively
Assoc.Prof. Prapaisri Sudasna-na-Ayudthya, KU
Inferences on the Variances
61
• Significance Level, α
• R.R.: F0 > Fα / 2,n −1,n
1 2 −1
F0 < F(1− α / 2 ),n1 −1, n 2 −1
S12
H1 : σ > σ 2
1
2
2 F0 = 2 F0 > Fα , n1 −1, n 2 −1
S2
25
Tensile strength (psi)
15
5
5 10 15 20
Hardwood Concentration (%)