



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




D Joyce, Spring 2016
Sample space. A sample space consists of a un- derlying set Ω, whose elements are called outcomes, a collection of subsets of Ω called events, and a function P on the set of events, called a probability function, satisfying the following axioms.
i
Ei) =
i
P (Ei).
From these axioms a number of other properties can be derived including these.
P (Ec) = 1 − P (E).
P (E ∪ F ) = P (E) + P (F ) − P (E ∩ F ),
therefore
P (E ∪ F ) ≤ P (E) + P (F ).
P (E) = P (E ∩ F ) + P (E ∩ F c).
( ⋃n
r=
Er
∑^ n
i=
P (Ei) −
i<j
P (Ei ∩ Ej )
i<j<k
P (Ei ∩ Ej ∩ Ek) − · · ·
In words, to find the probability of a union of n events, first sum their individual probabilities, then subtract the sum of the probabilities of all their pairwise intersections, then add back the sum of the probabilities of all their 3-way interections, then subtract the 4-way intersections, and continue adding and subtracting k-way intersections until you finally stop with the probability of the n-way intersection.
Random variables notation. In order to de- scribe a sample space, we frequently introduce a symbol X called a random variable for the sam- ple space. With this notation, we can replace the probability of an event, P (E), by the notation P (X ∈ E), which, by itself, doesn’t do much. But many events are built from the set operations of complement, union, and intersection, and with the random variable notation, we can replace those by logical operations for ‘not’, ‘or’, and ‘and’. For in- stance, the probability P (E ∪ F c) can be written as P (X ∈ E but X /∈ F ). Also, probabilities of finite events can be writ- ten in terms of equality. For instance, the prob- ability of a singleton, P ({a}), can be written as P (X=a), and that for a doubleton, P ({a, b}) = P (X=a or X=b). One of the main purposes of the random variable notation is when we have two uses for the same
sample space. For instance, if you have a fair die, the sample space is Ω = { 1 , 2 , 3 , 4 , 5 , 6 } where the probability of any singleton is 16. If you have two fair dice, you can use two random variables, X and Y , to refer to the two dice, but each has the same sample space. (Soon, we’ll look at the joint distri- bution of (X, Y ), which has a sample space defined on Ω × Ω.
Random variables and cumulative distribu- tion functions. A sample space can have any set as its underlying set, but usually they’re related to numbers. Often the sample space is the set of real numbers R, and sometimes a power of the real numbers Rn. The most common sample space only has two el- ements, that is, there are only two outcomes. For instance, flipping a coin as two outcomes—Heads and Tails; many experiments have two outcomes— Success and Failure; and polls often have two outcomes—For and Against. Even though these events aren’t numbers, it’s useful to replace them by numbers, namely 0 and 1, so that Heads, Suc- cess, and For are identified with 1, and Tails, Fail- ure, and Against are identified with 0. Then the sample space can have R as its underlying set. When the sample space does have R as its un- derlying set, the random variable X is called a real random variable. With it, the probability of an in- terval like [a, b], which is P ([a, b]), can then be de- scribed as P (a ≤ X ≤ b). Unions of intervals can also be described, for instance P ((−∞, 3) ∪ [4, 5]) can be written as P (X < 3 or 4 ≤ X ≤ 5).
When the sample space is R, the probability function P is determined by a cumulative distri- bution function (c.d.f.) F as follows. The function F : R → R is defined by
F (x) = P (X ≤ x) = P ((−∞, x]).
Then, from F , the probability of a half-open inter- val can be found as
P ((a, b]) = F (b) − F (a).
Also, the probability of a singleton {b} can be found as a limit
P ({b}) = lim a→b
(F (b) − F (a)).
From these, probabilities of unions of intervals can be computed. Sometimes, the c.d.f. is simply called the distribution, and the sample space is identified with this distribution.
Discrete distributions. Many sample distribu- tions are determined entirely by the probabilities of their outcomes, that is, the probability of an event E is
x∈E
P (X=x) =
x∈E
P ({x}).
The sum here, of course, is either a finite or count- ably infinite sum. Such a distribution is called a dis- crete distribution, and when there are only finitely many outcomes x with nonzero probabilities, it is called a finite distribution. A discrete distributions is usually described in terms of a probability mass function (p.m.f.) f de- fined by
f (x) = P (X=x) = P ({x}).
This p.m.f. is enough to determine this distribution since, by the definition of a discrete distribution, the probability of an event E is
x∈E
f (x).
In many applications, a finite distribution is uni- form, that is, the probabilities of its outcomes are all the same, 1/n, where n is the number of out- comes with nonzero probabilities. When that is the case, the field of combinatorics is useful in find- ing probabilities of events. Combinatorics includes various principles of counting such as the multipli- cation principle, permutations, and combinations.
That’s the main reason why we take the square root of variance to normalize it—the standard de- viation of cX is c times the standard deviation of X. Also, variance is translation invariant, that is, if you add a constant to a random variable, the variance doesn’t change:
Var(X + c) = Var(X).
In general, the variance of the sum of two random variables is not the sum of the variances of the two random variables. But it is when the two random variables are independent.
Moments, central moments, skewness, and kurtosis. The kth^ moment of a random variable X is defined as μk = E(Xk). Thus, the mean is the first moment, μ = μ 1 , and the variance can be found from the first and second moments, σ^2 = μ 2 − μ^21. The kth^ central moment is defined as E((X −μ)k. Thus, the variance is the second central moment. A third central moment of the standardized ran-
dom variable X∗^ =
X − μ σ
β 3 = E((X∗)^3 ) =
E((X − μ)^3 ) σ^3
is called the skewness of X. A distribution that’s symmetric about its mean has 0 skewness. (In fact all the odd central moments are 0 for a symmetric distribution.) But if it has a long tail to the right and a short one to the left, then it has a positive skewness, and a negative skewness in the opposite situation. A fourth central moment of X∗,
β 4 = E((X∗)^4 ) =
E((X − μ)^4 ) σ^4
is called kurtosis. A fairly flat distribution with long tails has a high kurtosis, while a short tailed distribution has a low kurtosis. A bimodal distribu- tion has a very high kurtosis. A normal distribution has a kurtosis of 3. (The word kurtosis was made up in the early 19th century from the Greek word for curvature.)
The moment generating function. There is a clever way of organizing all the moments into one mathematical object, and that object is called the moment generating function. It’s a function m(t) of a new variable t defined by
m(t) = E(etX^ ).
Since the exponential function et^ has the power se- ries
et^ =
k=
tk k!
= 1 + t +
t^2 2!
tk k!
we can rewrite m(t) as follows
m(t) = E(etX^ )1 + μ 1 t +
μ 2 2!
t^2 + · · · +
μk k!
tk^ + · · ·.
That implies that m(k)(0), the kth^ derivative of m(t) evaluated at t = 0, equals the kth^ moment μk of X. In other words, the moment generating function generates the moments of X by differentiation. For discrete distributions, we can also compute the moment generating function directly in terms of the probability mass function f (x) = P (X=x) as m(t) = E(etX^ ) =
x
etxf (x).
For continuous distributions, the moment generat- ing function can be expressed in terms of the prob- ability density function fX as
m(t) = E(etX^ ) =
−∞
etxfX (x) dx.
The moment generating function enjoys the fol- lowing properties. Translation. If Y = X + a, then
mY (t) = etamX (t).
Scaling. If Y = bx, then
mY (t) = mX (bt).
Standardizing. From the last two properties, if
X − μ σ
is the standardized random variable for X, then
mX∗^ (t) = e−μt/σmX (t/σ).
Convolution. If X and Y are independent vari- ables, and Z = X + Y , then
mZ (t) = mX (t) mY (t).
The primary use of moment generating functions is to develop the theory of probability. For instance, the easiest way to prove the central limit theorem is to use moment generating functions.
The median, quartiles, quantiles, and per- centiles. The median of a distribution X, some- times denoted ˜μ, is the value such that P (X ≤ μ˜) = 1
P (X ≤ θp) = F (θp) = p.
Quantiles are often expressed as percentiles where the pth^ quantile is also called the 100pth^ percentile. Thus, the median is the 0.5 quantile, also called the 50 th^ percentile. The first quartile is another name for θ 0. 25 , the 25 th^ percentile, while the third quartile is another name for θ 0. 75 , the 75th^ percentile
Joint distributions. When studing two related real random variables X and Y , it is not enough just to know the distributions of each. Rather, the pair (X, Y ) has a joint distribution. You can think of (X, Y ) as naming a single random variable that takes values in the plane R^2.
Joint and marginal probability mass func- tions. Let’s consider the discrete case first where both X and Y are discrete random variables. The probability mass function for X is fX (x) = P (X=x), and the p.m.f. for Y is fY (y) = P (Y =y).
The joint random variable (X, Y ) has its own p.m.f. denoted f(X,Y )(x, y), or more briefly f (x, y):
f (x, y) = P ((X, Y )=(x, y)) = P (X=x and Y =y),
and it determines the two individual p.m.f.s by
fX (x) =
y
f (x, y), fY (y) =
x
f (x, y).
The individual p.m.f.s are usually called marginal probability mass functions. For example, assume that the random variables X and Y have the joint probability mass function given in this table.
By adding the entries row by row, we find the the marginal function for X, and by adding the entries column by column, we find the marginal function for Y. We can write these marginal functions on the margins of the table.
Y fX − 1 0 1 2 − 1 0 1 / 36 1 / 6 1 / 12 5 / 18 X 0 1 / 18 0 1 / 18 0 1 / 9 1 0 1 / 36 1 / 6 1 / 12 5 / 18 2 1 / 12 0 1 / 12 1 / 6 1 / 3 fY 5 / 36 1 / 18 17 / 36 1 / 3
Discrete random variables X and Y are indepen- dent if and only if the joint p.m.f is the product of the marginal p.m.f.s
f (x, y) = fX (x)fY (y).
In the example above, X and Y aren’t independent.