← All writing

A First Course in Probability

Study notes on probability axioms, conditional probability, random variables and expectation, with further notes on joint distributions, covariance and limit theorems.

A First Course in Probability

Chapter 2 Axioms of Probability

2.2 Sample Space and Events

Consider an experiment whose outcome is not predictable with certainty. However, although the outcome of the experiment will not be known in advance, let us suppose that the set of all possible outcomes is known. This set of all possible outcomes of an experiment is known as the sample space of the experiment and is denoted by SS.

Any subset EE of the sample space is known as an event.

2.3 Axioms of Probability

Consider an experiment whose sample space is SS. For each event EE of the sample space SS we assume that a number P(E)P(E) is defined and satisfies the following three axioms:

Axiom 1

0≤P(E)≤10 \le P(E) \le 1

Axiom 2

P(S)=1P(S) = 1

Axiom 3

For any sequence of mutually exclusive events E1,E2,...(E_1,E_2,...(that is, events for which EiEj=∅E_iE_j=\emptyset when i≠j)i\neq j),

P(⋃i=1∞Ei)=∑i=1∞EiP(\bigcup_{i = 1}^\infin E_i) = \sum_{i = 1}^{\infin}E_i

We refer to P(E)P(E) as the probability of the event EE .

2.6 Probability as a Continuous Set Function

A sequence of events {En,n≥1}\{E_n,n\geq1\} is said to be an increasing sequence if

E1⊂E2⊂⋅⋅⋅⊂En⊂En+1⊂⋅⋅⋅E_1\subset E_2\subset\cdotp\cdotp\cdotp\subset E_n\subset E_{n+1}\subset\cdotp\cdotp\cdotp

whereas it is said to be a decreasing sequence if

E1⊃E2⊃⋯⊃En⊃En+1⊃⋯E_1\supset E_2\supset\cdots\supset E_n\supset E_{n+1}\supset\cdots

Proposition 6.1

If {En,n≥1}\{E_n,n\geq1\} is either an increasing or a decreasing sequence of events, then

lim⁡n→∞P(En)=P(lim⁡n→∞En)\lim_{n\to\infty}P(E_n)=P(\lim_{n\to\infty}E_n)

Chapter 3 Conditional Probability and Independence

Definition

The odds of an event AA are defined by

P(A)P(Ac)=P(A)1−P(A)\frac{P(A)}{P(A^{c})} = \frac{P(A)}{1-P(A)}

Chapter 4 Random Variables

4.2 Discrete Random Variables

probability mass function

For a discrete random variable XX, we define the probability mass function p(a)p(a) of XX by

p(a)=P(X=a)p(a) = P(X = a)

4.4 Expectation of a Function of a Random Variable

If XX is a discrete random variable that takes on one of the values xi,i≥1x_i,i\geq1, with respective probabilities p(xi)p(x_i), then, for any real-valued function gg,

E[g(X)]=∑ig(xi)p(xi)E[g(X)]=\sum_i g(x_i)p(x_i)

4.9 Expected Value of Sums of Random Variables

Now, if XX and YY are both random variables, then so is their sum ZZ.

Z(s)=X(s)+Y(s),  s∈SZ(s) = X(s) + Y(s), \ \ s\in S

For random variables X1,X2,...,XnX_1,X_2,...,X_n,

E[∑iXi]=∑iE[Xi]E[\sum_i X_i] = \sum_i E[X_i]

Chapter 6 Jointly Distributed Random Variables

6.4 Conditional Distributions: Discrete Case

Hence, if XX and YY are discrete random variables, it is natural to define the conditional probability mass function of XX given that Y=yY = y by

px∣Y(x∣y)=p(x,y)pY(y)p_{x | Y}(x|y) = \frac{p(x, y)}{p_Y(y)}

6.5 Conditional Distributions: Continuous Case

If XX and YY have a joint probability density function f(x,y)f(x,y), then the conditional probability density function of XX given that Y=yY = y is defined, for all values of yy such that fY(y)>0f_Y(y) >0 by

fX∣Y(x∣y)=f(x,y)fY(y)f_{X|Y}(x|y) = \frac{f(x, y)}{f_{Y}(y)}

Chapter 7 Properties of Expectation

If XX and YY have a joint probability mass function p(x,y)p(x,y), then

