Docsity

Orale di advanced statistics, Prove d'esame di Statistica

Toggle sidebar
bg1
1. Sample Statistic
A statistic is a function of the available data t=T(X_1,X_2,…,X_n). it is important
because it summarize some aspects of the underlying data, and it can ba calculated
even if the parameter is unknown: for the sample mean it is the sum of the observed x
divided by their number, while the sample variance is the deviance of the observed x
and the sample mean of the x over the number of the observations -1. The former
gives information about the location of the observed distribution, and the latter about
the scale. The problem is that the statistics change every time we change the observed
result of the experiment, so we should apply the function T not on the observed value
but on the r.v. and it is the SAMPLE STATISTIC.
We do not know the distribution of each rv so event the sample statistic is a rv and it
has a probability distribution called SAMPLING DISTRIBUTION and using it to
evaluate how far the sample statistic is form the population parameter. It allows us to
make inference!
The sampling distribution depends on the population distribution, so we could derive
it, for example the sample mean in a Bernoulli population is equal to the sum of the
Bernoullian rv divided by their number, knowing that the sum of the bernoullian rv
are distributed as a binomial.
Population distribution distribution of the elements of the population;
Sample distribution distribution of the element of the sample drawn from a
population;
Sampling distribution behavior of a statistic referring to a large number of rv
samples.
2. Random Sample - Observed Sample
We know that a population is a collection of the objects under investigation and it is
divided in two kind: finite such as the shareholders of the a company described with
the frequency distribution and infinite such as the future buyers of that share
described with a pdf; while a sample is a part of the population that is representative
of all the population containing all the relevant information about that, described with
the frequency distribution called sample distribution. The multiple rv (X_1,X_2,,
…,X_n) is a RANDOM SAMPLE, and one of its possible realization is the
OBSERVED SAMPLE.
pf3
pf4
pf5
pf8
pf9
pfa

Anteprima parziale del testo

Scarica Orale di advanced statistics e più Prove d'esame in PDF di Statistica solo su Docsity!

1. Sample Statistic

A statistic is a function of the available data t=T(X_1,X_2,…,X_n). it is important

because it summarize some aspects of the underlying data, and it can ba calculated

even if the parameter is unknown: for the sample mean it is the sum of the observed x

divided by their number, while the sample variance is the deviance of the observed x

and the sample mean of the x over the number of the observations -1. The former

gives information about the location of the observed distribution, and the latter about

the scale. The problem is that the statistics change every time we change the observed

result of the experiment, so we should apply the function T not on the observed value

but on the r.v. and it is the SAMPLE STATISTIC.

We do not know the distribution of each rv so event the sample statistic is a rv and it

has a probability distribution called SAMPLING DISTRIBUTION and using it to

evaluate how far the sample statistic is form the population parameter. It allows us to

make inference!

The sampling distribution depends on the population distribution, so we could derive

it, for example the sample mean in a Bernoulli population is equal to the sum of the

Bernoullian rv divided by their number, knowing that the sum of the bernoullian rv

are distributed as a binomial.

Population distribution  distribution of the elements of the population;

Sample distribution  distribution of the element of the sample drawn from a

population;

Sampling distribution  behavior of a statistic referring to a large number of rv

samples.

2. Random Sample - Observed Sample

We know that a population is a collection of the objects under investigation and it is

divided in two kind: finite such as the shareholders of the a company described with

the frequency distribution and infinite such as the future buyers of that share

described with a pdf; while a sample is a part of the population that is representative

of all the population containing all the relevant information about that, described with

the frequency distribution called sample distribution. The multiple rv (X_1,X_2,,

…,X_n) is a RANDOM SAMPLE, and one of its possible realization is the

OBSERVED SAMPLE.

3. Binomial - Bernoulli Distribution

The Bernoulli distribution is a dichotomous variable with result equals to 0 or 1,

success or failure, it depends only on the value of the probability of the experiment

that is the unknown parameter in this case; the binomial distribution can be seen as

the sum of different Bernoulli trials, and it is distributed depending on two parameter

the number of trials n, and the probability of each trial to be successfully theta.

4. Samplig Distribution of sample mean/variance

Applying the function T not on the observed value but on the r.v. and it is the

SAMPLE STATISTIC.

We do not know the distribution of each rv so event the sample statistic is a rv and it

has a probability distribution called SAMPLING DISTRIBUTION and using it to

evaluate how far the sample statistic is form the population parameter. It allows us to

make inference!

The sampling distribution depends on the population distribution, so we could derive

it, for example the sample mean in a Bernoulli population is equal to the sum of the

Bernoullian rv divided by their number, knowing that the sum of the bernoullian rv

are distributed as a binomial.

Population distribution  distribution of the elements of the population;

