Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
(Chapter 1)
• The range is
• You can use the rule below to determined the location of the q(p) in the sorted list.
m = (n + 1)p
• Suspected low outlier is any value that is less than the lower limit: LL = q(0.25) − 1.5(IQR)
Suspected high outlier is any value that is greater than the upper limit: U L = q(0.75) + 1.5(IQR)
n n n
!2
X
2
X 1 X
Sxx = (xi − x̄) = x2i − xi
i=1 i=1
n i=1
n n n
! n
!
X X 1 X X
Sxy = (xi − x̄)(yi − ȳ) = xi yi − xi yi
i=1 i=1
n i=1 i=1
n n n
!2
X X 1 X
Syy = (yi − ȳ)2 = yi2 − yi
i=1 i=1
n i=1
• Likelihood function for independent experiments: Suppose we have two independent data set y1
and y2 , corresponding to two independent random variables Y1 and Y2 . The likelihood function
for θ based on the data y1 and y2 is
• Suppose our assumed model Yi v G(µ, σ) , i = 1, 2, . . . , n is reasonable and the observed data are
y1 , y 2 , . . . , y n . µ̂ = ȳ is the maximum likelihood estimate of µ.
n n
1X 1 X 2
µ̃ = Ȳ = Yi , σ̃ 2 = (Y i −Ȳ )
n i=1 n i=1
v
u n
u 1 X
s =t (yi − ȳ)2
n − 1 i=1
n
• For Poisson data with unknown mean θ the point estimate of θ is θ̂ = ȳ = n1
P
yi
i=1
• Suppose θ is a scalar and that L(θ) = L(θ; y) is the likelihood function for θ based on the
observed data y . The relative likelihood function R(θ) is defined as
L(θ)
R(θ) = R(θ; y) = for θ ∈ Ω
L(θ̂)
• Table 4.2
values of θ inside a 10% likelihood interval are plausible values of θ in light of the observed data.
values of θ inside a 50% likelihood interval are very plausible values of θ in light of the observed
data.
values of θ outside a 10% likelihood interval are implausible values of θ in light of the observed
data.
values of θ outside a 1% likelihood interval are very implausible values of θ in light of the observed
data.
• A 100p% confidence interval for a parameter is an interval estimate [L(y), U (y)] for which
Ȳ − µ
Q = Q(Y ; µ) = √ v G(0, 1)
σ0 / n
• The 100p% confidence interval (Two sided confidence interval) for µ is of the form:
Y − nθ
p
nθ(1 − θ)
• An approximate 100p% confidence interval for a random sample from the Poisson(θ):
s
θ̂
θ̂ ± C
n
• An approximate 100p% confidence interval for a random sample from the Exponential(θ):
θ̂
θ̂ ± C √
n
p = 2P (Z ≤ a) − 1 where Z ∼ N (0, 1)
Γ(α) = (α − 1)Γ(α − 1)
Γ(α) = (α − 1)! for α = 1, 2, . . .
√
Γ(1/2) = π
• If X ∼ χ2 (k)
√ √
P (W ≤ w) = P (|Z| ≤ w) = 2P (Z ≤ w) − 1
P (X ≤ x) = 1 − e−x/2
P (X > x) = 1 − P (X ≤ x) = e−x/2
• A 100p% confidence interval for µ of a Gaussian Population, Known σ has the form:
•
Ȳ − µ
√ ∼ t(n − 1).
S/ n
P − value = P (D ≥ d, H0 )
|Ȳ − µ0 |
D= √ .
S/ n
under H0 : µ = µ0 .
If Y ∼ Binomial(n, θ), then:
|Y − nθ0 |
D=p
nθ0 (1 − θ0 )
under H0 : θ = θ0 .
P-value Interpretation
No evidence against H0 ,
P-value> 0.1
based on the observed data.
Weak evidence against H0 ,
0.05 <P-value≤ 0.1
based on the observed data.
Evidence against H0 ,
0.01 <P-value≤ 0.05
based on the observed data.
Strong evidence against H0 ,
0.001 <P-value≤ 0.01
based on the observed data.
Very strong evidence against H0 ,
P-value≤ 0.001
based on the observed data.
(Chapter 6)
• Sample correlation:
Sxy
r=p ,
Sxx Syy
Pn Pn
where Sxy = i=1 xi yi − n(x̄)(ȳ) and Sxx = i=1 x2i − n(x̄)2 .
b = ȳ − βbx̄,
α
βb = Sxy /Sxx .
(n − 2)Se2
and 2
∼ χ2 (n − 2)
σ
• 100p% confidence interval for β is given by
p
β̂ ± ase / Sxx
• rbi = yi − µ
bi , µ
bi = α b i , rb∗ = rbi /se .
b + βx i
(Y 1 − Y 2 ) − (µ1 − µ2 )
T = q ∼ t(n1 + n2 − 2)
Sp n11 + n12
q
1 1
• A 100p% confidence interval for µ1 − µ2 : y 1 − y 2 ± asp n1
+ n2
where P (−a ≤ T ≤ a) = p and
T ∼ t(n1 + n2 − 2).
P − value = P (D ≥ d, H0 )
(Y 1 − Y 2 ) − (µ1 − µ2 )
T = q 2 ∼ G(0, 1) approximately
s1 s22
n1
+ n2
P − value = P (D ≥ d, H0 )
• Comparing mean using paired data:
|Y − 0|
D= √
S/ n
p − value = 2[1 − P (T ≤ d)]
where T ∼ t(n − 1), n = n1 = n2 , S 2 is the variance estimator for Yi .
(Chapter 7)
P − value = P (Λ ≥ λ, H0 ) ≈ P (W ≥ λ)
with W ∼ χ2 (k − 1 − p).
• Goodness of Fit test statistic:
k
X (Yj − Ej )2
D=
j=1
Ej
P − value = P (D ≥ d, H0 ) ≈ P (W ≥ d)
with W ∼ χ2 (k − 1 − p).
• Two way (Contingency) Tables:
• To test the independence of A and B classifications:
Pa Pb
i=1 j=1 θij = 1,
Null hypothesis: H0 : θij = αi βj .
eij = ri cj /n, observed value of the likelihood ratio statistics:
y
λ = 2 ai=1 bj=1 yij log eijij
P P
Bernoullip p y 1 − p 1−y
p p1 − p pe t q
0 p 1, q 1 − p y 0, 1
yk−1 p k
Negative Binomialk, p y pkqy kq kq
p 1−qe t
p2
0 p 1, q 1 − p y 0, 1, 2, . . . t − ln q
p
Geometricp pq y q q 1−qe t
p p2
0 p 1, q 1 − p y 0, 1, 2, . . . t − ln q
r N−r
y n−y
HypergeometricN, r, n
N
n
nr
N
n Nr 1 − Nr N−n
N−1
intractible
r N, n N
y 0, 1, 2, . . . , min(r, n
e − y
Poisson
e e −1
t
y!
0 y 0, 1, . . .
y y y
Multinomialn, 1 , . . . k
n!
y 1 !y 2 !...y k !
11 22 . . . k k
k k n 1 , . . . , n k VarY i n i 1 − i
i 0, ∑ i 1 y i 0, 1, . . . ; ∑ yi n
i1 i1
Continuous p.d.f.
e bt −e at
b−a 2
Uniforma, b fy 1
b−a
,ayb ab
2 12
b−at
t≠0
Exponential
1
fy 1
e −y/ , y 0 2 1−t
0 t 1/
e −y− /2
1 2 2
N, 2 or G(, fy
e t
2 t 2 /2
2 2
− , 0 − y
fy 1
y k/2−1 e −y/2 , y0
2 k/2 Γk/2
Chi-squared(k 1 − 2t −k/2
k 2k
k0 where Γa x a−1 −x
e dx t 1/2
0
y 2 −k1/2
fy c k 1 k
k
Student t 0 k−2
− y where undefined
k0 if k 1 if k 2
c k Γ k1
2
/ k Γ 2k
Probabilities for Standard Normal N(0,1) Distribution
0.40
0.35
0.30 x
0.25
0.20
0.15 F(x)
0.10
0.05
0.00
-4 -3 -2 -1 0 1 2 3 4
df\p 0.005 0.01 0.025 0.05 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 0.95 0.975 0.99 0.995
1 0.000 0.000 0.001 0.004 0.016 0.064 0.148 0.275 0.455 0.708 1.074 1.642 2.706 3.842 5.024 6.635 7.879
2 0.010 0.020 0.051 0.103 0.211 0.446 0.713 1.022 1.386 1.833 2.408 3.219 4.605 5.992 7.378 9.210 10.597
3 0.072 0.115 0.216 0.352 0.584 1.005 1.424 1.869 2.366 2.946 3.665 4.642 6.251 7.815 9.348 11.345 12.838
4 0.207 0.297 0.484 0.711 1.064 1.649 2.195 2.753 3.357 4.045 4.878 5.989 7.779 9.488 11.143 13.277 14.860
5 0.412 0.554 0.831 1.146 1.610 2.343 3.000 3.656 4.352 5.132 6.064 7.289 9.236 11.070 12.833 15.086 16.750
6 0.676 0.872 1.237 1.635 2.204 3.070 3.828 4.570 5.348 6.211 7.231 8.558 10.645 12.592 14.449 16.812 18.548
7 0.989 1.239 1.690 2.167 2.833 3.822 4.671 5.493 6.346 7.283 8.383 9.803 12.017 14.067 16.013 18.475 20.278
8 1.344 1.647 2.180 2.733 3.490 4.594 5.527 6.423 7.344 8.351 9.525 11.030 13.362 15.507 17.535 20.090 21.955
9 1.735 2.088 2.700 3.325 4.168 5.380 6.393 7.357 8.343 9.414 10.656 12.242 14.684 16.919 19.023 21.666 23.589
10 2.156 2.558 3.247 3.940 4.865 6.179 7.267 8.296 9.342 10.473 11.781 13.442 15.987 18.307 20.483 23.209 25.188
11 2.603 3.054 3.816 4.575 5.578 6.989 8.148 9.237 10.341 11.530 12.899 14.631 17.275 19.675 21.920 24.725 26.757
12 3.074 3.571 4.404 5.226 6.304 7.807 9.034 10.182 11.340 12.584 14.011 15.812 18.549 21.026 23.337 26.217 28.300
13 3.565 4.107 5.009 5.892 7.042 8.634 9.926 11.129 12.340 13.636 15.119 16.985 19.812 22.362 24.736 27.688 29.819
14 4.075 4.660 5.629 6.571 7.790 9.467 10.821 12.078 13.339 14.685 16.222 18.151 21.064 23.685 26.119 29.141 31.319
15 4.601 5.229 6.262 7.261 8.547 10.307 11.721 13.030 14.339 15.733 17.322 19.311 22.307 24.996 27.488 30.578 32.801
16 5.142 5.812 6.908 7.962 9.312 11.152 12.624 13.983 15.338 16.780 18.418 20.465 23.542 26.296 28.845 32.000 34.267
17 5.697 6.408 7.564 8.672 10.085 12.002 13.531 14.937 16.338 17.824 19.511 21.615 24.769 27.587 30.191 33.409 35.718
18 6.265 7.015 8.231 9.391 10.865 12.857 14.440 15.893 17.338 18.868 20.601 22.760 25.989 28.869 31.526 34.805 37.156
19 6.844 7.633 8.907 10.117 11.651 13.716 15.352 16.850 18.338 19.910 21.689 23.900 27.204 30.144 32.852 36.191 38.582
20 7.434 8.260 9.591 10.851 12.443 14.578 16.266 17.809 19.337 20.951 22.775 25.038 28.412 31.410 34.170 37.566 39.997
25 10.520 11.524 13.120 14.611 16.473 18.940 20.867 22.616 24.337 26.143 28.172 30.675 34.382 37.652 40.646 44.314 46.928
30 13.787 14.953 16.791 18.493 20.599 23.364 25.508 27.442 29.336 31.316 33.530 36.250 40.256 43.773 46.979 50.892 53.672
35 17.192 18.509 20.569 22.465 24.797 27.836 30.178 32.282 34.336 36.475 38.859 41.778 46.059 49.802 53.203 57.342 60.275
40 20.707 22.164 24.433 26.509 29.051 32.345 34.872 37.134 39.335 41.622 44.165 47.269 51.805 55.758 59.342 63.691 66.766
45 24.311 25.901 28.366 30.612 33.350 36.884 39.585 41.995 44.335 46.761 49.452 52.729 57.505 61.656 65.410 69.957 73.166
50 27.991 29.707 32.357 34.764 37.689 41.449 44.313 46.864 49.335 51.892 54.723 58.164 63.167 67.505 71.420 76.154 79.490
60 35.534 37.485 40.482 43.188 46.459 50.641 53.809 56.620 59.335 62.135 65.227 68.972 74.397 79.082 83.298 88.379 91.952
70 43.275 45.442 48.758 51.739 55.329 59.898 63.346 66.396 69.334 72.358 75.689 79.715 85.527 90.531 95.023 100.430 104.210
80 51.172 53.540 57.153 60.391 64.278 69.207 72.915 76.188 79.334 82.566 86.120 90.405 96.578 101.880 106.630 112.330 116.320
90 59.196 61.754 65.647 69.126 73.291 78.558 82.511 85.993 89.334 92.761 96.524 101.050 107.570 113.150 118.140 124.120 128.300
100 67.328 70.065 74.222 77.929 82.358 87.945 92.129 95.808 99.334 102.950 106.910 111.670 118.500 124.340 129.560 135.810 140.170
THIS PAGE MAY BE USED FOR ROUGH WORK.
THIS PAGE WILL NOT BE MARKED.