Академический Документы
Профессиональный Документы
Культура Документы
OIKONOMETRIA I:
Epanlhyh Basikn Statistikn Ennoin
Panagithc J. Kwnstantnou
Stlioc Fountc
Gr.
Gr.
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
1 / 91
Tuqaec Metablhtc
PA. MAK.
2 / 91
Isqei ti:
(OE)
Tuqaec Metablhtc
KWNSTANTINOU, FOUNTAS
KWNSTANTINOU, FOUNTAS
PA. MAK.
3 / 91
X ()
R
,
| {z }
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
4 / 91
(Example: our interest is to learn about the food expenditures by UK families, or the
average income in the UK).
Our assumption is that there is an unknown process that generates the data we have
statistical experiment and that this process can be described by a probability
distribution. The aspect of the economy we are interested in, our outcome variable, Y ,
is a random variable. Until the experiment is performed it is uncertain what value Y
will take. Typically, we will use capital letters for the name of a random variable and
lowercase letters for the values it takes.
F (x)
x
The probabilitythc
associated
the continuous
random
X taking
any
Hpargwgoc
CDFwith
fx (x)
x
x variable
RX , enai
h sunrthsh
particular value x is zero (Pr(X = x) = 0)
(puknthtac) pijanthtac PDF
Continuous Random
Variableorzetai
has a smooth,
Hsunrthsh
pijanthtac
katnon-decreasing
trpo ste:CDF.
f (x) 0, x R
@F (x)
f (x) dx = 1
f (x) dx =
Distribution
RX xFunction, f (x) @x x ; is the Probability Density Function (PDF): The
(a sox that
(a x < b) = Pr (a < x b) =
b)
= Pr0 and
p.d.f. isPr
dened
f (x)
Rb
b
Pr (a < xPr(a
< b) X= ab) =
fx R(u)
du == F
f (x)dx
F x(b)(b)F
(a)Fx (b)
0
1
X
Rx
R +
Probability
Density Function
(univariate): The derivative of the Cumulative
2
F (x)
R1
Grafik, aut
shmanei
f (x)dx = 1ti h pijanthta mia tuqaa metablht na
1
lambnei
timc metax a kai b enai h skiazmenh perioq ktw ap
Graphically this implies that the probability that the random variable takes
thnvalues
PDFbetween
.
a and b is the highlighted area under the p.d.f.
F (y)
F (x)
Rx
1
(u) du, fx (u) 0.
Rb
Pr (a x b) = a fx (u) du = Fx (b) Fx (a) =
Rb
Ra
(u)
f
f (u) du
du
Fx (x) =
f
x
0 Fx (x) 1
En z < y, tte Fx (z) Fx (y)
Fx (+) = Pr (x < +) = 1
Fx () = 0.
KWNSTANTINOU, FOUNTAS
(OE)
y = f (x)
PA. MAK.
5 / 91
KWNSTANTINOU, FOUNTAS
Algebraically, we note
f (x)
(OE)
PA. MAK.
6 / 91
where
F (x) = Pr(X
x + dx)
Pr(X
x)
Orismc
or f (x) = lim
0
Majhmatik Elpda
MtradxKentrikc
Tshc
dx!0
with dx ! 0
) Pr(X 2 [x; x + dx]) = f (x)
dx
}|
{
Zz}|{ z
pdf width of the interval
E [x]
xfx (x) dx =
Pr(X2[x;x+dx])
Fx (x)
x
= limdx0
F(x+dx)F(x)
dx
Pr(X [x,x+dx])
dx
bution theory). If X is a vector of random variables (X1 ; ::; Xn ), we need to use multi-
dx
|{z}
m
: Dimesoc
(median):
Pr (x m) 1/2 Pr (x m) 1/2,
variate
distribution
theory.
Epikratosa tim (mode) max fx (x). Gia mia sunrthsh tou x , g(x) h
majhmatik elpda orzetai wc 2
Z
E [g (x)]
g (x) fx (x) dx
RX
RX random variable X (univariate distriSo far only considered the p.d.f. and c.d.f. of one
(OE)
PA. MAK.
7 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
8 / 91
Orismc
Diakmansh
Mtro Diasporc
Orismc
Z
i
h i
2
2
2
2
x Var [x] E (x ) = E x (E [x]) =
h
(x )2 fx (x) dx > 0
RX
Rx
RX
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
9 / 91
Shmantikc Anisthtec
Pr [ k x + k ] 1
1
k2
PA. MAK.
10 / 91
E [g (x)]
Pr [g (x) ] 1
.
g ()
(OE)
kai
KWNSTANTINOU, FOUNTAS
KWNSTANTINOU, FOUNTAS
H anisthta Chebyshev :
E [g (x)]
Pr [g (x) ]
g ()
PA. MAK.
11 / 91
= 0 + 1 x
En jsoume x0 = = E [x], tte
g (x) ' [g () g 0 () ] + g 0 () x
kai
KWNSTANTINOU, FOUNTAS
PA. MAK.
12 / 91
Paradegmata
Polumetablhtc Katanomc
'Ewc ed qoume parousisei thn PDF kai CDF miac tuqaac
metablhtc x (jewra monometablhtn katanomn). En x enai na
dinusma tuqawn metablhtn [x1 , x2 , , xn ]0 , qreiazmaste na
qrhsimopoisoume thn jewra polumetablhtn katanomn.
Ap koino Ajroistik Sunrthsh Pijanthtac (Joint Distribution
Function)
Pardeigma
(
fx =
1/x 2 x 1
= Fx (x) =
0
x<1
1 1/x 2 x 1
0
x<1
Pardeigma
Ekjetik katanom fx (x) =
e x ,
> 0, x R+
Fx (x) = 1 e
1
E [x] =
2
1
Var [x] =
, > 0, x R+
fR (xx )R 0
Rxn
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
13 / 91
Rxn
f (x, y)
f (x, y)
kai f ( y| x) =
.
fy (y)
fx (x)
(OE)
PA. MAK.
(OE)
PA. MAK.
14 / 91
n
Y
fi (xi ; ).
t=1
Tautshma Katanemhmnec
Katanemhmnec: Do tuqaec metablhtc X kai Y enai
tautshma katanemhmnec en qoun thn dia sunrthsh
(puknthtac) pijanthtac PDF.
f ( y| x) y x.
f (x, y) = f ( x| y) fy (y) = f ( y| x) fx (x)
.. X Y , f ( y| x) = fy (y)
f ( x| y) = fx (x) .
KWNSTANTINOU, FOUNTAS
KWNSTANTINOU, FOUNTAS
Rx1
f ( x| y) =
Rxn 1
n F (x1 , x2 , ..., xn )
x1 x2 ...xn
15 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
16 / 91
E [xx ] E
KWNSTANTINOU, FOUNTAS
(OE)
E [x1 ]
E [x2 ]
..
.
xn
E [xn ]
x1
x2
..
.
1
2
..
.
ij xi xj .
ij > 0 (< 0) xi xj
() .
=
x
PA. MAK.
(OE)
PA. MAK.
18 / 91
h
i
Var [xx ] E (xx x ) (xx x )0 = E [xx x 0 ] x 0x
x1 1
x h
2
2
=E
n
n
.
1
1
2
2
xn n
KWNSTANTINOU, FOUNTAS
(OE)
(x1 1 )2
(x1 1 ) (x2 2 )
(x2 2 ) (x1 1 )
(x2 2 )2
= E
..
..
.
.
KWNSTANTINOU, FOUNTAS
(x1 1 ) (xn n )
(x2 2 ) (xn n )
..
..
.
.
(xn n )2
PA. MAK.
19 / 91
Cov [x1 , x2 ]
Var [x2 ]
Cov [x2 , xn ]
=
..
..
..
..
.
.
.
.
1 12 1n
12 22 2n
= .
..
.. x
..
..
.
.
.
1n 2n 2n
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
20 / 91
1 12 13 1n
12 1 23 2n
3n
Corr [xx ] 13 23 1
..
..
..
..
.
..
.
.
.
.
1n 2n 3n 1
R
x
(OE)
PA. MAK.
21 / 91
, Cov [X , Y ] = E [XY ] x y = 0.
'OMWS
Mhdenik sundiakmansh ; Anexarthsa, (exaresh apotelon t.m.
pou katanmontai kanonik.)
PA. MAK.
22 / 91
Jerhma
h
i
Cov [X , Y ] = E [(X E [X ]) (Y E (Y ))] = E (X x ) Y y =
E [XY ] x y
E [XY ] =
Z Z
Z Z
Anexarthsa
xyf (x, y) dxdy
=
xyfx (x) fy (y) dxdy
Z
Z
=
xfx (x) dx
yfy (y) dy = x y = E [X ] E [Y ]
(OE)
(OE)
KWNSTANTINOU, FOUNTAS
KWNSTANTINOU, FOUNTAS
PA. MAK.
23 / 91
0 x , 0 x )
0x (
Apdeixh
(1) Gia th majhmatik elpda qoume
x ] = E (1 , 2 , , n )
E [
x1
x2
..
.
xn
= E [ x + x + + x ]
n n
1 1
2 2
(OE)
PA. MAK.
24 / 91
Jerhma
Apdeixh
(2) Gia th diakmansh qoume:
h
i
0x ] = E 0 x E [
0x ] 0 x E [
0x ] 0
Var [
h
i
x
x
= E 0 (x
xE [xx ]) (x
xE [xx ])0
h
i
= 0 E (xx ) (xx )0
0x ] = aE [x1 ] + bE [x2 ]
E [y] = E [
"
#
!
2 12
a
1
Var [y] = a b
b
12 22
= 0 x
(OE)
PA. MAK.
25 / 91
Jerhma
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
26 / 91
Up-Sunjkh Ropc
Orismc
A
x, A xA 0) .
Ax (A
Ry
h opoa enai epshc mia palindrmhsh thc y pnw sth x kai enai
sunrthsh tou x. Parathrste ti kje t.m. mpore na grafe wc:
'Eqoume ti:
Ax
x
E [Ax
Ax] = A E [xx ] = A
0
Ax
Var [Ax
Ax] = A Var [xx ] A = A x A 0
KWNSTANTINOU, FOUNTAS
(OE)
y = E [ y| x] + (y E [ y| x]) = E [ y| x] + u
PA. MAK.
27 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
28 / 91
Up-Sunjkh Ropc
E [y] = Ex (E [ y| x])
Orismc
Ex x.
.
2. :
o Z
Var [ y| x] = E (y E [ y| x]) x =
n
(y E [ y| x])2 f ( y| x) dy
Ry
E [ y| x] x. E [ y| x] = 0 + 1 x. :
KWNSTANTINOU, FOUNTAS
(OE)
i
= E y 2 x (E [ y| x])2
h
PA. MAK.
29 / 91
KWNSTANTINOU, FOUNTAS
(OE)
Cov [y, x]
Var [x]
PA. MAK.
30 / 91
Sunjwc, endiafermaste gia to poio tmma thc Var [y] enai megaltero.
Gia aut to skop mporome na qrhsimopoiome:
Suntelestc Prosdiorismo =
Varx [E [ y| x]]
.
Var [y]
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
31 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
32 / 91
Orismc
Oi t.m. x1 , x2 , ..., xT kalontai tuqao degma megjouc T ap ton
plhjusm f (x; ), en enai anexrthtec t.m. kai h oriak sunrthsh
puknthtac - pijanthtac enai h f (x; ), dhl. xt IID f (x; ).
f (x1 , x2 , ..., xT ; ) =
T
Y
PROSOQH
PROSOQH: H (x1 , ..., xT ) enai sunrthsh mno twn timn tou
degmatoc, kai den exarttai ap tic timc twn paramtrwn .
Suqn qrhsimopoiomenec statistikc:
f (xt ; )
t=1
x =
T
1X
xt : deigmatikc msoc
T
t=1
1 X
(xt x )2 : deigmatik diakmansh
T 1
t=1
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
33 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
34 / 91
Jerhma
P
'Estw x1 , ..., xT kpoioi arijmo kai x = T1 Tt=1 xt . Tte isqoun oi
akloujec do sunjkec:
P
P
min Tt=1 (xt )2 = Tt=1 (xt x )2 , dhl. = x
P
P
(T 1) s 2 = Tt=1 (xt x )2 = Tt=1 xt2 T x 2
1
h P
i
T
1
1 PT
1 PT
t=1 E (xt ) = T
t=1 =
Th t=1 xt = iT
hP
i
2
2
T
1
Var [x ] = E (x E [x ]) = T 2 E
t=1 (xt )
nP
o
h
i P
2
T
T
= T12
t,s E [(xt ) (xs )]
t=1 E (xt ) +
P
P
= T12 Tt=1 Var [xt ] +
0
= T12 Tt=1 2 = 2 /T
|{z}
E [x ] = E
Jerhma
'Estw x1 , ..., xT na tuqao degma ap kpoion plhjusm kai stw g (x)
mia sunrthsh ttoia ste na uprqoun h E [g (x1 )] kai h Var [g (x1 )].
Tte:
hP
i
E Tt=1 g (xt ) = TE [g (x1 )]
hP
i
Var Tt=1 g (xt ) = T Var [g (x1 )]
1
anexarthsa
En ta xt prorqontai ap kanonik plhjusm, o x katanmetai
epshc kanonik wc grammik sunrthsh kanonikn metablhtn.
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
35 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
36 / 91
yt = + ut , t = 1, ..., T
E [ut ] = 0.
Var [ut ] = 2
Cov [ut , us ] = 0 gia t , s.
dhl. ut IID 0, 2 . H teleutaa idithta Cov [ut , us ] = 0 prokptei ap
thn upjesh ti ta yt enai anexrthta (tuqao degma) kai epomnwc
asusqtista.
3
BASIC STATISTICS
The least squares estimator of is obtained by minimizing the sum of squares errors, SSE, defined by
KWNSTANTINOU, FOUNTAS
(OE)
SSE =
n
X
e2i =
i=1
n
X
(yi )
PA. MAK.
37 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
38 / 91
(45)
i=1
The idea is to pick the value of to estimate which minimizes SSE. Pictorially we select the
value of which minimizes the sum of squares of the vertical deviations in figure 1.
min SSE =
T
X
t=1
t2 =
u
T
X
2
yt .
t=1
The solution is obtained by finding the value of that minimizes equation 45.
n
X
SSE
(yi )(1)
= 0
=2
i=1
n
1 X
=
yi = y
n i1
(46)
This method chooses values of the parameters of the underlying distribution, , such that the
distance between the elements of the random sample and predicted values are minimized.
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
39 / 91
T
T
X
SSE
1X
= 2
yt = 0 =
yt = y .
T
t=1
KWNSTANTINOU, FOUNTAS
(OE)
t=1
PA. MAK.
40 / 91
: .
h i
, . E = .
h i
bias E .
BASIC STATISTICS
17
4.2.1. Unbiasedness.
is said to be an
estimator
of if E = .
unbiased
In figure 2, is an unbiased estimator of , while is a biased estimator.
0 , .
F IGURE 2. Unbiased Estimator
fHL
fHL
Qrhsimopointac
h i
2 = Var [xt ] = E xt2 2
fHL
h i
E x 2 = T 1 2 + 2 + T 2 T (T 1) 2 = 2 +
2
T
, 2
(OE)
'Ennoiec
4.2.2. Minimum
variance.Basikc
is said to beStatis
a minimumtikc
variance estimator
of if
KWNSTANTINOU, FOUNTAS
V ar V ar
PA. MAK.
41 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
42 / 91
(70)
where is any other estimator of . This criterion has its disadvantages as can be seen by noting
that = constant has zero variance and yet completely ignores any sample information that we may
M SE M SE
(71)
H amerolhya enai mia epijumht
idithta all spnia
where is any other estimator of . This criterion takes into account both the variance and bias
of the estimator
under consideration.
4 shows three alternative
of .
qrhsimopoietai
mnh
thc wcFigure
kritrio
miacestimators
ektimtriac.
O lgoc enai
4.2.4. Best linear unbiased estimators.
is the best linear unbiased
(BLUE) of if
ti pollc amerlhptec
ektimtriec
denestimator
qrhsimopoion
apotelesmatik ta stoiqea tou degmatoc.
Metax do amerlhptwn ektimhtrin kai aut me th mikrterh
diakmansh
enai apotelesmatikterh.
enai
h i Sto hdigramma,
i
18
BASIC STATISTICS
fHL
fHL
fHL
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
43 / 91
MSE = E
n
h i h i
o2
= E E + E
h i
h i2
2
h
h i h i
i
= E E
+ E E + 2E E E
h i
h i2
2
[]]=E []E []
E [E
=
E E
+ E E
h i
2
= Var + bias
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
44 / 91
19
fHL
fHL
fHL
fHL
unbiased
In most cases, whether an estimator is exactly
or what its exact sampling variance
n 1
2 =
S2
, an(For
Gia pardeigma
h ektimtria
enai
merolhptik
ektimtria
thcbe able
is in samples
of a given size
will be unknown
the
these properties
we need to
n 1
n
n
paramtrou
,the
enai
apotelesmatikterh
ap
ticbeimpossible
kai . to calculate or
to compute
moments of
estimators.
These
moments
may
E
2
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
45 / 91
E S2
(74)
n 1
=
2
n
FOUNTAS (OE)
Basikc Statis tikc 'Ennoiec
Also from theorem 3 and equation 20, we have that
may not even exist, i.e., they may be innite.) In this case, the idea is to work with results
KWNSTANTINOU,
PA. MAK.
46 / 91
V ar X
(75)
As n ! 1,se
we Megla
are typicallyDegmata
able to learn the true moments of the distribution that
Idithtec
As n !:
1, certain things
start
looking
normally
distributed,
even if they
were not
so when
we started
from n small. ,
Denition:
Consistency.
An estimator b of is consistent if, when the sample size
closer
(
:
increases, b gets
to h: (Example:
if our
random
on UK
food
i )
h
isample
expenditures
= the
limT
Var to
be
= 0arbitrarily
= p limclose
=to,
we
limwould
T Eexpect
is innitely large,
sample
average
the mean
P
UK food expenditure)
.
T ,
.
T ,
.
T ,
(. ),
T .
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
47 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
48 / 91
f (x) =
E [x ] =
Var [x ] = 2 /T limT Var [x ] = 2 /T = 0.
1
exp 2 (x )2
2
22
2 2
, ,
Jerhma
Jerhma Slutsky . Gia mia suneq sunrthsh g(xT ) pou den enai
sunrthsh tou T , isqei ti: plim g (xT ) = g (plim xT ).
f ( x)
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
49 / 91
KWNSTANTINOU, FOUNTAS
(OE)
0-2 -
+2
+3
PA. MAK.
Here is the distribution of b2 for the general case. Again, for the time being we are
assuming that we know its standard deviation (sd).
50 / 91
x , x ), pou x, x diansmata T 1,
Tuqao dinusma: En x N (
kai x h T T mtra diakmanshc - sundiakmanshc:
T2
f (xx ) = (2)
T2
= (2)
pou Rij =
ij
i j , ui
1
x | exp (xx x )0 1
x
(x
)
|
x
x
2
1
1
1
R x | 2 exp u 0x R 1
u
|R
x
x
(1 2 n )
2
12
xi i
i .
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
51 / 91
En x N 0,
0,2I T tte
f (xx ) =
22
T /2
T
1 X
xt2
exp 2
2
t=1
= f (x1 ) ...f (xT ) pou xt IID N 0, 2
Kje grammikc metasqhmatismc tou x enai epshc na kanonik
dinusma:
x , x )
x N (
y = a + Bx
Bx, a B
,
a + B x , B x B 0 )
y N (a
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
52 / 91
Jerhma
En
w=
tte
"
x
y
"
N
P
W s N( ; )
x , xx ) , y N y , yy
Perijwriakc Katanomc: x N (
V = a + BW
linear transformation
y
x
a constant matrix
Palindrmhsh thc y sthna xis: a constant
| N vector
y.x and
yy.xB ,ispou
then V s N (a + B ; B
0.35
F(X)
f(X)
0.2
0.1
B0)
Y are independent.
0.6
y yx 1
+ yx 1
x
xx
xx x
| {z
x) does |
not have{z
a simple}formula,
so }one must use tables to calcu
=
(d) Pr(X
0.4
0.15
0.8
0.3
0.25
# "
#!
xx xy
,
yx yy
0.45
0.4
x
y
it.
0.2
0.05
0
10
KWNSTANTINOU, FOUNTAS
0
X
(OE)
0
10
10
0
X
X=
sN
Z=
Var [yy | x ] Ify.x
(yy ;) yxthen
1
xx xy
10
PA. MAK.
53 / 91
KWNSTANTINOU, FOUNTAS
Katanom 2
Z =
X
E (Z) = E
V ar (Z) = V ar
N (0, 1)
X
= 1 (E(X) ) =
X
= 12 V ar(X )
Therefore Pr(X
s N (0; 1)
x
x) = Pr(Z
) = (x
PA. MAK.
54 / 91
is the CDF of the standard normal which is tabulated (see table D.1).
KatanomImportant
2
distributions derived from the normal distribution are:
0
(3)
= 1
Pp
w = t=1 zt2 2p
2
(PDF) 2p ,
, p, .
.. 2p .
w 2p , E [w] = p, Var [w] = 2p p 2,
The
p diagram
2. shows the pdf and cdf for the chi-square distribution with parameters
following
=10.
(OE)
(T
The
2
p
=
1)sy2then W
2
T 1
2
p
X
Zi2
2
p
i=1
Katanomc
2p Ame
dom.
2
ligterouc
bajmoc eleujerac...
p random variable only takes positive values and is skewed to the ri
0.1
0.08
0.8
0.06
0.6
F(X)
f(X)
0.04
0.4
0.02
0.2
10
20
30
df(
10
2.2. Properties(OE)
of the chi-square
random
variable.
Basikc
Statis
tikc
KWNSTANTINOU, FOUNTAS
20
)red >df(
)blue
30
'Ennoiec
If Z
PA. MAK.
55 / 91
KWNSTANTINOU, FOUNTAS
2
p
(OE)
E(Z) = p
PA. MAK.
56 / 91
0.4
1
0.35
0.3
F(X)
Katanom t
f(X)
Katanom t
0.8
0.25
0.2
0.15
0.6
0.4
0.1
0.2
0.05
'Estw ti w tp , tte:
0
10
0
X
10
0
10
0
X
10
E[w] = 0 p > 1 ( )
Var[w]
= p/(p 2) p > 2
The following diagram shows the cdf for the Students t-distribution with parameters = 10 and
= 3.
, : w N (0, 1)
p
w= p
z
y/p
tp
fHxL
0.3
v=3
PDF tp p, p
.
, ,
(.
).
0.2
0.1
-4
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
57 / 91
KWNSTANTINOU, FOUNTAS
-2
(OE)
PA. MAK.
58 / 91
Katanom F
'Estw do t.m. x kai y h opoec enai anexrthtec kai katanmontai
wc 2 me m kai k bajmoc eleujerac antstoiqa. Tte
x/m
Fm,k
y/k
w=
10
H1 = 12, 2 = 50L
T (
y )
N (0, 1)
2 (T 1) sy2 2T 1 ,
T (
y )
2 (T 1) sy2
0.6
H1 = 12, 2 = 10L
fHxL 0.4
H1 = 6, 2 = 30L
0.2
-1
E(F ) =
..
(OE)
T (y )
tT 1
sy
Parathrste ti:
T (y )
T (y ) /
= q
sy
2 (T 1) sy2 / (T 1)
0.8
x tm : y x 2 F1,m .
PDF Fm,k 2 m k (
). .
w Fm,k , E [w] = k k2 k > 2 ( )
w1 Fm,k ,
w2 = 1/w
1 Fk ,m .
:
1
1
Pr (w1 < a) = Pr 1/w1 > a = Pr w2 > a = 1 Pr w2 < a1
KWNSTANTINOU, FOUNTAS
v = 10
(25)
PA. MAK.
59 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
60 / 91
Efarmog: H Katanom F
Eidik Apotelsmata
2y sx2
2x sy2
2
2
x (m 1) sx / (m 1)
2
y (n
1) sy2 / (n
(OE)
1)
,
A ) = n, tte:
'Estw x Nn (,
). En A mia n n mtra me r (A
w = x 0 Ax 2n
Jerhma
,
0,
'Estw x Nn (,
). Mporome na orsoume z x N (0,
). Tte:
2
2
2
x (m 1) sx m1
2
2
2
y (n 1) sy n1 ,
2 (m
2
2
x
1) sx 2
y (n 1) sy
KWNSTANTINOU, FOUNTAS
Jerhma
PA. MAK.
0, I n )
q = 1/2 (xx
) Nn (0,
kai
w = z 0 1z (xx
)0 1 (xx
) 2n
61 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
Eidik Apotelsmata
Eidik Apotelsmata
Apdeixh
Jerhma
,
'Estw x Nn (,
). En A n n mia tautodnamh mtra me
r (A ) = rA < n (rA = # {i = 1}), tte:
0
w = z 0 1 z =
== z 0 1/2 1/2z = z 0 1/2 1/2z
0
= 1/2z 1/2z = q 0q
w = x 0 Ax 2rA
Jerhma
pou q = 1/2z .
q ] = 1/2 E [zz ] = 0,
'Eqoume E [q
kai
0
q ] = 1/2 Var [zz ] 1/2 = 1/2 1/2 = I n .
Var [q
,
'Estw x Nn (,
). En A kai B enai do n n tautodnamec mtrec
A ) = rA < n (rA = # {i = 1}) kai r (B
B ) = rB < n (rB = # {i = 1})
me r (A
0
tte, oi tetragwnikc morfc w1 = x Ax kai w2 = x 0Bx enai
anexrthtec en kai mno en AB = 0 . Se aut thn perptwsh:
0, I n ) dhl. qi N (0, 1) .
Epomnwc, q = 1/2 (xx
) Nn (0,
P
Epshc, w = q 0 q = ni=1 qi2 2n .
KWNSTANTINOU, FOUNTAS
(OE)
62 / 91
PA. MAK.
x 0Ax
Ax/rA
FrA ,rB
x 0Bx
Bx/rB
63 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
64 / 91
Eidik Apotelsmata
Jerhma
0,
'Estw x Nn (0,
). En enai mh-stoqastik n 1 dinusma kai A mia
n n tautodnamh mtra, me r (A ) = rA < n (rA = # {i = 1}), tte oi
do t.m. w1 = 0x kai w2 = x 0Ax enai anexrthtec en kai mno en
0A = 0 . Se aut thn perptwsh
w=
KWNSTANTINOU, FOUNTAS
(OE)
0x
(xx 0Ax
Ax/rA )1/2
trA
PA. MAK.
65 / 91
Diastmata Empistosnhc
,
, , .
(OE)
,
()
.
.
.
.
,
,
.
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
66 / 91
KWNSTANTINOU, FOUNTAS
(
).
PA. MAK.
y1 , y2 , ..., yT N(, 2 ), 2
.
P
, = T1 Tt=1 yt .
h
i
95% 1.96/ T , + 1.96/ T
2
N , T = y
)
T (
N (0, 1).
)
T (
= 0.95
Pr 1.96
1.96
Pr 1.96 + 1.96
T
100(1 )% (), .
,
100(1 )%
.
..
.
67 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
68 / 91
Elegqoc Upojsewn
Oi Upojseic Mhdn : = 0
Oi Enallaktikc Upojseic
Monokatlhktec
Dikatlhktec
t=1
T
h
i
2.086sx / T , + 2.086sx / T
2
N , T
)
T (
Pr 2.086
2.086
= 0.95
sx
Pr 2.086 sx + 2.086 sx
T
KWNSTANTINOU, FOUNTAS
(OE)
)
T (
sx
HA : > 0
HA : , 0
HA : < 0
tT 1
(., )
. -,
.
PA. MAK.
69 / 91
t = 2 0 tT 1
sx /T
H0 .
- / :
H0
0
0
0
2 > c/2 2 < c/2 , 2 > c/2 .
sx /T
(OE)
( )
t=
0
s
tT 1
-
0 2.086s 0 + 2.086s
0
0
/2=2.5%
sx /T
0-ca/2s
KWNSTANTINOU, FOUNTAS
PA. MAK.
70 / 91
sx /T
H0 : = 0
0+ca/2s
0
s
tT 1
/2=2.5%
t=
( )
f tH0
2.086 t 2.086
/2=2.5%
-ca/2
/2=2.5%
ca/2
33
tH0
33
summetra
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
71 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
72 / 91
z =
2x /T
z=
f (z)
0
/T
2
N ( 0,1)
z=
- 0
z 1.645
z > 1.645
- / : H0
2 0 > c . (c , +),
N ( 0,1)
( ) -
> 1.645
0
1.645
N (0, 1) H0 .
2 /T
=5%
x /T
- (, c ).
c Pr (z > c ) = 1 (c ) =
= 0.05 (5%) , c = 1.645
=5%
zH0
c/1/2
36
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
73 / 91
:
H0
H0 ( HA ).
:
- H0
HA ( H0 ).
KWNSTANTINOU, FOUNTAS
Den Aporrptoume H0
:p =1
Sflma tpou II
II: p =
(OE)
(OE)
PA. MAK.
74 / 91
H0 alhjc
HA alhjc
KWNSTANTINOU, FOUNTAS
36
Aporrptoume H0
Sflma tpou II: p =
:p =1
PA. MAK.
75 / 91
(OE)
PA. MAK.
76 / 91
H 0 : = 0
=1%
=5%
=5%
2.5%
2.5%
0-c/2s
0.5%
0+c/2s
.
,
- .
-
5%. ,
, 5%.
1
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
77 / 91
1%,
1%.
.
,
. (
.)
5
KWNSTANTINOU, FOUNTAS
PA. MAK.
78 / 91
=1%
=1%
H A : = 1
=5%
0.5%
0.5%
0.5%
0.5%
PA. MAK.
. ,
,
5% 1%.
8
. ,
H0 ,
.
Basikc Statis tikc 'Ennoiec
H A : = 1
=5%
HA : = 1
.
(OE)
(OE)
H0 : = 0
KWNSTANTINOU, FOUNTAS
H0 : = 0
0.5%
79 / 91
.
, ,
.
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
80 / 91
H0 : = 0
-
=1%
-
=1%
=5%
0.5%
0.5%
0.5%
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
81 / 91
()
1%
1% -, .
.
HA ,
- HA
.
14
KWNSTANTINOU, FOUNTAS
=1%
HA : = 1
=5%
0.5%
PA. MAK.
82 / 91
0.5%
0.5%
15
HA : = 1
=5%
5%,
HA ,
HA
- 5%.
.
, = 0.05 = 0.01
.
(OE)
=1%
KWNSTANTINOU, FOUNTAS
(OE)
H0 : = 0
H0 : = 0
0.5%
0.5%
HA : = 1
=5%
H A : = 1
PA. MAK.
83 / 91
, , H0
. ,
;
15
H0 , 1%
5%,
( ).
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
84 / 91
Orismc
H tim p (pvalue ) tim pijanthtac (probability value) h opoa
sqetzetai me thn upologizmenh tim ap to degma enc statistiko
krithrou orzetai wc to kattero eppedo statistikc shmantikthtac,
sto opoo h upjesh mhdn H0 mpore na aporrifje, dedomnhc thc
timc pou lambnei to statistik kritrio (statistik) sto degma.
Strathgik Elgqou
Elgqou: Prosdiorzoume en to p-value gia thn
upologismnh tim ap to degma tou statistiko krithrou , enai
mikrtero megaltero tou epilegmnou epipdou statistikc
shmantikthtac .
pvalue
, ,
H0 .
pvalues
H0 .
Mikr pvalue (kont sto mhdn) sunist isqur erhma antjeto
proc thn H0 .
Meglo pvalue (kont sth monda) suniston adnama eurmata
antjeta proc thn H0 .
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
85 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
86 / 91
H0 : = 0
HA
: , 0
O
aprriyhc enai na aporryoume thn upjesh en
kannac
0
> c/2 . Epomnwc, h dnamh tou elgqou enai
1/T
!
0
Pr 2 > c/2 , 0
x /T
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
87 / 91
= 0 .
0 .
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
88 / 91
sy / T
tT 1 H0 .
- [c/2 , c/2 ] , Pr (|t| > c/2 ) = .
() (t),
H0 t < [c/2 , c/2 ].
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
89 / 91
sx2
sy2
Fm1,n1 H0 .
- [c1,/2 , c2,/2 ] , Pr (F < c1,/2 ) = /2
Pr (F > c2,/2 ) = /2.
(F),
H0 F < [c1,/2 , c2,/2 ].
c1,/2
Pr (F < c1,/2 ) = Pr (1/F > 1/c1,/2 ) 1/F
Fn1,m1 (
).
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
91 / 91
KWNSTANTINOU, FOUNTAS
(OE)
PA. MAK.
90 / 91