Sample distribution  distribution of the element of the sample drawn from a

epopulation;

Sampling distribution  behavior of a statistic referring to a large number of rv

samples.

5. Likelihood function of poisson

Given the observed sample x= (x_1,x_2,…,x_n) generated by a statistical model M,

we could wonder which is the probability of observing that particular result. Since the

observed result is composed by n result of n different rv iid, we should do the

intersection of each probability to obtain that particular result so the product of all

them. The likelihood is not a probability (it could be in the discrete case) but a

likelihood as we said. It is a function that goes from the parametric space CAPITAL

THETA to infinite

f λ

x

e

− λ

x!

λ

x

statistic T(x) is called sufficient for theta if the conditional sampling distribution of

X=(X_1,X_2,…, X_n) given T(X) does not depend on theta:

f (

x

1

, x

2

, … , x

n

∨T ( x )=t )

f

θ

(

x

1

, x

2

, … , x

n

, T ( x )

)

g

θ

(t )

f

θ

x

1

, x

2

, … , x

n

g

θ

(t)

Must not depend on theta.

9. Estimator Properties

If a statistic is used to estimate a parameter, it is called ESTIMATOR, its realization

is the pint estimate. The first property of an estimator is the that it is unbiasedness, an

estimator T of the parameter that is unbiased if

E

θ

( T )=θ

If the estimator is biased if the difference

B (θ )=E

θ

( T )−θ

is not null.

MSE (mean square error and efficiency) is

MS E

θ

( T )=E

θ

[ ( T −θ )

2

]=Va r

θ

(T ) +

[

B (θ ) ]

2

So if an estimator is unbiased the MSE is equal to the variance of the T, the T* with

the lowest variance is said to be the UNIFORMLY MINIMUM VARIANCE

UNBIASED ESTIMATOR (UMVUE). To find it we can use the Cramer-Rao

Inequality.

Increasing the sample size we will improve the knowledge about the behavior of the

estimator; asymptotically unbiasedness; consistency; asymptotic normality.

10. Hypothesis testing (schema 4 situazioni)

A parametric statistical hypothesis is a statement about one or more values that a

given parameter can assume, or relationships between parameters.

The hypothesis of interest is the null hypothesis H0, where theta belongs to theta

and the other is the alternative hypothesis where H1 theta belongs to theta1, theta0 +

theta1 are equal to all the parametric space theta usually, and the intersection between

the two is an empty set. We can have hypothesis simple or composite. After the

experiment and after defining the two hypothesis we can denote two kind of region in

the sample space: the acceptance region and the critical one.

State

Action

H0 true H0 false

We accept H0 ok II type error

We reject H0 I type error ok

Alpha is probability of I type error; Beta is the probability of II type error.

Alpha is the significance level; pi-greek = 1- Beta is the power test. The power of the

test is the probability of correctly rejecting the null.

Most powerful test if pi-greek* is equal to alpha level and so pi-greek is the greatest

pi-greek between all the others.

11. Power Function (with graph)

State

Action

H0 true H0 false

We accept H0 ok II type error

We reject H0 I type error ok

Alpha is probability of I type error; Beta is the probability of II type error.

Alpha is the significance level; pi-greek = 1- Beta is the power test. The power of the

test is the probability of correctly rejecting the null.

Most powerful test if pi-greek* is equal to alpha level and so pi-greek is the greatest

pi-greek between all the others.

12. Neyman pearson lemma

H0: theta = theta0 vs H1: theta = theta1.  two simple hypothesis

If:

Rejection region is equal to the x such that the likelihood function under the

alternative over the likelihood function under the null is > k; and the probability of X

belonging to the rejection region under the null is equal to alpha. Then R is the most

powerful size alpha critical region.

13. P-value

In the simple linear regression model R

2

=r

xy

2

In the multiple linear regression model

R

2

=r

y ^y

2

17. OLS estimator of beta

We follow the same procedure as before trying to minimize the squared of the

difference between the observed value of y and the estimated, in order to have the

estimation of beta0 and beta1, so also in this case we should minimize the square of

the sum of the estimated residuals and do the derivative, we recall that this time we

have a column vector, so to have the square we do:

e’e = (y-Xbeta)’(y-Xbeta) = y’y – 2y’Xbeta + beta’X’Xbeta

we do the first derivative with respect to beta to obtain:

beta hat = (X’X)^-1 X’y providing the full rank for r(X)=r(X’X)=k

and the second derivative is equal only to X’X that prove that it is positive so the beta

hat are point of minimum.

18. Gauss – Markov Theorem

Under the assumption:

I) Y=Xbeta + epsilon

II) E(epsilon|X) = 0

III) r(X) = r(X’X) = k

IV) Var(epsilon|X) = sigma^2 I_n