E[g(X,Y)]=∑y∑xg(x,y) p(x,y)E[g(X,Y)]=\sum_y\sum_xg(x,y)\:p(x,y)

If XX and YY have a joint probability density function f(x,y)f(x,y), then

E[g(X,Y)]=∫−∞∞∫−∞∞g(x,y)f(x,y) dx dyE[g(X,Y)]=\int_{-\infty}^{\infty}\int_{-\infty}^{\infty}g(x,y)f(x,y)\:dx\:dy

7.4 Covariance, Variance of Sums, and Correlations

If XX and YY are independent, then, for any functions hh and gg,

E[g(X)h(Y)]=E[g(X)]E[h(Y)]E[g(X)h(Y)]=E[g(X)]E[h(Y)]

7.5 Conditional Expectation

It is therefore natural to define, in this case, the conditional expectation of XX given that Y=yY=y, for all values of yy such that pY(y)>0p_Y(y)>0,by

E[X∣Y=y]=∑x xP{X=x ∣ Y=y}=∑xxpX∣Y(x∣y)E[X|Y=y]=\sum_{x}\:xP\{X=x\:|\:Y=y\}\\ =\sum_{x}xp_{X|Y}(x|y)

It is natural, in this case, to define the conditional expectation of XX, given that Y=yY=y, by

E[X∣Y=y]=∫−∞∞xfX∣Y(x∣y) dxE[X|Y=y]=\int_{-\infty}^\infty xf_{X|Y}(x|y)\:dx E[g(X)∣Y=y]={∑xg(x) pX∣Y(x∣y)in the discrete case∫−∞∞g(x) fX∣Y(x∣y) dxin the continuous caseE[g(X)|Y=y]=\begin{cases}\sum_xg(x)\:p_{X|Y}(x|y)&\text{in the discrete case}\\\\\int_{-\infty}^\infty g(x)\:f_{X|Y}(x|y)\:dx&\text{in the continuous case}\end{cases}

Computing expectations by conditioning

Note: E[X∣Y=y]E[X | Y = y] is just a real number.

Let us denote by E[X∣Y]E[X | Y] that function of the random variable YY whose value at Y=yY = y

is E[X∣Y=y]E[X | Y= y]. So we can think that

f=E[X∣Y]f(y)=E[X∣Y=y],  y∈Yf = E[X | Y]\\ f(y) = E[X | Y = y], \ \ y \in Y\\

And furthermore, X∣Y=yX | Y = y is also a random variable.

Since E[X | Y] is a real function and domain is sample space, So E[X | Y] is also a random variable

The conditional expectation formula

So we can compute expectation of random variable E[X∣Y]E[X|Y],

E[E[X∣Y]]=E[X]E[E[X|Y]] = E[X]

Amazing! It's E[X]E[X].

If YY is a discrete random variable, then

E[E[X∣Y]]=E[X]=∑yE[X∣Y=y]P{Y=y}E[E[X|Y]] = E[X] =\sum_yE[X|Y=y]P\{Y=y\}

whereas if YY is continuous with density fY(y)f_Y(y),then Equation (5.1) states

E[E[X∣Y]]=E[X]=∫−∞∞E[X∣Y=y]fY(y) dyE[E[X|Y]] =E[X]=\int_{-\infty}^\infty E[X|Y=y]f_Y(y)\:dy

In facts, E[X∣Y]E[X|Y] is a function of YY, so we can say

g(Y)=E[X∣Y]g(Y) = E[X|Y]

so

E[E[X∣Y]]=E[g(Y)]=∑yg(y)p(y)=∑yE[X∣Y=y]P{Y=y}E[E[X|Y]] = E[g(Y)] = \sum_yg(y)p(y) =\sum_yE[X|Y=y]P\{Y=y\}

One way to understand is to interpret it as follows: To calculate E[X]E[X], we may take a weighted average of the conditional expected value of XX given that Y=yY = y, each of the terms E[X∣Y=y]E[X | Y = y] being weighted by the probability p(Y=y)p(Y = y) of the event on which it is conditioned.

This is an extremely useful result that often enables us to compute expectations easily by first conditioning on some appropriate random variable.

Conditional variance

See page 550

Chapter 8 Limit Theorems

← Back to ArchiveBack to top ↑

Comments

No approved comments yet.

Your display name and plain-text comment become public only after owner approval. No account or email is required.