Docsity

review of probabilities, Schemi e mappe concettuali di Econometria

Toggle sidebar
bg1
📊
Review of Probabilities
Organization books resume
Probability distribution
The probability of an outcome is the portion of the time that the utcome occurs in the long run;
The set of all possible outcomes is called the sample space;
An event is a subset of the sample space; that is, an event is a set of one or more outcomes.
A Random Variable is a numerical summary of a random outcome. Random Variable could be discrete
if takes only a discrete set of value, like 0,1,2…. or could be continuous when it takes on a continuum of
possible values.
Probability distribution of a discrete random variable is the list of all possible value of the variable and
the probability that each value will occur. Thee probabilities sum to 1.
01234
Probability
distribution 0,8 0,10 0,06 0,03 0,01
Cumulative
Probability
distribution
0,80 0,90 0,96 0,99 1,00
Let M the number of connect failure, probability distributions is the list of probabilities of all possible
outcomes: PR(M=0)= Probability of no wireless connection failures = 0,8→ 80%. These probability sum
100%.
The probability of an event can be computed from the probability distribution. For Eg the probability of
one or two failures is the sum of the probabilities of the constituent outcomes. PR(M=1 or
M=2)=PR(M=1)+PR(M=2)=0,10+0,06=0,16
The cumulative probability distribution is the probability that the random variable is less than or equal
to a particular value. PR(M≤1)=0.90 (0,8+0,10).
A cumulative probability distribution is also referred to as a :
cumulative distribution function
cumulative distributition
Review of Probabilities
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Anteprima parziale del testo

Scarica review of probabilities e più Schemi e mappe concettuali in PDF di Econometria solo su Docsity!

Review of Probabilities

Organization books resume

Probability distribution

The probability of an outcome is the portion of the time that the utcome occurs in the long run; The set of all possible outcomes is called the sample space ; An event is a subset of the sample space; that is, an event is a set of one or more outcomes. A Random Variable is a numerical summary of a random outcome. Random Variable could be discrete if takes only a discrete set of value, like 0,1,2…. or could be continuous when it takes on a continuum of possible values. Probability distribution of a discrete random variable is the list of all possible value of the variable and the probability that each value will occur. Thee probabilities sum to 1.

0 1 2 3 4 Probability distribution 0,8^ 0,10^ 0,06^ 0,03^ 0, Cumulative Probability distribution

0,80 0,90 0,96 0,99 1,

Let M the number of connect failure, probability distributions is the list of probabilities of all possible outcomes: PR(M=0)= Probability of no wireless connection failures = 0,8→ 80%. These probability sum 100%. The probability of an event can be computed from the probability distribution. For Eg the probability of one or two failures is the sum of the probabilities of the constituent outcomes. PR(M=1 or M=2)=PR(M=1)+PR(M=2)=0,10+0,06=0, The cumulative probability distribution is the probability that the random variable is less than or equal to a particular value. PR(M≤1)=0.90 (0,8+0,10). A cumulative probability distribution is also referred to as a : cumulative distribution function cumulative distributition

The Bernoulli distribution is an special case of a discrete random variable. It’s the case of binary random variable

In case of a continuous variable we talk about probability density and the probability is an Area

