Professional Documents
Culture Documents
Various Exercises
Chi-squared distribution
Katerina Stankov
Statistics (MAT1003)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Outline
1
Erlang distribution
Formulation
Application of Erlang distribution
Gamma distribution
Various Exercises
Chi-squared distribution
Basics
Applications
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
And now . . .
Erlang distribution
Formulation
Application of Erlang distribution
Gamma distribution
Various Exercises
Chi-squared distribution
Basics
Applications
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Formulation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Formulation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Formulation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Formulation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
1
)
3
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
3
18
2
+
x exp(18 x) dx = 162 x 2 exp(18 x)
1
2
18
x= 31
3
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
3
18
2
+
x exp(18 x) dx = 162 x 2 exp(18 x)
1
2
18
x= 31
3
Z
1
+ 324 ( ) x exp(18 x)
+ 18
exp(18 x) dx
1
18
x= 1
3
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
3
18
2
+
x exp(18 x) dx = 162 x 2 exp(18 x)
1
2
18
x= 31
3
Z
1
+ 324 ( ) x exp(18 x)
+ 18
exp(18 x) dx
1
18
x= 1
3
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
3
18
2
+
x exp(18 x) dx = 162 x 2 exp(18 x)
1
2
18
x= 31
3
Z
1
+ 324 ( ) x exp(18 x)
+ 18
exp(18 x) dx
1
18
x= 1
3
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
(n 1)!
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
t n1 exp(t) d t
(n 1)! =
0
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
t n1 exp(t) d t
(n 1)! =
0
t 1 exp(t) dt
() =
for R
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
t n1 exp(t) d t
(n 1)! =
0
t 1 exp(t) dt
() =
for R
Thenf (x) =
x 1
exp( x) for x > 0 and 0 elsewhere
()
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
t n1 exp(t) d t
(n 1)! =
0
t 1 exp(t) dt
() =
for R
Thenf (x) =
x 1
exp( x) for x > 0 and 0 elsewhere
()
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Gamma distribution
Derivation
One can prove that
t n1 exp(t) d t
(n 1)! =
0
t 1 exp(t) dt
() =
for R
Thenf (x) =
x 1
exp( x) for x > 0 and 0 elsewhere
()
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
And now . . .
Erlang distribution
Formulation
Application of Erlang distribution
Gamma distribution
Various Exercises
Chi-squared distribution
Basics
Applications
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams?
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
A=X +Y
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
A = X + Y N X + Y , X2 + Y2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
p
A = X + Y N X + Y , X2 + Y2 = N 505 + 10, 52 + 12
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
p
A = X + Y N X + Y , X2 + Y2 = N 505 + 10, 52 + 12
= N 515, 26
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
p
A = X + Y N X + Y , X2 + Y2 = N 505 + 10, 52 + 12
A 515
= N 515, 26 Z =
N (0, 1)
26
510 515
520 515
P(
Z
)
26
26
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
p
A = X + Y N X + Y , X2 + Y2 = N 505 + 10, 52 + 12
A 515
= N 515, 26 Z =
N (0, 1)
26
510 515
520 515
P(
Z
) = P(Z 0.98) P(Z 0.98)
26
26
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
5
= 1 P(Z 1) = 1 0.1587 = 0.8413
(b) What is the probability that the gross weight of a pack is between 510
and 520 grams? A : gross weight of a pack
q
p
A = X + Y N X + Y , X2 + Y2 = N 505 + 10, 52 + 12
A 515
= N 515, 26 Z =
N (0, 1)
26
510 515
520 515
P(
Z
) = P(Z 0.98) P(Z 0.98)
26
26
= 0.6730
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
P(5120 B 5170)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
P(5120 B 5170) = P
5120 5150
5170 5150
Z
260
260
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
5120 5150
5170 5150
P(5120 B 5170) = P
Z
260
260
= P (1.86 Z 1.24)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
5120 5150
5170 5150
P(5120 B 5170) = P
Z
260
260
= P (1.86 Z 1.24) = P (Z 1.24) P (Z 1.86)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
B5150
260
N (0, 1)
5120 5150
5170 5150
P(5120 B 5170) = P
Z
260
260
= P (1.86 Z 1.24) = P (Z 1.24) P (Z 1.86)
= 0.8925 0.0314 = 0.8611
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Apparently a515
= 0.84 a = 0.84 26 + 515 = 510.7
26
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Apparently a515
= 0.84 a = 0.84 26 + 515 = 510.7
26
In general . . .
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Apparently a515
= 0.84 a = 0.84 26 + 515 = 510.7
26
In general . . .
X N (, ) and P(X x) = p, P Z z =
=p
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Apparently a515
= 0.84 a = 0.84 26 + 515 = 510.7
26
In general . . .
X N (, ) and P(X x) = p, P Z z =
=p
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
(x1 x2 ) 0
N (0, 1)
50
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
(x1 x2 ) 0
N (0, 1)
50
P (2 X1 X2 2) = P(X1 X2 2) P(X1 X2 2)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
(x1 x2 ) 0
N (0, 1)
50
P (2
X2 2) = P(X1 X2 2) P(X1 X2 2)
X1
20
P Z 50 P Z 20
50
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
(x1 x2 ) 0
N (0, 1)
50
P (2
X2 2) = P(X1 X2 2) P(X1 X2 2)
X1
20
P Z 50 P Z 20
50
P (Z 0.28) P (Z 0.28) = 0.6103 0.3897 = 0.2206
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
where G is the cumulative density of Z . So
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
where G is the cumulative density of Z . So
1
1
f (x) = F 0 (x) = 12 x 2 G0 ( x) ( 21 )x 2 G0 ( x)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
where G is the cumulative density of Z . So
1
1
f (x) = F 0 (x) = 12 x 2 G0 ( x) ( 21 )x 2 G0 ( x)
1
= 12 x 2
1
2
exp( x2 ) + 12 x 2
1
2
exp( x2 )
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
where G is the cumulative density of Z . So
1
1
f (x) = F 0 (x) = 12 x 2 G0 ( x) ( 21 )x 2 G0 ( x)
1
= 12 x 2
1
2
exp( x2 ) + 12 x 2
1
2
exp( x2 )=
1
2
exp( x2 )
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Observation
Let Z N (0, 1). For cumulative density of the RV X = Z 2 we have:
2
F (x) = P(X
x) = P(Z
x) = P(|z| x) = P( x Z
x) = G( x) G( x)
where G is the cumulative density of Z . So
1
1
f (x) = F 0 (x) = 12 x 2 G0 ( x) ( 21 )x 2 G0 ( x)
1
= 12 x 2
1
2
exp( x )
exp( x2 ) + 12 x 2 12 exp( x2 )=
4
1
2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
And now . . .
Erlang distribution
Formulation
Application of Erlang distribution
Gamma distribution
Various Exercises
Chi-squared distribution
Basics
Applications
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
def
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
def
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
def
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
def
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Basics
Formulation
def
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Applications
Estimation of
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Applications
Estimation of
Let X1 , X2 , . . . , Xn N (, ) IDD with known and unknown
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Applications
Estimation of
Let X1 , X2 , . . . , Xn N (, ) IDD with known and unknown
Then Zi = Xi N (0, 1)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Applications
Estimation of
Let X1 , X2 , . . . , Xn N (, ) IDD with known and unknown
Then Zi = Xi N (0, 1)
Zi2 =
(Xi )2
2
2i
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Applications
Estimation of
Let X1 , X2 , . . . , Xn N (, ) IDD with known and unknown
Then Zi = Xi N (0, 1)
(Xi )2
2i
2
P
def
n
2 = i=1 Zi2 = 12
Zi2 =
Pn
i=1 (Xi
)2 2n
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
Table A5: P(2 12.832) = 0.025 and P(2 0.831) = 0.975
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
Table A5: P(2 12.832) = 0.025 and P(2 0.831) = 0.975
So (fill the realization for 2 :) P(0.831 24.83
12.832) =
2
0.975 0.025 = 0.95 P( 2 [1.935, 29.88]) = 0.95
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
Table A5: P(2 12.832) = 0.025 and P(2 0.831) = 0.975
So (fill the realization for 2 :) P(0.831 24.83
12.832) =
2
0.975 0.025 = 0.95 P( 2 [1.935, 29.88]) = 0.95
P( [1.391, 5.466]) = 0.95
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
Table A5: P(2 12.832) = 0.025 and P(2 0.831) = 0.975
So (fill the realization for 2 :) P(0.831 24.83
12.832) =
2
0.975 0.025 = 0.95 P( 2 [1.935, 29.88]) = 0.95
P( [1.391, 5.466]) = 0.95
Apparently reasonable values for are between 1.391 and 5.466. We call
[1.391, 5.466] a 95 % confidence interval for
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The
realizations for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of
are reasonable?
P
def
Let 2 = 12 5i=1 (Xi )2
= 12 ((1.5)2 + (0.7)2 + (3.8)2 + (1.8)2 + (2.1)2 ) = 24.83
2
Table A5: P(2 12.832) = 0.025 and P(2 0.831) = 0.975
So (fill the realization for 2 :) P(0.831 24.83
12.832) =
2
0.975 0.025 = 0.95 P( 2 [1.935, 29.88]) = 0.95
P( [1.391, 5.466]) = 0.95
Apparently reasonable values for are between 1.391 and 5.466. We call
[1.391, 5.466] a 95 % confidence interval for
Similarly, [1.935, 29.88] is a 95 % confidence interval for 2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
Now, since s =
1
n1
Pn
i=1 (xi
x )2 , we have
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
2n
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
=
X
1
n
Pn
i=1
xi N (,
)
n
2n
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
=
X
1
n
Pn
i=1
xi N (,
)
n
2n
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
=
X
1
n
Pn
i=1
xi N (,
)
n
2n
)2
(X
2 / n
/ n
2
21
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
=
X
1
n
Pn
i=1
xi N (,
)
n
2n
)2
(X
2 / n
/ n
2
21 the statistics
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
i=1
n
n
n
X
X
X
=
(xi x )2 + 2
(xi x )(x ) +
(x )2
i=1
i=1
i=1
n
X
=
(xi x )2 + n (x )2
i=1
2
1
n1
Now, since s =
n
1 X
(xi )2 =
2
i=1
|
{z
}
Pn
i=1 (xi
(n1)s2
2
x )2 , we have
(x )2
2 /n
=
X
1
n
Pn
i=1
xi N (,
)
n
2n
)2
(X
2 / n
2 =
(n1) s
2
/ n
2
21 the statistics
(xi x )2
i=1
2
Pn
2n1
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
P(0.484 24.732/ 2 11.143) = 0.95
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
P(0.484 24.732/ 2 11.143) = 0.95
P(24.732/11.143 2 24.732/0.484) = 0.95
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
P(0.484 24.732/ 2 11.143) = 0.95
P(24.732/11.143 2 24.732/0.484) = 0.95
95% CI for 2 : [24.732/11.143, 24.732/0.484] = [0.220, 51.0999]
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
P(0.484 24.732/ 2 11.143) = 0.95
P(24.732/11.143 2 24.732/0.484) = 0.95
95% CI for 2 : [24.732/11.143, 24.732/0.484] = [0.220, 51.0999]
95% CI for : [1.490, 7.148]
beamer-tu-log
Erlang distribution
Various Exercises
Chi-squared distribution
Examples
Example 7 (b)
Let X1 , X2 , . . . , Xn N (, ) IDD with = 5 and unknown . The realizations
for X1 , . . . , X5 are 3.5, 5.7, 1.2, 6.8, and 7.1. What values of are reasonable
2
def
2n1 = 24
Let 2 = (n1)s
2
1
= (3.5 + 5.7 + 1.2 + 6.8 + 7.1) = 4.86
X
5
P
(n 1)s2 = ni=1 (xi x )2 = 24.732
2
24.732
= 2
Construct a 95% confidence interval for :
Table A5: P(2 11.143) = 0.025 and P(2 0.484) = 0.975
P(0.484 24.732/ 2 11.143) = 0.95
P(24.732/11.143 2 24.732/0.484) = 0.95
95% CI for 2 : [24.732/11.143, 24.732/0.484] = [0.220, 51.0999]
95% CI for : [1.490, 7.148]
Important!: These calculations use the fact that Xi s are normally distributed. If
it is not the case, we cannot use 2 -distributions!
beamer-tu-log