Lecture Slides 3a - Statistical Testing
Lecture Slides 3a - Statistical Testing
Lecture Slides 3a - Statistical Testing
Statistical testing
- Statistical testing
- One-sample t-test
• Normal distribution
• Confidence intervals
average
standard deviation
2 variance
Standard percentages of
the normal distribution
68%
95%
99,7%
= 3.06
= 4.6
The probability of an interval of X
Example shopping center
= 3.06
x = 2.5
= 4.6
Standard normal distribution
Standard normal distribution
Transformation of X => Z
All probabilities
1
known in tables
0
Standard normal distribution
Example shopping center
z = -0.686 0
So we have
z = -0.686
Look up in table
P(Z ≤ -0.686) ≈ 0.245
Look up in table
Approximately 55%
Probability P(Z > z)
Example Shopping Center
• Standard deviation
• Sample
• Population
Confidence interval - the problem
• Find an interval [x1, x2] such that average will be
with 95% confidence within [x1, x2]
95% is often used
95%
=4.6 km
x1 x2
Confidence interval
95%
=0
z1 =-1.96 z2 = 1.96
Confidence interval
To translate this to x variables
we must know the variance of
the distribution of sample
means
Standard deviation of sample means
σ = standard deviation in
population
n = sample size
95%
=0
z1 =-1.96 z2 = 1.96
Confidence interval Solving x1 and x2
Confidence interval – population variance known
Example shopping center
95%
=4.6 km
x1 =3.92 x2 = 5.28
Confidence interval
95%
3.9 5.3
= 4.6
Descriptives
Quite extreme so it
seems unlikely
0 = 1.70
1.75
Assuming the claim is right
• We want to know the probability that we find an
average in our sample that differs as strongly as 1.75 m
does from this claimed average
This percentage is
often chosen
= 1.65 0 = 1.70 = 1.75
1 2 df = N – 1 = 99
0 = 1.70
2.5% 2.5%
-1.98 0 1.98
• calculated as:
very small –
typical for large N
df = N – 1 = 99
2.5% 2.5%
-1.98 0 1.98
df = N – 1 = 99
5%
0 1.66
5%
H1 ≠ H 0
2.5% 2.5%
Probability?
Two-tailed
p1 p1 The p-value is
p = p1 + p1 = 0.0012
= 1.65 0 = 1.70 = 1.75
One-tailed
p1 The p-value is
p = p1 = 0.0006
0 = 1.70 = 1.75
degrees of freedom N -1
If 0 in interval then
H0 accepted
Alpha = 5%
large samples
Summary of important concepts
• One-sample t-test:
• Is the average different from a known average?