Statistics: Sample
Statistics: Sample
Statistics: Sample
Sample
••
••••• Examples:
•• • production
•••• ••
•••• • marketing research
•••••
2.0
the value(s) with highest frequency
1.5
0.5
0.0
X ( n +1) 2
-3 0 2 4 7 10 12
n odd x = 55 / 13 = 4.23
~ Mean :
X = X n 2 + X n 2+1 Mode : m=7
n even
Median : ~
x =4
2
2 lecture 6
Sample
Range & variance
Range: Example cont.:
R = X(n) - X(1) Range: r = 15
1 15
Sample varinace: Variance: s =
2
∑
13 − 1 i = 1
( X i − 4. 23) 2
= 25.03
1 n
S =
2
∑
n − 1 i= 1
( X i − X ) 2
Standard div: s = 25.03 = 5.00
3 lecture 6
Sample mean
Normal distribution
Theorem:
Let X1, X2, ... Xn be independent normal distributed random
variables with same mean µ and same finite variance σ2,
that is X ~ N ( µ , σ 2 ), i = 1, 2, , n iid.
i
It follows that σ2
X ~ N µ ,
n
and then X −µ
~ N (0,1)
σ n
4 lecture 6
Sample mean
Distribution
The Central Limit Theorem (CLT):
Let X1, X2, ... Xn be independent identically distributed
random variables with same mean µ and same finite
variance σ2. Then the distribution of
X −µ
Z=
σ
n
will tend towards the standard normal distribution as n → ∞.
Theorem:
Lad X1, X2, ... Xn be independent normal distributed
random variables with mean µ and variance σ2.
Then (n − 1) S 2 1 n
σ2
=
σ2
∑ i
( X
i= 1
− X ) 2
~ χ 2
(n − 1)
S =
2
n ∑ X i − ∑ X i
2
n (n − 1) i = 1
i= 1
8 lecture 6
Sample variance
Example
Problem: Car batteries
A producer of car batteries claims that the life time of
their batteries are normal distributed with
mean: µ = 3 year
standard deviation: σ = 1 year
Theorem:
Lad X1,X2, ... Xn be independent normal distributed
random variables with mean µ and variance σ2 (unknown).
X −µ
Then ~ t (n − 1)
S
n
10 lecture 6
Sample mean
Example (unknown variance)
Problem cont.: Car batteries
Producer claims that the life time of
their batteries are normal distributed with
mean: µ = 3 years
standard deviation: unknown
11 lecture 6
Two sample variances
Comparison
Theorem:
If two independent samples are taken from two normal
populations with variances σ1 and σ2 , respectively, then
2 2
2
S1
σ 12
2
~ F (n 1 − 1, n 2 − 1)
S2
σ 22
1 1
Notice!! f 1 − α (n 1 , n 2 ) = Eg. f 0.95 (6, 10) =
f α (n 2 , n 1 ) f 0.05 (10, 6)
12 lecture 6