Among all the possible linear and unbiased estimators of beta, OLS estimator is the

best so it is called BLUE.

19. Statistic properties of estimator

B is the estimator of beta and b its realization in the observed sample.

B is a linear estimator, in fact, we can see that

B=( X

'

X )

− 1

X

'

Y =QY

The expected value is:

E ( B|X ) =E [QY|X ) =β+QE [ ε|X ]=β

The estimator is unbiased, independently of its distribution and of the sample size.

B=β +( X

'

X )

− 1

ε ,

Var ( B|X )=E

[

( B−β ) ( B−β )

'

|X ]

=E[( X

'

X )

− 1

X

'

ε ε

'

X ( X

'

X )

− 1

∨ X ]

Var ( B|X )=( X

'

X )

− 1

σ

2

We have to estimate the variance sigma:

^

σ

2

=S

2

e

'

e

n−k

SSE

n−k

it is an unbiased estimator ‼

20. t-test and f-test (come si distribuiscono)

t-test

Z=
B

j

−β

j

sd ( B

j

N ( 0,1)

sd

B

j

√

Var ( B

j

)=σ

[ ( X

'

X )

− 1

]

jj

σ

dev

X

j

( 1 −R

j

2

where the R^2_j is the coefficient of determination in the regression of X_j on all the

other independent variables. The complementary with 1 is the part of X_j not linearly

explained by the other covarites.

Since the variance sigma is unknown, we estimate it through S^2 and it results:

T =
B

j

−β

j

se ( B

j

t

n−k

∧se

B

j

^

Var ( B

j

s

dev ( X

j

)( 1 −R

j

2

The confidence interval will be:

Pr

[

−t

n −k;

α

2

B

j

−β

j

se

B

j

≤ t

n −k;

α

2

]

= 1 −α

f-test

22. VIF  Varianza dello stimatore di 𝛽

In the overfitting specification, the estimates are always unbiass and consistent but

the variability increases

Var ( B

j

σ

2

dev

X

j

( 1 −R

j

2

If the X_j is irrelevant its informative content is already present in the model in the

other regressors, so it would be linearly correlated with them. The higher the

correlation, the higher the R^2, the higher the denominator and so the variance of B_j

Variance Inflation Factor=VI F

j

1 −R

j

2

If VIF_j=1 they are uncorrelated otherwise it takes higher value (the maximum

threshold is 2 so when R^2 is 0.5)

23. Chow Test

We are in the mis-specification of the structural instability. In order to check the

hypothesis of the consistency of the functional relationship, the CHOW test is a

particular F-test, dividing the sample in two parts: so with two different SSE but with

the same variance for the two part and the it can be compared with the full model

without restriction:

F=
SS E

r

−SS E

u

k

SS E

u

n

I

+n

II

− 2 k

F

k ;n− 2 k

The two sample variance both constitute an unbiased estimator of sigma^

F=

s

I

2

σ

2

s

II

2

σ

2

F

n

I

−k , n

II

−k

24. Durbin – Watson

The presence of autocorrelation implies a lose in the reliability of the inferential

procedure. The most used procedure is the DW test:

D=

∑

t = 2

n

e

t

−e

t− 1

2

∑

i= 1

n

e

t

2

^

ρ

But it leaves a region of uncertainty, so it is not the most efficient.

25. GLS

Generalized least squares estimators we know that the matrix of the variance is

multipled by the matrix V because now it contains values different from 0 also

outside the main diagonal. We should know the matrix V. also with the feasible GLS

estimator basing all the procedure on the shape of the matrix V, so V=V(X;theta),

then it is possible to estimate the vector beta. The correct specification of the variance

and covariance model of the disturbances and the strict exogeneity of the predictors

are two fundamental assumptions for the consistency of the FGLS estimators. To

overcome this limit it is possible to use the HAC (heteroscedasticity and

autoregressive consistent), valid only for large sample.

26. Endogeneità e esogeneità

We saw that to evaluate the effect of a given regressor, by holding all the other

potentially influential factors constant, the random component epsilon should be

independent of it. It is necessary to estimate beta1. The imposition of the

Cov(X,epsilon)=0 is not sufficient because there could be other non linear linkage. A

more strong condition is that E(epsilon|X)=E(epsilon)=0, which implies the

orthogonality condition E(epsilon*X)=0. This means that the regressor has to be

exogenous!!!

27. CAPM

The equilibrium return for risky assets in condition of perfect market (rational, risk

adverse, perfectly informed, mean-variance criterion and no trading costs).

Risk for the asset specific; risk of the market or systematic not diversifiable.

E
R

i

=R

f

  • β

i

[ E
R

m

−R

f

]

Or

E
R

i

−R

f

=β

i

[E
R

m

−R

f

]