G = {

P r(p) PR(1 − p)

Example

0 1 2 3 4 Probability distribution 0,8^ 0,10^ 0,06^ 0,03^ 0, Cumulative Probability distribution

0,80 0,90 0,96 0,99 1,

The expected value of M is the average number of failures over many term papers, weighted by the frequency with which a given number of failures occurs:

Variance

The variance of the discrete random variable Y, denoted , is

The standard deviation of Y is , the square of root of the variance. The units of the standard deviation are the same as the units of Y

Variance of a Bernoulli became:

Example

0 1 2 3 4 Probability distribution 0,8^ 0,10^ 0,06^ 0,03^ 0, Cumulative Probability distribution

0,80 0,90 0,96 0,99 1,

The expected value of M is the average number of failures over many term papers, weighted by the frequency with which a given number of failures occurs:

standard deviation:

Other measures of the shape of a distribution

G = {

P r(p) PR(1 − p)

E(G) = 0⋅ (1 − p) + 1⋅ p = p

E(M ) = 0⋅ 0, 8 + 1⋅ 0, 10 + 2⋅ 0, 06 + 3⋅ 0, 03 + 4⋅ 0, 01 = 0, 35

σy^2

σ (^) y^2 =var(Y ) = E[(Y − μ (^) y ) ] =^2 (y − i=

k i μ^ y) 2 pi

σy

var(G) = σ (^) G^2 =(0 − p) ⋅ (1 −^2 p) + (1 − p) ⋅^2 p =p(1 − p)

E(M ) = 0⋅ 0, 8 + 1⋅ 0, 10 + 2⋅ 0, 06 + 3⋅ 0, 03 + 4⋅ 0, 01 = 0, 35

var(M ) = (0 − 0, 35) ⋅ 0, 8 +^2 (1 − 0, 35) ⋅ 0, 10 +^2 (2 − 0, 35) ⋅ 0, 06 +^2 (3 − 0, 35) ⋅ 0, 03 +^2 (4 − 0, 35) ⋅ 0, 01 =^2 0, 6475 σ (^) M = 0, 6475 =0, 8

  1. Skewness: how much a distribution deviates from symmetry

The skewness of a symmetric distribution is zero and is unit free

  1. Kurtosis: how much mass is its tails and therefore is a measure of how much of the variance of Y arises from extreme values. An extreme value of Y is called an outlier.

If a distribution has a large ampunt of mass in irs tails, then some extreme departures of Y from its mean are likely, and these departures will lead to large values, on average (in expectation), of . Kurtosis cannot be negative. kurtosis exceeding 3 is called leptokurtic or more simply heavy-tailes. Like skewness, the kurtosis is unit free

Moments

The mean of Y is also called the rst moment of Y, and the expected value of the square of is called the second moment of Y.

In general, the expected value of , is called the moment of the random variable Y.

Skewness = E[(Yσ^ −Y 3 μ^ y^ ) ]

3

Kurtosis = E[(Yσ^ −Y 4 μ^ y^ ) ]

4

(Y −

μ (^) y )^4

Y , E(Y 2 )

Y r^ r ht

The probability of a long rainy commute is 15% and the probability og a long commute with no rain is 7%, so the probability of a long commute (rain or not) is 22%

Conditional distribution : the distribution of a random variable Y conditional on another random variable X taking on a specic value is called the conditional distribution of Y given X.

Example

and The probability of a long rainy commute is 15% and the probability og a long commute with no rain is 7%, so the probability of a long commute (rain or not) is 22%

The conditional expectaction of Y given X also called conditional mean of Y given X, is the mean of the conditional distribution of Y given X. Is the expected value of Y, computed using the conditional distribution of Y given X.

If Y takes on k value then the conditinal mean of Y given X=x is:

Example

For example

PR(Y = y ∣ X = x)

P r(Y = y ∣ X = x) = P rP r(X(=Xx=,Yx^ =)y)

PR(X = 0, Y = 0) = 15% PR(X = 0, Y = 1) = 0, 07 = 7%

P r(Y = y ∣ X = x) = P rP r(X(=Xx=,Yx^ )=y) P r(Y = 0 ∣ X = 0) = (^) 0,300,15^ =0, 50

y 1 , ..., yk

E(Y ∣ X = x) = ∑i^ k=1^ y (^) iP r (Y =y (^) i ∣X = x)

E(Y ∣ X = x) = ∑i^ k=1^ y (^) iP r (Y =y (^) i ∣X = x) P r(M ∣ A = 0) P r(M ∣ A = 0) = (0•0, 7) + (1•0, 13) + (2•0, 10) + (3•0, 05) + (4•0, 02) = 0, 56

The law of iterated expectaction

“The mean of Y is the weighted average of the conditional expectation of Y given X, weighted by the probability distribution of X.”

→

Where the inner expectation on the right-hand side is computed using the conditional distribution of Y given X and the outer expectation is computed using the marginal distribution of X.

Example

For example

This law implies that if the conditional mean of Y given X is 0, then the mean of Y is 0

→

If the mean of Y given X is 0 than it must be that probability weighted average of these mean of Y given X is zero that is the mean of Y must be zero

Conditional variance: the variance of Y conditional X is the variance of the conditional distribution of Y given X.

Example

E(Y ) = ∑i^ l=1^ E(Y ∣X = x)P r(X = x (^) i) E(Y ) = E[E(Y ∣ X]

E(Y ∣ X = x) = ∑i^ k=1^ y (^) iP r (Y =y (^) i ∣X = x) P r(M ∣ A = 0) P r(M ∣ A = 0) = (0•0, 7) + (1•0, 13) + (2•0, 10) + (3•0, 05) + (4•0, 02) = 0, 56 E(M ) = E(M ∣ A = 0)•P r(A = 0) = E(M ∣ A = 1)•P r(A = 1) = 0, 56•0, 50 + 0, 14•0, 50 = 0, 35

E(Y ∣ X) = 0 E(Y ) = E[E(Y ∣ X)] = E[0] = 0

The covariance is denoted. If X can take on l value and Y can take on k values, then the covariance is given by the formula:

If X and Y move in the same direction covariance is positive, if its move in opposite direction covariance is negative, if are independent covariance is equal to zero.

The correlation is an alternative measure of dependence between X and Y that solves the “units” problem of covariance.

The unit of the numerator is the same of the denominator so its unit free. X and Y are uncorrelated when corr(XY)=

The correlation is always between -1 and 1

Means, Variance and Covariances of sums of random variables

Let X Y and V be random varibales, let and the mean and the vqriance of X and the coviariance between X and Y. Let a e b and c be costants:

→ mean

the variance of the sum of X and Y is the sum of their variances plus two times their covariance

if they are indipendent:

Type of distributions

Normal Distributions

σxy

cov(X, Y ) = σ (^) XY =E[(X − μ (^) X )(Y −μ (^) Y ) =∑i^ k=1^ ∑i^ l=1^ (x (^) j −μ (^) X )(y (^) i −μ (^) Y)P r(X = x (^) j , Y =y (^) i)

corr(X, Y ) = (^) var^ cov(X(X)var,Y^ )(Y )= σ^ σ (^) XXY σY

μX σX^2 σXY

E(a + bX + cY ) = a + bμ (^) X +cμY var(a + bY ) = b σ^2 Y^2 var(aX + bY ) = a σ^2 X^2 + 2 abσ (^) XY +b σ^2 Y^2 E(Y 2 ) =^ σ (^) Y^2 +μY^2 cov(a + bX + cV , Y ) = bσ (^) XY +cσVY E(XY ) = σ (^) XY +μ (^) X μY E(XY ) = σ (^) XY +μ (^) X μY ∣corr(X, Y )∣ ≤ 1and∣σ (^) XY ∣ ≤ σ (^) X^2 σY^2

var(X + Y ) = var(X) + var(Y ) + 2cov(X, Y ) = σ (^) X^2 +σ (^) Y^2 + 2 σXY

var(X + Y ) = var(Y ) = σ (^) X^2 +σY^2

The normal distribution with mean and variance is expressed concisely as. The standard normal distribuiton is the nomal distribution with and and is denoted N(0,1).

Random variables that have a N(0,1) distribution are often denoted Z, and the standard normal cumulative distribution function is denoted by the Greek letter ; accordingly, , where c is a constance.

Suppose Y is normally distributed with mean and variance , in other words Y is distributed

. Then Y is standardized by substracting its mean and dividing by its standard deviation is, by computing

Let and denote two numbers with and let and then

Example Suppose Y is distributed N(1,4) that is, Y normally distributed with a mean of 1 and a variance of 4. what is the probability that that is, what is the shaded area

The standardized version of Y is Y-means divided by standard deviation:

μ σ^2 N (μ, σ 2 ) μ = 0 σ 2 = 1

Φ P r(Z ≤ x) = Φ(c)

μ σ^2 N (μ, σ 2 )

Z = (Y^ σ−μ)

c 1 c 2 c 1 equals the standard normal distribution.

F distribution

F distribution with m and n degrees of freedom, denoted is dened to be the distribution of the ratio of a chi-squared random variable with degree of freedom m divided by m, to an independently distributed chi.squared random variable with degree of freedom n divided by n.

let W be a chi-squared with m degrees of freedom let V a chi squared with n degrees of freedom W and V are independently distributed ha an distribution that is an F distribution with numerator degrees of freedom m and

denominator degrees of freedom n.

Random Sampling

In a sample random sample, n objects are drawn at random from a population, and each object id equally likely to be drawn. the value of the random variable Y for the randomly drawn object is denoted. Because each object equally likely to be drawn and the distribution of is the same for all i, the random variables are indipendently and identically distributed (iid); that is, the distribution of Y, is the same for all and is distributed independently of and so forth.

The sample average or sample mean of the n obs is:

Because the sample was drawn at random, the value of each is random. Had a different sample been drawn, then the obs and their sample average would have been different: the value of differs from one randomly drawn sample to the next.

Because is random, it has a probability distribution called the sampling distribution of that could be computed for different possible samples

std.dev

Because the mean of is and the variance , this means, that if the sample are iid drawns from the distribution, then id distributed

Large Sample Approximation

The large-sample approximation to the sampling distribution is often called the asymptotic distribution and we use 2 key tool to approximate sampling distribution can be counted on to provide very good approximations to the exact sampling distribution.

t∞

Fm,n

V /n

W /m (^) Fm,n

ith^ Yi Yi Y (^) i , ..., Yn i = 1, ..., n Yi Y 2 , ..., Yn Yˉ^ Y (^) i, ... Yn

Yˉ^ =n^1 (Y 1 +Y 2 +... + Y (^) n ) =n^1 ∑i^ n=1^ Yi

Yi Yˉ

Yˉ^ Yˉ

Y (^) i , .., Yn E( Yˉ^ ) =n^1 ∑i^ n=1^ E(Y (^) i ) =μY var( Yˉ^ ) =var( (^) n^1 ∑i^ n=1^ Y (^) i) n^12 ∑^ var(Y^ i^ ) +n^12 ∑i^ n=1^ ∑j^ n=^ icov(Y^ i^ ,^ Y^ j^ ) =σnY

2

std.dev( Yˉ^ ) =σ (^) Yˉ =^ σYn

Yˉ^ μY Yˉ^ =σnY

2

N (μ (^) Y , σ (^) Y^2 ) Yˉ^ N (μ (^) Y , σ (^2) Yn)

The Law of Large Number and Consistency

The sample average convergers in probability to if the probability that is the range to becomes arbitrarily close to 1 as n increases for any constant. The convergence of to in probability is written

The law of large numbers says that if are independently and identically distributed with

and if large outliers are unlikely (technically if , then

The law of large numbers states that, under general conditions, will be neat with very high probability when n is large.

In this case large values tend to balance the small values and their sample average is close to their common mean.

The property that is near with probability increasing to 1 as n increases is called convergence in probability or, more concisely, consistency. The law of large numbers states that under certain conditions converges in probability to or, equivalently that is consistent for.

The conditions for the law of large numbers that we will use in this text are that are i.i.d. and that the variance og is nite.

The Central limit theorem

Suppose that are i.i.d. with and , where. As , the distribution of where becomes arbitrarily well approximated by the standard normal distribution.

The central limit theorem says that, under general conditions, the distribution of is well approximated by a normal distribution when n is large.

Recall that the mean of Y is and its variance is

When n is large the distribution of is approximately The distribution of is exactly when the sample is drawn from a population with the normal distribution

Estimator and Estimation

An estimator is a function of a sample of the data to be drawn randomly from a population. An estimate is the numerical value of the estimator when it is actually computed using data from a specic sample. An estimator is a random variable because of randomness is selecting the sample, while an estimate is a nonrandom number.

Estimation of the Population Mean

Suppose you want to know the mean value of Y in a population, a natural way to estimate this mean is to compute the sample average fro a sample og n independently, identically distributed obs.

Desirable characteristics:

estimator close as possible to the unknown true value unbiasedness consistency efciency

Yˉ^ μY Yˉ^ (μ (^) Y −c) (μ (^) Y +c) c > 0 Yˉ

μY Yˉ^ P^ μY

Y 1 , ..., Yn

E(Y (^) i ) =μY var(Y (^) i ) =σ (^) Y^2 <∞) Yˉ^ P^ μY

Yˉ^ μY

Yˉ^ μY

Yˉ^ μY Yˉ^ μY

Y 1 , ..., Yn Y (^) i , σY^2

Y 1 , ..., Yn E(Y (^) i ) =μY var(Y (^) i ) =σ^2 0 < σ (^) Y^2 <∞ n → ∞ (^ Yˉ^ σ−Yˉμ^ Y^ ) σ (^) Y^2 =σ n

2

Yˉ

μY σ (^) Y^2 =σ nY

2

Yˉ^ N (μ (^) Y , σ (^) Y^2 ˉ^ ). Yˉ N (μ (^) Y , σ (^) Y^2 ˉ^ ) N (μ (^) Y , σ (^) Y^2 ˉ).

(μ (^) Y) Yˉ

The standard error of is an estimator of the standard deviation of. The standard error of is denoted or. When are i.i.d:

When are i.i.d. draws from a Bernoulli distribution with success probability p, the formula of

→

Hypothesis Test

the starting point of statistical hypothesis testing is specifying the hypothesis to be tested, called the null hypothesis. Hypothesis testing compare this null hp. with a second hp called the alternative hypothesis that holds if the null does not.

The null hp is that the population mean , takes on a specic value denotes.

The alternative hp species what is true if the null hp is not. The most general alternative hp is that wich is called two-sided alternative HP. If the null hp is not rejected, it is accepted tentatively with the recognition that it might be rejected late based on additional evidence.

p-Value

The p-value, also called signicance probability, is the probability of drawing a statistic at least as adverse to the null hp as the one you actually compute in your sample, assuming the null hp is correct. In other word is the probability of drawing at least ad far in the tails of its distribution under the null hp as the sample average you actually computed. To state a denition of p-value mathematically, let denote the value of the sample average actually computed in the data set at hand, and let denote the probability computed under the null hp. the p-value is:

So the p-value is the area in the tails distribution under the null hp beyond. If the p-value is large, then the observed value is consistent with the null hp , but if the p- value is small, it is not.

t-Statistic The standardized sample average plsys a central role in testin statistical hp and has a special name, the t-statistic or t-ratio:

In general a test statistic used to perform a hp test. When n is large is close to with high probability. Thus the distribution of the t-statistic is approximately the same ad the distribution of which in turn is well approximated by the standard normal distribution when n is large because of the central limit theorem. So t is approximately distributed for large n.

Yˉ^ Yˉ^ Yˉ

SE( Yˉ^ ) σ^Yˉ Y 1 , ..., Yn

SE( Yˉ^ ) =σ^Yˉ =^ SYn

Y 1 , ..., Yn Yˉ^ p(1−np) SE( Yˉ^ ) = Yˉ^ (1 − Yˉ)/n

E(Y ) μY ,

H 0 :E(Y ) = μY ,

E(Y ) = μY ,

Yˉ

Yˉ^ act P rH 0

p − value = P r (^) H 0 [∣ Yˉ^ −μ (^) Y 0 ∣ >∣ Yˉ^ act^ +μ (^) y 0 ] Yˉ^ μ (^) Y 0 ±∣ Yˉ^ act^ −μ (^) Y 0 ∣ Yˉ^ act

SE( Yˉ)

Yˉ^ −μy 0

t = (^) SEY−(μ Yˉ)

ˉ (^) y 0

sY^2 σY^2 σYˉ

( Yˉ−Y 0

N (0, 1)

so let denote the value of a t-statistic actually computed

When n is large, the p-value can be calculated using:

Example sample n=200 recent college graduates is used to the null hp that the man wage is $20 per hour. The sample average wage is $ and the sample standard deviation $. The standard error is. The value of the t-statistic

. If we look on the table we can see the → 3.9% That is assuming the null hypothesis to be true, the probability of obtaining a sample average at least as different from the null as the one actually computed 3.9%

A statistical Hypothesis test can make two types of mistakes:

Type I error when the null hypothesis is rejected when in fact is true, and type II error when the null Hypothesis is not rejected when in fact is false.

When we compute a test we prespecied probability of a type I error and is called the signicance level of the test.

The critical value of the test statistic is the value of the statistic for which the test just rejects the null hypothesis at the given signicance level.

tact t act=Yˉ SE^ −( Yˉμ)

act (^) Y 0

p − value = 2Φ(−∣t act∣)

E(Y )

Yˉ^ act^ =22, 64 s (^) Y = 18, 14 sYn^ =^ 18.14 200 =1.28 t act= (22.64−201.28 (^) =2.06 p − value = 2Φ(−2.06) = 0.

In general approach to computing p-values and to hp testing is the same for one or two sides alternative. the p-value is the area under the standard normal distribution to the right (or left and right) of the calculated t-statistic.

That is the p-value, based on the the distribution of the t-statistic is:

Because of random sampling error it is impossible to learn exact value of population mean. However it is possible use the data from a random sample to construct a set of values that contains the true population mean.

Such a set is called condence set, and the prespecied probability that is contained in this set is called condence level. The condence set fot turns out to be all the possible value of the mean between a lower and upper limit, so that the condence se is an interval, called a condence interval

A 95% two-sides condence interval for is an interval constructed so that it contains the trie value of in 95% of all possible random samples. When the sample size n is large, 90% and 99% condence intervals for are:

→ → →

The coverage probability of a condence interval for population mean is the probability, computed over all possible random samples, that it contains the true population mean.

Tstatistic testing the mean

Differences-of-Means Estimation of Causal Effects Using Experimental Data

N (0, 1)

p − value = P r(Z > t act) =^ 1 − Φ(t act)

μY μY μY

μY μY Y 90% μ (^) Y =Yˉ^ ± 1.64SE( Yˉ) 95% μ (^) Y =Yˉ^ ± 1.96SE( Yˉ) 99% μ (^) Y =Yˉ^ ± 2.58SE( Yˉ)

t = (^) s /n Y^2

Yˉ^ −μY 0

The causal effect of a treatment is the expected effect on the outcome of interest of the treatment as measured in an ideal randomized controlled experiment.

This effect can be expressed as the difference of two conditional expectations

expected value of Y for the treatment group, expected value of Y for the control group (which receives treatment level X=0)

In the context of experiments the causal effect is also called treatment effect, if there are only two treatment levels :

X=0 denote the control group X=1 denote the treatment group

If the treatment is binary, then the causal effect is in a ideal randomized controlled experiment

Scatterplot

Is a plot of n obs on and in which each observation is represented by the point.

In the plot each point represents the age and the average earnings of one of the 200 workers in the sample. the highlighted dot corresponds to a 45 y.old worker who earns $49.15 per hour. the data are for computer and information systems managers from the March 2016 CPS.

The scatterplot shows a positive relationship between age and earnings in this sample: Older workers tend to earn more than younger workers. This relationship is not exact however and earnings could not be predicted perfectly using only a person’s age.

Sample Covariance and Correlation

The sample covariance and correlation are estimators of the population covariance and correlations.

Sample covariance

E(Y ∣X = x) − E(Y ∣X = 0)

E(Y ∣X = x) Y (Y ∣X = 0)

E(Y ∣X = 1) − E(Y ∣X = 0)

Xi Yi (X (^) iY i)

s (^) XY :

s (^) XY =n−1^1 ∑i^ n=1^ (X (^) i −Xˉ^ )(Y (^) i −Yˉ)